JP2008085599A - Image processor, image processing method, and printing apparatus - Google Patents

Image processor, image processing method, and printing apparatus Download PDF

Info

Publication number
JP2008085599A
JP2008085599A JP2006262745A JP2006262745A JP2008085599A JP 2008085599 A JP2008085599 A JP 2008085599A JP 2006262745 A JP2006262745 A JP 2006262745A JP 2006262745 A JP2006262745 A JP 2006262745A JP 2008085599 A JP2008085599 A JP 2008085599A
Authority
JP
Japan
Prior art keywords
value
encoding
block
dots
gradation
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.)
Granted
Application number
JP2006262745A
Other languages
Japanese (ja)
Other versions
JP4586785B2 (en
JP2008085599A5 (en
Inventor
Satoshi Yamazaki
郷志 山▲崎▼
Shigeaki Sumiya
繁明 角谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006262745A priority Critical patent/JP4586785B2/en
Publication of JP2008085599A publication Critical patent/JP2008085599A/en
Publication of JP2008085599A5 publication Critical patent/JP2008085599A5/ja
Application granted granted Critical
Publication of JP4586785B2 publication Critical patent/JP4586785B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reduce the size of a table for use in half tone processing. <P>SOLUTION: Image processing ASIC 155 of a printer 100 performs half tone processing with respect to each picture element constituting image data by referring to in order an encode table ET, a predecode table DT1, a post decode table DT2 and a sequence value table ST stored in a RAM 152 to determine dot arrangement formed on a printing medium. Herein, although in the encode table ET an encode value and a gradation value are stored in pairs or in units of block numbers, data capacity thereof is previously reduced up to a capacity less than data capacity in response to a product of an encode value less than the maximum value which 5 bit encode value can take and the number of blocks. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、印刷媒体上にドットを形成して画像を印刷する技術に関する。   The present invention relates to a technique for printing an image by forming dots on a print medium.

コンピュータで作成した画像や、デジタルカメラで撮影した画像などを出力する装置として、印刷媒体上にドットを形成して画像を印刷する印刷装置が広く利用されている。このような印刷装置において、組織的ディザ法や濃度パターン法、サイズの異なる複数種類のドットを配置する手法(特許第3292104号)等の技術を発展させて極めて高速に高画質な印刷を行うことができる技術が本願の出願人によって提案されている(例えば、特許文献1参照)。   2. Description of the Related Art Printing apparatuses that form dots on a printing medium and print an image are widely used as apparatuses that output an image created by a computer, an image taken by a digital camera, or the like. In such a printing apparatus, a technique such as a systematic dither method, a density pattern method, and a method of arranging a plurality of types of dots having different sizes (Japanese Patent No. 3292104) is developed to perform high-quality printing at extremely high speed. A technique capable of achieving this is proposed by the applicant of the present application (see, for example, Patent Document 1).

特開2006−14036号公報JP 2006-14036 A

上記特許文献1に記載の画像処理技術では、大域的なディザマトリックスを4×2個の閾値を有するブロックに分割し、入力画像の各画素が、このディザマトリックス内のどのブロックに該当するかに基づき、特許文献1の図34に記載された多値化用テーブルや、図38の中間データ用の変換テーブル、図39の順序値マトリックス等の種々のテーブルを順次参照していくことで、入力画像に対するハーフトーン処理を行っている。   In the image processing technique described in Patent Document 1, the global dither matrix is divided into blocks having 4 × 2 thresholds, and which block in the dither matrix each pixel of the input image corresponds to. On the basis of various tables such as the multi-value conversion table described in FIG. 34 of Patent Document 1, the conversion table for intermediate data in FIG. 38, the sequence value matrix in FIG. Halftone processing is performed on the image.

このような従来技術において処理の高速化を図るためには、上述した種々のテーブルをROM等の記憶手段からRAMに予め展開して記憶しておく必要がある。一般的にROMよりもRAMの方がアクセス速度が速いからである。しかし、例えば、上述したハーフトーン処理を印刷装置単体で実現しようとすると、搭載しているRAMが低容量であることが多く、このような場合には、全てのテーブルをRAMに展開すること困難となり、高速化を図ることができないという問題が生じていた。こうした問題に対して、RAMの搭載容量を増加させることも考えられるが、コストアップの要因となり、合理的であるとは言えなかった。   In order to increase the processing speed in such a conventional technique, it is necessary to previously develop and store the various tables described above from storage means such as ROM into RAM. This is because the access speed of the RAM is generally faster than that of the ROM. However, for example, if the halftone processing described above is to be realized by a single printing apparatus, the mounted RAM is often low in capacity, and in such a case, it is difficult to develop all the tables in the RAM. Thus, there has been a problem that the speed cannot be increased. To deal with these problems, it is conceivable to increase the RAM mounting capacity, but this has been a cause of cost increase and is not reasonable.

種々のテーブルを参照してハーフトーン処理を行う際に生じる上記のような問題を考慮し、本発明が解決しようとする課題は、ハーフトーン処理で用いられるテーブルのサイズを削減することにある。   In consideration of the above-described problems that occur when halftone processing is performed with reference to various tables, the problem to be solved by the present invention is to reduce the size of the table used in halftone processing.

上記課題を踏まえ、本発明の画像処理装置を次のように構成した。すなわち、
画像データの階調値に応じてドットの発生の有無を決定するための閾値が記録されたディザマトリックスに基づいて、画像データの印刷時に印刷媒体上に形成するドットの配置を決定する画像処理装置であって、
前記ディザマトリックスを、所定個数の閾値のまとまりからなるブロックに分割し、該各ブロックに固有に割り当てたブロック識別子毎に、前記階調値を、当該階調値が取り得る範囲において前記閾値と順次比較して得られた前記ブロック内のドットの配置を表す各エンコード値に、該各エンコード値を生じる前記階調値を対応付けて記録したエンコードテーブルを記憶するエンコードテーブル記憶手段と、
前記画像データを入力する画像データ入力手段と、
前記入力した画像データを構成する各画素の位置と前記ディザマトリックス内に存在する各ブロックの位置とに基づき、該各画素に対応する前記ブロック識別子を弁別し、該ブロック識別子と前記各画素の階調値とに基づき前記エンコードテーブルを参照して、該各画素の階調値に対応する前記エンコード値を求めるエンコード手段と、
前記エンコード手段によって求めたエンコード値と、前記弁別されたブロック識別子とに応じて、前記各画素の位置に対応するブロック内に発生するドットの配置を決定するデコード手段とを備え、
前記エンコードテーブル記憶手段は、前記各エンコード値を所定のビット数で表しており、前記エンコードテーブルを、該ビット数で表現可能な最大のエンコード値未満のエンコード値と前記ブロックの数との積に応じたデータ容量以下の容量で記憶していることを要旨とする。
Based on the above problems, the image processing apparatus of the present invention is configured as follows. That is,
An image processing apparatus that determines the arrangement of dots to be formed on a printing medium when printing image data based on a dither matrix in which a threshold value for determining whether or not to generate dots is recorded according to the gradation value of the image data Because
The dither matrix is divided into blocks each composed of a predetermined number of threshold values, and the gradation values are sequentially set to the threshold values in a range that the gradation values can take for each block identifier uniquely assigned to each block. Encoding table storage means for storing an encoding table in which each gradation value that generates each encoding value is recorded in association with each encoding value representing the arrangement of dots in the block obtained by comparison;
Image data input means for inputting the image data;
Based on the position of each pixel constituting the input image data and the position of each block existing in the dither matrix, the block identifier corresponding to each pixel is discriminated, and the block identifier and the level of each pixel are distinguished. Encoding means for obtaining the encoding value corresponding to the gradation value of each pixel by referring to the encoding table based on the tone value;
Decoding means for determining the arrangement of dots generated in the block corresponding to the position of each pixel according to the encoded value obtained by the encoding means and the discriminated block identifier;
The encoding table storage means represents each encoding value with a predetermined number of bits, and the encoding table is a product of an encoding value less than the maximum encoding value that can be expressed with the number of bits and the number of blocks. The gist is that the data is stored in a capacity less than the corresponding data capacity.

本発明の画像処理装置では、エンコード記憶手段に記憶されたエンコードテーブルを参照することにより、画像の階調値をエンコード値に変換し、このエンコード値に基づきドットの配置を決定することで、画像データを構成する各画素についてハーフトーン処理を行う。このハーフトーン処理で用いられるエンコードテーブルには、ブロック識別子毎に、エンコード値と階調値とが対応付けて記憶されている。本発明では、このエンコードテーブルのデータ容量は、所定のビット数で表されたエンコード値が取り得る最大のエンコード値未満のエンコード値とブロックの数との積に応じたデータ容量以下の容量に制限することとした。従って、エンコード値の取り得る範囲の全てをエンコードテーブルに記録することがないので、エンコードテーブルのデータ容量を削減することが可能になる。   In the image processing apparatus of the present invention, by referring to the encoding table stored in the encoding storage unit, the gradation value of the image is converted into the encoding value, and the dot arrangement is determined based on this encoding value, thereby Halftone processing is performed on each pixel constituting the data. In the encode table used in the halftone process, an encode value and a gradation value are stored in association with each block identifier. In the present invention, the data capacity of the encoding table is limited to a capacity equal to or less than the data capacity corresponding to the product of the encoding value less than the maximum encoding value that can be taken by the encoding value represented by the predetermined number of bits and the number of blocks. It was decided to. Therefore, since the entire range that the encoding value can take is not recorded in the encoding table, the data capacity of the encoding table can be reduced.

上記構成の画像処理装置において、
前記エンコードテーブル記憶手段は、前記エンコードテーブルを、前記階調値が記録される複数の要素の集合として記憶しており、前記ビット数で表現可能な前記エンコード値の最大値まで前記いずれのブロックについても前記階調値が実質的に記録されていない場合に、該エンコードテーブル内の、前記階調値が実質的に記録されていない要素の少なくとも一部を予め削除することにより、前記エンコードテーブルを記憶しているものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding table storage means stores the encoding table as a set of a plurality of elements in which the gradation value is recorded, and for any block up to the maximum value of the encoding value that can be expressed by the number of bits. In the case where the gradation value is not substantially recorded, at least a part of the element in which the gradation value is not substantially recorded in the encoding table is deleted in advance. It may be remembered.

このような構成であれば、所定のビット数で表現可能なエンコード値の最大値までいずれのブロックについても階調値が実質的に記録されていない場合に、階調値が実質的に対応付けられていない要素の少なくとも一部を削除するため、エンコードテーブル自体のサイズを縮小することができる。なお、「階調値が実質的に記録されていない要素」とは、「0」や「NULL」など、階調値としての意味のない値が対応付けられている要素のことをいう。ただし、「0」の中には、階調値としての意味をもつものもあるため、そのような階調値については、「階調値が実質的に記録されていない要素」に含まれることはない。   With such a configuration, the gradation value is substantially associated when the gradation value is not substantially recorded for any block up to the maximum encoding value that can be expressed by a predetermined number of bits. Since at least a part of the elements that have not been deleted are deleted, the size of the encoding table itself can be reduced. Note that “an element in which a gradation value is not substantially recorded” refers to an element associated with a meaningless value as a gradation value, such as “0” or “NULL”. However, some “0” s have meanings as gradation values, and such gradation values are included in “elements where gradation values are not substantially recorded”. There is no.

上記構成の画像処理装置において、
前記エンコードテーブル記憶手段は、前記各ブロック識別子が表すブロックの中で、最も多くの階調値が対応付けられたブロックについての前記階調値が実質的に対応付けられていない要素とともに、該要素に対応する他のブロックの要素を前記エンコードテーブルから予め削除して、該エンコードテーブルを記憶しているものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding table storage means includes, in addition to the elements that are not substantially associated with the gradation values for the block that is associated with the largest number of gradation values among the blocks represented by the block identifiers, The elements of other blocks corresponding to the above may be deleted from the encoding table in advance and the encoding table may be stored.

このような構成であれば、最も多くの階調値が対応付けられたブロックが必要とするデータ容量に合わせて、他のブロックのデータ容量を削減することができる。そのため、容易にエンコードテーブル自体のサイズを減縮することが可能になる。   With such a configuration, the data capacity of other blocks can be reduced in accordance with the data capacity required by the block associated with the largest number of gradation values. Therefore, it is possible to easily reduce the size of the encoding table itself.

上記構成の画像処理装置において、
前記エンコードテーブル記憶手段は、前記階調値が実質的に対応付けられていない要素の全てを前記エンコードテーブルから予め削除して、該エンコードテーブルを記憶しているものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding table storage means may store all the elements that are not substantially associated with the gradation values from the encoding table in advance and store the encoding table.

このような構成であれば、階調値が実質的に対応付けられていない要素を全て削除するため、エンコードテーブルのデータ容量をより削減することが可能になる。   With such a configuration, all elements that are not substantially associated with gradation values are deleted, so that the data capacity of the encoding table can be further reduced.

上記構成の画像処理装置において、
前記エンコードテーブル記憶手段は、前記階調値が実質的に対応付けられていない前記要素の全てが削除された前記エンコードテーブルを、連続したアドレス空間に前記ブロック識別子と前記エンコード値と前記階調値とを対応付けた形式で記憶するものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding table storage means stores the block identifier, the encoded value, and the gradation value in a continuous address space with the encoding table from which all of the elements not substantially associated with the gradation value are deleted. It is good also as what memorize | stores in the format which matched.

このような構成であれば、階調値が実質的に対応付けられていない要素を全て削除した上で、連続したアドレス空間にすべてのデータを記憶するため、エンコードテーブルを効率的に記憶することが可能になる。   In such a configuration, since all elements that are not substantially associated with gradation values are deleted and all data is stored in a continuous address space, an encoding table is efficiently stored. Is possible.

上記構成の画像処理装置において、
前記エンコードテーブル記憶手段は、前記アドレス空間において、前記各ブロック識別士に対応するアドレスを示すアドレステーブルを別途記憶するものとしてもよい
In the image processing apparatus having the above configuration,
The encoding table storage means may separately store an address table indicating an address corresponding to each block identifier in the address space.

このような構成であれば、アドレステーブルを参照することで、各ブロックに対応したデータをエンコードテーブルから容易に読み出すことが可能になる。   With such a configuration, data corresponding to each block can be easily read from the encoding table by referring to the address table.

上記構成の画像処理装置において、
前記エンコード値は、前記各ブロックについて、前記階調値を最小値から最大値まで増加していった時に該各ブロック内の前記閾値に応じて前記ドットの配置が変化する変化数に応じて設定されているものとすることができる。
In the image processing apparatus having the above configuration,
The encoding value is set according to the number of changes in the arrangement of the dots according to the threshold value in each block when the gradation value is increased from the minimum value to the maximum value for each block. Can be.

このような構成であれば、画素の階調値を、ブロック内のドットの配置が変化する変化数に変換することができるので、より少ないデータに階調値を変換することが可能になる。   With such a configuration, the gradation value of the pixel can be converted into the number of changes in which the arrangement of dots in the block changes, so that the gradation value can be converted into less data.

上記構成の画像処理装置において、
前記エンコード値が取り得る範囲の上限を予め制限する制限値を記憶する制限値記憶手段を備え、
前記エンコードテーブル記憶手段は、前記変化数が、前記制限値を超えるブロックについて、前記エンコード値の範囲を該制限値に応じて予め削減して、前記エンコードテーブルを記憶しているものとしてもよい。
In the image processing apparatus having the above configuration,
Limit value storage means for storing a limit value that limits in advance the upper limit of the range that the encoded value can take,
The encoding table storage unit may store the encoding table by reducing the range of the encoding value in advance according to the limit value for a block whose number of changes exceeds the limit value.

このような構成であれば、エンコード値の最大値を制限することができるので、エンコードテーブルのデータ容量をより削減することが可能になる。   With such a configuration, the maximum encoding value can be limited, so that the data capacity of the encoding table can be further reduced.

上記構成の画像処理装置において、
前記エンコードテーブル記憶手段は、前記変化数が、前記制限値を超えるブロックについて、前記制限値と該ブロックのエンコード値の最大値の差分の個数だけ、最も濃い階調値側のエンコード値から、該エンコード値および該エンコード値に対応付けられた前記階調値を間引くことにより前記削減を行うものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding table storage means, for a block in which the number of changes exceeds the limit value, from the encode value on the darkest gradation value side by the number of differences between the limit value and the maximum value of the encoded value of the block, The reduction may be performed by thinning out the encoded value and the gradation value associated with the encoded value.

このような構成であれば、最も濃い階調値側のエンコード値、すなわち、ドットが多く形成されることになるエンコード値から階調値を間引くので、エンコード値の数を削減することによって画質に与える影響を抑制することが可能になる。   With such a configuration, since the gradation value is thinned out from the encoding value on the darkest gradation value side, that is, the encoding value where many dots are formed, the image quality can be reduced by reducing the number of encoding values. It is possible to suppress the influence.

上記構成の画像処理装置において、
前記エンコードテーブル記憶手段は、前記間引きによって残存した階調値の調整を行うものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding table storage means may adjust the gradation values remaining after the thinning.

このような構成であれば、残存した階調値を調整することで、エンコード値の削減に伴い、ドットの配置が不自然に変化していくことを抑制することができる。   With such a configuration, by adjusting the remaining gradation value, it is possible to prevent the dot arrangement from changing unnaturally as the encoded value is reduced.

上記構成の画像処理装置において、
前記エンコードテーブル記憶手段は、前記間引きによって削除された前記階調値と、該削除前に該階調値に隣接しており、該間引きによって残存した階調値との平均値を、前記残存した階調値の値に置き換えることで前記調整を行うものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding table storage means stores the average value of the gradation value deleted by the thinning and the gradation value adjacent to the gradation value before the deletion and remaining by the thinning. The adjustment may be performed by replacing with a gradation value.

このような構成であれば、平均値を計算するだけで、容易に階調値の調整を行うことが可能になる。   With such a configuration, it is possible to easily adjust the gradation value only by calculating the average value.

上記構成の画像処理装置において、
前記エンコード手段は、前記画像データを構成する画素をライン毎に入力し、該ライン内の画素に対応する前記ブロック識別子の範囲を前記エンコードテーブルから部分的に入力して一時的に記憶する一時記憶手段を備え、
前記エンコード手段は、前記一時記憶手段に保持された部分的なエンコードテーブルを用いて前記エンコード値を求めるものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding means inputs the pixels constituting the image data for each line, and temporarily stores the block identifier range corresponding to the pixels in the line by partially inputting from the encoding table With means,
The encoding unit may obtain the encoding value using a partial encoding table held in the temporary storage unit.

このような構成であれば、一時記憶手段に記憶された部分的なエンコードテーブルを参照することで、ライン毎に効率的にエンコード処理を行うことが可能になる。   With such a configuration, it is possible to efficiently perform the encoding process for each line by referring to the partial encoding table stored in the temporary storage unit.

上記構成の画像処理装置において、
前記エンコード手段は、前記エンコードテーブル内の前記削除された要素を回復させて前記部分的なエンコードテーブルを前記一時記憶手段に入力するものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding means may recover the deleted element in the encoding table and input the partial encoding table to the temporary storage means.

このような構成であれば、一時記憶手段に入力する部分的なエンコードテーブルのデータ容量を一律に扱うことができるので、一時記憶手段におけるデータの管理を容易に行うことが可能になる。   With such a configuration, the data capacity of the partial encoding table input to the temporary storage means can be handled uniformly, so that the data in the temporary storage means can be easily managed.

上記構成の画像処理装置において、
前記エンコード手段は、前記エンコードテーブル内の前記削除された要素を回復することなく前記部分的なエンコードテーブルを前記一時記憶手段に入力するものとしてもよい。
In the image processing apparatus having the above configuration,
The encoding unit may input the partial encoding table to the temporary storage unit without recovering the deleted element in the encoding table.

このような構成であれば、一時記憶手段に対しても、データ容量の削減された部分的なエンコードテーブルが入力されるので、一時記憶手段の記憶容量を削減することが可能になる。   With such a configuration, a partial encoding table with a reduced data capacity is also input to the temporary storage means, so that the storage capacity of the temporary storage means can be reduced.

上記構成の画像処理装置において、
更に、前記ブロック識別子毎に、前記各エンコード値に対して、該エンコード値に応じて該ブロック内に発生する前記ドットの配置を対応付けて記録したデコードテーブルを記憶するデコードテーブル記憶手段を備え、
前記デコード手段は、前記デコードテーブルを参照して、前記エンコード手段によって求めたエンコード値と前記弁別されたブロック識別子とに基づき、前記ドットの配置を決定するものとしてもよい。
In the image processing apparatus having the above configuration,
Furthermore, for each of the block identifiers, a decoding table storage means for storing a decoding table in which the arrangement of the dots generated in the block according to the encoding value is recorded in association with the encoding value.
The decoding unit may determine the dot arrangement based on the encoded value obtained by the encoding unit and the discriminated block identifier with reference to the decoding table.

このような構成であれば、デコードテーブル記憶手段に予め記憶されたデコードテーブルを参照することで、エンコード値とブロック識別子とから容易にドットの配置を決定することができる。   With such a configuration, the dot arrangement can be easily determined from the encoded value and the block identifier by referring to the decode table stored in advance in the decode table storage means.

上記構成の画像処理装置において、
前記デコードテーブルは、
前記ブロック識別子毎に、前記エンコード値と、該ブロック内に発生するドットの数を表すインデックス値との対応関係を表すプレデコードテーブルと、
前記インデックス値と、前記ブロック内に発生するドットの数との対応関係を表すポストデコードテーブルと、
前記ドットの数と、前記ブロック内に発生させるドットの位置および順序との対応関係を表す順序値テーブルとからなり、
前記デコード手段は、前記プレデコードテーブルと前記ポストデコードテーブルと前記順序値テーブルとを順次参照することにより、前記エンコード値と前記ブロック識別子とに応じて、前記ドットの配置を決定するものとしてもよい。
In the image processing apparatus having the above configuration,
The decoding table is
For each block identifier, a predecode table representing a correspondence relationship between the encoded value and an index value representing the number of dots generated in the block;
A post-decoding table representing the correspondence between the index value and the number of dots generated in the block;
An order value table representing the correspondence between the number of dots and the position and order of dots generated in the block;
The decoding means may determine the arrangement of the dots in accordance with the encoded value and the block identifier by sequentially referring to the predecode table, the postdecode table, and the order value table. .

このような構成であれば、デコードテーブル内の各エンコード値にドットの配置を一対一に対応付ける必要がないので、デコードテーブルの記憶容量を削減することができる。なお、デコード手段は、順序値テーブルを用いる代わりに、エンコードテーブルやデコードテーブルの生成元となったディザマトリックスを直接参照することで、デコード処理の都度、ブロック内に発生させるドットの位置および順序を求めるものとしてもよい。   With such a configuration, it is not necessary to have a one-to-one correspondence of dot arrangement with each encode value in the decode table, so that the storage capacity of the decode table can be reduced. The decoding means directly refers to the encoding table and the dither matrix that is the generation source of the decoding table instead of using the order value table, so that the position and order of the dots generated in the block can be determined each time decoding processing is performed. It may be what you want.

上記構成の画像処理装置において、
前記デコードテーブル記憶手段は、前記各エンコード値を所定のビット数で表しており、前記プレデコードテーブルを、該ビット数で表現可能な最大のエンコード値未満のエンコード値と前記ブロックの数との積に応じたデータ容量以下の容量で記憶しているものとしてもよい。
In the image processing apparatus having the above configuration,
The decoding table storage means represents each encoded value with a predetermined number of bits, and the predecoding table is a product of an encoded value less than the maximum encoded value that can be expressed with the number of bits and the number of blocks. It is good also as what is memorize | stored with the capacity | capacitance below the data capacity according to.

このような構成であれば、プレデコードテーブルの記憶容量をエンコードテーブルと同様の手法により削減することが可能になる。   With such a configuration, the storage capacity of the predecode table can be reduced by a method similar to that of the encode table.

なお、本発明は、上述した画像処理装置としての構成のほか、画像処理方法や、印刷装置、コンピュータプログラムとしても構成することができる。かかるコンピュータプログラムは、コンピュータが読取可能な記録媒体に記録されていてもよい。記録媒体としては、例えば、フレキシブルディスクやCD−ROM、DVD−ROM、光磁気ディスク、メモリカード、ハードディスク等の種々の媒体を利用することができる。   In addition to the configuration as the image processing apparatus described above, the present invention can be configured as an image processing method, a printing apparatus, and a computer program. Such a computer program may be recorded on a computer-readable recording medium. As the recording medium, for example, various media such as a flexible disk, a CD-ROM, a DVD-ROM, a magneto-optical disk, a memory card, and a hard disk can be used.

以下、上述した本発明の作用・効果を一層明らかにするため、本発明の実施の形態を実施例に基づき次の順序で説明する。
(A)プリンタの構成:
(B)印刷処理:
(C)初期化処理:
(C−1)エンコードテーブル及びプレデコードテーブル生成処理:
(C−2)データ量削減処理:
(D)ハーフトーン処理:
(D−1)エンコード処理:
(D−2)デコード処理:
(E)効果:
(F)変形例:
Hereinafter, in order to further clarify the operations and effects of the present invention described above, embodiments of the present invention will be described based on examples in the following order.
(A) Printer configuration:
(B) Print processing:
(C) Initialization process:
(C-1) Encoding table and predecoding table generation processing:
(C-2) Data amount reduction processing:
(D) Halftone processing:
(D-1) Encoding process:
(D-2) Decoding process:
(E) Effect:
(F) Modification:

(A)プリンタの構成:
図1は、本発明の実施例としてのプリンタ100を示す説明図である。プリンタ100は、いわゆる複合機タイプのプリンタであり、光学的に画像を読み込むスキャナ110や、画像データの記録されたメモリカードMCを挿入するためのメモリカードスロット120、デジタルカメラ等の機器を接続するUSBインタフェース130等を備えている。プリンタ100は、スキャナ110によって取り込んだ画像や、メモリカードMCから読み込んだ画像、USBインタフェース130を介してデジタルカメラから読み込んだ画像等を印刷用紙Pに印刷することができる。また、プリンタケーブル等によって接続された図示していないパーソナルコンピュータから入力した画像の印刷も行うことができる。
(A) Printer configuration:
FIG. 1 is an explanatory diagram showing a printer 100 as an embodiment of the present invention. The printer 100 is a so-called multi-function printer, and is connected to devices such as a scanner 110 for optically reading an image, a memory card slot 120 for inserting a memory card MC on which image data is recorded, and a digital camera. A USB interface 130 and the like are provided. The printer 100 can print an image captured by the scanner 110, an image read from the memory card MC, an image read from the digital camera via the USB interface 130, and the like on the printing paper P. Also, it is possible to print an image input from a personal computer (not shown) connected by a printer cable or the like.

プリンタ100は、印刷対象の画像の選択や、印刷用紙の種類、サイズの設定など、印刷に関する種々の設定操作を行うための操作パネル140を備えている。操作パネル140の中央部には、液晶モニタ145が備えられている。液晶モニタ145には、メモリカードMC等から入力した画像の一覧や種々のグラフィカルインタフェース(GUI)が表示される。   The printer 100 includes an operation panel 140 for performing various setting operations relating to printing, such as selection of an image to be printed and setting of the type and size of printing paper. A liquid crystal monitor 145 is provided at the center of the operation panel 140. The liquid crystal monitor 145 displays a list of images input from the memory card MC or the like and various graphical interfaces (GUI).

図2は、プリンタ100の内部構成を示す説明図である。図示するように、プリンタ100は、印刷用紙Pに印刷を行う機構として、インクカートリッジ212を搭載したキャリッジ210や、キャリッジ210を主走査方向に駆動するキャリッジモータ220、印刷用紙Pを副走査方向に搬送する紙送りモータ230等を備えている。   FIG. 2 is an explanatory diagram showing the internal configuration of the printer 100. As shown in the figure, the printer 100 has a carriage 210 on which an ink cartridge 212 is mounted, a carriage motor 220 that drives the carriage 210 in the main scanning direction, and a printing paper P in the sub-scanning direction as a mechanism for printing on the printing paper P. A paper feed motor 230 and the like are provided.

キャリッジ210には、シアン(C)、ライトシアン(Lc)、マゼンタ(M)、ライトマゼンタ(Lm)、イエロ(Y)、ブラック(K)、の各インクが収容されたインクカートリッジ212が装着されている。キャリッジ210は、これらの色に対応して計6種類のインクヘッド211を備えている。インクカートリッジ212からインクヘッド211に供給されたインクは、図示しないピエゾ素子を駆動することで印刷用紙Pに吐出される。   An ink cartridge 212 containing cyan (C), light cyan (Lc), magenta (M), light magenta (Lm), yellow (Y), and black (K) inks is mounted on the carriage 210. Yes. The carriage 210 includes a total of six types of ink heads 211 corresponding to these colors. The ink supplied from the ink cartridge 212 to the ink head 211 is ejected onto the printing paper P by driving a piezoelectric element (not shown).

本実施例のプリンタ100は、制御ユニット150によってインクヘッド211のピエゾ素子に印加する電圧波形を制御することにより、印刷用紙Pに4種類のサイズのドットを形成することができる。以下では、4種類のサイズのドットを、ドットの形成されない場合も含め、サイズの小さい順に、「ドット無し」、「Sドット」、「Mドット」、「Lドット」というものとする。各サイズのドットは、1ドット当たり、それぞれ、1.5pl(ピコリットル)、3pl、7plのインク量によって表現される。なお、本実施例では、4種類のドットを形成可能であるものとしたが、2種類や3種類、あるいは5種類以上のドットを形成可能としてもよい。   The printer 100 of this embodiment can form dots of four types on the printing paper P by controlling the voltage waveform applied to the piezo elements of the ink head 211 by the control unit 150. In the following, the four types of dots are referred to as “no dot”, “S dot”, “M dot”, and “L dot” in order of size, including the case where no dot is formed. Each size dot is represented by an ink amount of 1.5 pl (picoliter), 3 pl, and 7 pl, respectively. In this embodiment, four types of dots can be formed, but two types, three types, or five or more types of dots may be formed.

キャリッジ210は、プラテン270の軸方向と並行に設置された摺動軸280に移動自在に保持されている。キャリッジモータ220は、制御ユニット150からの指令に応じて駆動ベルト260を回転させることで、プラテン270の軸方向と平行に、すなわち、主走査方向にキャリッジ210を往復運動させる。紙送りモータ230は、制御ユニット150からの指令に応じてプラテン270を回転させることで、プラテン270の軸方向と垂直に印刷用紙Pを搬送する。つまり、紙送りモータ230は、キャリッジ210を相対的に副走査方向に移動させることができる。   The carriage 210 is movably held by a sliding shaft 280 installed in parallel with the axial direction of the platen 270. The carriage motor 220 rotates the drive belt 260 in response to a command from the control unit 150 to reciprocate the carriage 210 in parallel with the axial direction of the platen 270, that is, in the main scanning direction. The paper feed motor 230 conveys the printing paper P perpendicular to the axial direction of the platen 270 by rotating the platen 270 according to a command from the control unit 150. That is, the paper feed motor 230 can relatively move the carriage 210 in the sub-scanning direction.

プリンタ100は、上述したインクヘッド211やキャリッジモータ220、紙送りモータ230の動作を制御するための制御ユニット150を備えている。制御ユニット150には、図1に示したスキャナ110やメモリカードスロット120、USBインタフェース130、操作パネル140、液晶モニタ145が接続されている。   The printer 100 includes a control unit 150 for controlling operations of the ink head 211, the carriage motor 220, and the paper feed motor 230 described above. The control unit 150 is connected to the scanner 110, the memory card slot 120, the USB interface 130, the operation panel 140, and the liquid crystal monitor 145 shown in FIG.

制御ユニット150は、CPU151とRAM152とROM153と画像処理ASIC155とによって構成されている。   The control unit 150 includes a CPU 151, a RAM 152, a ROM 153, and an image processing ASIC 155.

ROM153には、プリンタ100の動作を全般的に制御するための制御プログラムが記憶されている。CPU151はプリンタ100の電源投入時に、この制御プログラムをRAM152に読み出して実行する。CPU151は、この制御プログラムの実行により、後述する印刷処理や初期化処理等を行う。   The ROM 153 stores a control program for generally controlling the operation of the printer 100. The CPU 151 reads this control program into the RAM 152 and executes it when the printer 100 is turned on. The CPU 151 performs print processing, initialization processing, and the like, which will be described later, by executing this control program.

ROM153には、制御プログラムの他、後述する初期化処理時に使用されるディザマトリックスデータDMやドット発生量テーブルDGTが記憶されている。RAM152には、この初期化処理によって生成される種々のテーブルが記憶される。   In addition to the control program, the ROM 153 stores dither matrix data DM and a dot generation amount table DGT that are used in initialization processing described later. The RAM 152 stores various tables generated by this initialization process.

画像処理ASIC155は、メモリカードMC等から入力した画像データに対して、色変換処理やハーフトーン処理を施し、印刷機構(インクヘッド211、キャリッジモータ220、紙送りモータ230)を制御して印刷を行うための集積回路である。画像処理ASIC155内の論理回路は、以下で説明する機能を実現するためのプログラムが所定のハードウェア記述言語によって記述されることで設計されている。   The image processing ASIC 155 performs color conversion processing and halftone processing on the image data input from the memory card MC or the like, and controls the printing mechanism (ink head 211, carriage motor 220, paper feed motor 230) to perform printing. An integrated circuit for performing. The logic circuit in the image processing ASIC 155 is designed by describing a program for realizing the functions described below in a predetermined hardware description language.

図3は、画像処理ASIC155の詳細な構成を示す説明図である。図示するように、本実施例の画像処理ASIC155は、色変換ユニット300と、ハーフトーン処理ユニット400と、インク吐出制御ユニット500とを備えている。   FIG. 3 is an explanatory diagram showing a detailed configuration of the image processing ASIC 155. As shown in the figure, the image processing ASIC 155 of this embodiment includes a color conversion unit 300, a halftone processing unit 400, and an ink ejection control unit 500.

色変換ユニット300は、R,G,Bの階調値の組み合わせによって表現されている画像データの色を、キャリッジ210に備えられたインクの各色についての階調値の組み合わせによって表現された色に変換する回路である。前述したように、プリンタ100は、C,M,Y,K,Lc,Lmの最大6色のインクを用いて画像を印刷する。そこで、色変換ユニット300は、RGB各色によって表現された画像データを、これら6色の階調値によって表現された画像データに変換する。   The color conversion unit 300 changes the color of image data expressed by a combination of R, G, and B gradation values to a color expressed by a combination of gradation values for each color of ink provided in the carriage 210. It is a circuit to convert. As described above, the printer 100 prints an image using a maximum of six colors of C, M, Y, K, Lc, and Lm. Therefore, the color conversion unit 300 converts the image data expressed by RGB colors into image data expressed by the gradation values of these six colors.

色変換ユニット300は、RAM152に記憶された色変換テーブルLUTと呼ばれるテーブルを参照することで前述した色変換を行う。この色変換テーブルLUTには、RGBの階調値とCMYKLcLmの階調値とが予め対応付けて記憶されている。色変換ユニット300は、この色変換テーブルLUTを参照することにより、RGB形式によって表された画像データを、迅速にCMYKLcLm形式(以下、「CMY形式」という)の画像データに変換することができる。色変換後の画像データは、各色、256段階(0〜255)の階調値を有するものとする。   The color conversion unit 300 performs the color conversion described above by referring to a table called a color conversion table LUT stored in the RAM 152. In this color conversion table LUT, RGB gradation values and CMYKLcLm gradation values are stored in association with each other in advance. By referring to this color conversion table LUT, the color conversion unit 300 can quickly convert image data represented in the RGB format into image data in the CMYKLcLm format (hereinafter referred to as “CMY format”). The image data after color conversion has gradation values of 256 colors (0 to 255) for each color.

ハーフトーン処理ユニット400は、色変換ユニット300によって色変換されたCMY形式の画像データを入力し、この画像データを、印刷媒体上に形成されるドットの配置表すドット配置データに変換する回路である。   The halftone processing unit 400 is a circuit that inputs the CMY format image data color-converted by the color conversion unit 300 and converts the image data into dot arrangement data representing the arrangement of dots formed on the print medium. .

プリンタ100は、吐出するインク滴のサイズを最大4段階に調整することができるにすぎず、各色256階調のCMY形式のデータをそのまま用いることはできない。そのため、プリンタ100は、ハーフトーン処理ユニット400によって、CMY形式の階調値を、単位面積あたりのドットの粗密を表すドット配置データに変換することで中間調の色を表現する。   The printer 100 can only adjust the size of ink droplets to be ejected to a maximum of four levels, and cannot use CMY format data of 256 gradations for each color as it is. Therefore, the printer 100 expresses a halftone color by converting the CMY format gradation value into dot arrangement data representing the density of dots per unit area by the halftone processing unit 400.

図4は、ドット配置データの一例を示す説明図である。この図では、CMY形式の画像データの最も左上の画素(1,1)の色(例えばシアン)の階調値が「52」の場合に、これをドット配置データに変換した例を図の左下に示した。このように、本実施例では、1つの画素の階調値が入力されると、4×2ドットのドット群の中で、SドットやMドット、Lドットなどを配置してその階調値が表す色を印刷用紙上に表現する。なお、前述したドット群のことを、以下では「ブロック」と呼ぶことがある。   FIG. 4 is an explanatory diagram showing an example of dot arrangement data. In this figure, when the gradation value of the color (for example, cyan) of the upper left pixel (1, 1) of the CMY format image data is “52”, this is converted into dot arrangement data in the lower left of the figure. It was shown to. As described above, in this embodiment, when the gradation value of one pixel is inputted, S dots, M dots, L dots, etc. are arranged in the dot group of 4 × 2 dots, and the gradation values thereof are arranged. The color represented by is represented on the printing paper. In addition, the dot group mentioned above may be called a "block" below.

ここで、ドット配置データの生成方法を簡単に説明する。ドット配置データ内の各ドットの配置は、大域的なディザマトリックスデータDM(図7(a)参照)からハーフトーン処理対象の画素の位置に応じて切り出された局所的な閾値群(図7(b)参照)と、その画素の階調値TDに対応する各サイズのドットの発生量(図9参照)との関係から決定される。つまり、図9に示したドット発生量テーブルDGTによって、入力階調値TDに応じた各サイズのドットの発生量を求め、その各ドットの発生量と閾値群内の閾値とを比較していき、1ブロック内に配置する各サイズのドットの個数を求める。そして、その個数分のドットを大きなサイズのドットから閾値群内の閾値の低い場所に配置していくことでドット配置データが生成される。本実施例では、このような一連の処理を行うために、エンコードテーブルETやプレデコードテーブルDT1、ポストデコードテーブルDT2、順序値テーブルSTと呼ばれる種々のテーブルを予め生成しておき、これらのテーブルを順次参照することで、ドット配置データの生成を効率的に行う。ドット配置データを生成するための詳細な処理内容については後で説明する。   Here, a method for generating dot arrangement data will be briefly described. The arrangement of each dot in the dot arrangement data is a local threshold value group (FIG. 7 (FIG. 7)) extracted from the global dither matrix data DM (see FIG. 7A) according to the position of the pixel to be processed with halftone processing. b)) and the generation amount of dots of each size corresponding to the gradation value TD of the pixel (see FIG. 9). That is, the dot generation amount table DGT shown in FIG. 9 is used to determine the generation amount of dots of each size according to the input gradation value TD, and the generation amount of each dot is compared with the threshold value in the threshold group. The number of dots of each size arranged in one block is obtained. Then, dot arrangement data is generated by arranging the number of dots from a large size dot to a place with a low threshold in the threshold group. In the present embodiment, in order to perform such a series of processes, various tables called an encoding table ET, a predecoding table DT1, a postdecoding table DT2, and an order value table ST are generated in advance, and these tables are generated. By sequentially referencing, dot arrangement data is efficiently generated. Detailed processing contents for generating dot arrangement data will be described later.

本実施例では、CMY画像中の画素の階調値が同一の場合であっても、その画素の位置が異なれば、図7(a)に示したディザマトリックスデータDM内で参照される閾値群が異なるため、異なるドット配置データが生成される。例えば、図4において、CMY画像の最も左上の画素以外に、もう一つ、「52」の階調値を有する画素(j,1)を示している。この画素に対応するドット配置データの例を図の右下に示したが、かかるドット配置データは、先に示したドット配置データとは異なるドット配置を有している。つまり、本実施例では、階調値の値が同じであっても、ハーフトーン処理対象となる画素の位置に応じて生成するドット配置データを変化させるので、従来の組織的ディザ法や濃度パターン法等よりも高画質な画像の出力を行うことが可能になる。   In the present embodiment, even if the gradation values of the pixels in the CMY image are the same, the threshold value group referred to in the dither matrix data DM shown in FIG. Therefore, different dot arrangement data are generated. For example, FIG. 4 shows another pixel (j, 1) having a gradation value of “52” in addition to the upper leftmost pixel of the CMY image. An example of dot arrangement data corresponding to this pixel is shown in the lower right of the figure, but this dot arrangement data has a dot arrangement different from the dot arrangement data shown above. In other words, in the present embodiment, even if the gradation value is the same, the dot arrangement data to be generated is changed according to the position of the pixel to be subjected to halftone processing. It is possible to output an image with higher image quality than the method.

上述したように、本実施例では、出力画像のドット群の単位を4×2としたため、例えば、入力画像の解像度が、360dpi×360dpiであれば、印刷用紙に出力される出力解像度は、1440dpi×720dpiとなる。ドット群の横方向の解像度が縦方向の解像度よりも高いものとしたのは、階調変化に対する人間の目の追従性が縦方向よりも横方向に敏感であるためである。また、印刷用紙Pを副走査方向に移動させる制御よりも、キャリッジ210を主走査方向に移動させる制御の方が比較的容易であるため、横方向の解像度を縦方向の解像度よりも高くしている。しかし、もちろん、ドット群のサイズは、4×2以外にも、縦横比が同一となる4×4や2×2などとすることも可能である。なお、本実施例では、RGB形式あるいはCMY形式の画像の構成要素の最小単位を「画素」といい、印刷用紙Pに形成される出力画像の構成要素の最小単位を「ドット」というものとする。ここで、RGB形式あるいはCMY形式の入力画像を、例えば、360dpi×360dpiから1440dpi×720dpiに高解像度化した上で、その中の複数の画素を4×2や2×2のブロックとしてまとめ、その複数の画素を代表する画素(例えば、ブロック内の画素の階調値を平均化したもの)を1つの「画素」として扱うものとしてもよい。   As described above, in this embodiment, since the unit of the dot group of the output image is 4 × 2, for example, if the resolution of the input image is 360 dpi × 360 dpi, the output resolution output to the printing paper is 1440 dpi. × 720 dpi. The reason why the horizontal resolution of the dot group is higher than the vertical resolution is that the followability of the human eye with respect to gradation changes is more sensitive in the horizontal direction than in the vertical direction. Further, since the control for moving the carriage 210 in the main scanning direction is relatively easier than the control for moving the printing paper P in the sub-scanning direction, the horizontal resolution is set higher than the vertical resolution. Yes. However, of course, the size of the dot group may be 4 × 4 or 2 × 2 having the same aspect ratio other than 4 × 2. In this embodiment, the minimum unit of the constituent elements of the RGB format or CMY format image is referred to as “pixel”, and the minimum unit of the constituent elements of the output image formed on the printing paper P is referred to as “dot”. . Here, an RGB format or CMY format input image is increased in resolution from, for example, 360 dpi × 360 dpi to 1440 dpi × 720 dpi, and a plurality of pixels are grouped into 4 × 2 or 2 × 2 blocks. A pixel representing a plurality of pixels (for example, an average of gradation values of pixels in a block) may be handled as one “pixel”.

説明を図3に戻す。ハーフトーン処理ユニット400は、エンコードユニット410とデコードユニット420とを備えている。   Returning to FIG. The halftone processing unit 400 includes an encoding unit 410 and a decoding unit 420.

ハーフトーン処理ユニット400は、色変換ユニット300からCMY形式の画像データを入力すると、この画像データをエンコードユニット410に入力する。エンコードユニット410は、このとき、CMY画像を1ライン単位で入力する。   When the halftone processing unit 400 receives CMY format image data from the color conversion unit 300, the halftone processing unit 400 inputs this image data to the encoding unit 410. At this time, the encoding unit 410 inputs CMY images in units of one line.

エンコードユニット410は、入力された画像データを構成する各画素の階調値(8ビット)を、RAM152に記憶されたエンコードテーブルET(図10参照)を参照して、各色5ビットのデータで表されるエンコード値EVに変換する。かかる変換処理を、以下、「エンコード処理」という。エンコード処理によって得られるエンコード値EVは、印刷用紙上に、どのようなドット配置データ(図4参照)を形成するかを間接的に指し示す値である。「間接的」というのは、このエンコード値EVを後述するデコード処理によって、対応するデコードテーブルに基づき変換した結果、最終的にドット配置データに変換されるからである。こうしたエンコード処理の過程で参照されるエンコードテーブルETの生成方法や、エンコード処理の詳細な方法については後で説明する。   The encoding unit 410 represents the gradation value (8 bits) of each pixel constituting the input image data as data of 5 bits for each color with reference to the encoding table ET (see FIG. 10) stored in the RAM 152. The encoded value EV is converted. Such conversion processing is hereinafter referred to as “encoding processing”. The encoding value EV obtained by the encoding process is a value that indirectly indicates what kind of dot arrangement data (see FIG. 4) is to be formed on the printing paper. The term “indirect” is because the encoding value EV is converted into dot arrangement data as a result of conversion based on a corresponding decoding table by a decoding process described later. A method for generating the encoding table ET referred to in the course of the encoding process and a detailed method for the encoding process will be described later.

なお、上述したエンコード処理時に参照するエンコードテーブルETは、後述するデータ量削減処理によって、そのデータ量が、5ビットのエンコード値EVが取り得る最大値である「31」未満のエンコード値とブロックの総数との積に応じたデータ容量以下の容量まで削減されてRAM152に記憶されている。このように、本実施例では、比較的サイズの大きなエンコードテーブルETのデータ容量を予め削減することで、RAM152の使用量を削減している。   Note that the encoding table ET referred to at the time of the encoding process described above is an encoding value of less than “31”, which is the maximum value that the 5-bit encoding value EV can take, by the data amount reduction processing described later. The data is reduced to a capacity equal to or less than the data capacity corresponding to the product of the total number and stored in the RAM 152. Thus, in this embodiment, the amount of use of the RAM 152 is reduced by reducing the data capacity of the relatively large encoding table ET in advance.

画像処理ASIC155は、その内部に、図2に示したRAM152よりも高速に読み書きを行うことのできるSRAM156を備えている。エンコードユニット410は、1ライン分のCMY画像をエンコード値EVに変換するにあたり、RAM152内のエンコードテーブルETからその1ライン分のエンコード処理に必要なデータのみをこのSRAM156に一時的に入力し、この部分的なエンコードテーブルETを参照することでエンコード処理を行う。詳細は後述するが、例えば、CMY画像の最上部のラインをエンコード処理する場合には、図10に示したエンコードテーブルETのブロック番号0から127(ブロック番号の最大値は、「8191」)までのデータが入力される(図20参照)。1ライン分のエンコード処理においては、エンコードテーブルET内の一部のブロックが繰り返し使用されることになるため、画像処理ASIC155内のSRAM156に予め必要なデータだけを入力することで、効率的にエンコード処理を行うことが可能になる。なお、本実施例では、エンコードユニット410は、1ライン単位でエンコード処理を行うものとするが、2ライン単位やそれ以上の単位、あるいは、画像全体について一括してエンコード処理を行うものとしてもよい。   The image processing ASIC 155 includes an SRAM 156 capable of reading and writing at a higher speed than the RAM 152 shown in FIG. In converting the CMY image for one line into the encoded value EV, the encoding unit 410 temporarily inputs only the data necessary for the encoding process for one line from the encoding table ET in the RAM 152 to the SRAM 156. The encoding process is performed by referring to the partial encoding table ET. Although details will be described later, for example, when encoding the uppermost line of the CMY image, block numbers 0 to 127 (the maximum value of the block number is “8191”) in the encoding table ET shown in FIG. Is input (see FIG. 20). In the encoding process for one line, some blocks in the encoding table ET are repeatedly used. Therefore, by inputting only necessary data into the SRAM 156 in the image processing ASIC 155 in advance, the encoding can be efficiently performed. Processing can be performed. In this embodiment, the encoding unit 410 performs the encoding process in units of one line. However, the encoding unit 410 may perform the encoding process in units of two lines or more, or the entire image. .

エンコードユニット410は、8ビットで表されるCMY階調値を5ビットのエンコード値EVに変換すると、このエンコード値EVを、RAM152の所定領域に確保した中間バッファBFに格納する。このように、本実施例では、メモリカードMC等から入力した画像データを、8ビットのデータから5ビットのデータに変換してRAM152に記憶することができるので、RAM152の使用容量が削減され、コストダウンを図ることが可能になる。   When the encoding unit 410 converts the CMY gradation value represented by 8 bits into a 5-bit encoded value EV, the encoding unit EV stores the encoded value EV in an intermediate buffer BF secured in a predetermined area of the RAM 152. Thus, in this embodiment, the image data input from the memory card MC or the like can be converted from 8-bit data to 5-bit data and stored in the RAM 152, so that the used capacity of the RAM 152 is reduced, Cost can be reduced.

デコードユニット420は、中間バッファBFからエンコード値EVを読み込み、RAM152に記憶されたプレデコードテーブルDT2(図12参照)、ポストデコードテーブルDT2(図8参照)、および、順序値テーブルST(図7(d)参照)を順次参照することで、このエンコード値EVを、図4に示したような4×2ドットのドット配置データに変換する。かかる変換処理のことを、「デコード処理」という。デコード処理の過程で参照される上述した各テーブルの生成方法や、デコード処理の詳細については後で説明する。なお、かかるデコード処理もエンコード処理と同様、1ライン単位で行われるため、プレデコードテーブルDT1や順序値テーブルST内の必要なデータのみが、SRAM156に入力される。   The decode unit 420 reads the encode value EV from the intermediate buffer BF, and stores the predecode table DT2 (see FIG. 12), the postdecode table DT2 (see FIG. 8), and the sequence value table ST (see FIG. 7 (FIG. 7). By sequentially referencing d), the encoded value EV is converted into 4 × 2 dot arrangement data as shown in FIG. Such conversion processing is referred to as “decoding processing”. A method for generating each table referred to in the decoding process and details of the decoding process will be described later. Since the decoding process is performed in units of one line as in the encoding process, only necessary data in the predecode table DT1 and the sequence value table ST is input to the SRAM 156.

デコードユニット420は、エンコード値EVをドット配置データに変換すると、そのドット配置データをインク吐出制御ユニット500に出力する。   When the decode unit 420 converts the encoded value EV into dot arrangement data, the decode unit 420 outputs the dot arrangement data to the ink ejection control unit 500.

インク吐出制御ユニット500は、インクヘッド211、キャリッジモータ220、紙送りモータ230を制御して、ハーフトーン処理ユニット400から入力したドット配置データに基づき印刷用紙上にインク滴を吐出してドットを形成する。ドット配置データには、各サイズのドットの大きさを、それぞれ、「00(ドット無し)」、「01(Sドット)」、「10(Mドット)」、「11(Lドット)」という2ビットのデータによって表した値(以下、「ドットサイズ値」という)が設定されている。従って、インク吐出制御ユニット500は、このドットサイズ値に応じて、インクヘッド211内のピエゾ素子に印加する電圧波形を調整することで、サイズの異なるドットの打ち分けを行う。こうすることで、本実施例のプリンタ100は、印刷用紙に対してカラー印刷を行う。   The ink ejection control unit 500 controls the ink head 211, the carriage motor 220, and the paper feed motor 230, and ejects ink droplets onto the printing paper based on the dot arrangement data input from the halftone processing unit 400 to form dots. To do. In the dot arrangement data, the sizes of the dots of the respective sizes are represented by 2 “00 (no dot)”, “01 (S dot)”, “10 (M dot)”, and “11 (L dot)”, respectively. A value represented by bit data (hereinafter referred to as “dot size value”) is set. Therefore, the ink ejection control unit 500 adjusts the voltage waveform applied to the piezo elements in the ink head 211 in accordance with the dot size value, thereby performing dot classification with different sizes. By doing so, the printer 100 of this embodiment performs color printing on the printing paper.

(B)印刷処理:
図5は、プリンタ100が実行する印刷処理のフローチャートである。この印刷処理は、ユーザによる操作パネル140の操作によって所定の印刷操作がなされた場合に、CPU151によって実行される処理である。
(B) Print processing:
FIG. 5 is a flowchart of print processing executed by the printer 100. This printing process is a process executed by the CPU 151 when a predetermined printing operation is performed by the operation of the operation panel 140 by the user.

この印刷処理が実行されると、CPU151は、まず、図3に示したエンコードテーブルETやプレデコードテーブルDT1、ポストデコードテーブルDT2、順序値テーブルSTを生成するための初期化処理を行う(ステップS10)。かかる初期化処理の詳細な説明は後述する。   When this printing process is executed, the CPU 151 first performs an initialization process for generating the encode table ET, predecode table DT1, postdecode table DT2, and sequence value table ST shown in FIG. 3 (step S10). ). A detailed description of the initialization process will be described later.

初期化処理が完了すると、CPU151は、ユーザによって指定された画像データをメモリカードMC等から入力する(ステップS20)。そして、入力した画像データを、画像処理ASIC155に出力する。すると、画像処理ASIC155では、色変換ユニット300による色変換処理(ステップS30)、および、ハーフトーン処理ユニット400によるハーフトーン処理(ステップS40)が行われ、入力画像の画素毎にドット配置データが生成される。   When the initialization process is completed, the CPU 151 inputs image data designated by the user from the memory card MC or the like (step S20). Then, the input image data is output to the image processing ASIC 155. Then, the image processing ASIC 155 performs color conversion processing (step S30) by the color conversion unit 300 and halftone processing (step S40) by the halftone processing unit 400, and generates dot arrangement data for each pixel of the input image. Is done.

ハーフトーン処理ユニット400によってドット配置データが生成されると、インク吐出制御ユニット500によってインクの吐出制御が行われる(ステップS50)。この結果、印刷用紙に対してカラー画像が印刷される。画像処理ASIC155が行うハーフトーン処理の詳細な説明は後述する。   When the dot arrangement data is generated by the halftone processing unit 400, ink ejection control is performed by the ink ejection control unit 500 (step S50). As a result, a color image is printed on the printing paper. Detailed description of the halftone processing performed by the image processing ASIC 155 will be described later.

(C)初期化処理:
図6は、上述した印刷処理のステップS10で実行される初期化処理の詳細を示すフローチャートである。上述したように、この初期化処理は、ハーフトーン処理ユニット400がハーフトーン処理時に参照する種々のテーブルを生成するための処理である。
(C) Initialization process:
FIG. 6 is a flowchart showing details of the initialization process executed in step S10 of the printing process described above. As described above, this initialization process is a process for generating various tables to be referred to by the halftone processing unit 400 during the halftone process.

この初期化処理が実行されると、まず、CPU151は、ROM153から、ディザマトリックスデータDMをRAM152に入力し(ステップS100)、このディザマトリックスデータDMに基づき、順序値テーブルSTの生成を行う(ステップS110)。順序値テーブルSTは、後述するデコード処理において、4×2個の要素を有するブロック内にドットを配置する順序を決定するためのテーブルである。   When this initialization process is executed, the CPU 151 first inputs the dither matrix data DM from the ROM 153 to the RAM 152 (step S100), and generates the sequence value table ST based on the dither matrix data DM (step S100). S110). The order value table ST is a table for determining the order in which dots are arranged in a block having 4 × 2 elements in a decoding process described later.

図7は、ディザマトリックスデータDMのデータ構造および順序値テーブルSTの生成方法を示す説明図である。図7(a)には、ディザマトリックスデータのデータ構造を示している。本実施例のディザマトリックスデータDMには、横512×縦128の配列内に0から65535までの計65536個の閾値が万遍なく記録されている(各閾値の図示は省略)。このディザマトリックスデータDMは、従来のハーフトーン技術として知られた組織的ディザ法で用いられるディザマトリックスと同種のテーブルである。そのため図示したディザマトリックスデータDMにおいても、画像データが0から65535までの階調値を有すると仮定した場合において、この画像データを2値化する際に、白黒ドットの分散性が高まるように各閾値が配置されている。このようなディザマトリクスデータDMとしては、例えば、ブルーノイズ特性を有するマトリックスを採用することができる。なお、本実施例では、ディザマトリックスデータDMのサイズを、512×128としたが、128×32や1024×256など、種々のサイズを適用することができる。   FIG. 7 is an explanatory diagram showing a data structure of the dither matrix data DM and a method for generating the order value table ST. FIG. 7A shows the data structure of dither matrix data. In the dither matrix data DM of this embodiment, a total of 65536 threshold values from 0 to 65535 are recorded uniformly in an array of horizontal 512 × vertical 128 (illustration of each threshold is omitted). The dither matrix data DM is a table similar to the dither matrix used in the systematic dither method known as the conventional halftone technique. Therefore, also in the illustrated dither matrix data DM, when it is assumed that the image data has gradation values from 0 to 65535, each binarization of the image data is performed so that the dispersibility of black and white dots is increased. A threshold is arranged. As such dither matrix data DM, for example, a matrix having blue noise characteristics can be adopted. In this embodiment, the size of the dither matrix data DM is 512 × 128, but various sizes such as 128 × 32 and 1024 × 256 can be applied.

上記ステップS110では、このディザマトリックスデータDMから、順序値テーブルSTの生成を行う。まず、CPU151は、ディザマトリックスデータDMを、4×2個の閾値を1つのブロックとして、計8192(=(512/4)×(128/2))個のブロックに分割し、各ブロックに対してブロック番号を与える。本実施例では、図7(a)に示すように、ディザマトリックスデータDMの最も左上に位置するブロックにブロック番号「0」を与え、その右隣に位置するブロックにブロック番号「1」、以下、右下端のブロックにかけて、順にブロック番号を与える。   In step S110, the order value table ST is generated from the dither matrix data DM. First, the CPU 151 divides the dither matrix data DM into a total of 8192 (= (512/4) × (128/2)) blocks, with 4 × 2 threshold values as one block. Give the block number. In this embodiment, as shown in FIG. 7A, the block number “0” is given to the block located at the upper left of the dither matrix data DM, the block number “1” is given to the block located right next to the block, The block number is given in order to the block at the lower right corner.

図7(b)には、ブロック番号「0」のブロックに記録された各閾値を閾値群として示している。図7(c)には、この閾値群を元に生成される順序値データを示している。CPU151は、図7(b)に示した閾値群内のすべての要素について同時に、階調値を0から65535まで上げていき、その階調値が、閾値を上回った順序を0から7までの値によって記録することで、図7(c)の順序値データを生成する。図7(b)の場合には、23,472,1010,1322、…、の順に、階調値が閾値を超えることになるため、ブロック番号「0」に対応する順序値データは、図7(c)のようになる。   FIG. 7B shows the threshold values recorded in the block with the block number “0” as a threshold value group. FIG. 7C shows sequence value data generated based on this threshold value group. The CPU 151 increases the gradation value from 0 to 65535 at the same time for all the elements in the threshold group shown in FIG. 7B, and the order in which the gradation value exceeds the threshold is from 0 to 7. By recording by value, the sequence value data of FIG. 7C is generated. In the case of FIG. 7B, since the gradation value exceeds the threshold value in the order of 23, 472, 1010, 1322,..., The order value data corresponding to the block number “0” is as shown in FIG. As shown in (c).

CPU151は、すべてのブロックについて順序値データを生成すると、これを、ブロック番号毎に記録して順序値テーブルSTを生成する。図7(d)には、最終的に生成された順序値テーブルSTの一例を示している。CPU151は、こうして生成した順序値テーブルSTをRAM152に記憶する。   When the CPU 151 generates the sequence value data for all the blocks, it records this for each block number and generates the sequence value table ST. FIG. 7D shows an example of the finally generated sequence value table ST. The CPU 151 stores the generated order value table ST in the RAM 152.

説明を図6に戻す。CPU151は、順序値テーブルSTを生成すると、次に、後述するデコード処理において用いられるポストデコードテーブルDT2の生成を行う(ステップS120)。   Returning to FIG. After generating the order value table ST, the CPU 151 next generates a post-decoding table DT2 used in decoding processing to be described later (step S120).

図8は、ポストデコードテーブルDT2の一例を示す説明図である。図示するように、このポストデコードテーブルDT2には、0から164までのインデックス値に対応付けて、16ビットのドット数データが記録されている。ドット数データは、2ビットのドットサイズ値を、サイズの大きなドットから右詰めに8つ連結させたデータである。この165個のドット数データは、1ブロック内に発生する各サイズのドットの数の組み合わせのすべてを表している。   FIG. 8 is an explanatory diagram showing an example of the post-decode table DT2. As shown in the figure, 16-bit dot number data is recorded in the post-decode table DT2 in association with index values from 0 to 164. The dot number data is data obtained by concatenating eight 2-bit dot size values from large dots to right justification. The 165 dot number data represents all combinations of the number of dots of each size generated in one block.

ここで、1つのブロック内に発生する各サイズのドットの組み合わせの数が165個に収まる理由を説明する。ブロック内の1つのドットのサイズは、上述したように、「ドット無し」、「Sドット」、「Mドット」、「Lドット」の4つの状態を取り得る。従って、1ブロック内におけるこれらのドットの組合せは、これら4つの状態を、重複を許容して8回選択した時の組合せの数に等しくなるから、重複組み合わせの演算式を表す下記式(1)によってドットの組み合わせの数を求めることができる。このことから、最大でも165通り(0〜164)の組合せしか出現しないことになる。従って、ドット数データに対応するインデックス値は、0から164までの値となる。   Here, the reason why the number of combinations of dots of each size generated in one block falls within 165 will be described. As described above, the size of one dot in the block can take four states of “no dot”, “S dot”, “M dot”, and “L dot”. Accordingly, the combination of these dots within one block is equal to the number of combinations when these four states are selected eight times with allowance for overlap. The number of dot combinations can be obtained by. For this reason, only 165 combinations (0 to 164) appear at most. Therefore, the index value corresponding to the dot number data is a value from 0 to 164.

48(=4+8-18)=165 ・・・(1)
nrは、n個の物の中から重複を許してr回選択するときの重複組合せ数を求める演算子であり、nrは、n個の物の中から重複を許さずにr回選択するときの組合せ数を求める演算子である。)
4 H 8 (= 4 + 8-1 C 8 ) = 165 (1)
( N H r is an operator for determining the number of overlapping combinations when r times are selected from n objects, and n Cr is not allowed to overlap from n objects. (It is an operator for obtaining the number of combinations when selecting r times.)

CPU151は、図8に示したポストデコードテーブルDT2を次のように生成する。すなわち、まず、CPU151は、1ブロック内に発生するSドット、Mドット、Lドットの各サイズのドットの数をすべて「0」とし、これを、インデックス値「0」に対応するドット数データとしてプレデコードテーブルDT1に記録する。この場合、1ブロック内の8つのドットのサイズがすべて「ドット無し(00)」となるから、ドット数データとしては、「0000000000000000」となる。   The CPU 151 generates the post decode table DT2 shown in FIG. 8 as follows. That is, first, the CPU 151 sets all the numbers of S dots, M dots, and L dots generated in one block to “0”, and this is used as dot number data corresponding to the index value “0”. Record in predecode table DT1. In this case, since the size of all eight dots in one block is “no dot (00)”, the dot number data is “0000000000000”.

次に、CPU151は、Sドットの数を1から8まで順番に増やし、それぞれの発生個数をドット数データとしてインデックス値1から8までに記録する。つまり、Sドットの数が1の場合は、ドット数データは、「0000000000000001」となり、Sドットの数が8の場合は、「0101010101010101」となる。   Next, the CPU 151 sequentially increases the number of S dots from 1 to 8, and records the generated number of dots as index number data from 1 to 8. That is, when the number of S dots is 1, the dot number data is “0000000000000001”, and when the number of S dots is 8, “0101010101010101”.

続いて、CPU151は、Mサイズのドットの数を「1」とし、発生するドットの合計が8個以内になるように、Sサイズのドットの数を、0から7まで増加させる。そして、それぞれのドットの発生個数の組み合わせをインデックス値「9」以降に記録する。   Subsequently, the CPU 151 sets the number of M size dots to “1”, and increases the number of S size dots from 0 to 7 so that the total number of generated dots is 8 or less. Then, the combination of the number of occurrences of each dot is recorded after the index value “9”.

更に、CPU151は、Mサイズのドットの数を「2」とし、Sサイズのドットの数を0から6まで増加させる。そして、それぞれの発生個数をプレデコードテーブルDT1に記録する。以下、同様にして、Lサイズのドットの数が「8」になるまで、各サイズのドットの数を変化させることにより、ポストデコードテーブルDT2の生成を行う。CPU151は、こうして生成したポストデコードテーブルDT2をRAM152に記憶する。なお、ドット数データには、それぞれ固有のインデックス値が割り当てられていればよく、その対応関係については特に規定はない。   Further, the CPU 151 sets the number of M size dots to “2” and increases the number of S size dots from 0 to 6. Then, the number of occurrences is recorded in the predecode table DT1. Similarly, the post-decode table DT2 is generated by changing the number of dots of each size until the number of dots of L size becomes “8”. The CPU 151 stores the post decode table DT2 thus generated in the RAM 152. Note that each dot number data only needs to be assigned a unique index value, and the correspondence relationship is not particularly specified.

ここで、説明を再び図6に戻す。CPU151は、ポストデコードテーブルDT2の生成を完了すると、後述するエンコードテーブルETやプレデコードテーブルDT1の生成で用いられるドット発生量テーブルDGTをROM153からRAM152に入力する(ステップS130)。   Here, the description returns to FIG. 6 again. When the generation of the post-decoding table DT2 is completed, the CPU 151 inputs a dot generation amount table DGT used for generating an encoding table ET and a pre-decoding table DT1 described later from the ROM 153 to the RAM 152 (step S130).

図9は、ドット発生量テーブルDGTの一例を示す説明図である。図示するように、このドット発生量テーブルDGTには、横軸に示した入力階調値TDに応じて、Sドット、Mドット、Lドットの発生量がそれぞれ縦軸に定義されている。この図によれば、入力階調値TDが0から70程度までは、Sドットのみが発生し、その後、入力階調値TDが120程度までは、SドットとMドットの両者が発生することがわかる。また、入力階調値TDが110程度になると、SドットとMドットに加えて、Lドットが発生するようになり、入力階調値TDが概ね180以降になると、Lドットのみが発生することがわかる。なお、縦軸に示すドット発生量は、図7に示したディザマトリックスデータDM内の各閾値との比較が可能なように、0から65535までの値をとる。   FIG. 9 is an explanatory diagram showing an example of the dot generation amount table DGT. As shown in the figure, in the dot generation amount table DGT, the generation amounts of S dots, M dots, and L dots are defined on the vertical axis in accordance with the input gradation values TD shown on the horizontal axis. According to this figure, only S dots are generated when the input gradation value TD is about 0 to 70, and thereafter both S dots and M dots are generated until the input gradation value TD is about 120. I understand. Further, when the input gradation value TD is about 110, L dots are generated in addition to S dots and M dots, and when the input gradation value TD is approximately 180 or later, only L dots are generated. I understand. Note that the dot generation amount shown on the vertical axis takes a value from 0 to 65535 so that it can be compared with each threshold value in the dither matrix data DM shown in FIG.

図9には、Sドット,Mドット,Lドットの発生量とともに、これらのドットが印刷媒体に形成される際に吐出されるインクの総重量の変化を示した。図示したインク総重量の変化によれば、入力階調値TDが増加するにつれ、インクの総重量が徐々に増加していくことになる。各サイズのドット発生量は、かかる総重量の変化にあわせて、それぞれの発生量が設定されている。なお、このドット発生量テーブルDGTは、プリンタ100がサポートしている印刷用紙の種類に応じて複数種類のテーブルがROM153に記憶されている。印刷用紙は、その材質によってインクの吸収率や光の反射率が異なり、このような特性に応じてインクのドット発生量が設定されているためである。従って、CPU151は、ユーザによって設定された印刷用紙Pの種類に応じて、その種類に応じたドット発生量テーブルDGTをROM153から入力する。こうすることで、選択された印刷用紙Pに適した印刷を行うことが可能になる。   FIG. 9 shows changes in the total weight of the ink ejected when these dots are formed on the print medium, along with the generation amounts of S dots, M dots, and L dots. According to the illustrated change in the total ink weight, the total ink weight gradually increases as the input tone value TD increases. The amount of dots generated for each size is set according to the change in the total weight. The dot generation amount table DGT stores a plurality of types of tables in the ROM 153 according to the types of printing paper supported by the printer 100. This is because printing paper has different ink absorptivity and light reflectance depending on the material, and the ink dot generation amount is set according to such characteristics. Accordingly, the CPU 151 inputs a dot generation amount table DGT corresponding to the type from the ROM 153 according to the type of the printing paper P set by the user. By doing so, it becomes possible to perform printing suitable for the selected printing paper P.

説明を図6に戻す。上記ステップS130によってドット発生量テーブルDGTを入力すると、CPU151は、このドット発生量テーブルDGTとステップS100で入力したディザマトリックスデータDMとを用いて、エンコードテーブルETとプレデコードテーブルDT1を生成する処理を行う(ステップS140)。以下では、かかるステップS140による処理を、単純に「テーブル生成処理」という。   Returning to FIG. When the dot generation amount table DGT is input in step S130, the CPU 151 performs processing for generating the encoding table ET and the predecode table DT1 using the dot generation amount table DGT and the dither matrix data DM input in step S100. This is performed (step S140). Hereinafter, the processing in step S140 is simply referred to as “table generation processing”.

テーブル生成処理は複雑な処理であるため、詳細な説明は後に記述するものとし、ここでは、このテーブル生成処理によって生成されるエンコードテーブルETとプレデコードテーブルDT1のデータ構造について説明する。   Since the table generation process is a complicated process, a detailed description will be given later. Here, the data structures of the encode table ET and the predecode table DT1 generated by the table generation process will be described.

図10は、エンコードテーブルETのデータ構造を示す説明図である。図示するように、このエンコードテーブルETには、0から8191までのブロック番号と、0から31までの5ビットのエンコード値EVとに対応付けて、0から255までのいずれかの階調値が記録されている。以下では、エンコードテーブルETに記録されている階調値を、「階調閾値」というものとする。上述したように、このエンコードテーブルETは、図3に示したエンコードユニット410が、CMY画像の8ビットの階調値を、その画素の位置、すなわち、ブロック番号に応じて、5ビットのエンコード値EVに変換するためのテーブルである。   FIG. 10 is an explanatory diagram showing the data structure of the encoding table ET. As shown in the drawing, in this encoding table ET, any gradation value from 0 to 255 is associated with the block number from 0 to 8191 and the 5-bit encoded value EV from 0 to 31. It is recorded. Hereinafter, the gradation value recorded in the encoding table ET is referred to as a “gradation threshold value”. As described above, the encoding table ET includes the encoding unit 410 shown in FIG. 3 that converts the 8-bit gradation value of the CMY image into the 5-bit encoded value according to the position of the pixel, that is, the block number. It is a table for converting into EV.

ここで、このエンコードテーブルETを用いた階調値からエンコード値EVへの変換方法を簡単に説明する。まず、エンコードユニット410は、エンコード処理の対象とするCMY画像中の画素が、ディザマトリックスデータDM中のどのブロックに該当するかを計算する。そして、そのブロック番号に該当するエンコードテーブルETの中の行を参照し、その行の階調閾値とその画素の階調値とを階調閾値の低い方から順に比較していく。この比較の結果、順に参照した階調閾値が、その画素の階調値を初めて超えた場合のその階調閾値に対応するエンコード値EVが、変換後のエンコード値EVとなる。例えば、ブロック番号が「3」で、処理対象の画素の階調値が「199」であれば、図10の場合には、エンコード値EVは、「16」となる。つまり、このエンコードテーブルETには、各エンコード値に対応付けて、そのエンコード値に対応する階調値の範囲が階調閾値というパラメータにより記録されていることになる。   Here, a method for converting the gradation value to the encoded value EV using the encoding table ET will be briefly described. First, the encoding unit 410 calculates which block in the dither matrix data DM corresponds to the pixel in the CMY image to be encoded. Then, the row in the encoding table ET corresponding to the block number is referred to, and the gradation threshold value of the row is compared with the gradation value of the pixel in order from the lowest gradation threshold value. As a result of this comparison, the encoded value EV corresponding to the gradation threshold when the gradation threshold referred to in order exceeds the gradation value of the pixel for the first time becomes the encoded encoded value EV. For example, if the block number is “3” and the gradation value of the pixel to be processed is “199”, the encoded value EV is “16” in the case of FIG. That is, in the encoding table ET, the range of gradation values corresponding to each encoded value is recorded by a parameter called a gradation threshold value in association with each encoded value.

図11は、CMY画像の階調値に応じてエンコードテーブルETから取得されるエンコード値EVの変化の例を模式的に示す説明図である。図11には、ブロック番号が「X1」から「X5」までの5つのブロックについて、階調値に応じたエンコード値EVの変化の例を示している。図示の便宜のため、エンコード値の変化は、ブロック毎に縦軸をずらして描いている。図示するように、各ブロックとも、階調値が増加すれば、エンコード値EVの値も増加しているが、その増加の態様や変化数(ステップ数)は、ブロック毎に異なっている。各ブロックにおけるエンコード値EVの値は、ドット配置データ(図4参照)を間接的に示す値である。そのため、CMY画像の中で、同じ階調値を有する画素があっても、その画素の位置が異なれば、適用するブロック番号も異なり、異なるエンコード値EVが取得される。この結果、それらの画素に対応する印刷媒体上の位置には、異なる配置のドットが形成されることになる。   FIG. 11 is an explanatory diagram schematically illustrating an example of a change in the encode value EV acquired from the encode table ET according to the gradation value of the CMY image. FIG. 11 shows an example of changes in the encoding value EV according to the gradation value for five blocks having block numbers “X1” to “X5”. For convenience of illustration, the change in the encoded value is drawn with the vertical axis shifted for each block. As shown in the figure, when the gradation value increases in each block, the value of the encoded value EV also increases, but the mode of increase and the number of changes (number of steps) differ from block to block. The encoding value EV in each block is a value that indirectly indicates dot arrangement data (see FIG. 4). Therefore, even if there are pixels having the same gradation value in the CMY image, if the positions of the pixels are different, the applied block numbers are different, and different encoded values EV are acquired. As a result, differently arranged dots are formed at positions on the print medium corresponding to these pixels.

図12は、プレデコードテーブルDT1のデータ構造を示す説明図である。図示するように、このプレデコードテーブルDT1には、ブロック番号とエンコード値EVとに対応付けて、図8に示したポストデコードテーブルDT2のインデックス値が記録されている。図3に示したデコードユニット420は、そのデコード処理時に、中間バッファBFに記憶されたエンコード値EVを読み込み、このポストデコードテーブルDT2を参照することで、エンコード値EVをインデックス値に変換する。   FIG. 12 is an explanatory diagram showing the data structure of the predecode table DT1. As shown in the figure, in the predecode table DT1, the index value of the postdecode table DT2 shown in FIG. 8 is recorded in association with the block number and the encode value EV. The decoding unit 420 shown in FIG. 3 reads the encoded value EV stored in the intermediate buffer BF during the decoding process, and converts the encoded value EV into an index value by referring to the post-decoding table DT2.

ここでデコード処理の内容を簡単に説明する。デコードユニット420は、図12に示したプレデコードテーブルDT1を参照してエンコード値EVをインデックス値に変換すると、図8のポストデコードテーブルDT2を参照することで、インデックス値に対応するドット数データを取得し、このドット数データと、図7に示した順序値テーブルSTとに基づき図4に示したドット配置データを生成する。こうすることで、デコードユニット420は、エンコード値EVに基づきドット配置データを生成することができる。このデコード処理についての詳細な説明は後述する。   Here, the contents of the decoding process will be briefly described. When the decode unit 420 refers to the predecode table DT1 shown in FIG. 12 and converts the encode value EV into an index value, the decode unit 420 refers to the postdecode table DT2 in FIG. 8 to obtain dot number data corresponding to the index value. The dot arrangement data shown in FIG. 4 is generated based on the acquired dot number data and the order value table ST shown in FIG. In this way, the decoding unit 420 can generate dot arrangement data based on the encoded value EV. A detailed description of the decoding process will be described later.

説明を図6に戻す、CPU151は、ステップS140におけるテーブル生成処理を完了すると、次に、図10に示したエンコードテーブルETのデータ量を削減するデータ量削減処理を実行する(ステップS150)。上述したように、エンコードテーブルETは、ディザマトリックスデータDMやドット発生量テーブルDGTに基づき動的に生成されるテーブルであり、その内容は印刷処理毎に変化する場合がある。ドット発生量テーブルDGTは印刷用紙の種類に応じて異なる内容を有しており、また、ディザマトリックスデータDMについても、ファームウェアの更新等によりその内容が変動する場合があるからである。従って、エンコードテーブルETに記録されるエンコード値EVの範囲は変化することがあり、これに伴い、テーブル内に参照されない領域が存在する場合が生じる。例えば、図10に示したエンコードテーブルETには、エンコード値EVが「0」から「31」まで用意されているにもかかわらず、実際に階調閾値が記録されているのは、エンコード値EVが20までである。そのため、エンコード値EVが21以降の階調閾値はエンコード処理においてどのブロックについても参照されることが無く、エンコード値EVと階調閾値とが実質的に対応しない無駄な領域となる。そこで、本実施例では、上記ステップS150のデータ量削減処理において、こうした無駄な領域(要素)の少なくとも一部を削除する処理を行う。こうすることで、RAM152に記憶されるエンコードテーブルETのデータ量を削減することが可能になる。かかるデータ量削減処理の詳細な処理内容については後述する。   Returning to FIG. 6, after completing the table generation process in step S140, the CPU 151 next executes a data amount reduction process for reducing the data amount of the encode table ET shown in FIG. 10 (step S150). As described above, the encoding table ET is a table that is dynamically generated based on the dither matrix data DM and the dot generation amount table DGT, and the contents thereof may change for each printing process. This is because the dot generation amount table DGT has different contents depending on the type of printing paper, and the contents of the dither matrix data DM may change due to firmware update or the like. Therefore, the range of the encoding value EV recorded in the encoding table ET may change, and there is a case where an unreferenced area exists in the table. For example, in the encode table ET shown in FIG. 10, although the encode value EV is prepared from “0” to “31”, the gradation threshold is actually recorded in the encode value EV. Is up to 20. Therefore, the gradation threshold value with the encode value EV of 21 or later is not referred to in any block in the encoding process, and becomes a useless area where the encode value EV and the gradation threshold value do not substantially correspond to each other. Therefore, in this embodiment, in the data amount reduction process in step S150, a process for deleting at least a part of such a useless area (element) is performed. By doing so, it is possible to reduce the data amount of the encoding table ET stored in the RAM 152. Details of the data amount reduction process will be described later.

以上、本実施例における初期化処理の流れについて説明した。以下では、上述したステップS140におけるテーブル生成処理と、ステップS150におけるデータ量削減処理の詳細についてそれぞれ説明する。   The flow of the initialization process in the present embodiment has been described above. Hereinafter, the details of the table generation process in step S140 and the data amount reduction process in step S150 will be described.

(C−1)エンコードテーブル及びプレデコードテーブル生成処理:
図13は、図6のステップS140で実行されるテーブル生成処理(エンコードテーブル及びプレデコードテーブル生成処理)の詳細を示すフローチャートである。この処理が実行されると、CPU151は、まず、RAM152に、すべての要素を「0」に設定したエンコードテーブルETとプレデコードテーブルDT1を用意する(ステップS200)。
(C-1) Encoding table and predecoding table generation processing:
FIG. 13 is a flowchart showing details of the table generation process (encode table and predecode table generation process) executed in step S140 of FIG. When this process is executed, the CPU 151 first prepares an encode table ET and a predecode table DT1 in which all elements are set to “0” in the RAM 152 (step S200).

具体的には、図10に示したように、エンコードテーブルETには、エンコード値EVが0から31までの範囲について、各要素に、0から255までの8ビットの階調閾値が記録され、それが、ブロック8192個分格納される。従って、RAM152には、これらの積である256Kバイト(=32×8ビット×8192個)の容量をエンコードテーブルETのために用意する。一方、プレデコードテーブルDT1については、図12に示したように、エンコード値が0から31までの範囲について、各要素に、0から164までの8ビットのインデックス値が記録され、それが、ブロック8192個分格納される。従って、RAM152には、エンコードテーブルETと同様に、256Kバイトの容量をプレデコードテーブルDT1のために用意する。   Specifically, as shown in FIG. 10, in the encoding table ET, an 8-bit gradation threshold value from 0 to 255 is recorded in each element for the range where the encoding value EV is from 0 to 31, It is stored for 8192 blocks. Therefore, a capacity of 256 K bytes (= 32 × 8 bits × 8192), which is the product of these, is prepared in the RAM 152 for the encode table ET. On the other hand, for the predecode table DT1, as shown in FIG. 12, an 8-bit index value from 0 to 164 is recorded in each element in the range where the encoded value is from 0 to 31. 8192 items are stored. Accordingly, the RAM 152 has a capacity of 256 Kbytes for the predecode table DT1, similarly to the encode table ET.

すべての要素を「0」に設定したエンコードテーブルETとプレデコードテーブルDT1を用意すると、次に、CPU151は、現在の処理対象とするブロック番号Nを「0」とし(ステップS210)、更に、以降の処理で用いられる変数として、エンコード値EVを「0」とし、現在のブロック内に発生する各サイズ(Sドット,Mドット,Lドット)のドット数をそれぞれ「0」とする(ステップS220)。そして、更に、現在の入力階調値TDを「0」とする(ステップS230)。   When the encoding table ET and the predecode table DT1 in which all elements are set to “0” are prepared, the CPU 151 then sets the block number N to be currently processed to “0” (step S210), and thereafter As a variable used in the above process, the encoding value EV is set to “0”, and the number of dots of each size (S dot, M dot, L dot) generated in the current block is set to “0” (step S220). . Further, the current input gradation value TD is set to “0” (step S230).

続いて、CPU151は、上記ステップS220で設定した入力階調値TDに基づき、現在のブロック内に発生する各サイズのドット数を決定するドット数カウント処理を実行する(ステップS240)。   Subsequently, the CPU 151 executes a dot number counting process for determining the number of dots of each size generated in the current block based on the input gradation value TD set in step S220 (step S240).

図14は、上記ステップS240において実行されるドット数カウント処理の詳細を示すフローチャートである。かかる処理では、まず、CPU151は、上記ステップS230で設定された入力階調値TDに対応する各サイズのドット発生量をドット発生量テーブルDGT(図9参照)から取得する(ステップS400)。   FIG. 14 is a flowchart showing details of the dot number counting process executed in step S240. In this process, first, the CPU 151 obtains the dot generation amount of each size corresponding to the input tone value TD set in step S230 from the dot generation amount table DGT (see FIG. 9) (step S400).

各サイズのドット発生量を取得すると、CPU151は、現在のブロック番号Nに対応する閾値群をディザマトリックスデータDM(図7参照)から取得する。そして、これからカウントを行う各サイズのドットのカウント数(dotL,dotM,dotS)をそれぞれ「0」とし、すべてのドットの総カウント数nを「0」とする(ステップS410)。   When acquiring the dot generation amount of each size, the CPU 151 acquires a threshold value group corresponding to the current block number N from the dither matrix data DM (see FIG. 7). Then, the count number (dotL, dotM, dotS) of each size dot to be counted is set to “0”, and the total count number n of all dots is set to “0” (step S410).

カウント数および総カウント数を設定すると、CPU151は、現在の総カウント数nに応じて、n番目に低い閾値を閾値群から読み込む。そして、上記ステップS400で取得したLドットのドット発生量が、この閾値よりも大きいか否かを判断する(ステップS420)。この判断の結果、Lドットの発生量が、n番目に低い閾値よりも大きければ(ステップS420:Yes)、Lドットのカウント数dotLをインクリメントする(ステップS430)。すなわち、この場合、4×2のドット配置データ内に発生するLドットの数が1つ増加することになる。   When the count number and the total count number are set, the CPU 151 reads the nth lowest threshold value from the threshold value group according to the current total count number n. Then, it is determined whether or not the L dot generation amount acquired in step S400 is larger than this threshold (step S420). As a result of this determination, if the amount of L dots generated is larger than the nth lowest threshold (step S420: Yes), the L dot count number dotL is incremented (step S430). That is, in this case, the number of L dots generated in the 4 × 2 dot arrangement data is increased by one.

Lドットのカウント数dotLをインクリメントすると、CPU151は、現在の総カウント数nが「7」であるかを判断する(ステップS440)。その結果、総カウント数nが「7」であれば、閾値群内の閾値を全て参照したことになり、ドット数のカウントが終了したと判断できるので、処理を後述するステップS500に進める。一方、ステップS440において、総カウント数nが「7」でなければ、次に低い閾値とドット発生量との比較を続行するため、総カウント数nをインクリメントし(ステップS450)、処理を上記ステップS420に戻す。   When the L dot count number dotL is incremented, the CPU 151 determines whether or not the current total count number n is “7” (step S440). As a result, if the total count number n is “7”, it means that all the threshold values in the threshold value group have been referred to, and it can be determined that the counting of the number of dots has been completed. On the other hand, if the total count number n is not “7” in step S440, the total count number n is incremented (step S450) in order to continue the comparison between the next lower threshold and the dot generation amount (step S450). Return to S420.

上記ステップS420において、Lドットの発生量が、n番目に低い閾値以下であれば(ステップS420:No)、CPU151は、次に、ドット発生量テーブルDGTから取得したMサイズとLサイズのドット発生量の累積値が、n番目に低い閾値を超えたか否かを判断する(ステップS460)。その結果、MサイズとLサイズのドット発生量の累積値が、n番目に低い閾値よりも大きいと判断した場合には(ステップS460:Yes)、Mドットのカウント数dotMをインクリメントする(ステップS470)。すなわち、この場合、4×2のドット配置データ内に配置するMドットの数が1つ増加することになる。   If the amount of L dots generated is equal to or less than the nth lowest threshold value in step S420 (step S420: No), the CPU 151 next generates M size and L size dots obtained from the dot generation amount table DGT. It is determined whether or not the accumulated value of the amount has exceeded the nth lowest threshold value (step S460). As a result, when it is determined that the accumulated value of the M size and L size dot generation amounts is larger than the nth lowest threshold value (step S460: Yes), the M dot count number dotM is incremented (step S470). ). That is, in this case, the number of M dots arranged in the 4 × 2 dot arrangement data is increased by one.

Mドットのカウント数dotMをインクリメントすると、CPU151は、上述したステップS440に処理を移行する。こうすることで、総カウント数nが「7」に達していない場合には、総カウント数nがインクリメントされ(ステップS450)、上記ステップS420に処理が戻されることになる。   When the M dot count number dotM is incremented, the CPU 151 shifts the processing to step S440 described above. As a result, if the total count number n has not reached “7”, the total count number n is incremented (step S450), and the process returns to step S420.

上記ステップS460において、MドットとLドットのドット発生量の累積値が、n番目に低い閾値以下であると判断されれば(ステップS460:No)、次に、CPU151は、ドット発生量テーブルDGTから取得したSドットとMドットとLドットのドット発生量の累積値が、n番目に低い閾値を超えたか否かを判断する(ステップS480)、その結果、かかるドット発生量の累積値が、n番目に低い閾値よりも大きいと判断した場合には(ステップS480:Yes)、Sドットのカウント数dotSをインクリメントする(ステップS490)。すなわち、この場合、4×2のドット配置データ内に配置するSドットの数が1つ増加することになる。   If it is determined in step S460 that the accumulated value of the M dot and L dot dot generation amounts is equal to or less than the nth lowest threshold value (step S460: No), the CPU 151 then causes the dot generation amount table DGT. It is determined whether or not the accumulated value of the dot generation amount of S dots, M dots, and L dots obtained from (1) exceeds the nth lowest threshold value (step S480). If it is determined that the threshold value is larger than the nth lowest threshold value (step S480: Yes), the S dot count number dotS is incremented (step S490). That is, in this case, the number of S dots arranged in the 4 × 2 dot arrangement data is increased by one.

Sドットのカウント数をインクリメントすると、CPU151は、上述したステップS440に処理を移行する。こうすることで、総カウント数nが「7」に達していない場合には、総カウント数nが1つインクリメントされ(ステップS450)、上記ステップS420に処理が戻されることになる。   When the S dot count is incremented, the CPU 151 shifts the processing to the above-described step S440. In this way, if the total count number n has not reached “7”, the total count number n is incremented by 1 (step S450), and the process returns to step S420.

上記ステップS480において、SドットとMドットとLドットのドット発生量の累積値が、n番目に低い閾値以下であると判断された場合(ステップS480:No)、もしくは、上記ステップS440において、総カウント数が「7」であり、8個の閾値をすべて参照したと判断した場合には(ステップS440:Yes)、CPU151は、最後に、各サイズのドットの数を、これまでカウントした値に確定する(ステップS500)。   If it is determined in step S480 that the cumulative amount of S, M, and L dot generation amounts is equal to or less than the nth lowest threshold (step S480: No), or in step S440, the total When it is determined that the count number is “7” and all the eight threshold values have been referenced (step S440: Yes), the CPU 151 finally sets the number of dots of each size to the value counted so far. Confirm (step S500).

図15は、上述したドット数カウント処理の具体例を示す説明図である。図15(a)に示すように、ここでは、ドット発生量テーブルDGTにおいて、現在の入力階調値TDに対応するLドットのドット発生量が「409」、Mドットが「1550」、Sドットが「1304」だとし、現在のブロックに対応する閾値群が、図7(b)に示した閾値群であったとする。   FIG. 15 is an explanatory diagram showing a specific example of the dot number counting process described above. As shown in FIG. 15A, here, in the dot generation amount table DGT, the dot generation amount of L dots corresponding to the current input tone value TD is “409”, the M dot is “1550”, and the S dot. Is “1304”, and the threshold value group corresponding to the current block is the threshold value group shown in FIG.

この場合、まず、図14のステップS420では、閾値群内の最も低い閾値「23」と、Lドットのドット発生量「409」とが比較される。そうすると、このドット発生量「409」の方が、閾値「23」よりも大きいので、ステップS420では、「Yes」と判定され、ステップS430によってLドットのカウント数がインクリメントされて「1」になる。そうすると、ステップS450によって、総カウント数nがインクリメントされるため、続くステップS420では、2番目に低い閾値「472」とLドットのドット発生量「409」が比較される。この場合、閾値「472」よりもドット発生量「409」の方が小さくなるので、ステップS420では、「No」と判定され、処理がステップS460に進む。この時点で、Lドットのカウント数は、図15(b)に示すように「1」で確定することになる。   In this case, first, in step S420 of FIG. 14, the lowest threshold “23” in the threshold group is compared with the dot generation amount “409” of L dots. Then, since the dot generation amount “409” is larger than the threshold value “23”, “Yes” is determined in step S420, and the count number of L dots is incremented to “1” in step S430. . Then, since the total count number n is incremented in step S450, in the subsequent step S420, the second lowest threshold “472” is compared with the L dot generation amount “409”. In this case, since the dot generation amount “409” is smaller than the threshold value “472”, “No” is determined in step S420, and the process proceeds to step S460. At this time, the count number of L dots is fixed at “1” as shown in FIG.

ステップS460では、Lドットのドット発生量とMドットのドット発生量の累積値「1959(=409+1550)」と、2番目に低い閾値「472」とが比較される。この結果、LドットとMドットのドット発生量の累積値「1959」の方が、閾値「472」よりも大きいため、ステップS460では「Yes」と判断され、ステップS470によってMドットのカウント数がインクリメントされ「1」となる。そうすると、更に、次の閾値「1010」が参照される。しかし、この場合においても、依然として、閾値「1010」より、ドット発生量の累積値「1959」の方が大きいため、結局、7番目に低い閾値「2240」が参照されるまで、Mサイズのカウント数はインクリメントされる。この結果、Mサイズのカウント数は、図15(c)に示すように「5」で確定する。   In step S460, the accumulated value “1959 (= 409 + 1550)” of the L dot generation amount and the M dot generation amount is compared with the second lowest threshold “472”. As a result, since the accumulated value “1959” of the dot generation amount of L dots and M dots is larger than the threshold value “472”, “Yes” is determined in step S460, and the count number of M dots is determined in step S470. Incremented to “1”. Then, the next threshold “1010” is further referred to. However, even in this case, since the accumulated value “1959” of the dot generation amount is still larger than the threshold value “1010”, the M size is counted until the seventh lowest threshold value “2240” is eventually referred to. The number is incremented. As a result, the M size count is fixed at “5” as shown in FIG.

7番目に低い閾値「2240」が参照されると、ステップS460では、「No」と判定されるため、次に、ステップS480において、LドットとMドットとSドットのドット発生量の累積値「3263(=409+1550+1304)」と、7番目に低い閾値「2240」とが比較される。この結果、ドット発生量の累積値「3263」の方が7番目に低い閾値よりも大きいため、ステップS480では「Yes」と判定され、ステップS490によってSドットのカウント数がインクリメントされて「1」になる。そうすると、次に、最も値の高い閾値「3262」が参照される。   When the seventh lowest threshold value “2240” is referred to, “No” is determined in step S460. Next, in step S480, the cumulative value “L”, “M”, and “S” dot generation amount “ 3263 (= 409 + 1550 + 1304) ”and the seventh lowest threshold value“ 2240 ”are compared. As a result, since the accumulated value “3263” of the dot generation amount is larger than the seventh lowest threshold value, “Yes” is determined in step S480, and the S dot count is incremented by “1” in step S490. become. Then, the highest threshold “3262” is referred to next.

LドットとMドットとSドットのドット発生量の累積値「3263」は、8番目の閾値「3262」よりも依然として大きい。そのため、ステップS480では、再度、「Yes」と判定されて、ステップS490によってSサイズのドットのカウント数がインクリメントされ、図15(d)に示すように「2」となる。すると、現在の総カウント数nは「7」であるため、ステップS440において、「Yes」と判定され、各サイズのドットのカウント数が確定する。すなわち、以上で示した例では、Lドットが1個、Mドットが5個、Sドットが2個となる。   The accumulated value “3263” of the dot generation amount of L dots, M dots, and S dots is still larger than the eighth threshold value “3262”. Therefore, in step S480, it is determined again as “Yes”, and in step S490, the count number of S size dots is incremented to “2” as shown in FIG. Then, since the current total count number n is “7”, it is determined as “Yes” in step S440, and the count number of dots of each size is determined. That is, in the example shown above, there are one L dot, five M dots, and two S dots.

以上、図15を用いて説明したように、上述したドット数カウント処理では、最初に、Lドットの発生数が決定され、つづいて、Mサイズ、Sサイズのドットの発生数が決定される。各サイズの発生数を決定する際には、各サイズのドット発生量を加算しつつ閾値との比較を行っていくので、最終的には、図15(d)に示すように、各サイズのドットの数は、ブロック内に各サイズのドットが重複せずにLドットから順に配置することが可能な数になる。   As described above with reference to FIG. 15, in the dot number counting process described above, the number of L dots generated is first determined, and then the number of M size and S size dots is determined. When the number of occurrences of each size is determined, the dot generation amount of each size is added and compared with a threshold value. As a result, as shown in FIG. The number of dots is a number that allows dots of each size to be arranged in order from L dots without overlapping each other in the block.

ここで、ドット数カウント処理の他の具体例について検討する。例えば、現在の入力階調値TDに対応するLドット、Mドットのドット発生量がともに「0」であり、Sドットのドット発生量が「1500」とする。また、現在のブロックに対応する閾値群が図7(b)に示した閾値群だとする。そうすると、図14に示したフローチャートのステップS420、ステップS460では、Lドットの発生量もMドットの発生量も「0」であり、最も低い閾値「23」よりも小さいため、「No」と判断され、ステップS480に処理が進む。そして、このステップS480では、ドット発生量「1500」を超える5番目に低い閾値「1659」が参照された時点で、ステップS480では、「No」と判定され、Sドットのカウント数が「5」で確定し、カウント処理が終了する。すなわち、本実施例では、閾値の低い順から比較を行うため、全サイズのドット発生量の累積値を超えた閾値が参照された時点で、次の閾値を参照する必要が無くなる。従って、各サイズのドットのカウント処理が高速化され、ひいては、初期化処理を高速に行うことが可能になる。   Here, another specific example of the dot count processing will be considered. For example, it is assumed that the dot generation amounts of L dots and M dots corresponding to the current input gradation value TD are both “0” and the dot generation amount of S dots is “1500”. Further, it is assumed that the threshold value group corresponding to the current block is the threshold value group shown in FIG. Then, in step S420 and step S460 of the flowchart shown in FIG. 14, the generation amount of L dots and the generation amount of M dots are “0”, which is smaller than the lowest threshold value “23”, and therefore “No” is determined. Then, the process proceeds to step S480. In step S480, when the fifth lowest threshold “1659” exceeding the dot generation amount “1500” is referred to, in step S480, “No” is determined, and the S dot count is “5”. To confirm, and the counting process ends. That is, in this embodiment, since the comparison is performed in the order from the lowest threshold value, it is not necessary to refer to the next threshold value when the threshold value exceeding the cumulative value of the dot generation amount of all sizes is referred. Accordingly, the dot count processing for each size is speeded up, and as a result, the initialization processing can be performed at high speed.

説明を図13に戻す。図13のステップS240、すなわち、図14に示したドット数カウント処理が実行されて、各サイズのドット数が確定すると、次に、CPU151は、前回の入力階調値TDにおける各サイズのドット数に対して、今回の入力階調値TDにおける各サイズのドット数のいずれかが変化したかを判定する(ステップS250)。例えば、前回のカウント処理によって、Sドットが2個、Mドットが5個、Lドットが1個であった場合に、今回のカウント処理によって、Sドットが2個、Mドットが4個、Lドットが2個となれば、MドットとLドットのカウント数が変化していることになるので、上記ステップS250では、変化あり(Yes)と判定される。   Returning to FIG. When step S240 in FIG. 13, that is, the dot count process shown in FIG. 14 is executed and the number of dots of each size is determined, the CPU 151 then determines the number of dots of each size in the previous input tone value TD. On the other hand, it is determined whether any of the number of dots of each size in the current input tone value TD has changed (step S250). For example, if there were 2 S dots, 5 M dots, and 1 L dot in the previous count process, 2 S dots, 4 M dots, and L in the current count process If the number of dots is two, the count numbers of the M dots and the L dots have changed, so in Step S250, it is determined that there is a change (Yes).

上記ステップS250において、変化ありと判定されれば(ステップS250:Yes)、現在のブロック番号Nおよびエンコード値EVに対応する各サイズのドット数を、上記ステップS240でカウントされた値に更新する(ステップS260)。そして、ステップS200において用意したエンコードテーブルETの現在のブロック番号Nおよびエンコード値EVに対応する要素に、階調閾値として、現在の入力階調値TDをセットする(ステップS270)。   If it is determined in step S250 that there is a change (step S250: Yes), the number of dots of each size corresponding to the current block number N and encoded value EV is updated to the value counted in step S240 (step S240). Step S260). Then, the current input gradation value TD is set as the gradation threshold value in the element corresponding to the current block number N and the encoded value EV of the encoding table ET prepared in step S200 (step S270).

エンコードテーブルETに階調閾値をセットすると、続いて、CPU151は、予め作成しておいたポストデコードテーブルDT2(図8参照)を参照し、上記ステップS260で更新した各サイズのドットの数と同数のドット数を有するインデックス値を取得する。例えば、上記ステップS260において、Sドットが0個、Mドットが2個、Lドットが6個であるとされれば、取得されるインデックス値は、図8を参照すると「160」になる。こうして、インデックス値を取得すると、CPU151は、ステップS200において用意したプレデコードテーブルDT1の現在のブロック番号Nおよびエンコード値EVに対応する要素に、そのインデックス値をセットする(ステップS280)。   After setting the gradation threshold value in the encoding table ET, the CPU 151 refers to the post-decoding table DT2 (see FIG. 8) created in advance, and the same number as the number of dots of each size updated in step S260. An index value having the number of dots is obtained. For example, if it is determined in step S260 that there are 0 S dots, 2 M dots, and 6 L dots, the obtained index value is “160” with reference to FIG. When the index value is acquired in this way, the CPU 151 sets the index value to the element corresponding to the current block number N and the encoded value EV of the predecode table DT1 prepared in step S200 (step S280).

エンコードテーブルETへの階調閾値の記録、および、プレデコードテーブルDT1へのインデックス値の記録を完了すると、CPU151は、現在のエンコード値EVをインクリメントする(ステップS290)。つまり、このステップS290では、上記ステップS250においていずれかのサイズのドットの数が変化したと判断される毎にエンコード値EVが変化していくことになる。換言すれば、1ブロック内に発生するドットの態様が変化する度にエンコード値EVが変化していくことになる。   When the recording of the gradation threshold value in the encode table ET and the recording of the index value in the predecode table DT1 are completed, the CPU 151 increments the current encode value EV (step S290). That is, in this step S290, the encoded value EV changes every time it is determined in step S250 that the number of dots of any size has changed. In other words, the encoded value EV changes each time the mode of dots generated in one block changes.

上記ステップS290によって、エンコード値EVをインクリメントした後、もしくは、上記ステップS250において、いずれのサイズのドット数も変化していないと判断された場合には(ステップS250:No)、CPU151は、現在の入力階調値TDが「255」を超えたか否かを判断する(ステップS300)。その結果、入力階調値TDが「255」を超えていなければ(ステップS300:No)、現在の入力階調値TDをインクリメントした上で(ステップS310)、処理を上記ステップS240に戻す。こうすることで、現在のブロックについて入力階調値TDを0から255まで変化させながら、入力階調値TDとエンコード値EVの対応関係をエンコードテーブルETに記録することができる。また、これと同時に、エンコード値EVとインデックス値の対応関係をプレデコードテーブルDT1に記録することができる。   After incrementing the encoding value EV in step S290 or if it is determined in step S250 that the number of dots of any size has not changed (step S250: No), the CPU 151 It is determined whether or not the input gradation value TD exceeds “255” (step S300). As a result, if the input tone value TD does not exceed “255” (step S300: No), the current input tone value TD is incremented (step S310), and the process returns to step S240. By doing so, it is possible to record the correspondence relationship between the input tone value TD and the encode value EV in the encode table ET while changing the input tone value TD from 0 to 255 for the current block. At the same time, the correspondence between the encoded value EV and the index value can be recorded in the predecode table DT1.

一方、上記ステップS300において、現在の入力階調値TDが「255」を超えていれば(ステップS300:Yes)、全てのブロックについて上述した処理が完了したかを判断し(ステップS320)、完了していなければ(ステップS320:No)、現在のブロック番号Nをインクリメントした上で(ステップS340)、処理を上記ステップS220に戻す。こうすることで、全てのブロックについて、入力階調値TDとエンコード値EVの対応関係をエンコードテーブルETに記録し、エンコード値とインデックス値の対応関係をプレデコードテーブルDT1に記録することができる。全てのブロックについて上述した処理が完了していれば(ステップS320:Yes)、当該テーブル生成処理を終了し、処理を図6のステップS150(データ量削減処理)に移行する。   On the other hand, if the current input tone value TD exceeds “255” in step S300 (step S300: Yes), it is determined whether the above-described processing is completed for all blocks (step S320). If not (step S320: No), after incrementing the current block number N (step S340), the process returns to step S220. In this way, for all the blocks, the correspondence relationship between the input gradation value TD and the encode value EV can be recorded in the encode table ET, and the correspondence relationship between the encode value and the index value can be recorded in the predecode table DT1. If the processing described above has been completed for all blocks (step S320: Yes), the table generation processing is terminated, and the processing proceeds to step S150 (data amount reduction processing) in FIG.

以上、図6のステップS140に示したテーブル生成処理の詳細について説明した。CPU151は、このテーブル生成処理を実行することにより、図10に示したエンコードテーブルETと、図12に示したプレデコードテーブルDT1とを生成することができる。   The details of the table generation process shown in step S140 of FIG. 6 have been described above. The CPU 151 can generate the encoding table ET shown in FIG. 10 and the predecoding table DT1 shown in FIG. 12 by executing this table generation processing.

(C−2)データ量削減処理:
図16は、図6のステップS150において実行されるデータ量削減処理のフローチャートである。このデータ量削減処理は、上述したテーブル生成処理によって生成されたエンコードテーブルETのデータ量を削減する処理である。
(C-2) Data amount reduction processing:
FIG. 16 is a flowchart of the data amount reduction process executed in step S150 of FIG. This data amount reduction process is a process for reducing the data amount of the encoding table ET generated by the table generation process described above.

この処理が実行されると、CPU151は、まず、RAM152に記憶されたエンコードテーブルET(図10)を参照し(ステップS600)、最大ステップ数を取得する(ステップS610)。最大ステップ数とは、すべてのブロックのステップ数(段数)の中で最も大きいステップ数のことをいい、換言すれば、初期値としての「0」を除いて最も多くの階調閾値が対応付けられたブロックが有するエンコード値EVの範囲のことをいう。図10に示したエンコードテーブルETでは、最大ステップ数は、ブロック番号3の「21」である。   When this process is executed, the CPU 151 first refers to the encoding table ET (FIG. 10) stored in the RAM 152 (step S600) and acquires the maximum number of steps (step S610). The maximum number of steps means the largest number of steps (the number of steps) of all blocks. In other words, the maximum number of gradation threshold values is associated except for “0” as an initial value. This is the range of the encoded value EV that the given block has. In the encoding table ET shown in FIG. 10, the maximum number of steps is “21” of block number 3.

最大ステップ数を取得すると、次に、CPU151は、データ量削減後のエンコードテーブルET(以下、「圧縮エンコードテーブルETC」と記載する)を格納するために必要な記憶領域をRAM152に確保する(ステップS620)。具体的には、最大ステップ数と、各階調閾値のデータ容量(8ビット)と、ブロックの数とをすべて乗じた値が必要な記憶容量となる。図10の例では、必要な記憶容量は168Kバイト(=8192個×21×8ビット)となる。なお、本願の発明者の実験では、最大ステップ数は、「24」程度になることが多く、この場合には、必要な記憶容量は、192Kバイト(=8192個×24×8ビット)になる。   When the maximum number of steps is acquired, the CPU 151 then secures a storage area necessary for storing the encoding table ET after the data amount reduction (hereinafter referred to as “compression encoding table ETC”) in the RAM 152 (step S620). Specifically, the required storage capacity is a value obtained by multiplying the maximum number of steps, the data capacity (8 bits) of each gradation threshold value, and the number of blocks. In the example of FIG. 10, the required storage capacity is 168 Kbytes (= 8192 × 21 × 8 bits). In the experiments by the inventors of the present application, the maximum number of steps is often about “24”. In this case, the required storage capacity is 192 Kbytes (= 8192 × 24 × 8 bits). .

必要な記憶容量を確保すると、CPU151は、既にRAM152に記憶されたデータ量削減前のエンコードテーブルETから、各階調閾値をステップS620で確保した領域にコピーする(ステップS630)。そして、最後に、データ量削減前のエンコードテーブルETをRAM152から削除する(ステップS640)。こうすることで、最大ステップ数を超えるエンコード値に対応する要素が、すべてのブロックについて削除されることになり、エンコードテーブルETのサイズが削減されることになる。   When the necessary storage capacity is secured, the CPU 151 copies each gradation threshold value from the encoding table ET already stored in the RAM 152 to the area secured in step S620 (step S630). Finally, the encoding table ET before the data amount reduction is deleted from the RAM 152 (step S640). By doing so, elements corresponding to encoded values exceeding the maximum number of steps are deleted for all blocks, and the size of the encoded table ET is reduced.

図17は、当該データ量削減処理によって生成された圧縮エンコードテーブルETCの一例を示す説明図である。この圧縮エンコードテーブルETCと、図10に示したデータ量削減前のエンコードテーブルETとを比較すれば、各ブロックについて、最大ステップ数以上の要素に記録されていた階調閾値「0」が削除され、明らかに、データ量が削減されていることがわかる。本実施例では、このデータ量削減処理によって、エンコードテーブルETのデータ量を概ね3割程度削減することができる。   FIG. 17 is an explanatory diagram showing an example of the compression encoding table ETC generated by the data amount reduction processing. If this compression encoding table ETC is compared with the encoding table ET before the data amount reduction shown in FIG. 10, the gradation threshold value “0” recorded in the element having the maximum number of steps or more is deleted for each block. Obviously, the amount of data is reduced. In this embodiment, the data amount reduction process can reduce the data amount of the encoding table ET by about 30%.

以上、図5のステップS10で実行される初期化処理の全内容を説明した。以下では、この初期化処理によって生成された種々のテーブルを用いて実行されるハーフトーン処理の詳細な処理内容について説明する。   The entire content of the initialization process executed in step S10 in FIG. 5 has been described above. Hereinafter, detailed processing contents of the halftone processing executed using the various tables generated by the initialization processing will be described.

(D)ハーフトーン処理:
図18は、図5に示した印刷処理のステップS40で実行されるハーフトーン処理のフローチャートである。このハーフトーン処理は、上述した初期化処理において生成した各テーブル(エンコードテーブルET、プレデコードテーブルDT1、ポストデコードテーブルDT2、順序値テーブルST)を順次参照することで、CMY画像の各画素について、それぞれドット配置データを生成する処理である。
(D) Halftone processing:
FIG. 18 is a flowchart of the halftone process executed in step S40 of the printing process shown in FIG. This halftone process sequentially refers to each table (encode table ET, predecode table DT1, postdecode table DT2, order value table ST) generated in the initialization process described above for each pixel of the CMY image. This is a process for generating dot arrangement data.

画像処理ASIC155は、まず、このハーフトーン処理を実行すると、図3に示したエンコードユニット410を用いて、処理対象の画素の各色(C,M,Y,K,Lc、Lm)の階調値をそれぞれエンコード値EVに変換するエンコード処理を行う(ステップS800)。   When the image processing ASIC 155 first executes the halftone process, the tone value of each color (C, M, Y, K, Lc, and Lm) of the pixel to be processed using the encoding unit 410 shown in FIG. Encoding processing for converting each into an encoded value EV is performed (step S800).

(D−1)エンコード処理:
図19は、エンコード処理の詳細な処理内容を示すフローチャートである。このエンコード処理は、入力画素の階調値を、エンコード値EVに変換するための処理である。
(D-1) Encoding process:
FIG. 19 is a flowchart showing details of the encoding process. This encoding process is a process for converting the gradation value of the input pixel into the encoded value EV.

このエンコード処理が実行されると、エンコードユニット410は、まず、CMY画像をライン毎に色変換ユニット300から入力し、その中から1画素ずつX方向(右方向)に階調値GVを取得する(ステップS802)。   When this encoding process is executed, the encoding unit 410 first inputs a CMY image from the color conversion unit 300 for each line, and acquires a gradation value GV in the X direction (right direction) pixel by pixel. (Step S802).

階調値GVを取得すると、エンコードユニット410は、その画素が属するブロック番号の計算を行う(ステップS804)。ここで、本実施例では、図4に示したように、1つの階調値GVを、4×2個のドットで表現するものとした。この4×2個のドットは、図7に示したディザマトリックスDMの4×2の要素、すなわち、1ブロックに相当する。従って、CMY画像内の処理対象の画素の位置がわかれば、その画素の位置に対応するディザマトリックスDM内のブロックの位置を容易に求めることができる。   When obtaining the gradation value GV, the encode unit 410 calculates the block number to which the pixel belongs (step S804). Here, in this embodiment, as shown in FIG. 4, one gradation value GV is expressed by 4 × 2 dots. These 4 × 2 dots correspond to 4 × 2 elements of the dither matrix DM shown in FIG. 7, that is, one block. Therefore, if the position of the pixel to be processed in the CMY image is known, the position of the block in the dither matrix DM corresponding to the position of the pixel can be easily obtained.

図20は、ブロック番号の計算方法の概念を示す説明である。図7(a)に示したディザマトリックスデータDMは、横方向に128ブロック、縦方向に64ブロックの計8192個のブロックを有するものとした。そのため、1枚の入力画像データを、128画素×64画素を単位として分割し、かかる単位内の各画素に対して、ブロック番号が0から8191まで割り振られるように、ブロック番号の計算を行う。すなわち、図20のように、1枚の入力画像データのなかに、ディザマトリックスDMがタイル状に並べられているものとして、ブロック番号の計算を行うのである。   FIG. 20 is a diagram illustrating the concept of the block number calculation method. The dither matrix data DM shown in FIG. 7A has a total of 8192 blocks, 128 blocks in the horizontal direction and 64 blocks in the vertical direction. Therefore, one piece of input image data is divided in units of 128 pixels × 64 pixels, and block numbers are calculated so that block numbers from 0 to 8191 are allocated to each pixel in the unit. That is, as shown in FIG. 20, the block number is calculated on the assumption that the dither matrix DM is arranged in a tile in one piece of input image data.

具体的には、エンコード処理を行おうとする現在の画素の座標を(X,Y)とした場合に、現在の画素のY座標が「0」であり、X座標が、「0」から「127」までの間は、ブロック番号が「0」から「127」まで、順番に割り振られることになる。その後、Y座標が変化せず、現在の画素のX座標が、「128」になった時点で、ブロック番号は、再び、「0」となる。このように、画像のX方向に対して、ブロック番号が「0」から「127」まで繰り返して適用された後に、現在の画素の座標が、(0,1)になった時点で、ブロック番号は「128」となる。そして、その後、Y座標が「1」の間は、「128」から「255」までのブロック番号が繰り返して割り振られることになる。つまり、ブロック番号Nは、エンコード処理を行う対象画素の座標を(X,Y)とすると、下記式(2)によって求めることができる。ただし、下記式(2)において、「%」は、剰余を求める演算子であるものとする。   Specifically, when the coordinates of the current pixel to be encoded are (X, Y), the Y coordinate of the current pixel is “0”, and the X coordinate is changed from “0” to “127”. The block numbers from “0” to “127” are allocated in order. After that, when the Y coordinate does not change and the X coordinate of the current pixel becomes “128”, the block number becomes “0” again. Thus, after the block number is repeatedly applied from “0” to “127” with respect to the X direction of the image, the block number when the current pixel coordinates become (0, 1). Becomes “128”. After that, while the Y coordinate is “1”, block numbers from “128” to “255” are repeatedly allocated. That is, the block number N can be obtained by the following equation (2), where the coordinates of the target pixel to be encoded are (X, Y). However, in the following formula (2), “%” is an operator for calculating a remainder.

N=(X%128)+(Y%64)*128 …(2) N = (X% 128) + (Y% 64) * 128 (2)

図21は、ブロック番号の他の計算方法の概念を示す説明図である。図20に示したブロック番号の計算例では、1枚の画像データ内に複数のディザマトリックスDMがタイル状に等しく並べられることを想定してブロック番号の計算を行っている。これに対して、図21では、タイル状に配置されたディザマトリックスデータDMのうち、偶数行のディザマトリックスデータDMを、奇数行のディザマトリックスデータDMに対してX方向に64画素ずらして並べている。このように、ディザマトリックスDMをずらして画像内に配置するものとすれば、ディザマトリックスDMの繰り返しパターンの傾向が出力画像に現れることを抑制できるため、画質を向上させることができる。   FIG. 21 is an explanatory diagram showing the concept of another calculation method of block numbers. In the block number calculation example shown in FIG. 20, the block number is calculated on the assumption that a plurality of dither matrices DM are arranged in a tile shape in one image data. On the other hand, in FIG. 21, among the dither matrix data DM arranged in a tile shape, the even-numbered dither matrix data DM is arranged by shifting 64 pixels in the X direction with respect to the odd-numbered dither matrix data DM. . Thus, if the dither matrix DM is shifted and arranged in the image, it is possible to suppress the tendency of the repetitive pattern of the dither matrix DM from appearing in the output image, so that the image quality can be improved.

本実施例では、エンコードユニット410は、ライン単位でCMY画像を入力するものとしたため、図20や図21を参照すれば、最初のラインについては、ブロック番号が0から127が繰り返して適用されることになる。従って、本実施例では、エンコードユニット410がエンコード処理を実行するに当たり、入力したラインのY座標に応じて予め圧縮エンコードテーブルETCの必要な部分についてのみSRAM156に入力しておく。こうすることで、各画素の階調値を取得する度に、SRAM156よりもアクセス速度の遅いRAM152にエンコードテーブルETを読みに行く必要が無くなり、処理を高速化することが可能になる。なお、本実施例では、データ容量が削減されたまま、SRAM156に、圧縮エンコードテーブルETCの一部を入力するものとする。こうすることで、SRAM156が必要とする記憶容量を削減することができる。   In this embodiment, since the encoding unit 410 inputs CMY images in units of lines, referring to FIGS. 20 and 21, the block numbers 0 to 127 are repeatedly applied to the first line. It will be. Therefore, in the present embodiment, when the encoding unit 410 executes the encoding process, only a necessary part of the compression encoding table ETC is input to the SRAM 156 in advance according to the input Y coordinate of the line. By doing so, it is not necessary to read the encoding table ET to the RAM 152 having a lower access speed than the SRAM 156 every time the gradation value of each pixel is acquired, and the processing can be speeded up. In this embodiment, it is assumed that a part of the compression encoding table ETC is input to the SRAM 156 while the data capacity is reduced. By doing so, the storage capacity required by the SRAM 156 can be reduced.

図19のステップS804によって、ブロック番号の計算が完了すると、エンコードユニット410は、これから求めようとするエンコード値EVの値を「0」に初期化する(ステップS806)。そして、図17に示した圧縮エンコードテーブルETC(実際には、SRAM156に読み込まれた部分的な圧縮エンコードテーブルETC)を参照して、ステップS804で算出されたブロック番号および現在のエンコード値EVに対応する階調閾値GVtを取得する(ステップS808)。   When the calculation of the block number is completed in step S804 of FIG. 19, the encoding unit 410 initializes the encoding value EV to be obtained to “0” (step S806). Then, referring to the compression encoding table ETC shown in FIG. 17 (actually, the partial compression encoding table ETC read into the SRAM 156), it corresponds to the block number and the current encoding value EV calculated in step S804. The gradation threshold value GVt to be acquired is acquired (step S808).

階調閾値GVtを取得すると、エンコードユニット410は、この階調閾値GVtと、ステップS802で入力した処理対象の画素の階調値GVとを比較し、この階調値GVが階調閾値GVt以上であるかを判定する(ステップS810)。この判定の結果、階調値GVが階調閾値GVt以上であれば(ステップS810:Yes)、現在のエンコード値EVに「1」を加算し(ステップS812)、加算後のエンコード値EVがその最大値EVmax以上となったかを判定する(ステップS814)。最大値EVmaxは、上述した最大ステップ数から「1」を差し引いた値である(例えば、図17のエンコードテーブルを参照している場合には「20」)。エンコード値EVが最大値EVmax以上となれば(ステップS814:Yes)、その時点で、エンコード値EVは最大値EVmaxに確定する(ステップS816)。   Upon obtaining the gradation threshold GVt, the encoding unit 410 compares the gradation threshold GVt with the gradation value GV of the pixel to be processed input in step S802, and this gradation value GV is equal to or greater than the gradation threshold GVt. Is determined (step S810). As a result of this determination, if the gradation value GV is equal to or greater than the gradation threshold GVt (step S810: Yes), “1” is added to the current encoded value EV (step S812), and the encoded value EV after the addition is It is determined whether the maximum value EVmax has been reached (step S814). The maximum value EVmax is a value obtained by subtracting “1” from the maximum number of steps described above (for example, “20” when referring to the encoding table of FIG. 17). If the encode value EV is equal to or greater than the maximum value EVmax (step S814: Yes), the encode value EV is fixed at the maximum value EVmax at that time (step S816).

上記ステップS814において、エンコード値EVがその最大値EVmax未満であると判定されれば(ステップS814:No)、エンコードユニット410は、処理をステップS808に戻し、加算後のエンコード値EVに対応する階調閾値GVtを取得して、再び、階調閾値GVtと階調値GVとの比較を行う。こうして、比較を繰り返した結果、ステップS810において、初めて階調値GVが、階調閾値GVt未満となれば(ステップS810:No)、そのときのエンコード値EVの値が、エンコード結果のエンコード値EVとして確定する(ステップS816)。   If it is determined in step S814 that the encoded value EV is less than the maximum value EVmax (step S814: No), the encoding unit 410 returns the process to step S808, and the level corresponding to the encoded encoded value EV after addition. The gradation threshold GVt is acquired, and the gradation threshold GVt and the gradation value GV are compared again. As a result of repeating the comparison, if the gradation value GV is less than the gradation threshold value GVt for the first time in step S810 (step S810: No), the value of the encoded value EV at that time is the encoded value EV of the encoded result. (Step S816).

以上で説明したエンコード処理によれば、図17に示したエンコードテーブルETを参照することにより、入力画素の階調値を、その画素が属するブロックに応じて、5ビットのエンコード値に変換することができる。エンコードユニット410は、このエンコード処理を、CMY画像の全画素について実行する。   According to the encoding process described above, the gradation value of the input pixel is converted into a 5-bit encoded value according to the block to which the pixel belongs by referring to the encoding table ET shown in FIG. Can do. The encoding unit 410 performs this encoding process for all pixels of the CMY image.

なお、上述したエンコード処理では、SRAM156に対して、圧縮エンコードテーブルETCの一部を、データ量が削減されたまま入力するものとした。これに対して、SRAM156に入力するブロックについて、データ量を図10に示した元の形式まで回復させて入力するものとしてもよい。このような構成であれば、SRAM156内に入力されるエンコードテーブルの形式が一律になるため、SRAM156のメモリ管理を容易に行うことが可能になる。   In the encoding process described above, a part of the compression encoding table ETC is input to the SRAM 156 with the data amount reduced. On the other hand, regarding the block input to the SRAM 156, the data amount may be recovered to the original format shown in FIG. 10 and input. With such a configuration, the format of the encoding table input to the SRAM 156 is uniform, so that the memory management of the SRAM 156 can be easily performed.

説明を図18に戻す。上述したエンコード処理によって、エンコードユニット410は階調値をエンコード値EVに変換すると、その値を、RAM152内の中間バッファBFにバッファリングする(ステップS820)。上述したエンコード処理の結果、この中間バッファBFには、8ビットの階調値ではなく、5ビットのエンコード値EVが格納されることになるため、RAM152の記憶容量を大幅に削減することができる。   Returning to FIG. When the encoding unit 410 converts the gradation value into the encoded value EV by the encoding process described above, the value is buffered in the intermediate buffer BF in the RAM 152 (step S820). As a result of the encoding process described above, the intermediate buffer BF stores not the 8-bit gradation value but the 5-bit encoded value EV, so that the storage capacity of the RAM 152 can be greatly reduced. .

エンコードユニット410によってエンコード値EVが中間バッファBFにバッファリングされると、次に、デコードユニット420が、このエンコード値EVに基づき、図4に示したドット配置データを生成するデコード処理を実行する(ステップ840)。このデコード処理は、画像データを構成する全ての画素についてエンコード値EVがバッファリングされることを待つことなく、1つでもエンコード値EVがバッファリングされるとデコードユニット420によって実行される。つまり、エンコード処理とデコード処理とは、同時並列的に実行されることになる。   When the encode value EV is buffered in the intermediate buffer BF by the encode unit 410, the decode unit 420 then executes a decoding process for generating the dot arrangement data shown in FIG. 4 based on the encode value EV ( Step 840). This decoding process is executed by the decoding unit 420 when at least one encoded value EV is buffered without waiting for the encoded value EV to be buffered for all the pixels constituting the image data. That is, the encoding process and the decoding process are executed simultaneously in parallel.

(D−2)デコード処理:
図22は、デコード処理の詳細なフローチャートである。このデコード処理が実行されると、デコードユニット420は、まず、中間バッファBFに蓄積されたエンコード値EVを読み出す(ステップS822)。このデコード処理においても、1ライン分に相当するエンコード値EVをライン単位で中間バッファBFから読み出す。
(D-2) Decoding process:
FIG. 22 is a detailed flowchart of the decoding process. When this decoding process is executed, the decoding unit 420 first reads the encoded value EV stored in the intermediate buffer BF (step S822). Also in this decoding process, the encoded value EV corresponding to one line is read from the intermediate buffer BF in units of lines.

エンコード値EVを読み出した後、デコードユニット420は、処理対象のエンコード値EVの生成元である画素が属するブロック番号の計算を行う(ステップS824)。エンコード値EVは、エンコード処理された順序で中間バッファBFにバッファリングされているため、この順序通りにエンコード値EVを読み出せば、そのエンコード値EVに対応するブロック番号も上述した計算方法によって自ずと算出することができる。なお、デコード処理においても、RAM152に記憶されたプレデコードテーブルDT1および順序値テーブルSTの中から、デコード処理に必要なブロック番号に該当する部分のみを予めSRAM156に入力しておくものとする。   After reading the encoded value EV, the decoding unit 420 calculates the block number to which the pixel that is the source of the encoded value EV to be processed belongs (step S824). Since the encoded value EV is buffered in the intermediate buffer BF in the encoded order, if the encoded value EV is read in this order, the block number corresponding to the encoded value EV is also automatically calculated by the above-described calculation method. Can be calculated. In the decoding process, only the portion corresponding to the block number necessary for the decoding process is input to the SRAM 156 in advance from the predecode table DT1 and the sequence value table ST stored in the RAM 152.

ブロック番号の計算を行うと、デコードユニット420は、図12に示したプレデコードテーブルDT1(実際には、SRAM156に入力された部分的なプレデコードテーブルDT1)を参照して、ステップS822において取得したエンコード値EVと、ステップS824によって求めたブロック番号とに対応したインデックス値を取得する(ステップS826)。そして、更に、ポストデコードテーブルDT2を参照して、このインデックス値に対応するドット数データを取得する(ステップS828)。このポストデコードテーブルDT2については、テーブル全体を予めSRAM156に入力しておくものとする。ポストデコードテーブルDT2は比較的容量が少ないため(165×16ビット=330バイト)、SRAM156の容量を圧迫することはないからである。ポストデコードテーブルDT2からドット数データを取得すると、デコードユニット420は、各サイズのドットをブロック内に配置するドット配置処理を実行する(ステップS830)。   When the block number is calculated, the decode unit 420 refers to the predecode table DT1 shown in FIG. 12 (actually, the partial predecode table DT1 input to the SRAM 156), and obtained in step S822. An index value corresponding to the encoded value EV and the block number obtained in step S824 is acquired (step S826). Further, by referring to the postdecode table DT2, dot number data corresponding to this index value is acquired (step S828). As for this post-decode table DT2, the entire table is input to the SRAM 156 in advance. This is because the post-decoding table DT2 has a relatively small capacity (165 × 16 bits = 330 bytes) and does not impose the capacity of the SRAM 156. When the dot number data is acquired from the post-decode table DT2, the decode unit 420 executes a dot arrangement process for arranging dots of each size in the block (step S830).

図23は、ドット配置処理の詳細なフローチャートである。図24は、このドット配置処理によるドットの配置工程を模式的に示す説明図である。図23に示すように、このドット配置処理が実行されると、デコードユニット420は、まず、現在のブロックに対応する順序値データ(図7(c)参照)を、SRAM156に部分的に記憶された順序値テーブルST(図7(d)参照)から取得する(ステップS900)。そして、これからドットを配置するブロック内の全要素に対して、「ドット無し」を表すドットサイズ値「00」を設定して初期化し(ステップS910)、これからドットを配置しようとするブロック内の位置を、図24(a)に示す「a」の位置(最も左上の位置)に設定する(ステップS920)。   FIG. 23 is a detailed flowchart of the dot arrangement process. FIG. 24 is an explanatory diagram schematically showing a dot placement process by this dot placement processing. As shown in FIG. 23, when this dot arrangement process is executed, the decoding unit 420 first stores the sequence value data (see FIG. 7C) corresponding to the current block partially in the SRAM 156. Obtained from the order value table ST (see FIG. 7D) (step S900). Then, a dot size value “00” representing “no dot” is set and initialized for all elements in the block in which dots are to be arranged (step S910), and the position in the block from which dots are to be arranged in the future. Is set to the position “a” shown in FIG. 24A (upper left position) (step S920).

ドットを配置しようとする位置を設定すると、デコードユニット420は、現在のドット位置に対応する順序値を順序値データから取得する(ステップS930)。図24(b)には、順序値テーブルSTから入力した順序値データの一例を示している。図示した例では、現在の位置「a」に対応する順序値は、「5」となるため、上記ステップS930では、この値「5」が取得される。   When the position where the dot is to be arranged is set, the decoding unit 420 acquires the order value corresponding to the current dot position from the order value data (step S930). FIG. 24B shows an example of order value data input from the order value table ST. In the illustrated example, since the order value corresponding to the current position “a” is “5”, this value “5” is acquired in step S930.

次に、デコードユニット420は、ポストデコードテーブルDT2から取得したドット数データから、ステップS930で取得した順序値に対応するドットサイズ値を取得する(ステップS940)。具体的には、ドット数データの下位ビット側から2ビット毎に、ステップS930で取得した順序値の値分だけ数え、その位置に記録されたドットサイズ値を取得する。図24(c)には、ポストデコードテーブルDT2から取得したドット数データの一例を示している。かかる図において、順序値「5」に対応するドットサイズ値は、ドットサイズデータの下位ビットから数えて6つめのドットサイズ値「01」である。ドットサイズ値「01」は、Sサイズのドットであることを表す。   Next, the decode unit 420 acquires the dot size value corresponding to the order value acquired in step S930 from the dot number data acquired from the post-decode table DT2 (step S940). Specifically, every two bits from the lower bit side of the dot number data are counted by the order value acquired in step S930, and the dot size value recorded at that position is acquired. FIG. 24C shows an example of dot number data acquired from the post-decode table DT2. In this figure, the dot size value corresponding to the order value “5” is the sixth dot size value “01” counted from the lower bits of the dot size data. The dot size value “01” represents an S size dot.

ドットサイズ値を取得すると、CPU151は、取得したドットサイズ値を、ブロック内の現在の位置に設定する(ステップS950)。つまり、図24(d)に示すように、現在の位置が「a」の位置であれば、かかる位置に、図24(c)のドット数データから取得されたドットサイズ値「01」を設定する。   When the dot size value is acquired, the CPU 151 sets the acquired dot size value at the current position in the block (step S950). That is, as shown in FIG. 24D, if the current position is “a”, the dot size value “01” acquired from the dot number data in FIG. 24C is set at this position. To do.

現在の位置にドットサイズ値を設定すると、CPU151は、全ての位置についてドットサイズ値の設定が終了したか否かを判断する(ステップS960)。その結果、全ての位置についてドットサイズ値の設定が終了していれば(ステップS960:Yes)、当該ドット配置処理を終了する。一方、終了していなければ、ブロック内の現在の位置をa,b,c,d,・・・の順(図24(a)参照)に移動し(ステップS970)、処理を上記ステップS930に戻すことで、他の位置についてドットサイズ値の設定を行う。   When the dot size value is set at the current position, the CPU 151 determines whether or not the dot size value has been set for all positions (step S960). As a result, if the setting of dot size values has been completed for all positions (step S960: Yes), the dot arrangement process is terminated. On the other hand, if not finished, the current position in the block is moved in the order of a, b, c, d,... (See FIG. 24A) (step S970), and the process goes to step S930. By returning, dot size values are set for other positions.

以上で説明したドット配置処理が、中間バッファBFにバッファリングされたすべてのエンコード値EVについて完了すれば、デコードユニット420によるデコード処理が完了する。このデコード処理によって生成された各ドット配置データは、その生成の都度、インク吐出制御ユニット500に引き渡され、インクヘッド211によるドットの形成に供されることになる。なお、本実施例では、順序値テーブルを参照することで、ドットの配置を行うものとしたが、ディザマトリックスデータDM内の該当するブロックを直接参照し、閾値の低い要素から順にドットを発生させることで、ドットの配置を行うものとしてもよい。   When the dot arrangement process described above is completed for all the encoded values EV buffered in the intermediate buffer BF, the decoding process by the decoding unit 420 is completed. Each dot arrangement data generated by this decoding process is delivered to the ink ejection control unit 500 each time it is generated, and is used for dot formation by the ink head 211. In this embodiment, the dots are arranged by referring to the order value table. However, the corresponding blocks in the dither matrix data DM are directly referred to, and dots are generated in order from the element having the lowest threshold value. Thus, dot arrangement may be performed.

(E)効果:
以上で説明した本実施例によれば、次のような効果が生じる。すなわち、図24(d)に示したドット配置データの生成結果と、図24(b)に示した4×2の順序値データとを対比してみると、サイズの大きなドットから順に、ドットが重複無く順序値の低い位置に配置されていることがわかる。順序値が低いということは、その順序値に対応する閾値の値が低いということになる(図7(b)参照)。図7(a)に示したディザマトリックスデータDMは、組織的ディザ法におけるディザパターンとしての性質上、閾値は、その値が低いほど分散性よく配置されており、その値が高くなるほど、既に配置された閾値の場所を避けるように配置されている。そのため、図24(d)に示したドット配置データでは、最も大きなサイズのドットから優先的に、低い順序値、すなわち、低い閾値の場所に配置されることになり、大きなサイズのドットほど、分散性がよく配置されることになる。従って、本実施例におけるドットの配置方法によれば、印刷用紙上で目立つことになる大きなドットの分散性を最も高めることができるため、出力画像の画質を大幅に向上させることが可能になる。
(E) Effect:
According to the present embodiment described above, the following effects are produced. That is, when the generation result of the dot arrangement data shown in FIG. 24D is compared with the 4 × 2 order value data shown in FIG. It can be seen that they are arranged at positions with low order values without duplication. A low order value means that the threshold value corresponding to the order value is low (see FIG. 7B). In the dither matrix data DM shown in FIG. 7A, the threshold value is arranged with better dispersion as the value is lower due to the nature of the dither pattern in the systematic dither method. Is arranged so as to avoid the specified threshold location. For this reason, in the dot arrangement data shown in FIG. 24D, the dots having the largest size are preferentially arranged at a lower order value, that is, at a lower threshold location. The sex will be well placed. Therefore, according to the dot arrangement method in the present embodiment, the dispersibility of large dots that are conspicuous on the printing paper can be maximized, so that the image quality of the output image can be greatly improved.

また、本実施例において、ディザマトリックスデータDMとしてドットを良好に分散させることのできるブルーノイズ特性を有するマトリックスを用いれば、マトリックス内のどのブロックが何階調になるのか特別な規則性がないことになり、図11に示したように、ブロック毎にエンコード値の取り得る値が異なることになる。そのため、従来の濃度パターン法などでは、階調値に応じて画一的に多値化を行うため、実質的な階調数が低減してしまう可能性があったが、本実施例では、ハーフトーン処理を4×2ドットのブロック単位で行いながらも、ディザマトリックス内におけるそのブロックの位置に応じて、ドットの発生パターンが様々に変化することになり、従来の多値化手法よりも大幅に出力画像の画質を向上させることができる。   In the present embodiment, if a matrix having blue noise characteristics that can disperse dots satisfactorily is used as the dither matrix data DM, there is no special regularity as to which block in the matrix has what gradation. Thus, as shown in FIG. 11, the values that the encoding value can take differ from block to block. Therefore, in the conventional density pattern method and the like, since multi-value conversion is uniformly performed according to the gradation value, there is a possibility that the substantial number of gradations may be reduced. While halftone processing is performed in units of 4 × 2 dot blocks, the dot generation pattern changes variously depending on the position of the block in the dither matrix, which is significantly greater than the conventional multi-value method. In addition, the image quality of the output image can be improved.

また、本実施例では、ハーフトーン処理に用いる各種テーブルを、ディザマトリックスデータDMとドット発生量テーブルDGTとに基づき生成するものとしたため、ディザマトリックスデータDM内の閾値の配置について適宜最適化を図ることにより、比較的容易に出力画像の画質を向上させることができる。つまり、本実施例のように、ブロック毎にそのブロックの位置に応じたハーフトーン処理を行うことのできるテーブルの構造を用いれば、従来の多値化で用いられていた画一的な変換テーブルよりも柔軟に画質の向上を図ることが可能になる。   In this embodiment, since various tables used for the halftone process are generated based on the dither matrix data DM and the dot generation amount table DGT, the arrangement of the threshold values in the dither matrix data DM is appropriately optimized. As a result, the image quality of the output image can be improved relatively easily. That is, if a table structure that can perform halftone processing corresponding to the position of each block is used for each block as in this embodiment, a uniform conversion table used in conventional multi-value conversion is used. The image quality can be improved more flexibly.

また、本実施例のハーフトーン処理によれば、エンコードテーブルETと、プレデコードテーブルDT1と、ポストデコードテーブルDT2と、順序値テーブルSTとを順次参照していくことで、CMY画像に対するハーフトーン処理が完了する。従って、誤差拡散法などの他のハーフトーン処理のように、誤差を分散させるような複雑な演算を行うことなく極めて高速なハーフトーン処理を実現することができる。   Further, according to the halftone process of the present embodiment, the halftone process for the CMY image is performed by sequentially referring to the encode table ET, the predecode table DT1, the postdecode table DT2, and the order value table ST. Is completed. Therefore, unlike other halftone processes such as the error diffusion method, it is possible to realize an extremely high speed halftone process without performing a complicated operation for distributing errors.

また、本実施例では、ハーフトーン処理を、エンコード処理とデコード処理との2段階の処理に分割し、エンコード処理の結果生成されたエンコード値EVを、RAM152内の中間バッファBFに一時的に蓄積するものとした。従って、デコード処理以降に、印刷機構によるドットの形成に時間を要する場合であっても、エンコード処理の結果得られたエンコード値EVを、RAM152にバッファリングすることで、早期にエンコード処理のみを終了させることができる。この結果、CPU151を印刷に関する処理から迅速に解放することが可能になる。また、この中間バッファBFには、各色8ビット(255階調)のデータ容量を有するCMY画像のデータが、エンコード処理によって、各色5ビットのエンコード値EVに減縮されて記憶されるため、RAM152の記憶容量を大幅に削減することができ、コストダウンを図ることが可能になる。   In the present embodiment, the halftone process is divided into two stages of an encoding process and a decoding process, and the encoded value EV generated as a result of the encoding process is temporarily stored in the intermediate buffer BF in the RAM 152. To do. Therefore, even if it takes time to form dots by the printing mechanism after the decoding process, the encoding value EV obtained as a result of the encoding process is buffered in the RAM 152, so that only the encoding process is completed at an early stage. Can be made. As a result, the CPU 151 can be quickly released from the processing related to printing. Further, in this intermediate buffer BF, CMY image data having a data capacity of 8 bits (255 gradations) for each color is stored by being reduced to an encoded value EV of 5 bits for each color by the encoding process. The storage capacity can be greatly reduced, and the cost can be reduced.

更に、本実施例では、エンコード処理に用いられるエンコードテーブルET内の階調閾値が実質的に記録されていない要素を予め削除することで、データ量を削減するものとした。従って、RAM152の記憶容量をより削減することが可能になる。また、こうしてRAM152にはデータ容量の削減されたエンコードテーブルETが記憶されているため、この一部のデータをSRAM156に転送する際にも、その転送量を削減することができる。従って、データ転送に要する時間が減縮され、ハーフトーン処理の高速化を図ることが可能になる。   Furthermore, in this embodiment, the amount of data is reduced by deleting in advance elements in which the gradation threshold value is not substantially recorded in the encoding table ET used for the encoding process. Therefore, the storage capacity of the RAM 152 can be further reduced. Further, since the RAM 152 stores the encode table ET with a reduced data capacity, the transfer amount can be reduced when transferring a part of the data to the SRAM 156. Therefore, the time required for data transfer is reduced, and the halftone process can be speeded up.

なお、上述した実施例では、図5に示したように、印刷処理が実行される度に初期化処理を実行するものとして説明したが、初期化処理は、その他のタイミングで実行するものとしてもよい。例えば、プリンタ100の電源投入時に実行されるものとしてもよいし、ユーザによって、印刷用紙や印刷モードの設定が変更された際に実行されるものとしてもよい。   In the above-described embodiment, as illustrated in FIG. 5, it has been described that the initialization process is executed every time the printing process is executed. However, the initialization process may be executed at other timings. Good. For example, it may be executed when the printer 100 is turned on, or may be executed when the user changes the setting of the printing paper or the printing mode.

(F)変形例:
以上、本発明の実施例について説明したが、本発明はこのような実施例に限定されず、その趣旨を逸脱しない範囲で種々の構成を採ることができることはいうまでもない。例えば、画像処理ASIC155によってハードウェアによって実現した機能を、CPU151による所定のプログラムの実行によってソフトウェア的に実現するものとしてもよい。その他、以下のような変形が可能である。
(F) Modification:
As mentioned above, although the Example of this invention was described, it cannot be overemphasized that this invention is not limited to such an Example, and can take a various structure in the range which does not deviate from the meaning. For example, a function realized by hardware by the image processing ASIC 155 may be realized by software by execution of a predetermined program by the CPU 151. In addition, the following modifications are possible.

(F−1)第1変形例:
上記実施例では、図10に示したエンコードテーブルETの作成の後、このエンコードテーブルETの最大ステップ数に応じて、データ量を削減する処理を行うものとした(図16参照)。これに対して、本変形例では、エンコードテーブルETを作成した後に、各ブロックのエンコード値EVのステップ数(エンコード値EVの範囲)が、予め設定されたステップ数に収まるように、ステップ数を削減するステップ数削減処理を行うものとする。この変形例によれば、例えば、RAM152に確保可能な記憶容量に制限がある場合等にエンコードテーブルETの容量を確実に低減することが可能になる。
(F-1) First modification:
In the above embodiment, after the encoding table ET shown in FIG. 10 is created, the data amount is reduced according to the maximum number of steps of the encoding table ET (see FIG. 16). On the other hand, in this modification, after the encoding table ET is created, the number of steps is set so that the number of steps of the encoding value EV of each block (the range of the encoding value EV) falls within a preset number of steps. It is assumed that the number of steps to be reduced is reduced. According to this modification, for example, when the storage capacity that can be secured in the RAM 152 is limited, the capacity of the encode table ET can be reliably reduced.

図25は、本変形例におけるステップ数削減処理のフローチャートである。かかる処理は、図6に示した初期化処理において、テーブル生成処理(ステップS140)の実行の後、データ量削減処理(ステップS150)の実行に先立って実行される処理である。   FIG. 25 is a flowchart of the step number reduction process in this modification. This process is a process executed in the initialization process shown in FIG. 6 after the table generation process (step S140) and prior to the data amount reduction process (step S150).

このステップ数削減処理が実行されると、CPU151は、まず、ROM153に予め設定されたステップ数の制限値(以下、「ステップ数制限値LS」と呼ぶ)を取得し(ステップS1000)、ステップ数の制限を最初に行うブロックのブロック番号Nを「0」とする(ステップS1010)。   When this step number reduction process is executed, the CPU 151 first obtains a step number limit value preset in the ROM 153 (hereinafter referred to as “step number limit value LS”) (step S1000). The block number N of the block for which the restriction is first performed is set to “0” (step S1010).

ブロック番号を設定すると、CPU151は、RAM152に記憶されたエンコードテーブルETを参照し(ステップS1020)、そのブロックのステップ数SNを取得する(ステップS1030)。そして、このステップ数SNと、ステップ数制限値LSとを比較して、ステップ数SNがステップ数制限値LSよりも大きいかを判定する(ステップS1040)。この判定の結果、ステップ数SNがステップ数制限値LSよりも大きければ(ステップS1040:Yes)、そのブロックの大きな階調閾値を間引くことで、そのブロックのステップ数SNをステップ数制限値LSまで削減する間引き処理を行う(ステップS1050)。かかる間引き処理の詳細は後述する。上記ステップS1040において、ステップ数SNがステップ数制限値LSよりも小さければ(ステップS1040:No)、この間引き処理は行わない。   When the block number is set, the CPU 151 refers to the encode table ET stored in the RAM 152 (step S1020), and acquires the step number SN of the block (step S1030). Then, the step number SN is compared with the step number limit value LS to determine whether the step number SN is larger than the step number limit value LS (step S1040). As a result of this determination, if the step number SN is larger than the step number limit value LS (step S1040: Yes), the block step number SN is reduced to the step number limit value LS by thinning out the large gradation threshold of the block. The thinning process to be reduced is performed (step S1050). Details of the thinning process will be described later. In step S1040, if the step number SN is smaller than the step number limit value LS (step S1040: No), this thinning process is not performed.

上記ステップS1040において、ステップ数SNがステップ数制限値LSよりも小さいと判定された場合、または、上記ステップS1050によって間引き処理が終了した後には、CPU151は、全てのブロックについて上述した処理が終了したかを判断する(ステップS1060)。この判断の結果、全てのブロックについて終了していなければ、ブロック番号に「1」を加算し(ステップS1070)、処理を上記ステップS600に戻す。こうすることで、エンコードテーブルET内の各ブロックに対して、必要に応じて間引き処理を実行することができる。   In step S1040, when it is determined that the step number SN is smaller than the step number limit value LS, or after the thinning process is completed in step S1050, the CPU 151 completes the above-described process for all blocks. Is determined (step S1060). As a result of the determination, if all the blocks have not been completed, “1” is added to the block number (step S1070), and the process returns to step S600. By doing so, it is possible to perform a thinning process on each block in the encoding table ET as necessary.

図26は、上述した間引き処理の処理内容を示す説明図である。この図では、ステップ数制限値LSが「16」であり、ステップ数SNが「19」(エンコード値EVが0から18)のブロックについて間引き処理を行う例を示している。図26(a)には、代表してブロック番号「4」についてのエンコードテーブルETを示している。 FIG. 26 is an explanatory diagram showing the processing contents of the above-described thinning processing. This figure shows an example in which the thinning process is performed for a block having a step number limit value LS “16” and a step number SN “19” (encoding value EV is 0 to 18). FIG. 26A shows the encoding table ET for the block number “4” as a representative.

間引き処理が開始されると、まずCPU151は、図26(a)に示すように、ステップ数SNとステップ数制限値LSの差分の個数(図26の場合は3個)だけ、大きな階調閾値から1つおきに階調閾値(図26(a)のハッチングを付した部分)を削除する。すると、削除前に0から18までの値を採っていたエンコード値EVは、0から15までの値を採ることになり、ステップ数SNは、「16」に変更されたことになる。大きな階調閾値から階調閾値を間引くものとしたのは、階調値が大きい部分には、多くのインクが吐出されることになるため、その部分でドットの配置パターンの変化数が多少減ったとしても、その影響はあまり目立つことが無く、画質に対する影響が軽微なためである。   When the thinning process is started, the CPU 151 first increases the grayscale threshold by the number of differences between the step number SN and the step number limit value LS (three in the case of FIG. 26), as shown in FIG. Are deleted every other threshold value (the hatched portion in FIG. 26A). Then, the encoded value EV that has taken a value from 0 to 18 before deletion takes a value from 0 to 15, and the step number SN has been changed to “16”. The reason why the gradation threshold value is thinned out from the large gradation threshold value is that a large amount of ink is ejected in a portion where the gradation value is large, and therefore the number of changes in the dot arrangement pattern slightly decreases in that portion. Even if this is the case, the effect is not so noticeable, and the effect on the image quality is negligible.

階調閾値の削除を行うと、次に、CPU151は、削除後に残った階調閾値を調整する処理を行う。具体的には、図26(c)に示すように、削除対象となった階調閾値と、この階調閾値に隣接して残存することとなった階調閾値との平均値を、新たな階調閾値に置き換える。図26では、削除後に残った階調閾値「224」を、この階調閾値と、削除された階調閾値「234」との平均値「229」に置き換えた例を示している。このように、階調閾値を調整すれば、単純に値を間引くよりも、階調閾値の変化の度合いが滑らかになるため、画質の低下を抑制することが可能になる。   When the gradation threshold value is deleted, the CPU 151 next performs a process of adjusting the gradation threshold value remaining after the deletion. Specifically, as shown in FIG. 26 (c), the average value of the gradation threshold value to be deleted and the gradation threshold value that has remained adjacent to the gradation threshold value is calculated as a new value. Replace with the gradation threshold. FIG. 26 shows an example in which the gradation threshold “224” remaining after deletion is replaced with an average value “229” of this gradation threshold and the deleted gradation threshold “234”. In this way, if the gradation threshold value is adjusted, the degree of change in the gradation threshold value becomes smoother than simply thinning out the value, so that it is possible to suppress deterioration in image quality.

ここで説明を図25に戻す。以上のように、エンコードテーブルETの間引きを行うと、各ブロック毎にエンコード値EVの取り得る範囲が変動する。従って、これに併せて、CPU151は、図12に示したプレデコードテーブルDT1についても間引きを行う(ステップS1080)。プレデコードテーブルDT1の間引きは、各ブロックについて、エンコードテーブルET内で削除対象となったエンコード値EVに対応するインデックス値を削除し、残存したインデックス値を左詰めに移動させることで完了する。こうすることで、エンコードテーブルETとプレデコードテーブルDT1とで、各ブロックについて同じエンコード値EVの範囲をとることになる。なお、インデックス値は、ポストデコードテーブルDT2に定義された各ドット数データに固有に割り当てた値であるため、値の調整を行うことはない。   Here, the description returns to FIG. As described above, when the encoding table ET is thinned out, the range that the encoding value EV can take varies for each block. Accordingly, in conjunction with this, the CPU 151 thins out the predecode table DT1 shown in FIG. 12 as well (step S1080). The thinning-out of the predecode table DT1 is completed by deleting the index value corresponding to the encoded value EV to be deleted in the encoding table ET and moving the remaining index value to the left for each block. By doing so, the encoding table ET and the predecoding table DT1 have the same range of encoding values EV for each block. Note that the index value is a value uniquely assigned to each dot number data defined in the post-decoding table DT2, and thus the value is not adjusted.

以上で説明したステップ数削減処理が終了すると、CPU151は、図6に示した初期化処理に従い、ステップS150のデータ量削減処理を実行する。こうすることで、各ブロックのステップ数を削減し、更に、エンコードテーブルETのデータ量を削減することが可能になる。   When the step number reduction process described above is completed, the CPU 151 executes the data amount reduction process of step S150 in accordance with the initialization process shown in FIG. By doing so, it is possible to reduce the number of steps of each block and further reduce the data amount of the encoding table ET.

(F−2)第2変形例:
上記実施例のデータ量削減処理では、図16を用いて説明したように、エンコードテーブルETの中から最大ステップ数を求め、この最大ステップ数に応じて必要な領域を2次元テーブルとしてRAM152に確保するものとした。従って、データ量の削減によって生成された圧縮エンコードテーブルETCは、図17に示したように、最大ステップ数に該当するブロックについては、過不足無く階調閾値が記録されているが(図17の例では、ブロック番号4)、他のブロックについては、依然として、「0」となる階調閾値が残存している。そこで、本変形例では、このような階調閾値についてもデータ量を削減する処理を行う。
(F-2) Second modification:
In the data amount reduction processing of the above embodiment, as described with reference to FIG. 16, the maximum number of steps is obtained from the encoding table ET, and a necessary area is secured in the RAM 152 as a two-dimensional table according to the maximum number of steps. To do. Therefore, in the compression encoding table ETC generated by reducing the data amount, as shown in FIG. 17, the gradation threshold value is recorded for the block corresponding to the maximum number of steps without excess or deficiency (FIG. 17). In the example, block number 4), the gradation threshold value of “0” still remains for the other blocks. Therefore, in this modification, processing for reducing the data amount is performed for such a gradation threshold.

図27は、後述する本変形例のテーブル生成処理において作成される圧縮エンコードテーブルETC2の一例を示す説明図である。この圧縮エンコードテーブルETC2は、図示するように、一意のアドレスに対して、ブロック番号とエンコード値と階調閾値とが対応付けられている。この圧縮エンコードテーブルETC2は、図10に示したエンコードテーブルETから、エンコード値が1以上の要素に存在する階調閾値が「0」の部分を取り除き、残存した階調閾値を、そのブロック番号とエンコード値と共に、連続した一意のアドレスに連続的に対応付けたものとなる。このような圧縮エンコードテーブルETC2を作成すれば、図17に示した実施例における圧縮エンコードテーブルETCよりも、更にデータ量を削減することができる。   FIG. 27 is an explanatory diagram showing an example of the compression encoding table ETC2 created in the table generation processing of the present modification described later. In the compression encoding table ETC2, as shown in the figure, a block number, an encoding value, and a gradation threshold are associated with a unique address. This compression encoding table ETC2 removes the portion of the gradation threshold value “0” existing in the element having an encoded value of 1 or more from the encoding table ET shown in FIG. 10, and uses the remaining gradation threshold value as its block number. Along with the encoding value, it is continuously associated with consecutive unique addresses. If such a compression encoding table ETC2 is created, the data amount can be further reduced as compared with the compression encoding table ETC in the embodiment shown in FIG.

なお、本変形例では、図27の圧縮エンコードテーブルETC2を参照する際に、任意のブロックについてアクセスが容易となるように、各ブロックの先頭アドレスを別テーブルとして用意する。図28には、このようなアドレステーブルATを示した。図示するように、このアドレステーブルATには、各ブロックのブロック番号に対応付けて、そのブロックの先頭アドレスが記録されている。このアドレステーブルATを参照すれば、上述したエンコード処理において、容易に目的のブロックの階調閾値を取得することができる。   In this modification, when referring to the compression encoding table ETC2 of FIG. 27, the head address of each block is prepared as a separate table so that an arbitrary block can be easily accessed. FIG. 28 shows such an address table AT. As shown in the figure, in this address table AT, the head address of the block is recorded in association with the block number of each block. By referring to this address table AT, the gradation threshold value of the target block can be easily obtained in the above-described encoding process.

図29は、図27に示した本変形例の圧縮エンコードテーブルETCと、図28に示したアドレステーブルATを生成するためのテーブル作成処理のフローチャートである。このテーブル作成処理の大部分は、図13に示した実施例におけるテーブル生成処理の処理内容と同じであるため、異なる部分について以下に説明する。図29に示した本変形例のテーブル生成処理において、図13と異なる処理内容については、ステップ番号の末尾に「b」と付している。   FIG. 29 is a flowchart of the table creation process for generating the compression encoding table ETC of the present modification shown in FIG. 27 and the address table AT shown in FIG. Since most of the table creation processing is the same as the processing content of the table generation processing in the embodiment shown in FIG. 13, different portions will be described below. In the table generation process of the present modification shown in FIG. 29, processing contents different from those in FIG. 13 are indicated by “b” at the end of the step number.

このテーブル作成処理が実行されると、まず、CPU151は、RAM152内に、全ての要素を「0」とした圧縮エンコードテーブルETC2と、プレデコードテーブルDT1を用意する(ステップS200b)。かかる処理によって用意する圧縮エンコードテーブルETC2の容量は、全てのブロックについてエンコード値が「0」から「31」まで8ビットの階調閾値を記録可能な最大限の容量とする。   When this table creation processing is executed, first, the CPU 151 prepares a compression encoding table ETC2 in which all elements are “0” and a predecoding table DT1 in the RAM 152 (step S200b). The capacity of the compression encoding table ETC2 prepared by such processing is set to a maximum capacity that can record an 8-bit gradation threshold value with encoding values “0” to “31” for all blocks.

圧縮エンコードテーブルETC2とプレデコードテーブルDT1とを用意すると、CPU151は、現在の処理対象とするブロック番号Nを「0」とするとともに、アドレスカウンタCを「0」とする(ステップS210b)。このアドレスカウンタCは、図28に示したアドレステーブルATに対して、各ブロックの先頭アドレスを記録するために用いるカウンタである。   When the compression encoding table ETC2 and the predecode table DT1 are prepared, the CPU 151 sets the block number N to be processed at present to “0” and sets the address counter C to “0” (step S210b). This address counter C is a counter used for recording the head address of each block in the address table AT shown in FIG.

続いて、CPU151は、アドレステーブルの現在のブロック(すなわち、ブロック番号0)に対応する先頭アドレスとして、現在のアドレスカウンタCの値をセットする(ステップS215b)。こうすることで、ブロック番号が「0」のブロックについては、その先頭アドレスは、アドレス「0」に設定される。   Subsequently, the CPU 151 sets the value of the current address counter C as the head address corresponding to the current block (that is, block number 0) in the address table (step S215b). By doing so, the head address of the block having the block number “0” is set to the address “0”.

以下、ステップS220からステップS260までの処理は、図13に示した処理と同一の処理である。すなわち、以降の処理で用いられる変数として、エンコード値EVを「0」とし、現在のブロック内に発生する各サイズ(Sドット,Mドット,Lドット)のドット数をそれぞれ「0」とする(ステップS220)。そして、現在の入力階調値TDを「0」とする(ステップS230)。更に、CPU151は、現在の入力階調値TDに基づき、現在のブロック内に発生するドット数を決定するドット数カウント処理を行い(ステップS240)、各サイズのドット数のいずれかが変化すれば(ステップS250)、現在のブロック番号Nおよびエンコード値EVに対応する各サイズのドット数を、上記ステップS240でカウントされた値に更新する(ステップS260)。   Hereinafter, the process from step S220 to step S260 is the same process as the process shown in FIG. That is, as a variable used in the subsequent processing, the encode value EV is set to “0”, and the number of dots of each size (S dot, M dot, L dot) generated in the current block is set to “0” ( Step S220). Then, the current input gradation value TD is set to “0” (step S230). Further, the CPU 151 performs a dot number count process for determining the number of dots generated in the current block based on the current input gradation value TD (step S240), and if any of the dot numbers of each size changes. (Step S250), the number of dots of each size corresponding to the current block number N and encoded value EV is updated to the value counted in Step S240 (Step S260).

上記実施例では、この後、エンコードテーブルETの現在のブロック番号Nおよびエンコード値EVに対応する要素に、階調閾値として、現在の入力階調値TDをセットするものとして。これに対して、本変形例では、圧縮エンコードテーブルETC2のアドレスCに、階調閾値として現在の入力階調値TDをセットするとともに、現在のブロック番号Nとエンコード値EVとをセットする(ステップS270b)。そして、実施例と同じく、プレデコードテーブルDT1にインデックス値をセットする(ステップS280)。インデックス値をプレデコードテーブルDT1にセットすると、CPU151は、実施例と同じく、現在のエンコード値EVをインクリメントするが、このとき、本変形例では、同時に、アドレスカウンタCについてもインクリメントする(ステップS290b)。   In the above embodiment, thereafter, the current input gradation value TD is set as the gradation threshold value in the element corresponding to the current block number N and the encoding value EV of the encoding table ET. On the other hand, in the present modification, the current input gradation value TD is set as a gradation threshold value at the address C of the compression encoding table ETC2, and the current block number N and the encoding value EV are set (step). S270b). Then, as in the embodiment, an index value is set in the predecode table DT1 (step S280). When the index value is set in the predecode table DT1, the CPU 151 increments the current encoded value EV as in the embodiment. At this time, in this modified example, the address counter C is also incremented simultaneously (step S290b). .

以下、ステップS300からステップS340までの処理は、実施例と同じ処理内容のため説明を省略する。以上の処理により、アドレスカウンタCが1つずつインクリメントされながら、各アドレスに、ブロック番号とエンコード値と階調閾値とが対応付けて記録されることになる。最後に、CPU151は、予め最大限の容量を確保しておいた圧縮エンコードテーブルETC2から、ブロック番号、エンコード値、階調閾値がすべて「0」のまま残存している領域を削除する。こうすることで、図27に示した本変形例の圧縮エンコードテーブルETC2が生成されることになる。なお、本変形例では、図6に示した初期化処理のステップS150におけるデータ量削減処理は実行しない。上述した本変形例のテーブル作成処理によって、データ量の削減が同時に行われるからである。   Hereinafter, the processing from step S300 to step S340 is the same as that of the embodiment, and the description thereof will be omitted. With the above processing, the block number, the encoded value, and the gradation threshold value are recorded in association with each address while the address counter C is incremented by one. Finally, the CPU 151 deletes an area in which the block number, the encoded value, and the gradation threshold value all remain “0” from the compression encoding table ETC2 in which the maximum capacity is secured in advance. By doing so, the compression encoding table ETC2 of the present modification shown in FIG. 27 is generated. In this modification, the data amount reduction process in step S150 of the initialization process shown in FIG. 6 is not executed. This is because the amount of data is reduced at the same time by the table creation processing of the present modification described above.

以上で説明した第2変形例によれば、実質的に階調値が対応付けられていないエンコードテーブルET内の要素をすべて削除することができるため、実施例において生成した圧縮エンコードテーブルETCよりもさらにデータ容量の少ない圧縮エンコードテーブルETC2を生成することが可能になる。なお、本変形例では、各ブロックの先頭アドレスを示すアドレステーブルATを生成するものとしたが、それ以外にも、例えば、各ラスタの先頭位置に対応するアドレスが分かるテーブルや、SRAM156への読み出し単位の先頭アドレスが分かるテーブル、前回の読み出しが終了したアドレスの位置を示すポインタなどを管理することで、圧縮エンコードテーブルETC2から必要なデータを容易に読み込むが可能になる。   According to the second modification described above, all elements in the encoding table ET that are not substantially associated with gradation values can be deleted. Therefore, compared with the compression encoding table ETC generated in the embodiment. Furthermore, it is possible to generate the compression encoding table ETC2 having a small data capacity. In this modification, the address table AT indicating the head address of each block is generated. However, other than this, for example, a table in which the address corresponding to the head position of each raster is known, or reading to the SRAM 156 is performed. By managing a table in which the head address of the unit is known, a pointer indicating the position of the address at which the previous reading is completed, necessary data can be easily read from the compression encoding table ETC2.

(F−3)第3変形例:
上記実施例では、エンコードテーブルETについてデータ容量を削減するものとした。これに対して、図16に示したデータ量削減処理と同じ内容の処理を、図12に示したプレデコードテーブルDT1について実行することで、エンコードテーブルETだけではなく、プレデコードテーブルについても同様にデータ容量を削減することが可能である。また、上記第2変形例で図27に示した圧縮エンコードテーブルETC2のデータ形式も、プレデコードテーブルDT1のデータ形式に適用することが可能である。
(F-3) Third modification:
In the above embodiment, the data capacity of the encoding table ET is reduced. On the other hand, by executing the same process as the data amount reduction process shown in FIG. 16 for the predecode table DT1 shown in FIG. 12, not only for the encode table ET but also for the predecode table. It is possible to reduce the data capacity. In addition, the data format of the compression encoding table ETC2 shown in FIG. 27 in the second modification can also be applied to the data format of the predecode table DT1.

(F−4)第4変形例:
上記実施例では、デコード処理時に、プレデコードテーブルDT1と、ポストデコードテーブルDT2と、順序値テーブルSTの3つのテーブルを参照することで、エンコード値EVからドット配置データを生成するものとした。しかし、これらのテーブルを1つに統合することで、エンコード値EVを直接ドット配置データに変換することも可能である。
(F-4) Fourth modification:
In the above-described embodiment, the dot arrangement data is generated from the encoded value EV by referring to the three tables of the predecode table DT1, the postdecode table DT2, and the order value table ST during the decoding process. However, it is also possible to directly convert the encoded value EV into dot arrangement data by integrating these tables into one.

図30は、エンコード値EVとブロック番号から、直接、ドット配置データを取得することのできるテーブル(以下、「ダイレクトデコードテーブルDDT」という)の一例を示す説明図である。このダイレクトデコードテーブルDDTには、エンコード値EVとブロック番号とに対応付けて、図4に示したドット配置データがそれぞれ記憶されている。このダイレクトデコードテーブルDDTの各要素に記憶されているドット配置データは、プレデコードテーブルDT1内に記憶されたインデックス値を、ポストデコードテーブルDT2と順序値テーブルSTに基づき、すべてドット配置データに変換したデータに他ならない。つまり、上記実施例によってプレデコードテーブルDT1を作成した後、このプレデコードテーブルDT1内のすべてのインデックス値について、図22のデコード処理を行えば、図30に示したダイレクトデコードテーブルDDTを生成することができる。このように、予めダイレクトデコードテーブルDDTを生成するものとすれば、1つのテーブルを参照するだけで、デコード処理が完了するため、より高速にハーフトーン処理を行うことが可能になる。   FIG. 30 is an explanatory diagram showing an example of a table (hereinafter referred to as “direct decode table DDT”) from which dot arrangement data can be obtained directly from the encoding value EV and the block number. In the direct decode table DDT, the dot arrangement data shown in FIG. 4 is stored in association with the encode value EV and the block number. The dot arrangement data stored in each element of the direct decode table DDT are all converted into dot arrangement data based on the index values stored in the predecode table DT1 based on the post decode table DT2 and the sequence value table ST. It is nothing but data. That is, after the predecode table DT1 is created according to the above embodiment, the direct decode table DDT shown in FIG. 30 is generated by performing the decode process of FIG. 22 for all index values in the predecode table DT1. Can do. As described above, if the direct decoding table DDT is generated in advance, the decoding process is completed by referring to only one table, so that the halftone process can be performed at a higher speed.

(F−5)第5変形例:
上記実施例では、プリンタ100は、複合機タイプであるものとし、単体で、画像データの入力からハーフトーン処理、インクの吐出制御まで行うものとした。これに対して、プリンタ100にコンピュータを接続し、コンピュータにおいて、画像データの入力と、ハーフトーン処理の一部、すなわち、エンコード処理までを実行するものとしてもよい。このような構成では、コンピュータに所定のプログラムをインストールすることで、実施例に記載した初期化処理やハーフトーン処理を実現することができる。プリンタ100は、コンピュータからプリンタケーブル等を経由してエンコード値EVを受信すると、そのエンコード値EVに応じてデコード処理を行い、印刷機構を制御して、印刷用紙への印刷を行う。
(F-5) Fifth modification:
In the above-described embodiment, the printer 100 is assumed to be of a multifunction machine type, and performs a single operation from input of image data to halftone processing and ink ejection control. On the other hand, a computer may be connected to the printer 100, and the computer may execute input of image data and a part of halftone processing, that is, encoding processing. In such a configuration, the initialization process and the halftone process described in the embodiments can be realized by installing a predetermined program in the computer. When the printer 100 receives the encoded value EV from the computer via a printer cable or the like, the printer 100 performs a decoding process according to the encoded value EV, controls the printing mechanism, and performs printing on the printing paper.

このように、コンピュータでエンコード処理までを実行するものとすれば、C,M,Y,Kの各色毎に、8ビット(255階調)のデータサイズを有する画像データが、5ビットのエンコード値EVに変換されるため、コンピュータとプリンタ100間の通信量を削減することができる。この結果、全体として印刷速度を向上させることが可能になる。   As described above, when the encoding process is executed by the computer, image data having a data size of 8 bits (255 gradations) for each color of C, M, Y, and K is encoded with 5 bits. Since it is converted into EV, the amount of communication between the computer and the printer 100 can be reduced. As a result, the printing speed can be improved as a whole.

また、データの通信速度よりも、プリンタ100内における処理速度が問題となるような場合にあっては、エンコード処理だけではなくデコード処理もコンピュータで行わせるものとすることができる。こうすることにより、プリンタ100の処理負担を軽減させることができるので、全体として印刷速度を向上させることが可能になる。また、このように、コンピュータで、エンコード処理とデコード処理の両者を実行するものとすれば、ハーフトーン処理に要するハードウェアが不要となるため、プリンタ100の製造コストを削減することが可能になる。   Further, when the processing speed in the printer 100 is more problematic than the data communication speed, not only the encoding process but also the decoding process can be performed by a computer. In this way, the processing load on the printer 100 can be reduced, and the overall printing speed can be improved. In addition, if the computer executes both the encoding process and the decoding process in this way, the hardware required for the halftone process becomes unnecessary, and thus the manufacturing cost of the printer 100 can be reduced. .

本発明の実施例としてのプリンタ100を示す説明図である。1 is an explanatory diagram illustrating a printer 100 as an embodiment of the present invention. FIG. プリンタ100の内部構成を示す説明図である。2 is an explanatory diagram illustrating an internal configuration of a printer 100. FIG. 画像処理ASIC155の詳細な構成を示す説明図である。It is explanatory drawing which shows the detailed structure of the image processing ASIC155. ドット配置データの一例を示す説明図である。It is explanatory drawing which shows an example of dot arrangement data. 印刷処理のフローチャートである。It is a flowchart of a printing process. 初期化処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of an initialization process. ディザマトリックスデータDMのデータ構造および順序値テーブルSTの生成方法を示す説明図である。It is explanatory drawing which shows the data structure of the dither matrix data DM, and the production | generation method of the order value table ST. ポストデコードテーブルDT2の一例を示す説明図である。It is explanatory drawing which shows an example of postdecoding table DT2. ドット発生量テーブルDGTの一例を示す説明図である。It is explanatory drawing which shows an example of the dot generation amount table DGT. エンコードテーブルETのデータ構造を示す説明図である。It is explanatory drawing which shows the data structure of the encoding table ET. エンコード値EVの変化の例を模式的に示す説明図である。It is explanatory drawing which shows the example of a change of the encoding value EV typically. プレデコードテーブルDT1のデータ構造を示す説明図である。It is explanatory drawing which shows the data structure of predecode table DT1. テーブル生成処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a table production | generation process. ドット数カウント処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a dot number count process. ドット数カウント処理の具体例を示す説明図である。It is explanatory drawing which shows the specific example of a dot number count process. データ量削減処理のフローチャートである。It is a flowchart of a data amount reduction process. 圧縮エンコードテーブルETCの一例を示す説明図である。It is explanatory drawing which shows an example of the compression encoding table ETC. ハーフトーン処理のフローチャートである。It is a flowchart of a halftone process. エンコード処理の詳細を表すフローチャートである。It is a flowchart showing the detail of an encoding process. ブロック番号の計算方法の概念を示す説明である。It is description which shows the concept of the calculation method of a block number. ブロック番号の他の計算方法の概念を示す説明図である。It is explanatory drawing which shows the concept of the other calculation method of a block number. デコード処理の詳細なフローチャートである。It is a detailed flowchart of a decoding process. ドット配置処理の詳細なフローチャートである。It is a detailed flowchart of a dot arrangement process. ドットの配置工程を模式的に示す説明図である。It is explanatory drawing which shows the arrangement | positioning process of a dot typically. 第1変形例におけるステップ数削減処理のフローチャートである。It is a flowchart of the step number reduction process in a 1st modification. 第1変形例における間引き処理の処理内容を示す説明図である。It is explanatory drawing which shows the processing content of the thinning process in a 1st modification. 第2変形例における圧縮エンコードテーブルETC2の一例を示す説明図である。It is explanatory drawing which shows an example of the compression encoding table ETC2 in a 2nd modification. 第2変形例におけるアドレステーブルATの一例を示す説明図である。It is explanatory drawing which shows an example of address table AT in a 2nd modification. 第2変形例におけるテーブル作成処理のフローチャートである。It is a flowchart of the table creation process in a 2nd modification. ダイレクトデコードテーブルDDTの一例を示す説明図である。It is explanatory drawing which shows an example of the direct decoding table DDT.

符号の説明Explanation of symbols

100…プリンタ
110…スキャナ
120…メモリカードスロット
140…操作パネル
145…液晶モニタ
150…制御ユニット
151…CPU
152…RAM
153…ROM
156…SRAM
210…キャリッジ
211…インクヘッド
212…インクカートリッジ
220…キャリッジモータ
230…モータ
260…駆動ベルト
270…プラテン
280…摺動軸
300…色変換ユニット
400…ハーフトーン処理ユニット
410…エンコードユニット
420…デコードユニット
500…インク吐出制御ユニット
BF…中間バッファ
DM…ディザマトリックスデータ
DGT…ドット発生量テーブル
AT…アドレステーブル
LUT…色変換テーブル
ET…エンコードテーブル
ETC…圧縮エンコードテーブル
DT1…プレデコードテーブル
DT2…ポストデコードテーブル
ST…順序値テーブル
DDT…ダイレクトデコードテーブル
DESCRIPTION OF SYMBOLS 100 ... Printer 110 ... Scanner 120 ... Memory card slot 140 ... Operation panel 145 ... Liquid crystal monitor 150 ... Control unit 151 ... CPU
152 ... RAM
153 ... ROM
156 ... SRAM
210 ... carriage 211 ... ink head 212 ... ink cartridge 220 ... carriage motor 230 ... motor 260 ... drive belt 270 ... platen 280 ... sliding shaft 300 ... color conversion unit 400 ... halftone processing unit 410 ... encoding unit 420 ... decoding unit 500 ... Ink ejection control unit BF ... Intermediate buffer DM ... Dither matrix data DGT ... Dot generation amount table AT ... Address table LUT ... Color conversion table ET ... Encoding table ETC ... Compression encoding table DT1 ... Predecoding table DT2 ... Post decoding table ST ... Order value table DDT ... Direct decode table

Claims (21)

画像データの階調値に応じてドットの発生の有無を決定するための閾値が記録されたディザマトリックスに基づいて、画像データの印刷時に印刷媒体上に形成するドットの配置を決定する画像処理装置であって、
前記ディザマトリックスを、所定個数の閾値のまとまりからなるブロックに分割し、該各ブロックに固有に割り当てたブロック識別子毎に、前記階調値を、当該階調値が取り得る範囲において前記閾値と順次比較して得られた前記ブロック内のドットの配置を表す各エンコード値に、該各エンコード値を生じる前記階調値を対応付けて記録したエンコードテーブルを記憶するエンコードテーブル記憶手段と、
前記画像データを入力する画像データ入力手段と、
前記入力した画像データを構成する各画素の位置と前記ディザマトリックス内に存在する各ブロックの位置とに基づき、該各画素に対応する前記ブロック識別子を弁別し、該ブロック識別子と前記各画素の階調値とに基づき前記エンコードテーブルを参照して、該各画素の階調値に対応する前記エンコード値を求めるエンコード手段と、
前記エンコード手段によって求めたエンコード値と、前記弁別されたブロック識別子とに応じて、前記各画素の位置に対応するブロック内に発生するドットの配置を決定するデコード手段とを備え、
前記エンコードテーブル記憶手段は、前記各エンコード値を所定のビット数で表しており、前記エンコードテーブルを、該ビット数で表現可能な最大のエンコード値未満のエンコード値と前記ブロックの数との積に応じたデータ容量以下の容量で記憶している
画像処理装置。
An image processing apparatus that determines the arrangement of dots to be formed on a printing medium when printing image data based on a dither matrix in which a threshold value for determining whether or not to generate dots is recorded according to the gradation value of the image data Because
The dither matrix is divided into blocks each composed of a predetermined number of threshold values, and the gradation values are sequentially set to the threshold values in a range that the gradation values can take for each block identifier uniquely assigned to each block. Encoding table storage means for storing an encoding table in which each gradation value that generates each encoding value is recorded in association with each encoding value representing the arrangement of dots in the block obtained by comparison;
Image data input means for inputting the image data;
Based on the position of each pixel constituting the input image data and the position of each block existing in the dither matrix, the block identifier corresponding to each pixel is discriminated, and the block identifier and the level of each pixel are distinguished. Encoding means for obtaining the encoding value corresponding to the gradation value of each pixel by referring to the encoding table based on the tone value;
Decoding means for determining the arrangement of dots generated in the block corresponding to the position of each pixel according to the encoded value obtained by the encoding means and the discriminated block identifier;
The encoding table storage means represents each encoding value with a predetermined number of bits, and the encoding table is a product of an encoding value less than the maximum encoding value that can be expressed with the number of bits and the number of blocks. An image processing device that stores data with a capacity less than the corresponding data capacity.
請求項1に記載の画像処理装置であって、
前記エンコードテーブル記憶手段は、前記エンコードテーブルを、前記階調値が記録される複数の要素の集合として記憶しており、前記ビット数で表現可能な前記エンコード値の最大値まで前記いずれのブロックについても前記階調値が実質的に記録されていない場合に、該エンコードテーブル内の、前記階調値が実質的に記録されていない要素の少なくとも一部を予め削除することにより、前記エンコードテーブルを記憶している
画像処理装置。
The image processing apparatus according to claim 1,
The encoding table storage means stores the encoding table as a set of a plurality of elements in which the gradation value is recorded, and for any block up to the maximum value of the encoding value that can be expressed by the number of bits. In the case where the gradation value is not substantially recorded, at least a part of the element in which the gradation value is not substantially recorded in the encoding table is deleted in advance. Stored image processing device.
請求項2に記載の画像処理装置であって、
前記エンコードテーブル記憶手段は、前記各ブロック識別子が表すブロックの中で、最も多くの階調値が対応付けられたブロックについての前記階調値が実質的に対応付けられていない要素とともに、該要素に対応する他のブロックの要素を前記エンコードテーブルから予め削除して、該エンコードテーブルを記憶している
画像処理装置。
The image processing apparatus according to claim 2,
The encoding table storage means includes, in addition to the elements that are not substantially associated with the gradation values for the block that is associated with the largest number of gradation values among the blocks represented by the block identifiers, An image processing apparatus in which elements of other blocks corresponding to are previously deleted from the encoding table and the encoding table is stored.
請求項2に記載の画像処理装置であって、
前記エンコードテーブル記憶手段は、前記階調値が実質的に対応付けられていない要素の全てを前記エンコードテーブルから予め削除して、該エンコードテーブルを記憶している
画像処理装置。
The image processing apparatus according to claim 2,
The image processing apparatus, wherein the encoding table storage unit deletes all elements that are not substantially associated with the gradation value from the encoding table in advance and stores the encoding table.
請求項4に記載の画像処理装置であって、
前記エンコードテーブル記憶手段は、前記階調値が実質的に対応付けられていない前記要素の全てが削除された前記エンコードテーブルを、連続したアドレス空間に前記ブロック識別子と前記エンコード値と前記階調値とを対応付けた形式で記憶している
画像処理装置。
The image processing apparatus according to claim 4,
The encoding table storage means stores the block identifier, the encoded value, and the gradation value in a continuous address space with the encoding table from which all of the elements not substantially associated with the gradation value are deleted. Is stored in a format in which these are associated with each other.
請求項5に記載の画像処理装置であって、
前記エンコードテーブル記憶手段は、前記アドレス空間において、前記各ブロック識別士に対応するアドレスを示すアドレステーブルを別途記憶している
画像処理装置。
The image processing apparatus according to claim 5,
The image processing apparatus, wherein the encoding table storage unit separately stores an address table indicating an address corresponding to each block identifier in the address space.
請求項2ないし請求項6のいずれかに記載の画像処理装置であって、
前記エンコード値は、前記各ブロックについて、前記階調値を最小値から最大値まで増加していった時に該各ブロック内の前記閾値に応じて前記ドットの配置が変化する変化数に応じて設定されている
画像処理装置。
An image processing apparatus according to any one of claims 2 to 6,
The encoding value is set according to the number of changes in the arrangement of the dots according to the threshold value in each block when the gradation value is increased from the minimum value to the maximum value for each block. An image processing device.
請求項7に記載の画像処理装置であって、
前記エンコード値が取り得る範囲の上限を予め制限する制限値を記憶する制限値記憶手段を備え、
前記エンコードテーブル記憶手段は、前記変化数が、前記制限値を超えるブロックについて、前記エンコード値の範囲を該制限値に応じて予め削減して、前記エンコードテーブルを記憶している
画像処理装置。
The image processing apparatus according to claim 7,
Limit value storage means for storing a limit value that limits in advance the upper limit of the range that the encoded value can take,
The image processing apparatus, wherein the encoding table storage unit stores the encoding table by reducing a range of the encoding value in advance according to the limit value for a block whose change number exceeds the limit value.
請求項8に記載の画像処理装置であって、
前記エンコードテーブル記憶手段は、前記変化数が、前記制限値を超えるブロックについて、前記制限値と該ブロックのエンコード値の最大値の差分の個数だけ、最も濃い階調値側のエンコード値から、該エンコード値および該エンコード値に対応付けられた前記階調値を間引くことにより前記削減を行う
画像処理装置。
The image processing apparatus according to claim 8,
The encoding table storage means, for the block whose change number exceeds the limit value, from the encoded value on the darkest gradation value side by the number of differences between the limit value and the maximum value of the encoded value of the block, An image processing apparatus that performs the reduction by thinning out an encoded value and the gradation value associated with the encoded value.
請求項9に記載の画像処理装置であって、
前記エンコードテーブル記憶手段は、前記間引きによって残存した階調値の調整を行う
画像処理装置。
The image processing apparatus according to claim 9,
The image processing apparatus, wherein the encoding table storage unit adjusts a gradation value remaining after the thinning.
請求項10に記載の画像処理装置であって、
前記エンコードテーブル記憶手段は、前記間引きによって削除された前記階調値と、該削除前に該階調値に隣接しており、該間引きによって残存した階調値との平均値を、前記残存した階調値の値に置き換えることで前記調整を行う
画像処理装置。
The image processing apparatus according to claim 10,
The encoding table storage means stores the average value of the gradation value deleted by the thinning and the gradation value adjacent to the gradation value before the deletion and remaining by the thinning. An image processing apparatus that performs the adjustment by replacing with a gradation value.
請求項2ないし請求項11のいずれかに記載の画像処理装置であって、
前記エンコード手段は、前記画像データを構成する画素をライン毎に入力し、該ライン内の画素に対応する前記ブロック識別子の範囲を前記エンコードテーブルから部分的に入力して一時的に記憶する一時記憶手段を備え、
前記エンコード手段は、前記一時記憶手段に保持された部分的なエンコードテーブルを用いて前記エンコード値を求める
画像処理装置。
An image processing apparatus according to any one of claims 2 to 11,
The encoding means inputs the pixels constituting the image data for each line, and temporarily stores the block identifier range corresponding to the pixels in the line by partially inputting from the encoding table With means,
The image processing apparatus, wherein the encoding means obtains the encoded value using a partial encoding table held in the temporary storage means.
請求項12に記載の画像処理装置であって、
前記エンコード手段は、前記エンコードテーブル内の前記削除された要素を回復させて前記部分的なエンコードテーブルを前記一時記憶手段に入力する
画像処理装置。
The image processing apparatus according to claim 12,
The image processing apparatus, wherein the encoding unit recovers the deleted element in the encoding table and inputs the partial encoding table to the temporary storage unit.
請求項12に記載の画像処理装置であって、
前記エンコード手段は、前記エンコードテーブル内の前記削除された要素を回復することなく前記部分的なエンコードテーブルを前記一時記憶手段に入力する
画像処理装置。
The image processing apparatus according to claim 12,
The image processing apparatus, wherein the encoding unit inputs the partial encoding table to the temporary storage unit without recovering the deleted element in the encoding table.
請求項1ないし請求項14のいずれかに記載の画像処理装置であって、
更に、前記ブロック識別子毎に、前記各エンコード値に対して、該エンコード値に応じて該ブロック内に発生する前記ドットの配置を対応付けて記録したデコードテーブルを記憶するデコードテーブル記憶手段を備え、
前記デコード手段は、前記デコードテーブルを参照して、前記エンコード手段によって求めたエンコード値と前記弁別されたブロック識別子とに基づき、前記ドットの配置を決定する
画像処理装置。
The image processing apparatus according to any one of claims 1 to 14,
Furthermore, for each of the block identifiers, a decoding table storage means for storing a decoding table in which the arrangement of the dots generated in the block according to the encoding value is recorded in association with the encoding value.
The image processing apparatus, wherein the decoding unit determines the dot arrangement based on the encoded value obtained by the encoding unit and the discriminated block identifier with reference to the decoding table.
請求項15に記載の画像処理装置であって、
前記デコードテーブルは、
前記ブロック識別子毎に、前記エンコード値と、該ブロック内に発生するドットの数を表すインデックス値との対応関係を表すプレデコードテーブルと、
前記インデックス値と、前記ブロック内に発生するドットの数との対応関係を表すポストデコードテーブルと、
前記ドットの数と、前記ブロック内に発生させるドットの位置および順序との対応関係を表す順序値テーブルとからなり、
前記デコード手段は、前記プレデコードテーブルと前記ポストデコードテーブルと前記順序値テーブルとを順次参照することにより、前記エンコード値と前記ブロック識別子とに応じて、前記ドットの配置を決定する
画像処理装置。
The image processing apparatus according to claim 15, wherein
The decoding table is
For each block identifier, a predecode table representing a correspondence relationship between the encoded value and an index value representing the number of dots generated in the block;
A post-decoding table representing the correspondence between the index value and the number of dots generated in the block;
An order value table representing the correspondence between the number of dots and the position and order of dots generated in the block;
The image processing apparatus, wherein the decoding unit determines the dot arrangement according to the encoded value and the block identifier by sequentially referring to the predecode table, the postdecode table, and the order value table.
請求項16に記載の画像処理装置であって、
前記デコードテーブル記憶手段は、前記各エンコード値を所定のビット数で表しており、前記プレデコードテーブルを、該ビット数で表現可能な最大のエンコード値未満のエンコード値と前記ブロックの数との積に応じたデータ容量以下の容量で記憶している
画像処理装置。
The image processing apparatus according to claim 16,
The decoding table storage means represents each encoded value with a predetermined number of bits, and the predecoding table is a product of an encoded value less than the maximum encoded value that can be expressed with the number of bits and the number of blocks. An image processing device that stores data with a capacity equal to or less than the data capacity.
画像データの階調値に応じてドットの発生の有無を決定するための閾値が記録されたディザマトリックスに基づいて、画像データの印刷時に印刷媒体上に形成するドットの配置を決定する画像処理方法であって、
前記ディザマトリックスを、所定個数の閾値のまとまりからなるブロックに分割し、該各ブロックに固有に割り当てたブロック識別子毎に、前記階調値を、当該階調値が取り得る範囲において前記閾値と順次比較して得られた前記ブロック内のドットの配置を表す各エンコード値に、該各エンコード値を生じる前記階調値を対応付けて記録したエンコードテーブルを記憶するエンコードテーブル記憶工程と、
前記画像データを入力する画像データ入力工程と、
前記入力した画像データを構成する各画素の位置と前記ディザマトリックス内に存在する各ブロックの位置とに基づき、該各画素に対応する前記ブロック識別子を弁別し、該ブロック識別子と前記各画素の階調値とに基づき前記エンコードテーブルを参照して、該各画素の階調値に対応する前記エンコード値を求めるエンコード工程と、
前記エンコード手段によって求めたエンコード値と、前記弁別されたブロック識別子とに応じて、前記各画素の位置に対応するブロック内に発生するドットの配置を決定するデコード工程とを有しており、
前記エンコードテーブル記憶工程は、前記各エンコード値を所定のビット数で表しており、前記エンコードテーブルを、該ビット数で表現可能な最大のエンコード値未満のエンコード値と前記ブロックの数との積に応じたデータ容量以下の容量で記憶する
画像処理方法。
An image processing method for determining an arrangement of dots to be formed on a print medium when printing image data based on a dither matrix in which a threshold value for determining whether or not to generate dots is recorded according to a gradation value of image data Because
The dither matrix is divided into blocks each composed of a predetermined number of threshold values, and the gradation values are sequentially set to the threshold values in a range that the gradation values can take for each block identifier uniquely assigned to each block. An encoding table storage step of storing an encoding table in which each gradation value that generates each encoding value is recorded in association with each encoding value representing the arrangement of dots in the block obtained by comparison;
An image data input step for inputting the image data;
Based on the position of each pixel constituting the input image data and the position of each block existing in the dither matrix, the block identifier corresponding to each pixel is discriminated, and the block identifier and the level of each pixel are distinguished. An encoding step of referring to the encoding table based on a tone value and obtaining the encoding value corresponding to a gradation value of each pixel;
A decoding step of determining the arrangement of dots generated in the block corresponding to the position of each pixel according to the encoded value obtained by the encoding means and the distinguished block identifier;
In the encoding table storing step, each encoding value is expressed by a predetermined number of bits, and the encoding table is calculated by multiplying an encoding value less than a maximum encoding value that can be expressed by the number of bits by the number of blocks. An image processing method for storing data with a capacity less than the corresponding data capacity.
画像データの階調値に応じてドットの発生の有無を決定するための閾値が記録されたディザマトリックスに基づいて、印刷媒体上に形成するドットの配置を決定して印刷を行う印刷装置であって、
前記ディザマトリックスを、所定個数の閾値のまとまりからなるブロックに分割し、該各ブロックに固有に割り当てたブロック識別子毎に、前記階調値を、当該階調値が取り得る範囲において前記閾値と順次比較して得られた前記ブロック内のドットの配置を表す各エンコード値に、該各エンコード値を生じる前記階調値を対応付けて記録したエンコードテーブルを記憶するエンコードテーブル記憶手段と、
前記画像データを入力する画像データ入力手段と、
前記入力した画像データを構成する各画素の位置と前記ディザマトリックス内に存在する各ブロックの位置とに基づき、該各画素に対応する前記ブロック識別子を弁別し、該ブロック識別子と前記各画素の階調値とに基づき前記エンコードテーブルを参照して、該各画素の階調値に対応する前記エンコード値を求めるエンコード手段と、
前記エンコード手段によって求めたエンコード値と、前記弁別されたブロック識別子とに応じて、前記各画素の位置に対応するブロック内に発生するドットの配置を決定するデコード手段と、
前記決定したドットの配置に基づいて前記印刷媒体に該ドットの形成を行うドット形成手段とを備え、
前記エンコードテーブル記憶手段は、前記各エンコード値を所定のビット数で表しており、前記エンコードテーブルを、該ビット数で表現可能な最大のエンコード値未満のエンコード値と前記ブロックの数との積に応じたデータ容量以下の容量で記憶している
印刷装置。
A printing apparatus that performs printing by determining the arrangement of dots to be formed on a printing medium based on a dither matrix in which thresholds for determining whether or not to generate dots according to the gradation value of image data are recorded. And
The dither matrix is divided into blocks each composed of a predetermined number of threshold values, and the gradation values are sequentially set to the threshold values in a range that the gradation values can take for each block identifier uniquely assigned to each block. Encoding table storage means for storing an encoding table in which each gradation value that generates each encoding value is recorded in association with each encoding value representing the arrangement of dots in the block obtained by comparison;
Image data input means for inputting the image data;
Based on the position of each pixel constituting the input image data and the position of each block existing in the dither matrix, the block identifier corresponding to each pixel is discriminated, and the block identifier and the level of each pixel are distinguished. Encoding means for obtaining the encoding value corresponding to the gradation value of each pixel by referring to the encoding table based on the tone value;
Decoding means for determining the arrangement of dots generated in the block corresponding to the position of each pixel, in accordance with the encoded value obtained by the encoding means and the distinguished block identifier;
Dot forming means for forming the dots on the print medium based on the determined dot arrangement;
The encoding table storage means represents each encoding value with a predetermined number of bits, and the encoding table is a product of an encoding value less than the maximum encoding value that can be expressed with the number of bits and the number of blocks. A printing device that stores data with a capacity less than the corresponding data capacity.
画像データの階調値に応じてドットの発生の有無を決定するための閾値が記録されたディザマトリックスに基づいて、画像データの印刷時に印刷媒体上に形成するドットの配置を決定するコンピュータプログラムであって、
前記ディザマトリックスを、所定個数の閾値のまとまりからなるブロックに分割し、該各ブロックに固有に割り当てたブロック識別子毎に、前記階調値を、当該階調値が取り得る範囲において前記閾値と順次比較して得られた前記ブロック内のドットの配置を表す各エンコード値に、該各エンコード値を生じる前記階調値を対応付けて記録したエンコードテーブルを記憶するエンコードテーブル記憶機能と、
前記画像データを入力する画像データ入力機能と、
前記入力した画像データを構成する各画素の位置と前記ディザマトリックス内に存在する各ブロックの位置とに基づき、該各画素に対応する前記ブロック識別子を弁別し、該ブロック識別子と前記各画素の階調値とに基づき前記エンコードテーブルを参照して、該各画素の階調値に対応する前記エンコード値を求めるエンコード機能と、
前記エンコード手段によって求めたエンコード値と、前記弁別されたブロック識別子とに応じて、前記各画素の位置に対応するブロック内に発生するドットの配置を決定するデコード機能と
をコンピュータに実現させるコンピュータプログラムであり、
前記エンコードテーブル記憶機能は、前記各エンコード値を所定のビット数で表しており、前記エンコードテーブルを、該ビット数で表現可能な最大のエンコード値未満のエンコード値と前記ブロックの数との積に応じたデータ容量以下の容量で記憶する
コンピュータプログラム。
A computer program that determines the arrangement of dots to be formed on a print medium when printing image data based on a dither matrix in which thresholds for determining whether or not dots are generated according to the tone value of the image data are recorded. There,
The dither matrix is divided into blocks each composed of a predetermined number of threshold values, and the gradation values are sequentially set to the threshold values in a range that the gradation values can take for each block identifier uniquely assigned to each block. An encoding table storage function for storing an encoding table in which each gradation value that generates each encoding value is recorded in association with each encoding value representing the arrangement of dots in the block obtained by comparison;
An image data input function for inputting the image data;
Based on the position of each pixel constituting the input image data and the position of each block existing in the dither matrix, the block identifier corresponding to each pixel is discriminated, and the block identifier and the level of each pixel are distinguished. An encoding function for obtaining the encoding value corresponding to the gradation value of each pixel by referring to the encoding table based on the tone value;
A computer program that causes a computer to realize a decoding function that determines the arrangement of dots generated in a block corresponding to the position of each pixel according to the encoded value obtained by the encoding means and the distinguished block identifier And
The encoding table storage function represents each encoding value by a predetermined number of bits, and the encoding table is calculated by multiplying an encoding value less than the maximum encoding value that can be expressed by the number of bits by the number of blocks. A computer program that stores data with a capacity that is less than the corresponding data capacity.
請求項20に記載のコンピュータプログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the computer program according to claim 20 is recorded.
JP2006262745A 2006-09-27 2006-09-27 Image processing apparatus, computer program, and recording medium Expired - Fee Related JP4586785B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006262745A JP4586785B2 (en) 2006-09-27 2006-09-27 Image processing apparatus, computer program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006262745A JP4586785B2 (en) 2006-09-27 2006-09-27 Image processing apparatus, computer program, and recording medium

Publications (3)

Publication Number Publication Date
JP2008085599A true JP2008085599A (en) 2008-04-10
JP2008085599A5 JP2008085599A5 (en) 2009-08-20
JP4586785B2 JP4586785B2 (en) 2010-11-24

Family

ID=39356005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006262745A Expired - Fee Related JP4586785B2 (en) 2006-09-27 2006-09-27 Image processing apparatus, computer program, and recording medium

Country Status (1)

Country Link
JP (1) JP4586785B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003009244A (en) * 2001-06-25 2003-01-10 Fuji Photo Film Co Ltd Image data transmitter and controlling method thereof
JP2006014036A (en) * 2004-06-28 2006-01-12 Seiko Epson Corp Image output system outputting image while multi-valuing pixel per a plurality of pixels

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003009244A (en) * 2001-06-25 2003-01-10 Fuji Photo Film Co Ltd Image data transmitter and controlling method thereof
JP2006014036A (en) * 2004-06-28 2006-01-12 Seiko Epson Corp Image output system outputting image while multi-valuing pixel per a plurality of pixels

Also Published As

Publication number Publication date
JP4586785B2 (en) 2010-11-24

Similar Documents

Publication Publication Date Title
JP3762319B2 (en) Image processing method, image processing apparatus, and image processing system
US7580156B2 (en) Image processing system, image processing device, dot data processing device, and method and program product therefor
US7656558B2 (en) Image processing system, image processing device, image output device, and method and program product therefor
JP4345834B2 (en) Image processing apparatus, printing apparatus, and image processing method
US7796303B2 (en) Image processing system, image processing device, dot data processing device, and method and program product therefor
JP6252003B2 (en) Printing apparatus, printing method, image processing apparatus, and program
JP6390405B2 (en) Printing apparatus, printing method, program, and image processing apparatus
JP4193846B2 (en) Image processing apparatus and conversion table generation method
JP4003046B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, PRINT SYSTEM, PRINT CONTROL PROGRAM, AND MEDIUM CONTAINING PRINT CONTROL PROGRAM
JP4225319B2 (en) Image output control system, image processing apparatus and method
JP4752709B2 (en) Image processing device
JP4586785B2 (en) Image processing apparatus, computer program, and recording medium
JP4561049B2 (en) Printing system for printing an image based on information on the number of dots formed in a predetermined area
JP2008099188A (en) Image processor, image processing method, and printing device
JP2008244926A (en) Image processing apparatus and printing device
JP4059121B2 (en) Image display system for displaying an image based on information on the number of dots formed in a predetermined area
JP4400739B2 (en) Color conversion method, color conversion device, color conversion program, print control method, print control device, and print control program
JP4687479B2 (en) Image processing apparatus and image processing method
JP4456823B2 (en) Printing device that prints an image while grouping and storing the determination result of dot formation, and print control device therefor
JP4306574B2 (en) Data transfer apparatus and data transfer method
JP4225320B2 (en) Image output control system, image output apparatus, image processing apparatus, and methods thereof
JP2006191268A (en) Image output device outputting image while performing image processing a plurality of pixels at a time
JP2008221769A (en) Printing apparatus and print control method
JP2010130275A (en) Image processing apparatus, imaging processing method, and program
JP2005269131A (en) Image processing apparatus, image processing method, and image processing program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090707

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090707

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100525

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100721

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100823

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130917

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees