JP4375050B2 - An image output system for outputting an image based on information on the number of dots formed in a predetermined area - Google Patents

An image output system for outputting an image based on information on the number of dots formed in a predetermined area Download PDF

Info

Publication number
JP4375050B2
JP4375050B2 JP2004044649A JP2004044649A JP4375050B2 JP 4375050 B2 JP4375050 B2 JP 4375050B2 JP 2004044649 A JP2004044649 A JP 2004044649A JP 2004044649 A JP2004044649 A JP 2004044649A JP 4375050 B2 JP4375050 B2 JP 4375050B2
Authority
JP
Japan
Prior art keywords
pixel
pixel group
image
dots
data
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.)
Expired - Fee Related
Application number
JP2004044649A
Other languages
Japanese (ja)
Other versions
JP2005236768A (en
Inventor
繁明 角谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2004044649A priority Critical patent/JP4375050B2/en
Priority to PCT/JP2005/002527 priority patent/WO2005076592A1/en
Priority to US10/589,069 priority patent/US7830553B2/en
Priority to CN200580004501.6A priority patent/CN1918898B/en
Priority to EP05710373A priority patent/EP1722549A4/en
Publication of JP2005236768A publication Critical patent/JP2005236768A/en
Application granted granted Critical
Publication of JP4375050B2 publication Critical patent/JP4375050B2/en
Priority to US12/925,234 priority patent/US8023154B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Color, Gradation (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

この発明は、画像データに基づいて画像を出力する技術に関し、詳しくは、画像データに所定の画像処理を施してドットを適切な密度で発生させることにより、画像を出力する技術に関する。   The present invention relates to a technique for outputting an image based on image data, and more particularly to a technique for outputting an image by performing predetermined image processing on the image data to generate dots with an appropriate density.

印刷媒体や液晶画面といった各種の出力媒体上にドットを形成することで画像を出力する画像出力装置は、各種画像機器の出力装置として広く使用されている。これら画像出力装置では、画像は画素と呼ばれる小さな領域に細分された状態で扱われており、ドットはこれら画素に形成される。ドットを画素に形成した場合、もちろん画素1つ1つについて見れば、ドットが形成されるか否かのいずれかの状態しか取り得ない。しかし、ある程度の広さを持った領域で見れば、ドットの形成され方に粗密を生じさせることは可能であり、ドットの形成密度を変えることによって多階調の画像を出力することが可能である。例えば、印刷用紙上に黒いインクのドットを形成する場合、ドットが密に形成されている領域は暗く見えるし、逆にドットがまばらに形成されている領域は明るく見える。また、液晶画面に輝点のドットを形成する場合、ドットが密に形成された領域は明るく見え、まばらに形成された領域は暗く見える。従って、ドットの形成密度を適切に制御してやれば、多階調の画像を出力することが可能となる。このように、適切な形成密度が得られるようにドットの形成を制御するためのデータは、出力しようとする画像に所定の画像処理を施すことによって発生させる。   Image output devices that output images by forming dots on various output media such as print media and liquid crystal screens are widely used as output devices for various image devices. In these image output devices, images are handled in a state of being subdivided into small areas called pixels, and dots are formed in these pixels. When dots are formed in the pixels, of course, only one state of whether or not the dots are formed can be taken from the viewpoint of each pixel. However, when viewed in an area with a certain size, it is possible to create a density in the way dots are formed, and it is possible to output a multi-tone image by changing the dot formation density. is there. For example, when forming black ink dots on a printing paper, a region where dots are densely formed looks dark, and conversely, a region where dots are sparsely formed appears bright. In addition, when bright dots are formed on a liquid crystal screen, a region where dots are densely formed looks bright and a region where sparsely formed dots appear dark. Accordingly, if the dot formation density is appropriately controlled, a multi-tone image can be output. As described above, data for controlling dot formation so as to obtain an appropriate formation density is generated by performing predetermined image processing on an image to be output.

近年では、これら画像出力装置には、出力画像の高画質化や大画像化が要請されるようになってきた。高画質化の要請に対しては、画像をより細かな画素に分割することが効果的である。画素を小さくしてやれば、画素に形成されるドットが目立たなくなるので画質を向上させることができる。また、大画像化の要請に対しては、画素数の増加によって対応する。もちろん、個々の画素を大きくすることによっても出力画像を大きくすることはできるが、これでは画質の低下を招いてしまうので、大型化の要請に対しては画素数を増加させることが効果的である。   In recent years, these image output apparatuses have been required to have high output image quality and large images. It is effective to divide an image into finer pixels for the demand for higher image quality. If the pixels are made smaller, the dots formed on the pixels become inconspicuous and the image quality can be improved. Also, the demand for larger images is handled by increasing the number of pixels. Of course, it is possible to enlarge the output image by increasing the size of each pixel, but this leads to a decrease in image quality. Therefore, it is effective to increase the number of pixels in response to a request for enlargement. is there.

もっとも、画像を構成する画素数が増加すると画像処理に時間がかかってしまい、画像を迅速に出力することが困難となる。そこで、画像処理を迅速に実行可能とする技術が提案されている(特許文献1)。   However, when the number of pixels constituting the image increases, it takes time for image processing, and it becomes difficult to output the image quickly. Therefore, a technique that enables image processing to be executed quickly has been proposed (Patent Document 1).

特開2002−185789号公報JP 2002-185789 A

しかし、画像処理を迅速に行ったとしても、画像データの転送や転送されたデータの処理の長い時間がかかってしまったのでは、画像を迅速に出力する効果には自ずから限界が生じる。   However, even if the image processing is performed quickly, if the image data transfer or the processing of the transferred data takes a long time, the effect of quickly outputting the image is naturally limited.

この発明は従来技術における上述した課題を解決するためになされたものであり、十分な出力画質を維持したまま、画像データの転送や転送されたデータを高速に処理可能な技術の提供を目的とする。   The present invention has been made to solve the above-mentioned problems in the prior art, and aims to provide a technique capable of transferring image data and processing transferred data at high speed while maintaining sufficient output image quality. To do.

上述した課題の少なくとも一部を解決するために、本発明の画像出力システムは、次の構成を採用した。すなわち、
画像データに所定の画像処理を施す画像処理装置と、該画像処理の結果に基づいてドットを形成することにより出力媒体上に画像を出力する画像出力装置とを備える画像出力システムであって、
前記画像処理装置は、
互いに隣接する画素を所定個数ずつ画素群にまとめて前記画像を複数の画素群に分割し、該各々の画素群内に形成されるドットの個数を表す個数データを、前記画像データに基づいて生成する個数データ生成手段と、
前記画素群毎に生成された個数データを、前記画像出力装置に供給する個数データ供給手段と
を備えており、
前記画像出力装置は、
前記画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を取得する順序値取得手段と、
前記順序値および前記個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を記憶している対応関係記憶手段と、
前記画素群についての個数データを受け取ると、該個数データと前記各々の順序値との組合せ毎に前記対応関係を参照することにより、該画素群内の各画素についてのドット形成の有無を決定するドット形成有無決定手段と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成するドット形成手段と
を備えることを要旨とする。
In order to solve at least a part of the problems described above, the image output system of the present invention employs the following configuration. That is,
An image output system comprising: an image processing device that performs predetermined image processing on image data; and an image output device that outputs an image on an output medium by forming dots based on the result of the image processing,
The image processing apparatus includes:
A predetermined number of adjacent pixels are grouped into a pixel group to divide the image into a plurality of pixel groups, and number data representing the number of dots formed in each pixel group is generated based on the image data Number data generation means to perform,
Number data supply means for supplying the number data generated for each pixel group to the image output device, and
The image output device includes:
Order value acquisition means for acquiring an order value indicating the order in which dots are formed in the pixel group for each pixel in the pixel group;
Correspondence storage means for storing the correspondence between the combination of the order value and the number data, and the presence or absence of dot formation in the pixel having the order value;
When the number data for the pixel group is received, the presence / absence of dot formation for each pixel in the pixel group is determined by referring to the correspondence for each combination of the number data and each order value. Dot formation presence / absence determining means;
And a dot forming unit that forms dots on the output medium in accordance with the determined dot formation.

また、上記の画像出力システムに対応する本発明の画像出力方法は、
画像データに所定の画像処理を施して、得られた結果に基づいてドットを形成することにより、出力媒体上に画像を出力する画像出力方法であって、
互いに隣接する画素を所定個数ずつ画素群にまとめて前記画像を複数の画素群に分割し、該各々の画素群内に形成されるドットの個数を表す個数データを、前記画像データに基づいて生成する第1の工程と、
前記画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を取得する第2の工程と、
前記順序値および前記個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を記憶しておく第3の工程と、
前記個数データを生成した画素群内の各画素について、該個数データと前記順序値との組合せ毎に前記対応関係を参照することにより、ドット形成の有無を決定する第4の工程と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する第5の工程と
を備えることを要旨とする。
The image output method of the present invention corresponding to the image output system described above,
An image output method for outputting an image on an output medium by performing predetermined image processing on image data and forming dots based on the obtained result,
A predetermined number of adjacent pixels are grouped into a pixel group to divide the image into a plurality of pixel groups, and number data representing the number of dots formed in each pixel group is generated based on the image data A first step of:
A second step of obtaining, for each pixel in the pixel group, an order value indicating an order in which dots are formed in the pixel group;
A third step of storing a correspondence relationship between the combination of the order value and the number data and the presence or absence of dot formation in the pixel having the order value;
A fourth step of determining the presence or absence of dot formation by referring to the correspondence for each combination of the number data and the order value for each pixel in the pixel group that generated the number data;
And a fifth step of forming dots on the output medium according to the determined presence / absence of dot formation.

かかる本発明の画像出力システムおよび画像出力方法においては、画像を複数の画素群に分割し、画素群毎に個数データを生成して、画像出力装置に供給する。画像出力装置では、画素群内の各画素についてドットが形成される順番を示す順序値を取得する。各画素の順序値を取得するに際しては、例えば、画素群内の各画素に「1」から始まる連続した整数値を予め設定しておき、この整数値を読み出して順序値と読み替えても良いし、あるいは、各画素に異なる値の実数値を予め設定しておき、実数値の大きさの順に従って、各画素の順序値を決定しても良い。更には、各画素間に前後関係を設定しておき、これら前後関係に基づいて各画素の順序値を決定しても良い。また、画像出力装置には、順序値および個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係も記憶されている。そして、画素群についての個数データを受け取ると、該個数データと該画素群内の各画素についての順序値との組合せから該対応関係を参照することによって、画素群内の各画素についてのドット形成の有無を決定する。こうして決定したドット形成の有無に従って、出力媒体上にドットを形成することによって画像を出力する。   In such an image output system and image output method of the present invention, an image is divided into a plurality of pixel groups, number data is generated for each pixel group, and supplied to the image output apparatus. In the image output apparatus, an order value indicating the order in which dots are formed for each pixel in the pixel group is acquired. When acquiring the order value of each pixel, for example, a continuous integer value starting from “1” may be set in advance for each pixel in the pixel group, and the integer value may be read and read as the order value. Alternatively, a real value having a different value may be set in advance for each pixel, and the order value of each pixel may be determined according to the order of the size of the real value. Further, a context may be set between the pixels, and the order value of each pixel may be determined based on the context. The image output apparatus also stores a correspondence relationship between the combination of the order value and the number data, and the presence / absence of dot formation in the pixel having the order value. Then, when the number data for the pixel group is received, dot formation for each pixel in the pixel group is performed by referring to the correspondence from the combination of the number data and the order value for each pixel in the pixel group. Determine whether or not. An image is output by forming dots on the output medium according to the determined dot formation.

詳細には後述するが、画像の全画素についてドット形成の有無を表すデータに比べれば、画素群毎にドットの個数を表すデータは遙かに小さなデータとすることができる。このため、画素群毎の個数データを画像出力装置に供給してやれば、迅速にデータを供給することが可能となり、延いては画像を迅速に出力することが可能となる。   As will be described in detail later, the data representing the number of dots for each pixel group can be much smaller than the data representing the presence or absence of dot formation for all the pixels of the image. For this reason, if the number data for each pixel group is supplied to the image output device, the data can be supplied quickly, and the image can be output quickly.

また、画像出力装置は画素群毎に出力された個数データを受け取ると、個数データと画素群内の各画素についての順序値との組合せから対応関係を参照することによって、画素群内の各画素についてのドット形成の有無を決定している。このように対応関係を参照しながらドット形成の有無を決定してやれば、画素群内の各画素についてのドット形成の有無を、個数データから直ちに決定することができるので、極めて迅速に且つ簡便に決定可能であり、延いては画像を迅速に出力することが可能となる。   Further, when the image output device receives the number data output for each pixel group, the image output device refers to the correspondence relationship from the combination of the number data and the order value for each pixel in the pixel group, whereby each pixel in the pixel group is referred to. Whether or not dots are formed is determined. If the presence or absence of dot formation is determined with reference to the correspondence in this way, the presence or absence of dot formation for each pixel in the pixel group can be immediately determined from the number data, so it is determined very quickly and easily. Therefore, it is possible to output an image quickly.

更に、このように極めて簡素な処理でドット形成の有無を決定することができれば、画像出力装置が画像処理装置のようには高度な処理能力を有さない場合でも、個数データから各画素についてのドット形成有無を迅速に決定することが可能である。   Furthermore, if the presence / absence of dot formation can be determined by such an extremely simple process, even if the image output device does not have a high processing capacity like the image processing device, the number data can be used for each pixel. It is possible to quickly determine whether or not dots are formed.

こうした画像出力システムにおいては、各画素の順序値を次のようにして取得して、ドット形成の有無を決定しても良い。先ず、画素群内でドットが形成される画素の序列を複数組記憶しておき、これら複数組の序列の中から画素群毎に1の序列を選択する。そして、選択した序列に基づいて、該画素群内の各画素についての順序値を取得し、得られた順序値に基づいて各画素のドット形成の有無を決定してもよい。   In such an image output system, the order value of each pixel may be acquired as follows to determine the presence or absence of dot formation. First, a plurality of sets of the order of pixels in which dots are formed in the pixel group are stored, and one order is selected for each pixel group from the plurality of sets of order. Then, based on the selected order, an order value for each pixel in the pixel group may be acquired, and the presence or absence of dot formation for each pixel may be determined based on the obtained order value.

画素群内の各画素についてのドット形成有無は、個数データと順序値とに基づいて決定される。従って、複数組の序列の中から1の序列を選択して、その序列に基づいて取得された順序値を用いてドット形成の有無を決定してやれば、例え、同じ個数データが続いた場合でも、複数の画素群に亘って同じ画素位置にドットが形成されることがない。このため、同じパターンでドットが形成された領域が目立ってしまい、画質が悪化することを確実に回避することが可能となる。   The presence or absence of dot formation for each pixel in the pixel group is determined based on the number data and the order value. Therefore, if one order is selected from a plurality of sets and the presence / absence of dot formation is determined using the order value obtained based on the order, even if the same number of data continues, Dots are not formed at the same pixel position across a plurality of pixel groups. For this reason, it is possible to reliably avoid the deterioration of the image quality due to the conspicuous area where dots are formed in the same pattern.

また、こうした画像出力システムにおいては、二次元的に配列された画素の各々に閾値を対応付けたディザマトリックスに基づいて個数データを生成するとともに、同じディザマトリックスに基づいて取得された順序値を用いて、各画素のドット形成の有無を決定することとしても良い。すなわち、ディザマトリックスを複数の画素群に分割し、画素群内に形成されるドット個数を求めて個数データを生成する。個数データの生成に際しては、分割されたディザマトリックスを用いて、画素群内の各画素についてドット形成の有無を判断することにより、画素群内に形成されるドット個数のデータを生成すればよい。あるいは、個数データを生成するためには、ドットが形成される画素位置までは分からなくても良いことから、簡易的には次のようにすることもできる。先ず、分割されたディザマトリックスに設定されている閾値のみを画素群毎に記憶しておく。次いで、画素群を代表する階調値(代表階調値)を決定する。代表階調値には、各画素の画像データの平均値を用いることもできるし、あるいは、画像データは隣接する画素間では近似した値を有することから、画素群内の所定位置の画素の画像データを代表階調値とすることも可能である。そして、代表階調値より小さな閾値の個数を画素群毎に求めて、得られた値をその画素群のドット個数とすることもできる。   Further, in such an image output system, the number data is generated based on a dither matrix in which a threshold is associated with each of the two-dimensionally arranged pixels, and an order value acquired based on the same dither matrix is used. Thus, the presence or absence of dot formation for each pixel may be determined. That is, the dither matrix is divided into a plurality of pixel groups, and the number data is generated by obtaining the number of dots formed in the pixel group. When the number data is generated, data on the number of dots formed in the pixel group may be generated by determining the presence or absence of dot formation for each pixel in the pixel group using the divided dither matrix. Alternatively, in order to generate the number data, since it is not necessary to know the pixel position where the dot is formed, it can be simply as follows. First, only threshold values set in the divided dither matrix are stored for each pixel group. Next, a gradation value (representative gradation value) representing the pixel group is determined. As the representative gradation value, an average value of the image data of each pixel can be used, or the image data has an approximate value between adjacent pixels, so that an image of a pixel at a predetermined position in the pixel group is obtained. It is also possible to use data as representative gradation values. The number of threshold values smaller than the representative gradation value can be obtained for each pixel group, and the obtained value can be used as the number of dots in the pixel group.

このようにして生成した個数データを受け取ると、画素群内の各画素についてのドット形成の有無を、次のようにして決定する。予め、個数データの生成に用いたディザマトリックスを複数の画素群に分割し、画素群内の各画素に対応付けられた閾値に基づいて決定された画素の序列を、複数組記憶しておく。あるいは、画素群内の各画素に対応付けられた閾値の大小関係に基づいて画素群毎に各画素の順序値を決定し、得られた順序値を画素の序列として複数組記憶しておく。そして、画素群の個数データを受け取ると、画像上での該画素群の位置に対応した1の序列を選択して、該序列に基づいて各画素の順序値を取得した後、ドット形成の有無を決定することとしてもよい。   When the number data generated in this way is received, the presence / absence of dot formation for each pixel in the pixel group is determined as follows. In advance, the dither matrix used to generate the number data is divided into a plurality of pixel groups, and a plurality of sets of pixel sequences determined based on threshold values associated with the respective pixels in the pixel group are stored. Alternatively, the order value of each pixel is determined for each pixel group based on the magnitude relation of the threshold value associated with each pixel in the pixel group, and a plurality of sets of the obtained order values are stored as an order of pixels. When the pixel group count data is received, one order corresponding to the position of the pixel group on the image is selected, and the order value of each pixel is obtained based on the order, and whether or not dots are formed. May be determined.

詳細には後述するが、このようにして、ディザマトリックスに基づいて画素群の個数データを生成し、該画素群内の各画素についてのドット形成の有無を、同じディザマトリックスに基づいて決定してやれば、ディザ法を用いて画素毎にドット形成の有無を判断した場合と同等の画質で画像を出力することが可能となる。特に、画素群としてまとめられる画素の画像データが同じ階調値を有している場合は、ディザ法を用いて画素毎にドット形成の有無を判断した場合と、個数データからドットを形成する画素位置を決定した場合とで、全く同じ画素位置にドットが形成されることになる。   As will be described in detail later, in this way, the number data of the pixel group is generated based on the dither matrix, and the presence or absence of dot formation for each pixel in the pixel group is determined based on the same dither matrix. Thus, it is possible to output an image with the same image quality as when the presence or absence of dot formation is determined for each pixel using the dither method. In particular, when the image data of the pixels grouped together as a pixel group has the same gradation value, the case where the presence or absence of dot formation is determined for each pixel using the dither method, and the pixel that forms dots from the number data When the position is determined, dots are formed at exactly the same pixel position.

また、従来技術が有する前述した課題の少なくとも一部を解決するために、本発明の第1の画像出力装置は次の構成を採用した。すなわち、
所定の画像処理が施された画像データを受け取って、該画像データに基づいて出力媒体上にドットを形成することにより、画像を出力する画像出力装置であって、
互いに隣接する画素が所定個数ずつ画素群としてまとめられた状態で、該画素群内に形成すべきドットの個数を表す個数データを、前記画像データとして受け取る個数データ受取手段と、
前記画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を取得する順序値取得手段と、
前記順序値および前記個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を記憶している対応関係記憶手段と、
前記個数データを受け取った画素群内の各画素について、該個数データと前記順序値との組合せ毎に前記対応関係を参照することにより、ドット形成の有無を決定するドット形成有無決定手段と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成するドット形成手段と
を備えることを要旨とする。
In order to solve at least a part of the above-described problems of the conventional technology, the first image output apparatus of the present invention employs the following configuration. That is,
An image output device that receives image data that has undergone predetermined image processing and outputs an image by forming dots on an output medium based on the image data.
A number data receiving means for receiving, as the image data, number data representing the number of dots to be formed in the pixel group in a state where a predetermined number of adjacent pixels are grouped as a pixel group;
Order value acquisition means for acquiring an order value indicating the order in which dots are formed in the pixel group for each pixel in the pixel group;
Correspondence storage means for storing the correspondence between the combination of the order value and the number data, and the presence or absence of dot formation in the pixel having the order value;
For each pixel in the pixel group that has received the number data, by referring to the correspondence for each combination of the number data and the order value, dot formation presence / absence determination means for determining the presence / absence of dot formation;
And a dot forming unit that forms dots on the output medium in accordance with the determined dot formation.

また、上記の第1の画像出力装置に対応する本発明の画像出力方法は、
所定の画像処理が施された画像データを受け取って、該画像データに基づいて出力媒体上にドットを形成することにより、画像を出力する画像出力方法であって、
互いに隣接する画素が所定個数ずつ画素群としてまとめられた状態で、該画素群内に形成すべきドットの個数を表す個数データを、前記画像データとして受け取る工程(A)と、
前記画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を取得する工程(B)と、
前記順序値および前記個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を記憶しておく工程(C)と、
前記個数データを受け取った画素群内の各画素について、該個数データと前記順序値との組合せ毎に前記対応関係を参照することにより、ドット形成の有無を決定する工程(D)と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する工程(E)と
を備えることを要旨とする。
Further, the image output method of the present invention corresponding to the first image output apparatus is as follows.
An image output method for receiving image data that has undergone predetermined image processing and outputting an image by forming dots on an output medium based on the image data,
A step (A) of receiving, as the image data, number data representing the number of dots to be formed in the pixel group in a state where a predetermined number of pixels adjacent to each other are grouped as a pixel group;
Obtaining an order value indicating the order in which dots are formed in the pixel group for each pixel in the pixel group (B);
Storing a correspondence relationship between the combination of the order value and the number data and the presence or absence of dot formation in a pixel having the order value; and
For each pixel in the pixel group that has received the number data, a step (D) of determining the presence or absence of dot formation by referring to the correspondence for each combination of the number data and the order value;
And a step (E) of forming dots on the output medium in accordance with the determined presence / absence of dot formation.

かかる画像出力装置および画像出力方法においては、画素群の個数データを受け取ると、順序値および個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を参照しながら、画素群内の各画素についてのドット形成の有無を決定する。こうして決定したドット形成の有無に従って、出力媒体上にドットを形成することによって画像を出力する。   In such an image output apparatus and image output method, when the number data of the pixel group is received, the pixel value is referred to by referring to the correspondence between the combination of the order value and the number data and the presence or absence of dot formation in the pixel having the order value. Whether to form dots for each pixel in the group is determined. An image is output by forming dots on the output medium according to the determined dot formation.

後述するように、画素群の個数データであれば迅速にデータを受け取ることができるので、画像を迅速に出力することが可能である。また、各画素についてのドット形成の有無は、個数データおよび順序値の組合せ毎に設定された対応関係を参照することによって決定することができるので、簡便に且つ迅速に決定することができる。このため、画像を迅速に出力することが可能であるとともに、高度な処理能力を有さない画像出力装置においても、十分に実用的な速度で画像を出力することが可能となる。   As will be described later, since the number of pixel group data can be received quickly, it is possible to output an image quickly. In addition, since the presence or absence of dot formation for each pixel can be determined by referring to the correspondence set for each combination of the number data and the order value, it can be determined easily and quickly. For this reason, it is possible to output an image quickly, and it is possible to output an image at a sufficiently practical speed even in an image output apparatus that does not have a high level of processing capability.

こうした画像出力装置においては、画素群内でドットが形成される画素の序列を複数組記憶しているとともに、該画素の序列毎に各画素についての前記順序値を記憶しておき、個数データを受け取ると、これら複数の序列の中から画素群毎に1の序列を選択し、該序列に基づいて取得された順序値を用いて各画素のドット形成の有無を決定することとしてもよい。   In such an image output device, a plurality of sets of pixels in which dots are formed in a pixel group are stored, and the order value for each pixel is stored for each pixel order, and the number data is stored. Upon receipt, one order may be selected for each pixel group from among the plurality of orders, and the presence or absence of dot formation for each pixel may be determined using the order value acquired based on the order.

こうすれば、同じ個数データが連続した場合でも、複数の画素群に亘って同じ画素位置にドットが形成されることがないので、同じパターンでドットが形成された領域が目立ってしまい、画質が悪化することを回避することが可能となる。   In this way, even when the same number of data is continuous, dots are not formed at the same pixel position across a plurality of pixel groups, so that the area where dots are formed with the same pattern becomes conspicuous, and the image quality is high. It becomes possible to avoid getting worse.

このような画像出力装置においては、表現する階調値の異なる複数種類のドットを出力可能として、画素群内に形成される各種ドットの個数を、個数データとして受け取ることとしてもよい。ここで、表現する階調値の異なる複数種類のドットとは、例えば、ドットの大きさが異なる複数種類のドットとすることもできるし、あるいは、ドットの濃度が異なる複数種類のドットとすることもできる。更には、微細なドットを所定の密度で形成することで擬似的に1つのドットを形成している場合には、微細なドットの密度が異なった複数種類のドットとすることも可能である。これら各種ドットを形成可能な場合は、各種ドットの個数の組合せを個数データとして受け取る。そして、順序値および前記個数データの組合せと、該順序値を有する画素に形成されるドット種類との対応関係を記憶しておき、個数データを受け取ると、該対応関係を参照することによって、各画素に形成されるドットの種類を決定し、決定したドット形成の有無に従って、出力媒体上に各種ドットを形成することとしてもよい。   In such an image output apparatus, a plurality of types of dots having different gradation values to be expressed can be output, and the number of various dots formed in the pixel group may be received as number data. Here, the plurality of types of dots having different gradation values to be expressed may be, for example, a plurality of types of dots having different dot sizes, or a plurality of types of dots having different dot densities. You can also. Furthermore, when one dot is formed in a pseudo manner by forming fine dots at a predetermined density, a plurality of types of dots having different fine dot densities can be used. When these various dots can be formed, a combination of the numbers of various dots is received as number data. Then, the correspondence relationship between the combination of the order value and the number data and the dot type formed on the pixel having the order value is stored, and when the number data is received, each correspondence is referred to by referring to the correspondence relationship. The type of dot formed on the pixel may be determined, and various dots may be formed on the output medium in accordance with the determined dot formation.

画素群内の各画素についてドット形成有無を、対応関係を参照しながら決定する場合は、個数データが複数種類のドットについてのドット個数の組合せを示すデータであっても、各画素についてのドット形成の有無を、単にドットの個数を表すデータである場合と同様に、極めて容易に決定することができる。このため、ドット形成有無を迅速に決定することができ、延いては画像を迅速に出力することが可能となるので好ましい。   When determining whether or not to form dots for each pixel in the pixel group with reference to the correspondence relationship, even if the number data is data indicating a combination of the number of dots for multiple types of dots, dot formation for each pixel The presence or absence of can be determined very easily, just as in the case of data representing the number of dots. For this reason, it is preferable because it is possible to quickly determine the presence or absence of dot formation and to output an image quickly.

こうした画像出力装置においては、互いに所定の位置関係にある8画素ないし16画素ずつの画素がまとめられた画素群について、個数データを受け取ることとしてもよい。   In such an image output apparatus, the number data may be received for a pixel group in which 8 to 16 pixels each having a predetermined positional relationship are grouped.

画素群としてまとめる画素数が多くなるほど画素群の数は少なくなるので、個数データを迅速に受け取ることができる。一方、画素群にまとめる画素数があまりに多くなったのでは画質の悪化を引き起こすおそれが生じる。こうした点を踏まえると、経験上、8画素から16画素ずつの画素を画素群としてまとめた場合に、最も良好な結果を得ることができる。すなわち、詳細には後述するが、画素群にまとめられる画素数を8画素から16画素にしておけば、個数データのデータ量を、画素毎にドット形成の有無を表したデータの半分以下に低減することができ、迅速にデータを受け取ることができる。また、画素群にまとめられる複数の画素の位置関係は、例えば、主走査方向に4画素ずつ、副走査方向に2画素ずつといったように、互いに矩形形状を成すような位置関係としておけば、経験上、良好な画質を得ることが可能である。   Since the number of pixel groups decreases as the number of pixels collected as a pixel group increases, the number data can be received quickly. On the other hand, if the number of pixels grouped into a pixel group becomes too large, the image quality may be deteriorated. In view of these points, from experience, the best results can be obtained when pixels of 8 to 16 pixels are grouped into a pixel group. That is, as will be described in detail later, if the number of pixels grouped into a pixel group is changed from 8 to 16, the amount of data of the number data is reduced to less than half of the data representing the presence or absence of dot formation for each pixel. Can receive data quickly. In addition, the positional relationship of a plurality of pixels grouped into a pixel group can be experienced as long as they are in a rectangular shape, for example, four pixels in the main scanning direction and two pixels in the sub-scanning direction. In addition, good image quality can be obtained.

また、従来技術が有する前述した課題の少なくとも一部を解決するために、本発明の第2の画像出力装置は次の構成を採用した。すなわち、
画像データに応じて出力媒体上にドットを形成することにより、該画像データに対応した画像を出力する画像出力装置であって、
互いに隣接する画素を所定個数ずつ画素群にまとめて前記画像を複数の画素群に分割し、該各々の画素群内に形成されるドットの個数を表す個数データを、前記画像データに基づいて生成する個数データ生成手段と、
前記画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を取得する順序値取得手段と、
前記順序値および前記個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を記憶している対応関係記憶手段と、
前記個数データを生成した画素群内の各画素について、該個数データと前記順序値との組合せ毎に前記対応関係を参照することにより、ドット形成の有無を決定するドット形成有無決定手段と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成するドット形成手段と
を備えることを要旨とする。
Further, in order to solve at least a part of the above-described problems of the prior art, the second image output apparatus of the present invention employs the following configuration. That is,
An image output device that outputs an image corresponding to image data by forming dots on an output medium according to the image data,
A predetermined number of adjacent pixels are grouped into a pixel group to divide the image into a plurality of pixel groups, and number data representing the number of dots formed in each pixel group is generated based on the image data Number data generation means to perform,
Order value acquisition means for acquiring an order value indicating the order in which dots are formed in the pixel group for each pixel in the pixel group;
Correspondence storage means for storing the correspondence between the combination of the order value and the number data, and the presence or absence of dot formation in the pixel having the order value;
For each pixel in the pixel group that has generated the number data, by referring to the correspondence for each combination of the number data and the order value, dot formation presence / absence determination means that determines the presence / absence of dot formation;
And a dot forming unit that forms dots on the output medium in accordance with the determined dot formation.

かかる本発明の画像出力装置においても、画像を複数の画素群に分割し、画素群内に形成されるドット個数を表す個数データを生成する。次いで、順序値および個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を参照しながら、画素群内の各画素についてのドット形成の有無を決定する。こうして決定したドット形成の有無に従って、出力媒体上にドットを形成することによって画像を出力する。   Also in the image output apparatus of the present invention, the image is divided into a plurality of pixel groups, and number data representing the number of dots formed in the pixel groups is generated. Next, the presence / absence of dot formation for each pixel in the pixel group is determined with reference to the correspondence between the combination of the order value and the number data and the presence / absence of dot formation in the pixel having the order value. An image is output by forming dots on the output medium according to the determined dot formation.

各画素についてのドット形成の有無を、このように個数データおよび順序値の組合せ毎に設定された対応関係を参照しながら決定してやれば、簡便に且つ迅速に決定することができる。このため、画像を迅速に出力することが可能であるとともに、高度な処理能力を有さない画像出力装置においても、十分に実用的な速度で画像を出力することが可能となる。   If the presence or absence of dot formation for each pixel is determined with reference to the correspondence set for each combination of the number data and the order value, it can be determined easily and quickly. For this reason, it is possible to output an image quickly, and it is possible to output an image at a sufficiently practical speed even in an image output apparatus that does not have a high level of processing capability.

更に本発明は、上述した画像出力方法を実現するためのプログラムをコンピュータに読み込ませ、コンピュータを用いて実現することも可能である。従って、本発明は次のようなプログラム、あるいは該プログラムを記録した記録媒体としての態様も含んでいる。すなわち、上述した画像出力方法に対応する本発明の第1のプログラムは、
画像データに所定の画像処理を施して、得られた結果に基づいてドットを形成することにより出力媒体上に画像を出力する方法を、コンピュータを用いて実現するためのプログラムであって、
互いに隣接する画素を所定個数ずつ画素群にまとめて前記画像を複数の画素群に分割し、該各々の画素群内に形成されるドットの個数を表す個数データを、前記画像データに基づいて生成する第1の機能と、
前記画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を取得する第2の機能と、
前記順序値および前記個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を記憶しておく第3の機能と、
前記個数データを生成した画素群内の各画素について、該個数データと前記順序値との組合せ毎に前記対応関係を参照することにより、ドット形成の有無を決定する第4の機能と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する第5の機能と
を実現することを要旨とする。
Furthermore, the present invention can also be realized using a computer by causing a computer to read a program for realizing the above-described image output method. Therefore, the present invention includes the following program or a mode as a recording medium on which the program is recorded. That is, the first program of the present invention corresponding to the image output method described above is
A program for implementing a method of outputting an image on an output medium by performing predetermined image processing on image data and forming dots based on the obtained result using a computer,
A predetermined number of adjacent pixels are grouped into a pixel group to divide the image into a plurality of pixel groups, and number data representing the number of dots formed in each pixel group is generated based on the image data A first function to
A second function for obtaining an order value indicating an order in which dots are formed in the pixel group for each pixel in the pixel group;
A third function for storing a correspondence relationship between the combination of the order value and the number data and the presence or absence of dot formation in a pixel having the order value;
For each pixel in the pixel group that has generated the number data, a fourth function that determines the presence or absence of dot formation by referring to the correspondence for each combination of the number data and the order value;
The gist of the present invention is to realize a fifth function of forming dots on the output medium in accordance with the determined dot formation.

また、上記のプログラムに対応する本発明の第1の記録媒体は、
画像データに所定の画像処理を施して、得られた結果に基づいて出力媒体上にドットを形成することによって画像を出力するプログラムを、コンピュータで読み取り可能に記録した記録媒体であって、
互いに隣接する画素を所定個数ずつ画素群にまとめて前記画像を複数の画素群に分割し、該各々の画素群内に形成されるドットの個数を表す個数データを、前記画像データに基づいて生成する第1の機能と、
前記画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を取得する第2の機能と、
前記順序値および前記個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を記憶しておく第3の機能と、
前記個数データを生成した画素群内の各画素について、該個数データと前記順序値との組合せ毎に前記対応関係を参照することにより、ドット形成の有無を決定する第4の機能と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する第5の機能と
をコンピュータを用いて実現するプログラムを記録していることを要旨とする。
The first recording medium of the present invention corresponding to the above program is
A recording medium recorded with a computer-readable program for outputting an image by performing predetermined image processing on image data and forming dots on the output medium based on the obtained result,
A predetermined number of adjacent pixels are grouped into a pixel group to divide the image into a plurality of pixel groups, and number data representing the number of dots formed in each pixel group is generated based on the image data A first function to
A second function for obtaining an order value indicating an order in which dots are formed in the pixel group for each pixel in the pixel group;
A third function for storing a correspondence relationship between the combination of the order value and the number data and the presence or absence of dot formation in a pixel having the order value;
For each pixel in the pixel group that has generated the number data, a fourth function that determines the presence or absence of dot formation by referring to the correspondence for each combination of the number data and the order value;
The gist of the invention is that a program that uses a computer to record the fifth function of forming dots on the output medium according to the determined dot formation is recorded.

更に、上述した画像出力方法に対応する本発明の第2のプログラムは、
所定の画像処理が施された画像データを受け取って、該画像データに基づいて出力媒体上にドットを形成することにより画像を出力する方法を、コンピュータを用いて実現するためのプログラムであって、
互いに隣接する画素が所定個数ずつ画素群としてまとめられた状態で、該画素群内に形成すべきドットの個数を表す個数データを、前記画像データとして受け取る機能(A)と、
前記画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を取得する機能(B)と、
前記順序値および前記個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を記憶しておく機能(C)と、
前記個数データを受け取った画素群内の各画素について、該個数データと前記順序値との組合せ毎に前記対応関係を参照することにより、ドット形成の有無を決定する機能(D)と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する機能(E)と
を実現することを要旨とする。
Furthermore, the second program of the present invention corresponding to the image output method described above is
A program for realizing, using a computer, a method of receiving image data subjected to predetermined image processing and outputting an image by forming dots on an output medium based on the image data,
A function (A) for receiving, as the image data, number data representing the number of dots to be formed in the pixel group in a state where a predetermined number of adjacent pixels are grouped as a pixel group;
For each pixel in the pixel group, a function (B) for acquiring an order value indicating the order in which dots are formed in the pixel group;
A function (C) for storing a correspondence relationship between the combination of the order value and the number data and the presence or absence of dot formation in a pixel having the order value;
For each pixel in the pixel group that has received the number data, a function (D) for determining the presence or absence of dot formation by referring to the correspondence for each combination of the number data and the order value;
The gist is to realize a function (E) for forming dots on the output medium in accordance with the determined dot formation.

また、上記のプログラムに対応する本発明の第2の記録媒体は、
所定の画像処理が施された画像データを受け取って、該画像データに基づいて出力媒体上にドットを形成することにより画像を出力するプログラムを、コンピュータで読み取り可能に記録した記録媒体であって、
互いに隣接する画素が所定個数ずつ画素群としてまとめられた状態で、該画素群内に形成すべきドットの個数を表す個数データを、前記画像データとして受け取る機能(A)と、
前記画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を取得する機能(B)と、
前記順序値および前記個数データの組合せと、該順序値を有する画素におけるドット形成の有無との対応関係を記憶しておく機能(C)と、
前記個数データを受け取った画素群内の各画素について、該個数データと前記順序値との組合せ毎に前記対応関係を参照することにより、ドット形成の有無を決定する機能(D)と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する機能(E)と
をコンピュータを用いて実現するプログラムを記録していることを要旨とする。
The second recording medium of the present invention corresponding to the above program is
A recording medium on which a program for receiving image data subjected to predetermined image processing and outputting an image by forming dots on the output medium based on the image data is recorded so as to be readable by a computer,
A function (A) for receiving, as the image data, number data representing the number of dots to be formed in the pixel group in a state where a predetermined number of adjacent pixels are grouped as a pixel group;
For each pixel in the pixel group, a function (B) for acquiring an order value indicating the order in which dots are formed in the pixel group;
A function (C) for storing a correspondence relationship between the combination of the order value and the number data and the presence or absence of dot formation in a pixel having the order value;
For each pixel in the pixel group that has received the number data, a function (D) for determining the presence or absence of dot formation by referring to the correspondence for each combination of the number data and the order value;
The gist of the invention is that a program for realizing a function (E) for forming dots on the output medium according to the determined presence / absence of dot formation is recorded using a computer.

こうしたプログラム、あるいは記録媒体に記録されているプログラムをコンピュータに読み込ませ、該コンピュータを用いて上述の各種機能を実現させれば、簡便に且つ迅速に画像を出力することが可能となる。   If such a program or a program recorded on a recording medium is read into a computer and the above-described various functions are realized using the computer, an image can be output simply and quickly.

以下では、本発明の作用・効果をより明確に説明するために、本発明の実施の形態を、次のような順序に従って説明する。
A.発明の概要:
B.第1実施例:
B−1.装置構成:
B−2.第1実施例の画像印刷処理の概要:
B−3.個数データに基づいて各画素のドット形成有無を決定可能な原理:
B−4.第1実施例の個数データ生成処理:
B−5.第1実施例のドット形成有無決定処理:
B−6.第1実施例の変形例:
C.第2実施例:
C−1.第2実施例の画像印刷処理:
C−2.第2実施例の個数データ生成処理:
C−3.第2実施例のドット形成有無決定処理:
C−3−1.変換テーブルを参照せずにドット形成有無を決定する方法:
C−3−2.変換テーブルを参照するドット形成有無決定処理:
Below, in order to demonstrate the effect | action and effect of this invention more clearly, embodiment of this invention is described in the following orders.
A. Summary of the invention:
B. First embodiment:
B-1. Device configuration:
B-2. Overview of the image printing process of the first embodiment:
B-3. Principle that can determine whether or not dots are formed for each pixel based on the number data:
B-4. Number data generation processing of the first embodiment:
B-5. Dot formation presence / absence determination process of the first embodiment:
B-6. Modification of the first embodiment:
C. Second embodiment:
C-1. Image printing process of the second embodiment:
C-2. Number data generation processing of the second embodiment:
C-3. Dot formation presence / absence determination process of the second embodiment:
C-3-1. A method for determining whether or not dots are formed without referring to the conversion table:
C-3-2. Dot formation presence / absence determination processing referring to the conversion table:

A.発明の概要 :
実施例についての詳細な説明に入る前に、図1を参照しながら、本発明の概要について説明しておく。図1は、印刷システムを例にとって、本発明の概要を説明するための説明図である。本印刷システムは、画像処理装置としてのコンピュータ10と、画像出力装置としてのプリンタ20等から構成されており、コンピュータ10に所定のプログラムがロードされて実行されると、コンピュータ10およびプリンタ20などが全体として、一体の画像出力システムとして機能する。プリンタ20は、印刷媒体上にドットを形成することによって画像を印刷する。コンピュータ10は、印刷しようとする画像の画像データに所定の画像処理を施すことによって、プリンタ20が画素毎にドットの形成を制御するためのデータを生成して、該プリンタ20に供給する。
A. Summary of the invention:
Prior to detailed description of the embodiment, the outline of the present invention will be described with reference to FIG. FIG. 1 is an explanatory diagram for explaining the outline of the present invention, taking a printing system as an example. The printing system includes a computer 10 as an image processing apparatus, a printer 20 as an image output apparatus, and the like. When a predetermined program is loaded and executed on the computer 10, the computer 10 and the printer 20 and the like are executed. As a whole, it functions as an integrated image output system. The printer 20 prints an image by forming dots on a print medium. The computer 10 performs predetermined image processing on image data of an image to be printed, so that the printer 20 generates data for controlling dot formation for each pixel and supplies the data to the printer 20.

一般的な印刷システムでは、次のようにして画像を印刷する。先ず、コンピュータで所定の画像処理を施すことにより、画像データを、画素毎にドット形成の有無を表すデータに変換する。次いで、得られたデータをプリンタに供給し、プリンタでは供給されたデータに従ってドットを形成することによって画像を印刷している。ここで、印刷しようとする画像の画素数が多くなると、それに伴って画像データのデータ量も大きくなるので、画像処理やデータの取り扱いのために要する時間が増加してしまい、画像を迅速に印刷することが困難となる。   In a general printing system, an image is printed as follows. First, image data is converted into data representing the presence or absence of dot formation for each pixel by performing predetermined image processing with a computer. Next, the obtained data is supplied to a printer, and the printer prints an image by forming dots according to the supplied data. Here, as the number of pixels of the image to be printed increases, the amount of image data increases accordingly, increasing the time required for image processing and data handling, and printing the image quickly. Difficult to do.

こうした点に鑑みて、図1に例示した印刷システムでは、次のようにして画像を印刷する。先ず、コンピュータ10では、画像を構成する画素を互いに隣接した所定個数ずつ画素群としてまとめることで、画像を複数の画素群に分割する。そして、各画素群について、画素群内に形成するドット個数を表す個数データを生成する。コンピュータ10に設けられた個数データ生成モジュールは、画像を複数の画素群に分割して、各画素群について個数データを生成する。こうして生成された個数データは、コンピュータ10に設けられた個数データ供給モジュールからプリンタ20に向かって供給される。   In view of these points, the printing system illustrated in FIG. 1 prints an image as follows. First, the computer 10 divides the image into a plurality of pixel groups by collecting a predetermined number of pixels constituting the image as a pixel group. Then, for each pixel group, number data representing the number of dots formed in the pixel group is generated. A number data generation module provided in the computer 10 divides an image into a plurality of pixel groups and generates number data for each pixel group. The number data generated in this way is supplied from the number data supply module provided in the computer 10 to the printer 20.

プリンタ20に設けられたドット形成有無決定モジュールは、個数データ供給モジュールから供給された個数データを受け取ると、画素群内の各画素についてドット形成の有無を決定する。次いで、ドット形成モジュールが、各画素について決定されたドット形成の有無に従って、印刷媒体上にドットを形成することによって画像を印刷する。   When the dot formation presence / absence determination module provided in the printer 20 receives the number data supplied from the number data supply module, it determines the presence / absence of dot formation for each pixel in the pixel group. The dot formation module then prints the image by forming dots on the print medium according to the presence or absence of dot formation determined for each pixel.

ここで、画素毎にドット形成の有無を表すデータに比べれば、画素群毎の個数データは遙かに小さなデータ量とすることができる。従って、コンピュータ10から画素毎にドット形成の有無を表したデータをプリンタ20に供給する代わりに、画素毎の個数データを供給してやれば、プリンタ20は極めて迅速にデータを受け取ることが可能である。   Here, the number data for each pixel group can be much smaller than the data representing the presence or absence of dot formation for each pixel. Therefore, if the number data for each pixel is supplied from the computer 10 to the printer 20 instead of supplying data indicating the presence or absence of dot formation for each pixel, the printer 20 can receive the data very quickly.

また、プリンタ20は、個数データを受け取ると、次のようにして、画素群内に含まれる各画素についてのドット形成の有無を決定する。先ず、画素群内の各画素について、画素群内でドットが形成される順番を示す順序値を、順序値記憶モジュールに記憶しておく。また、順序値および個数データの組合せと、該順序値を有する画素についてのドット形成の有無との対応関係を、対応関係記憶モジュールに予め記憶しておく。そして、画素群についての個数データを受け取ると、画素群内の各画素についての順序値を取得して、個数データと順序値との組合せ毎に対応関係を参照することによって、各画素についてのドット形成の有無を決定する。このように対応関係を参照しながらドット形成の有無を決定してやれば、個数データを迅速に変換することが可能である。従って、コンピュータ10から個数データを迅速に受け取ることが可能であることと相まって、迅速に画像を印刷することが可能となる。以下では、こうした印刷システムを例にとって、本発明の各種実施例について詳細に説明する。   When the printer 20 receives the number data, the printer 20 determines whether or not to form dots for each pixel included in the pixel group as follows. First, for each pixel in the pixel group, an order value indicating the order in which dots are formed in the pixel group is stored in the order value storage module. Further, the correspondence relationship between the combination of the order value and the number data and the presence or absence of dot formation for the pixel having the order value is stored in advance in the correspondence relationship storage module. Then, when the number data for the pixel group is received, the order value for each pixel in the pixel group is acquired, and the dot for each pixel is obtained by referring to the correspondence for each combination of the number data and the order value. Determine the presence or absence of formation. If the presence or absence of dot formation is determined while referring to the correspondence as described above, the number data can be converted quickly. Therefore, coupled with being able to receive the number data from the computer 10 quickly, it is possible to print an image quickly. In the following, various embodiments of the present invention will be described in detail by taking such a printing system as an example.

B.第1実施例 :
B−1.装置構成 :
図2は、本実施例の画像処理装置としてのコンピュータ100の構成を示す説明図である。コンピュータ100は、CPU102を中心に、ROM104やRAM106などを、バス116で互いに接続して構成された周知のコンピュータである。
B. First Example:
B-1. Device configuration :
FIG. 2 is an explanatory diagram illustrating a configuration of a computer 100 as the image processing apparatus according to the present exemplary embodiment. The computer 100 is a well-known computer configured by connecting a ROM 104, a RAM 106, and the like with a bus 116 around a CPU 102.

コンピュータ100には、フレキシブルディスク124やコンパクトディスク126等のデータを読み込むためのディスクコントローラDDC109や、周辺機器とデータの授受を行うための周辺機器インターフェースPIF108、CRT114を駆動するためのビデオインターフェースVIF112等が接続されている。PIF108には、後述するカラープリンタ200や、ハードディスク118等が接続されている。また、デジタルカメラ120やカラースキャナ122等をPIF108に接続すれば、デジタルカメラ120やカラースキャナ122で取り込んだ画像を印刷することも可能である。また、ネットワークインターフェースカードNIC110を装着すれば、コンピュータ100を通信回線300に接続して、通信回線に接続された記憶装置310に記憶されているデータを取得することもできる。   The computer 100 includes a disk controller DDC 109 for reading data such as the flexible disk 124 and the compact disk 126, a peripheral device interface PIF 108 for exchanging data with peripheral devices, a video interface VIF 112 for driving a CRT 114, and the like. It is connected. A color printer 200, a hard disk 118, and the like, which will be described later, are connected to the PIF 108. Further, if the digital camera 120, the color scanner 122, and the like are connected to the PIF 108, it is possible to print an image captured by the digital camera 120 or the color scanner 122. If the network interface card NIC 110 is attached, the computer 100 can be connected to the communication line 300 to acquire data stored in the storage device 310 connected to the communication line.

図3は、本実施例のカラープリンタ200の概略構成を示す説明図である。カラープリンタ200はシアン,マゼンタ,イエロ,ブラックの4色インクのドットを形成可能なインクジェットプリンタである。もちろん、これら4色のインクに加えて、染料または顔料濃度の低いシアン(淡シアン)インクと、染料または顔料濃度の低いマゼンタ(淡マゼンタ)インクとを含めた合計6色のインクドットを形成可能なインクジェットプリンタを用いることもできる。尚、以下では場合によって、シアンインク,マゼンタインク,イエロインク,ブラックインク,淡シアンインク,淡マゼンタインクのそれぞれを、Cインク,Mインク,Yインク,Kインク,LCインク,LMインクと略称することがあるものとする。   FIG. 3 is an explanatory diagram showing a schematic configuration of the color printer 200 of the present embodiment. The color printer 200 is an ink jet printer capable of forming dots of four color inks of cyan, magenta, yellow, and black. Of course, in addition to these four colors of ink, a total of six ink dots can be formed including cyan (light cyan) ink with low dye or pigment concentration and magenta (light magenta) ink with low dye or pigment concentration. An ink jet printer can also be used. In the following, cyan ink, magenta ink, yellow ink, black ink, light cyan ink, and light magenta ink are abbreviated as C ink, M ink, Y ink, K ink, LC ink, and LM ink, respectively. There shall be.

カラープリンタ200は、図示するように、キャリッジ240に搭載された印字ヘッド241を駆動してインクの吐出およびドット形成を行う機構と、このキャリッジ240をキャリッジモータ230によってプラテン236の軸方向に往復動させる機構と、紙送りモータ235によって印刷用紙Pを搬送する機構と、ドットの形成やキャリッジ240の移動および印刷用紙の搬送を制御する制御回路260などから構成されている。   As shown in the figure, the color printer 200 drives a print head 241 mounted on a carriage 240 to eject ink and form dots, and the carriage 240 is reciprocated in the axial direction of a platen 236 by a carriage motor 230. A mechanism for transporting the printing paper P by the paper feed motor 235, a control circuit 260 for controlling dot formation, carriage 240 movement, and printing paper transportation.

キャリッジ240には、Kインクを収納するインクカートリッジ242と、Cインク,Mインク,Yインクの各種インクを収納するインクカートリッジ243とが装着されている。インクカートリッジ242,243をキャリッジ240に装着すると、カートリッジ内の各インクは図示しない導入管を通じて、印字ヘッド241の下面に設けられた各色毎のインク吐出用ヘッド244ないし247に供給される。   An ink cartridge 242 that stores K ink and an ink cartridge 243 that stores various inks of C ink, M ink, and Y ink are mounted on the carriage 240. When the ink cartridges 242 and 243 are mounted on the carriage 240, each ink in the cartridge is supplied to ink discharge heads 244 to 247 for each color provided on the lower surface of the print head 241 through an introduction pipe (not shown).

図4は、インク吐出用ヘッド244ないし247におけるインクジェットノズルNzの配列を示す説明図である。図示するように、インク吐出用ヘッドの底面には、C,M,Y,Kの各色のインクを吐出する4組のノズル列が形成されており、1組のノズル列あたり48個のノズルNzが、一定のノズルピッチkで配列されている。   FIG. 4 is an explanatory diagram showing the arrangement of the ink jet nozzles Nz in the ink ejection heads 244 to 247. As shown in the figure, on the bottom surface of the ink ejection head, four sets of nozzle rows for ejecting ink of each color of C, M, Y, and K are formed, and 48 nozzles Nz per set of nozzle rows. Are arranged at a constant nozzle pitch k.

制御回路260は、CPUや、ROM、RAM、PIF(周辺機器インターフェース)等がバスで相互に接続されて構成されている。制御回路260は、キャリッジモータ230および紙送りモータ235の動作を制御することによってキャリッジ240の主走査動作および副走査動作を制御するとともに、コンピュータ100から供給されるデータに基づいて、各ノズルから適切なタイミングでインク滴を吐出する制御を行う。こうして、制御回路260の制御の下、印刷媒体上の適切な位置に各色のインクドットを形成することによって、カラープリンタ200はカラー画像を印刷することができる。   The control circuit 260 is configured by connecting a CPU, a ROM, a RAM, a PIF (peripheral device interface), and the like via a bus. The control circuit 260 controls the main scanning operation and the sub-scanning operation of the carriage 240 by controlling the operations of the carriage motor 230 and the paper feed motor 235, and appropriately controls each nozzle based on the data supplied from the computer 100. Control to eject ink droplets at a proper timing. Thus, the color printer 200 can print a color image by forming ink dots of respective colors at appropriate positions on the print medium under the control of the control circuit 260.

また、インク滴を吐出するためにノズルに供給される駆動信号波形を制御してやれば、吐出されるインク滴の大きさを変更して、大きさの異なるインクドットを形成することもできる。このようにしてインクドットの大きさを制御すれば、印刷しようとする画像の領域に応じて異なる大きさのインクドットを使い分けて形成することで、より高画質の画像を印刷することも可能となる。   Further, if the drive signal waveform supplied to the nozzles for ejecting ink droplets is controlled, the size of the ejected ink droplets can be changed to form ink dots having different sizes. By controlling the size of the ink dots in this way, it is possible to print higher quality images by forming different ink dots depending on the area of the image to be printed. Become.

尚、各色のインク吐出ヘッドからインク滴を吐出する方法には、種々の方法を適用することができる。すなわち、ピエゾ素子を用いてインクを吐出する方式や、インク通路に配置したヒータでインク通路内に泡(バブル)を発生させてインク滴を吐出する方法などを用いることができる。また、インクを吐出する代わりに、熱転写などの現象を利用して印刷用紙上にインクドットを形成する方式や、静電気を利用して各色のトナー粉を印刷媒体上に付着させる方式のプリンタを使用することも可能である。   Various methods can be applied to the method of ejecting ink droplets from the ink ejection heads of the respective colors. That is, a method of ejecting ink using a piezoelectric element, a method of ejecting ink droplets by generating bubbles in the ink passage with a heater arranged in the ink passage, and the like can be used. Also, instead of ejecting ink, use a method that uses ink transfer to form ink dots on printing paper using a phenomenon such as thermal transfer, or a method that uses static electricity to attach toner powder of each color onto the print medium. It is also possible to do.

以上のようなハードウェア構成を有するカラープリンタ200は、キャリッジモータ230を駆動することによって、各色のインク吐出用ヘッド244ないし247を印刷用紙Pに対して主走査方向に移動させ、また紙送りモータ235を駆動することによって、印刷用紙Pを副走査方向に移動させる。制御回路260は、キャリッジ240の主走査および副走査の動きに同期させながら、適切なタイミングでノズルを駆動してインク滴を吐出することによって、カラープリンタ200は印刷用紙上にカラー画像を印刷している。   The color printer 200 having the hardware configuration as described above drives the carriage motor 230 to move the ink ejection heads 244 to 247 for each color in the main scanning direction with respect to the printing paper P, and the paper feed motor. By driving 235, the printing paper P is moved in the sub-scanning direction. The control circuit 260 drives the nozzles at appropriate timing to eject ink droplets in synchronization with the main scanning and sub-scanning movements of the carriage 240, so that the color printer 200 prints a color image on the printing paper. ing.

B−2.第1実施例の画像印刷処理の概要 :
以下では、上記のようなコンピュータ100およびカラープリンタ200が、画像を印刷するために、それぞれの内部で行われる画像処理(画像印刷処理)について説明する。ここでは、理解の便宜を図るため、初めに画像印刷処理の全体像について簡単に説明し、次に、こうした画像印刷処理が可能である原理について説明する。そして最後に、それぞれの処理の詳細な内容について説明する。
B-2. Overview of image printing process of first embodiment:
Hereinafter, image processing (image printing processing) performed inside the computer 100 and the color printer 200 in order to print an image will be described. Here, for convenience of understanding, the overall image printing process will be briefly described first, and then the principle that such image printing process is possible will be described. Finally, the details of each process will be described.

尚、以下では、画像印刷処理の前半部分はコンピュータ100で実施され、後半部分はカラープリンタ200で実施されるものとして説明するが、コンピュータ100が行う処理をカラープリンタ200の内部で実施したり、あるいはデジタルカメラ120など、画像データを生成する機器の内部で実施することとしてもよい。   In the following description, it is assumed that the first half of the image printing process is performed by the computer 100 and the second half is performed by the color printer 200. However, the processing performed by the computer 100 is performed inside the color printer 200. Or it is good also as implementing inside the apparatus which produces | generates image data, such as the digital camera 120. FIG.

図5は、第1実施例の画像印刷処理の全体的な流れを示すフローチャートである。以下では、図5を参照しながら、画像印刷処理の全体像について簡単に説明する。第1実施例の画像印刷処理を開始すると、先ず初めに、コンピュータ100が画像データの読み込みを開始する(ステップS100)。ここでは、画像データはRGBカラー画像データであるものとして説明するが、カラー画像データに限らず、モノクロ画像データについても同様に適用することができる。また、カラープリンタに限らず単色プリンタについても同様に適用することが可能である。   FIG. 5 is a flowchart showing the overall flow of the image printing process of the first embodiment. Hereinafter, the overall image of the image printing process will be briefly described with reference to FIG. When the image printing process of the first embodiment is started, first, the computer 100 starts reading image data (step S100). Here, the image data is assumed to be RGB color image data, but the present invention is not limited to color image data, and can be similarly applied to monochrome image data. Further, not only a color printer but also a single color printer can be similarly applied.

カラー画像データの読み込みに続いて、色変換処理を行う(ステップS102)。色変換処理とは、R,G,Bの階調値の組合せによって表現されているRGBカラー画像データを、印刷のために使用されるインク各色についての階調値の組合せによって表現された画像データに変換する処理である。前述したように、カラープリンタ200はC,M,Y,Kの4色のインクを用いて画像を印刷している。そこで、第1実施例の色変換処理ではRGB各色によって表現された画像データを、C,M,Y,Kの各色の階調値によって表現されたデータに変換する。色変換処理は、色変換テーブル(LUT)と呼ばれる3次元の数表を参照することで行う。LUTには、RGBカラー画像データに対して、色変換によって得られるC,M,Y,K各色の階調値が予め記憶されている。ステップS102の処理では、このLUTを参照することにより、RGBカラー画像データをC,M,Y,K各色の画像データに迅速に色変換することが可能となっている。   Following the reading of the color image data, a color conversion process is performed (step S102). Color conversion processing refers to RGB color image data expressed by a combination of R, G, and B gradation values, and image data expressed by a combination of gradation values for each color of ink used for printing. It is processing to convert to. As described above, the color printer 200 prints an image using four color inks of C, M, Y, and K. Therefore, in the color conversion processing of the first embodiment, image data expressed by RGB colors is converted to data expressed by gradation values of C, M, Y, and K colors. The color conversion process is performed by referring to a three-dimensional numerical table called a color conversion table (LUT). In the LUT, gradation values of C, M, Y, and K colors obtained by color conversion are stored in advance for RGB color image data. In the process of step S102, RGB color image data can be quickly color-converted into C, M, Y, and K image data by referring to this LUT.

色変換処理を終了すると、解像度変換処理を開始する(ステップS104)。解像度変換処理とは、画像データの解像度を、プリンタ200が画像を印刷する解像度(印刷解像度)に変換する処理である。画像データの解像度が印刷解像度よりも低い場合は、補間演算を行って画素間に新たな画像データを生成し、逆に画像データの解像度が印刷解像度よりも高い場合には、一定の割合でデータを間引くことによって、画像データの解像度を印刷解像度に一致させる処理を行う。   When the color conversion process is finished, the resolution conversion process is started (step S104). The resolution conversion process is a process of converting the resolution of image data to a resolution (printing resolution) at which the printer 200 prints an image. When the resolution of the image data is lower than the print resolution, an interpolation operation is performed to generate new image data between the pixels. Conversely, when the resolution of the image data is higher than the print resolution, the data is at a certain rate. Is performed to match the resolution of the image data with the print resolution.

以上のようにして解像度を印刷解像度に変換したら、コンピュータ100は、個数データ生成処理を開始する(ステップS106)。個数データ生成処理の詳細な内容は後ほど詳しく説明することとして、ここでは概要のみを説明する。個数データ生成処理では、隣接する画素を所定個数ずつ画素群としてまとめることにより、1つ画像を複数の画素群に分割する。そして、それぞれの画素群の中で形成すべきドットの個数を表すデータ、すなわち個数データを画素群毎に決定する。一般に、ある画素にドットが形成されるか否かは、その画素の画像データに依存して決まるから、画素群内に形成されるドットの個数を表す個数データについても、画素群についての画像データに基づいて決定することができる。次いで、各画素群について決定した個数データを、カラープリンタ200に向かって出力する。個数データ生成処理では、このようにして、各画素についての画像データに基づいて個数データを画素群毎に生成した後、カラープリンタ200に供給する処理を行う。   When the resolution is converted into the print resolution as described above, the computer 100 starts the number data generation process (step S106). The detailed contents of the number data generation processing will be described in detail later, and only the outline will be described here. In the number data generation process, a predetermined number of adjacent pixels are grouped into a pixel group, thereby dividing one image into a plurality of pixel groups. Data representing the number of dots to be formed in each pixel group, that is, number data is determined for each pixel group. In general, whether or not a dot is formed in a pixel is determined depending on the image data of the pixel. Therefore, the number data indicating the number of dots formed in the pixel group is also the image data for the pixel group. Can be determined based on Next, the number data determined for each pixel group is output to the color printer 200. In the number data generation process, after the number data is generated for each pixel group based on the image data for each pixel in this way, a process for supplying the number data to the color printer 200 is performed.

カラープリンタ200の制御回路260に内蔵されたCPUは、コンピュータ100から供給された個数データを受け取ると、ドット形成有無決定処理を開始する(ステップS108)。詳細な処理内容については後述するが、ドット形成有無決定処理では大まかには次のような処理を行う。上述したように、コンピュータ100から供給される個数データは、画素群に形成すべきドットの個数を表すデータであり、その個数のドットを画素群内のいずれの画素に形成するかについては未確定な状態となっている。そこで、画像を印刷するに先立って、画素群内の各画素についてドット形成の有無を決定しておく必要がある。ドット形成有無決定処理では、画素群内の各画素について、該画素群内でドットが形成される順番を示す順序値を記憶しておき、該順序値および個数データに基づいてドット形成の有無を決定することで、迅速に決定することが可能となっている。ドット形成有無を決定する処理の詳細についても後述する。   When the CPU incorporated in the control circuit 260 of the color printer 200 receives the number data supplied from the computer 100, it starts the dot formation presence / absence determination process (step S108). Although detailed processing will be described later, in the dot formation presence / absence determination processing, the following processing is roughly performed. As described above, the number data supplied from the computer 100 is data representing the number of dots to be formed in the pixel group, and it is undecided which pixel in the pixel group the number of dots is to be formed in. It is in a state. Therefore, prior to printing an image, it is necessary to determine whether or not to form dots for each pixel in the pixel group. In the dot formation presence / absence determination process, an order value indicating the order in which dots are formed in the pixel group is stored for each pixel in the pixel group, and the presence / absence of dot formation is determined based on the order value and the number data. By deciding, it is possible to decide quickly. Details of the process for determining whether or not to form dots will also be described later.

以上のようにして、画素群内の各画素についてドット形成の有無を決定したら、決定したドット形成の有無に従って、出力媒体上にドットを形成する処理を行う(ステップS110)。すなわち、図3を用いて説明したように、キャリッジ240の主走査および副走査を繰り返しながらインク吐出用ヘッドを駆動してインク滴を吐出することにより、印刷用紙上にインクのドットを形成する。こうしてドットを形成することにより、画像データに対応した画像が印刷されることになる。   After determining whether or not to form dots for each pixel in the pixel group as described above, processing for forming dots on the output medium is performed according to the determined presence or absence of dot formation (step S110). That is, as described with reference to FIG. 3, ink dots are formed on the printing paper by driving ink discharge heads and discharging ink droplets while repeating main scanning and sub-scanning of the carriage 240. By forming dots in this way, an image corresponding to the image data is printed.

このように、第1実施例の画像印刷処理では、コンピュータ100からカラープリンタ200に向かって、画素群に形成すべきドット個数のデータのみを供給しており、画素群に含まれる各画素についてのドット形成の有無に関するデータまでは供給していない。画素毎にドット形成の有無を表すデータに比べれば、画素群に形成するドットの個数は遙かに少ないデータ量で表現することができることから、このような方法を採用することで、コンピュータ100からカラープリンタ200に向かって極めて迅速にデータを供給することが可能となる。   As described above, in the image printing process of the first embodiment, only the data of the number of dots to be formed in the pixel group is supplied from the computer 100 to the color printer 200, and each pixel included in the pixel group is supplied. It does not supply data on the presence or absence of dot formation. Compared with data representing the presence or absence of dot formation for each pixel, the number of dots formed in a pixel group can be expressed with a much smaller amount of data. Data can be supplied to the color printer 200 very quickly.

例えば、1つの画素群に8つの画素がまとめられており、形成可能なドットは1種類であるとする。この場合、各画素はドットが形成されるか否かのいずれかの状態しか取り得ないから、画素あたり1ビットのデータ長があれば表現することができる。画素群には8つの画素が含まれているから、画素群内の全画素についてドット形成の有無を表現しようとすると、8ビットのデータ長が必要となる。一方、画素群内に形成されるドットの個数は、0個〜8個のいずれかの9通りしか取り得ない。9通りであれば4ビットあれば表現することができるから、画素群に形成するドットの個数は4ビットのデータ長で表現可能となる。このように、画素毎にドット形成の有無を表すデータに比べて、画素群内に形成されるドット個数は遙かに少ないデータ量で表現することができるのである。   For example, it is assumed that eight pixels are grouped in one pixel group, and one type of dot can be formed. In this case, since each pixel can only take one of the states of whether or not dots are formed, it can be expressed if there is a data length of 1 bit per pixel. Since the pixel group includes eight pixels, an 8-bit data length is required to express the presence or absence of dot formation for all the pixels in the pixel group. On the other hand, the number of dots formed in the pixel group can be only nine from 0 to 8. If there are nine patterns, four bits can be used for expression, so the number of dots formed in the pixel group can be expressed using a 4-bit data length. In this way, the number of dots formed in a pixel group can be expressed with a much smaller amount of data than data representing the presence / absence of dot formation for each pixel.

このように、画素毎にドット形成の有無を表すデータに比べれば、画素群に形成するドットの個数は遙かに少ないデータ量で表現することが可能である。第1実施例の画像印刷処理では、コンピュータ100からカラープリンタ200に向かって、画素群に形成すべきドット個数のデータのみを供給することにより、コンピュータ100からカラープリンタ200に向かって極めて迅速にデータを供給することが可能となる。   In this way, the number of dots formed in a pixel group can be expressed with a much smaller amount of data compared to data representing the presence or absence of dot formation for each pixel. In the image printing process of the first embodiment, data is supplied very quickly from the computer 100 to the color printer 200 by supplying only data of the number of dots to be formed in the pixel group from the computer 100 to the color printer 200. Can be supplied.

また、カラープリンタ200は、コンピュータ100から画素群毎に個数データを受け取ると、画素群内の各画素についてのドット形成の有無を、後述する方法を用いて決定することで、極めて迅速に決定することが可能となっている。加えて、詳細には後述するが、各画素についてのドット形成の有無を適切に決定してやれば、ドット個数のデータのみを供給した場合でも、画質が悪化することはない。特に、後述する所定の条件においては、画素毎にドット形成の有無を表すデータを供給した場合と全く同じ結果を得ることが可能である。   Further, when the color printer 200 receives the number data for each pixel group from the computer 100, the color printer 200 determines the presence or absence of dot formation for each pixel in the pixel group by using a method described later, thereby determining extremely rapidly. It is possible. In addition, as will be described in detail later, if the presence or absence of dot formation for each pixel is appropriately determined, the image quality will not deteriorate even when only the data for the number of dots is supplied. In particular, under the predetermined conditions described later, it is possible to obtain exactly the same result as when data representing the presence / absence of dot formation is supplied for each pixel.

B−3.個数データに基づいて各画素のドット形成有無を決定可能な原理 :
以下では、上述した方法を採用した場合、すなわち、コンピュータ100からは画素群に形成するドット個数のデータを供給し、このドット個数のデータに基づいて、各画素についてのドット形成の有無をカラープリンタ200側で決定した場合でも、画質を悪化させることなく画像を印刷することが可能な原理について説明する。
B-3. Principle that can determine whether or not dots are formed for each pixel based on the number data:
In the following, when the above-described method is adopted, that is, the computer 100 supplies the data of the number of dots formed in the pixel group, and based on the data of the number of dots, the presence or absence of dot formation for each pixel is determined by the color printer. The principle of printing an image without deteriorating the image quality even when determined on the 200 side will be described.

説明の都合上、先ず初めに、ディザ法について説明する。ディザ法とは、画像データを画素毎にドット形成の有無を表すデータに変換するために用いられる代表的な手法である。この手法では、ディザマトリックスと呼ばれるマトリックスに閾値を設定しておき、画像データの階調値とディザマトリックスに設定されている閾値とを画素毎に比較して、画像データの階調値の方が大きい画素についてはドットを形成すると判断し、そうでない画素についてはドットを形成しないと判断する。このような判断を画像中の全画素について行えば、画像データを画素毎にドット形成の有無を表すデータに変換することができる。   For the convenience of explanation, the dither method will be described first. The dither method is a typical method used for converting image data into data representing the presence or absence of dot formation for each pixel. In this method, threshold values are set in a matrix called a dither matrix, and the tone values of the image data are compared with the threshold values set in the dither matrix for each pixel. It is determined that a dot is formed for a large pixel, and a dot is not formed for a pixel that is not so. If such a determination is made for all the pixels in the image, the image data can be converted into data representing the presence or absence of dot formation for each pixel.

図6は、ディザマトリックスの一部を概念的に例示した説明図である。図示したマトリックスには、横方向(主走査方向)に128画素、縦方向(副走査方向)に64画素、合計8192個の画素に、階調値1〜255の範囲から万遍なく選択された閾値がランダムに記憶されている。ここで、閾値の階調値が1〜255の範囲から選択されているのは、本実施例では画像データが階調値0〜255の値を取り得る1バイトデータであるとしていることに加えて、画像データの階調値と閾値とが等しい場合には、その画素にはドットを形成するものと判断していることによる。   FIG. 6 is an explanatory diagram conceptually illustrating a part of the dither matrix. In the illustrated matrix, 128 pixels in the horizontal direction (main scanning direction), 64 pixels in the vertical direction (sub-scanning direction), a total of 8192 pixels, were selected uniformly from the range of gradation values 1 to 255. The threshold value is stored randomly. Here, the threshold gradation value is selected from the range of 1 to 255 in addition to the fact that in this embodiment, the image data is 1-byte data that can take a gradation value of 0 to 255. If the gradation value of the image data is equal to the threshold value, it is determined that a dot is formed for that pixel.

すなわち、ドットが形成されるのは画像データの階調値が閾値よりも大きい画素に限る(すなわち階調値と閾値が等しい画素にはドットは形成しない)とした場合、画像データの取り得る最大階調値と同じ値の閾値を有する画素には、決してドットが形成されることはない。こうしたことを避けるため、閾値の取り得る範囲は、画像データの取り得る範囲から最大階調値を除いた範囲とする。逆に、画像データの階調値と閾値が等しい画素にもドットを形成するとした場合、画像データの取り得る最小階調値と同じ値の閾値を有する画素には、常にドットが形成されてしまうことになる。こうしたことを避けるため、閾値の取り得る範囲は、画像データの取り得る範囲から最小階調値を除いた範囲とする。本実施例では、画像データの取り得る階調値が0〜255であり、画像データと閾値が等しい画素にはドットを形成するとしていることから、閾値の取り得る範囲を1〜255としておくのである。尚、ディザマトリックスの大きさは、図6に例示したような大きさに限られるものではなく、縦と横の画素数が同じマトリックスも含めて種々の大きさとすることができる。   In other words, if the dots are formed only in pixels where the gradation value of the image data is larger than the threshold value (that is, dots are not formed in pixels where the gradation value is equal to the threshold value), the maximum possible image data can be obtained A dot is never formed on a pixel having a threshold value equal to the gradation value. In order to avoid such a situation, the range that can be taken by the threshold is a range obtained by removing the maximum gradation value from the range that can be taken by the image data. On the other hand, when dots are also formed on pixels having the same threshold value as the gradation value of the image data, dots are always formed on pixels having the same threshold value as the minimum gradation value that the image data can take. It will be. In order to avoid such a situation, the range that can be taken by the threshold is a range obtained by excluding the minimum gradation value from the range that can be taken by the image data. In this embodiment, the gradation values that the image data can take are 0 to 255, and dots are formed in pixels that have the same threshold as the image data. Therefore, the range that the threshold can take is set to 1 to 255. is there. Note that the size of the dither matrix is not limited to the size illustrated in FIG. 6, and can be various sizes including a matrix having the same number of vertical and horizontal pixels.

図7は、ディザマトリックスを参照しながら、各画素についてのドット形成の有無を判断している様子を概念的に示した説明図である。ドット形成の有無を判断するに際しては、先ず、判断しようとする画素を選択し、この画素についての画像データの階調値と、ディザマトリックス中で対応する位置に記憶されている閾値と比較する。図7中に示した細い破線の矢印は、画像データの階調値と、ディザマトリックスに記憶されている閾値とを、画素毎に比較していることを模式的に表したものである。例えば、画像データの左上隅の画素については、画像データの階調値は97であり、ディザマトリックスの閾値は1であるから、この画素にはドットを形成すると判断する。図7中に実線で示した矢印は、この画素にはドットを形成すると判断して、判断結果をメモリに書き込んでいる様子を概念的に表したものである。一方、この画素の右隣の画素については、画像データの階調値は97、ディザマトリックスの閾値は177であり、閾値の方が大きいので、この画素についてはドットを形成しないと判断する。ディザ法では、こうしてディザマトリックスを参照しながら、画素毎にドットを形成するか否かを判断することで、画像データを画素毎にドット形成の有無を表すデータに変換する。   FIG. 7 is an explanatory diagram conceptually showing a state in which the presence or absence of dot formation for each pixel is determined with reference to the dither matrix. When determining the presence or absence of dot formation, first, the pixel to be determined is selected, and the gradation value of the image data for this pixel is compared with the threshold value stored at the corresponding position in the dither matrix. The thin broken arrow shown in FIG. 7 schematically shows that the gradation value of the image data is compared with the threshold value stored in the dither matrix for each pixel. For example, for the pixel in the upper left corner of the image data, the gradation value of the image data is 97 and the threshold value of the dither matrix is 1, so it is determined that a dot is formed on this pixel. An arrow indicated by a solid line in FIG. 7 conceptually represents a state in which it is determined that a dot is formed in this pixel and the determination result is written in the memory. On the other hand, for the pixel on the right side of this pixel, the gradation value of the image data is 97, and the threshold value of the dither matrix is 177. Since the threshold value is larger, it is determined that no dot is formed for this pixel. In the dither method, by referring to the dither matrix and determining whether or not to form dots for each pixel, the image data is converted into data representing the presence or absence of dot formation for each pixel.

図8は、ディザ法を用いて画像データをドット形成の有無を表すデータに変換している様子を示した説明図である。図8(a)は、画像データの一部を拡大して示したものであり、図中の小さな矩形は画素を、そして、それぞれの矩形の中に表示された数値は画像データの階調値を表している。図示されているように、画像データは、隣接する画素間では近似する(若しくは同一の)階調値が割り当てられる傾向がある。こうした傾向は、高画質化の要請から画像データの解像度は高くなる傾向にあるが、隣接する画素間で近似若しくは同一の階調値が割り当てられる傾向は、画像データの解像度が高くなるほど顕著となっている。   FIG. 8 is an explanatory diagram showing a state in which image data is converted into data representing the presence or absence of dot formation using the dither method. FIG. 8A shows an enlarged part of the image data. The small rectangles in the drawing represent pixels, and the numerical values displayed in the respective rectangles represent the gradation values of the image data. Represents. As shown in the figure, the image data tends to be assigned an approximate (or the same) gradation value between adjacent pixels. These tendencies tend to increase the resolution of image data due to the demand for higher image quality. However, the tendency to assign approximate or identical gradation values between adjacent pixels becomes more prominent as the resolution of image data increases. ing.

図8(b)は、ディザマトリックスの対応する位置に閾値が設定されている様子を示している。図8(a)に示した画像データの階調値と、図8(b)に示したディザマトリックスの閾値とを画素毎に比較することによって、ドット形成の有無を判断する。図8(c)は、こうして画素毎にドット形成の有無を判断した結果を示しており、図中で斜線を付した画素がドットを形成すると判断された画素である。   FIG. 8B shows how threshold values are set at corresponding positions in the dither matrix. The gradation value of the image data shown in FIG. 8A and the threshold value of the dither matrix shown in FIG. 8B are compared for each pixel to determine whether or not dots are formed. FIG. 8C shows the result of determining the presence or absence of dot formation for each pixel in this way, and the hatched pixels in the figure are pixels that are determined to form dots.

ここで、隣接する画素を所定数ずつ画素群としてまとめ、画素群内でドットを形成すると判断された画素の個数を数えることを考える。一例として、主走査方向(図8中では横方向)に4画素分、副走査方向(図8中では縦方向)に2画素分の、合計8画素ずつを画素群としてまとめるものとする。図8(d)は、こうしてまとめられたそれぞれの画素群について、ドットを形成すると判断された画素を数えることによって得られたドット個数を示している。第1実施例の画像印刷処理において、コンピュータ100からカラープリンタ200に供給されるのは、このような画素群毎の個数のデータである。個数データには、ドットを形成する画素位置に関する情報は含まれていないが、次のようにすれば、個数データからドットを形成する画素位置の情報を復元して、画素毎にドット形成の有無を表すデータを生成することができる。   Here, it is considered that a predetermined number of adjacent pixels are grouped into a pixel group, and the number of pixels determined to form dots within the pixel group is counted. As an example, a total of 8 pixels, which are 4 pixels in the main scanning direction (horizontal direction in FIG. 8) and 2 pixels in the sub-scanning direction (vertical direction in FIG. 8), are grouped as a pixel group. FIG. 8D shows the number of dots obtained by counting the pixels that are determined to form dots for each group of pixels grouped in this way. In the image printing process of the first embodiment, the number of data for each pixel group is supplied from the computer 100 to the color printer 200. The number data does not include information on the pixel position where dots are formed, but if the following is performed, information on the pixel positions where dots are formed is restored from the number data, and whether or not dots are formed for each pixel. Can be generated.

図9は、個数のデータから、画素毎にドット形成の有無を表すデータを生成する様子を示した説明図である。図9(a)は、図8で画素群毎に形成するドットの個数を数えて得られた値を表している。また、図9(b)は、図8で画素毎にドット形成の有無を判断するために参照したディザマトリックスを示している。前述したようにディザ法では、画像データの階調値と、ディザマトリックスの対応する画素位置に設定された閾値とを比較して、画像データの階調値の方が大きければ、その画素にはドットを形成すると判断しており、ディザマトリックスの閾値が小さくなるほどドットが形成され易くなる。このことから、ディザマトリックスはドットが形成される画素の序列を表していると考えることができる。   FIG. 9 is an explanatory diagram showing a state in which data representing the presence / absence of dot formation for each pixel is generated from the number of data. FIG. 9A shows values obtained by counting the number of dots formed for each pixel group in FIG. FIG. 9B shows a dither matrix that is referred to in FIG. 8 to determine the presence or absence of dot formation for each pixel. As described above, in the dither method, the gradation value of the image data is compared with the threshold value set at the corresponding pixel position of the dither matrix. It is determined that dots are to be formed, and the smaller the threshold of the dither matrix, the easier it is to form dots. From this, it can be considered that the dither matrix represents an order of pixels in which dots are formed.

ディザマトリックスの有するこうした性質に着目すれば、画素群内に形成されるドットの個数から、ドットが形成される画素位置を決定することができる。例えば、図9(a)に示した一番左上隅の画素群について説明すると、この画素群に形成されるドット個数は3である。また、図9(b)に示したディザマトリックスを参照すれば、この画素群内では、左上隅にある画素位置すなわち閾値「1」が設定されている画素位置が最もドットが形成され易い画素であると言える。従って、この画素群内で3つ形成されるドットの中の1つは、左上隅の画素に形成されているものと考えることができる。同様にして、残りの2つのドットは、この画素群内で2番目にドットが形成され易い画素(すなわち図9(b)のディザマトリックスで閾値「42」が設定されている画素)と、3番目にドットが形成され易い画素(すなわち閾値「58」が設定されている画素)とに形成されるものと考えることができる。   Paying attention to these properties of the dither matrix, the pixel position where the dots are formed can be determined from the number of dots formed in the pixel group. For example, the pixel group at the upper left corner shown in FIG. 9A will be described. The number of dots formed in this pixel group is three. Further, referring to the dither matrix shown in FIG. 9B, in this pixel group, the pixel position at the upper left corner, that is, the pixel position where the threshold value “1” is set is the pixel in which the dot is most easily formed. It can be said that there is. Therefore, it can be considered that one of the three dots formed in this pixel group is formed in the pixel in the upper left corner. Similarly, the remaining two dots are a pixel in which a dot is most likely to be formed in this pixel group (that is, a pixel for which the threshold value “42” is set in the dither matrix in FIG. 9B), and 3 It can be considered that the dots are formed on the pixels where dots are easily formed (that is, pixels on which the threshold value “58” is set).

もちろん、ドット形成の有無は、ディザマトリックスに設定された閾値だけでなく、画像データの階調値によっても影響されるから、画像データの階調値が極端に大きければ、より小さな閾値が設定されている画素よりも先にドットが形成されることも起こり得る。しかし、前述したように画像データには、隣接する画素には近似する(若しくは同一の)階調値が割り当てられる傾向があるから、ほとんどの場合はドットが形成され易い画素(すなわちディザマトリックスに設定された閾値の小さな画素)からドットが形成されると考えることができる。   Of course, the presence or absence of dot formation is influenced not only by the threshold value set in the dither matrix but also by the gradation value of the image data. Therefore, if the gradation value of the image data is extremely large, a smaller threshold value is set. It is also possible that dots are formed before the pixels that are present. However, as described above, image data tends to be assigned an approximate (or the same) gradation value to adjacent pixels, and in most cases, pixels in which dots are easily formed (that is, set in a dither matrix). It can be considered that a dot is formed from a pixel having a small threshold value.

図9(a)に示した他の画素群についても、同様にして、ドット個数とディザマトリックスの閾値とに基づいて、ドットを形成する画素位置を決定することができる。例えば、図9(a)の上述した画素群の下にある画素群(左端上から2番目の画素群)については、ドット個数は3個であるから、図9(b)のディザマトリックスを参照すれば、これら3つのドットは、閾値「22」が設定された画素と、閾値「33」が設定された画素と、閾値「91」が設定された画素とに、それぞれ形成されると考えることができる。   Similarly, for the other pixel groups shown in FIG. 9A, the pixel positions where dots are formed can be determined based on the number of dots and the threshold value of the dither matrix. For example, for the pixel group (second pixel group from the upper left) in the pixel group described above in FIG. 9A, the number of dots is 3, so refer to the dither matrix in FIG. 9B. Then, it is considered that these three dots are formed in a pixel set with the threshold “22”, a pixel set with the threshold “33”, and a pixel set with the threshold “91”, respectively. Can do.

図9(a)に示した4つの画素群について、このようにして個数データからドットを形成する画素位置を決定すると、図9(c)に示した結果を得ることができる。図9(c)中で、斜線を付して示した画素はドットを形成すると判断された画素である。図9(c)と図8(c)とを比較すれば明らかなように、個数データから決定した画素位置は、画素毎に決定した画素位置と一致している。このことは、ディザマトリックスを参照して画素毎にドット形成の有無を判断し、画素群内に形成されるドットの個数のみを記憶しておけば、画素位置までは記憶していなくても、ディザマトリックスとドット個数とから、ドットが形成される画素位置を復元可能なことを示している。このことから、コンピュータ100から画素群毎の個数データを供給し、カラープリンタ200側で個数データからドットを形成する画素位置を決定した場合でも、画素位置を適切に決定して、画質を悪化させることなく画像を印刷することが可能となるのである。   For the four pixel groups shown in FIG. 9A, when the pixel positions for forming dots are determined from the number data in this way, the result shown in FIG. 9C can be obtained. In FIG. 9C, pixels indicated by hatching are pixels that are determined to form dots. As is clear from a comparison between FIG. 9C and FIG. 8C, the pixel position determined from the number data coincides with the pixel position determined for each pixel. This means that the presence or absence of dot formation for each pixel is determined with reference to the dither matrix, and if only the number of dots formed in the pixel group is stored, the pixel position may not be stored, From the dither matrix and the number of dots, it is shown that the pixel position where the dots are formed can be restored. Therefore, even when the number data for each pixel group is supplied from the computer 100 and the pixel position for forming dots is determined from the number data on the color printer 200 side, the pixel position is appropriately determined to deteriorate the image quality. This makes it possible to print an image without any problem.

また、個数データからドットを形成する画素位置を適切に決定するためには、画像データの階調値が画素群内で大きく異なっていなければ良い。前述したように、画像データは隣接する画素間では近似した階調値を有する特性があるから、こうした条件はほとんどの場合に成立しており、従って、個数データのみをカラープリンタ200に供給した場合でも、画質を悪化させることなく画像を印刷することができるのである。   In addition, in order to appropriately determine the pixel position where the dot is formed from the number data, it is sufficient that the gradation value of the image data is not significantly different within the pixel group. As described above, since the image data has a characteristic of having an approximate gradation value between adjacent pixels, such a condition is satisfied in most cases. Therefore, when only the number data is supplied to the color printer 200. However, it is possible to print an image without deteriorating the image quality.

特に、次の2つの条件が満足される場合には、画像データの階調値とディザマトリックスの閾値とを比較してドット形成の有無を画素毎に判断した結果と、完全に同じ画素位置にドットを形成可能なことが保証される。先ず1つ目の条件は、画素群内で各画素の階調値が同一の値を有することであり、2つ目の条件は、コンピュータ100側で画素毎にドット形成の有無を判断する際に参照したディザマトリックスと、カラープリンタ200側で個数データから画素位置を決定するために参照するディザマトリックスとが、同一のマトリックスであることである。   In particular, when the following two conditions are satisfied, the gradation value of the image data and the threshold value of the dither matrix are compared, and the result of determining the presence or absence of dot formation for each pixel is the same as the pixel position. It is guaranteed that dots can be formed. The first condition is that the gradation value of each pixel in the pixel group has the same value, and the second condition is when the computer 100 determines whether or not dots are formed for each pixel. The dither matrix referred to in the above and the dither matrix referred to determine the pixel position from the number data on the color printer 200 side are the same matrix.

尚、図7で説明したディザ法においては、ディザマトリックスに設定された閾値と画像データとの階調値とを比較して、いずれの値が大きいかによってドット形成の有無を判断している。これに対して、個数データから画素群内でドットが形成される画素位置を決定する場合には、図9を用いて説明したように、ドットが形成される画素位置を、ディザマトリックスに設定された閾値の小さな画素から順番に決定している。すなわち、画素位置を決定するためには、閾値の値まで必要なわけではなく、画素群内でドットが形成される順番が分かっていれば良い。このことから、図9(b)に示すディザマトリックスの代わりに、図9(d)に示すような画素群内の各画素について、ドットが形成される順番を示す値(順序値)が設定されたマトリックス(本明細書中では、このようなマトリックスを順序値マトリックスと呼ぶものとする)を記憶しておき、画素群毎に順序値マトリックスを参照しながら、個数データから画素位置を決定することとも可能である。   In the dither method described with reference to FIG. 7, the threshold value set in the dither matrix is compared with the gradation value of the image data, and the presence / absence of dot formation is determined depending on which value is larger. On the other hand, when the pixel position where the dot is formed in the pixel group is determined from the number data, the pixel position where the dot is formed is set in the dither matrix as described with reference to FIG. The pixels with the smallest threshold are determined in order. That is, in order to determine the pixel position, the threshold value is not necessary, and it is sufficient that the order in which dots are formed in the pixel group is known. Therefore, instead of the dither matrix shown in FIG. 9B, a value (order value) indicating the order in which dots are formed is set for each pixel in the pixel group as shown in FIG. 9D. A matrix (in this specification, such a matrix is called an order value matrix) is stored, and a pixel position is determined from the number data while referring to the order value matrix for each pixel group. Both are possible.

また、以上の説明では、図9に示したように、ディザマトリックスに基づいて生成された複数種類の順序値マトリックスを予め記憶しておき、画素群の個数データを受け取ると、その画素群に対応した順序値マトリックスを用いて、各画素についてのドット形成の有無を決定するものとして説明した。しかし、より簡便には次のようにしてドット形成の有無を決定しても良い。すなわち、予め複数の順序値マトリックスを記憶しておき、個数データを受け取ると、画素群毎にランダムに選択した1の順序値マトリックスを用いて、各画素についてのドット形成の有無を決定しても良い。更に、より簡便には、順序値マトリックスを1組だけ記憶しておき、このマトリックスを用いて各画素についてのドット形成の有無を決定することも可能である。   In the above description, as shown in FIG. 9, when a plurality of types of order value matrices generated based on the dither matrix are stored in advance and the number data of the pixel group is received, the pixel group corresponds to the pixel group. In the above description, the order value matrix is used to determine whether or not to form dots for each pixel. However, the presence or absence of dot formation may be determined more simply as follows. That is, when a plurality of order value matrices are stored in advance and the number data is received, whether or not to form dots for each pixel can be determined using one order value matrix randomly selected for each pixel group. good. Furthermore, more simply, it is possible to store only one set of order value matrices and determine whether or not to form dots for each pixel using this matrix.

B−4.第1実施例の個数データ生成処理 :
以下では、図5に示した第1実施例の画像印刷処理において、画像データから個数データを生成する処理(図5のステップS106)について説明する。図10は、第1実施例の個数データ生成処理の流れを示すフローチャートである。以下、フローチャートに従って、第1実施例の個数データ生成処理について説明する。
B-4. Number data generation processing of the first embodiment:
Hereinafter, a process (step S106 in FIG. 5) for generating number data from image data in the image printing process of the first embodiment shown in FIG. 5 will be described. FIG. 10 is a flowchart showing the flow of the number data generation process of the first embodiment. The number data generation process of the first embodiment will be described below according to the flowchart.

第1実施例の個数データ生成処理を開始すると、先ず初めに、互いに隣接する所定個数の画素をまとめて画素群を生成する(ステップS200)。ここでは、主走査方向に4画素分、副走査方向に2画素分の合計8つの画素を画素群にまとめるものとする。尚、画素群としてまとめる画素は、このように矩形状に縦横の位置が揃った画素である必要はなく、互いに隣接し且つ所定の位置関係にあればどのような画素を画素群としてまとめても良い。   When the number data generation processing of the first embodiment is started, first, a predetermined number of pixels adjacent to each other are collected to generate a pixel group (step S200). Here, a total of eight pixels of four pixels in the main scanning direction and two pixels in the sub-scanning direction are combined into a pixel group. It should be noted that the pixels grouped as a pixel group do not have to be pixels with vertical and horizontal positions aligned in a rectangular shape as described above, and any pixel that is adjacent to each other and has a predetermined positional relationship can be grouped as a pixel group. good.

次いで、画素群としてまとめた複数の画素の中から、処理対象として着目する画素(着目画素)を1つ設定する(ステップS202)。そして、着目画素に割り当てられた画像データの階調値とディザマトリックスの閾値とを比較することにより、着目画素についてのドット形成の有無を判断する(ステップS204)。すなわち、図7を用いて前述したように、画像データの方が大きい画素にはドットを形成するものと判断し、逆にディザマトリックスの閾値の方が大きい画素についてはドットを形成しないと判断する。   Next, one pixel of interest (target pixel) is set as a processing target from a plurality of pixels grouped as a pixel group (step S202). Then, by comparing the tone value of the image data assigned to the pixel of interest with the threshold value of the dither matrix, it is determined whether or not dots are formed for the pixel of interest (step S204). That is, as described above with reference to FIG. 7, it is determined that a dot is formed for a pixel having a larger image data, and conversely, a dot is determined not to be formed for a pixel having a larger dither matrix threshold. .

次いで、画素群内の全ての画素について以上のような処理を行ったか否かを判断し(ステップS206)、画素群中に未処理の画素が残っている場合は(ステップS206:no)、ステップS202に戻って続く一連の処理を行う。こうして画素群内の全ての画素について、ドット形成有無の判断を終了したら(ステップS206:yes)、処理した画素群についての個数データを生成する(ステップS208)。ここでは、画素群内に形成されるドットの個数を計数し、得られたドットの個数を個数データとする。例えば、図8に示した画像データを処理するものとして説明すると、画像中の一番左上隅にある画素群については、画素群内に形成されるドットは3個であるから、個数データは「3」となる。   Next, it is determined whether or not the above processing has been performed on all the pixels in the pixel group (step S206). If unprocessed pixels remain in the pixel group (step S206: no), step is performed. Returning to S202, the following series of processing is performed. In this way, when the determination of dot formation is completed for all the pixels in the pixel group (step S206: yes), the number data for the processed pixel group is generated (step S208). Here, the number of dots formed in the pixel group is counted, and the obtained number of dots is used as the number data. For example, assuming that the image data shown in FIG. 8 is processed, the pixel group at the upper left corner in the image has three dots formed in the pixel group. 3 ”.

以上のようにして、1つの画素群についての処理を終了したら、画像の全画素について処理を終了したか否かを判断し(ステップS210)、未処理の画素が残っていれば、ステップS200に戻って新たな画素群を生成した後、続く一連の処理を行って、その画素群の個数データを生成する(ステップS208)。こうした処理を繰り返して行くことにより、画像中の全画素についての処理を終了したら(ステップS210:yes)、各画素群について得られた個数データをカラープリンタ200に向かって出力して(ステップS212)、図10に示した個数データ生成処理を終了する。その結果、図8(d)に示すような、各画素群についての個数データがカラープリンタ200に供給されることになる。   As described above, when the process for one pixel group is completed, it is determined whether or not the process has been completed for all the pixels of the image (step S210). If unprocessed pixels remain, the process proceeds to step S200. After returning to generate a new pixel group, a series of subsequent processing is performed to generate the number data of the pixel group (step S208). By repeating such processing, when the processing for all the pixels in the image is completed (step S210: yes), the number data obtained for each pixel group is output to the color printer 200 (step S212). The number data generation process shown in FIG. As a result, the number data for each pixel group as shown in FIG. 8D is supplied to the color printer 200.

B−5.第1実施例のドット形成有無決定処理 :
次に、コンピュータ100から供給された個数データに基づいて、画素群内の各画素についてドット形成の有無を決定する処理(図5のステップS108)について説明する。図11は、第1実施例のドット形成有無決定処理の流れを示すフローチャートである。かかる処理は、カラープリンタ200の制御回路260に内蔵されたCPUによって実行される処理である。また、図12は、第1実施例のドット形成有無決定処理において、各画素についてのドット形成の有無が決定される様子を概念的に示した説明図である。以下では、図12を参照しながら、図11に示すフローチャートに従って、第1実施例のドット形成有無決定処理の内容について説明する。
B-5. Dot formation presence / absence determination process of the first embodiment:
Next, a process (step S108 in FIG. 5) for determining the presence / absence of dot formation for each pixel in the pixel group based on the number data supplied from the computer 100 will be described. FIG. 11 is a flowchart showing the flow of the dot formation presence / absence determination process of the first embodiment. Such a process is a process executed by a CPU built in the control circuit 260 of the color printer 200. FIG. 12 is an explanatory diagram conceptually showing how the presence / absence of dot formation for each pixel is determined in the dot formation presence / absence determination process of the first embodiment. Hereinafter, the contents of the dot formation presence / absence determination process of the first embodiment will be described according to the flowchart shown in FIG. 11 with reference to FIG.

ドット形成有無決定処理を開始すると、先ず初めに、画素群を1つ選択し(ステップS300)、その画素群の個数データを取得する(ステップS302)。ここでは、図12(a)に示すような個数データが供給されたものとする。   When the dot formation presence / absence determination process is started, first, one pixel group is selected (step S300), and the number data of the pixel group is acquired (step S302). Here, it is assumed that the number data as shown in FIG.

次いで、選択した画素群に含まれる各画素の中から対象とする画素を1つ選択し(ステップS304)、該画素群内で対象画素にドットが形成される順番を示す値(順序値)を取得する(ステップS306)。対象画素の順序値は、図12(b)に示すような、予め設定されている順序値マトリックスを参照することで容易に取得することができる。図12(b)に例示した順序値マトリックスには、画素群を構成する各画素の画素位置について、順序値が予め設定されている。例えば、画素群内で一番左上隅にある画素については、順序値「1」が設定されており、その画素の右隣の画素については、順序値「6」が設定されている。ステップS306では、このような順序値マトリックスを参照して、対象画素の位置に設定されている順序値を取得する。尚、説明が煩雑となることを避けるために、ここでは、順序値マトリックスは1組のみが記憶されており、常に同じ順序値マトリックスを用いて順序値を得るものとして説明するが、順序値マトリックスを複数組記憶しておき、画素群毎に順序値マトリックスを切り換えながら、対象画素の順序値を取得することとしても良い。   Next, one target pixel is selected from each pixel included in the selected pixel group (step S304), and a value (order value) indicating the order in which dots are formed in the target pixel within the pixel group is selected. Obtain (step S306). The order value of the target pixel can be easily obtained by referring to a preset order value matrix as shown in FIG. In the order value matrix illustrated in FIG. 12B, order values are set in advance for the pixel positions of the pixels constituting the pixel group. For example, the order value “1” is set for the pixel at the upper left corner in the pixel group, and the order value “6” is set for the pixel to the right of the pixel. In step S306, referring to such an order value matrix, the order value set at the position of the target pixel is acquired. In order to avoid complicated explanation, only one set of order value matrixes is stored here, and description will be made assuming that order values are always obtained using the same order value matrix. May be stored, and the order value of the target pixel may be acquired while switching the order value matrix for each pixel group.

こうして順序値を取得したら、変換テーブルを参照することによって、対象画素についてのドット形成の有無を決定する(ステップS308)。図13は、対象画素についてのドット形成の有無を決定するために参照される変換テーブルを概念的に示した説明図である。図示されているように、変換テーブルには、順序値と個数データとの組合せに対応付けて、ドット形成の有無が設定されている。ここでは、画素群は8つの画素から構成されているから、順序値は1〜8までの値を取り、個数データは0〜8までの値を取る。従って、変換テーブルには、これらを組合せた72通りの組合せに対応付けて、ドット形成の有無を示す値が設定されている。図13に示した例では、ドットを形成する組合せに「1」が、ドットを形成しない組合せには「0」が設定されている。   When the order value is obtained in this way, the presence / absence of dot formation for the target pixel is determined by referring to the conversion table (step S308). FIG. 13 is an explanatory diagram conceptually showing a conversion table that is referred to in order to determine the presence or absence of dot formation for the target pixel. As shown in the figure, in the conversion table, presence / absence of dot formation is set in association with the combination of the order value and the number data. Here, since the pixel group is composed of eight pixels, the order value takes values from 1 to 8, and the number data takes values from 0 to 8. Therefore, in the conversion table, values indicating the presence / absence of dot formation are set in association with 72 combinations obtained by combining these. In the example shown in FIG. 13, “1” is set for the combination that forms dots, and “0” is set for the combination that does not form dots.

一例として、図12に示した画素群内で一番左上隅にある画素について説明すると、図12(b)に示すように順序値は「1」であり、個数データは図12(a)に示したように「3」である。図13の変換テーブルを参照すると、順序値「1」、個数データ「3」の組合せに対して設定されている値は「1」、すなわち、この画素についてはドットを形成するものと決定することができる。このように、図11のステップS308では変換テーブルを参照することで、画素群についての個数データと対象画素の順序値とから、対象画素についてのドット形成の有無を直ちに決定するのである。   As an example, the pixel at the upper left corner in the pixel group shown in FIG. 12 will be described. As shown in FIG. 12B, the order value is “1”, and the number data is shown in FIG. As shown, it is “3”. Referring to the conversion table of FIG. 13, the value set for the combination of the order value “1” and the number data “3” is “1”, that is, it is determined that this pixel forms a dot. Can do. In this way, in step S308 of FIG. 11, by referring to the conversion table, the presence / absence of dot formation for the target pixel is immediately determined from the number data for the pixel group and the order value of the target pixel.

こうして、対象画素として選択した1つの画素についてドット形成の有無を決定したら、選択した画素群内の全画素について、ドット形成の有無を決定したか否かを判断する(ステップS310)。そして、画素群内で未だドット形成の有無を決定していない画素が残っている場合は(ステップS310:no)、ステップS304に戻って、画素群の中から新たな画素を対象画素として選択し、続く一連の処理を行う。   After determining whether or not dot formation is performed for one pixel selected as the target pixel in this way, it is determined whether or not dot formation is determined for all pixels in the selected pixel group (step S310). If there is still a pixel in the pixel group that has not yet been determined for dot formation (step S310: no), the process returns to step S304 to select a new pixel as the target pixel from the pixel group. Then, the following series of processing is performed.

こうした処理を繰り返し、画素群内の全画素についてドット形成の有無を決定したと判断されたら(ステップS310:yes)、今度は、個数データの供給された全画素群について処理を終了したか否かを判断する(ステップS312)。そして、未処理の画素群が残っていれば(ステップS312:no)、ステップS300に戻って新たな画素群を選択し、続く一連の処理を行う。こうした処理を繰り返すことにより、コンピュータから供給された個数データは、画素毎にドット形成の有無を示すデータに変換されていく。そして、全ての画素群について処理が終了したら(ステップS306:yes)、図11に示したドット形成有無決定処理を終了して、図5の画像印刷処理に復帰する。   If it is determined that dot formation has been determined for all pixels in the pixel group by repeating such processing (step S310: yes), whether or not processing has been completed for all pixel groups to which number data has been supplied. Is determined (step S312). If an unprocessed pixel group remains (step S312: no), the process returns to step S300 to select a new pixel group, and a series of subsequent processes are performed. By repeating such processing, the number data supplied from the computer is converted into data indicating the presence or absence of dot formation for each pixel. When the process is completed for all the pixel groups (step S306: yes), the dot formation presence / absence determination process shown in FIG. 11 is ended, and the process returns to the image printing process of FIG.

以上に説明した第1実施例のドット形成有無決定処理においては、画素群の個数データを受け取ると、順序値マトリックスを参照することによって対象画素の順序値を取得し、得られた順序値と個数データを用いて変換テーブルを参照するという極めて単純な方法によって、ドット形成の有無を決定することが可能である。従って、画素毎にドット形成の有無を表すデータを、個数データから極めて迅速に生成することが可能となる。   In the dot formation presence / absence determination process of the first embodiment described above, when the pixel group number data is received, the order value of the target pixel is obtained by referring to the order value matrix, and the obtained order value and number are obtained. The presence or absence of dot formation can be determined by a very simple method of referring to the conversion table using data. Therefore, data representing the presence or absence of dot formation for each pixel can be generated very quickly from the number data.

更に、ドット形成の有無を決定する処理は、記憶されているデータを参照しているだけなので、専用の論理回路を組み込んだチップを用いてハードウェア的に実行することも容易である。ドット形成の有無を決定する処理をハードウェア的に実行してやれば、より一層高速に処理することが可能であり、それだけ画像を迅速に印刷することができる。   Furthermore, since the process for determining the presence / absence of dot formation is merely referring to stored data, it can be easily executed in hardware using a chip incorporating a dedicated logic circuit. If the process of determining the presence or absence of dot formation is executed by hardware, the process can be performed at a higher speed, and an image can be printed quickly.

加えて、近年のコンピュータでは処理の高速化を図るために、いわゆるパイプライン処理と呼ばれる技術が活用されているが、その一方で、条件分岐を含む処理に対しては、パイプライン処理の技術を適用しても、さほど処理を高速化することができず、返って処理速度が低下する場合もあることが知られている。上述した第1実施例のドット形成有無決定処理は、記憶されているデータを参照する処理がほとんどであり、条件分岐が含まれていないので、こうした観点からも、高速処理に適した処理であると言うことができる。   In addition, in order to speed up processing in recent computers, a technique called so-called pipeline processing is used. On the other hand, for processing including conditional branching, pipeline processing technology is used. Even if it is applied, it is known that the processing speed cannot be increased so much that the processing speed may decrease. The dot formation presence / absence determination processing of the first embodiment described above is mostly processing that refers to stored data and does not include conditional branching. Therefore, from this point of view, this processing is suitable for high-speed processing. Can be said.

このように、上述した第1実施例のドット形成有無決定処理は、迅速な処理を可能とする種々の要素を備えているため、どのような条件においても、個数データを、画素毎にドット形成の有無を表すデータに迅速に変換することができ、延いては画像を迅速に印刷することが可能となる。   As described above, since the dot formation presence / absence determination process of the first embodiment described above includes various elements that enable rapid processing, the number data can be formed for each pixel under any condition. Can be quickly converted into data representing the presence or absence of the image, and thus the image can be printed quickly.

B−6.第1実施例の変形例 :
上述した第1実施例のドット形成有無決定処理においては、予め1組または複数組の順序値マトリックスを設定しておき、常に同じ順序値マトリックスを参照して、あるいは参照する順序値マトリックスをランダムに切り換えながら、各画素についてのドット形成の有無を決定するものとして説明した。しかし、図8および図9を用いて前述したように、順序値マトリックスをディザマトリックスに基づいて生成し、画素群の位置に応じて適切な順序値マトリックスを参照しながらドット形成の有無を決定してやれば、より適切にドット形成の有無を決定することができ、従って高画質な画像を印刷することが可能となる。以下では、こうした第1実施例における変形例のドット形成有無決定処理について説明する。
B-6. Modification of the first embodiment:
In the dot formation presence / absence determination process of the first embodiment described above, one or a plurality of sets of order value matrices are set in advance, and the same order value matrix is always referred to or the order value matrix to be referenced is randomly selected. The description has been made on the assumption that the presence or absence of dot formation for each pixel is determined while switching. However, as described above with reference to FIGS. 8 and 9, an order value matrix is generated based on the dither matrix, and whether or not dots are formed can be determined by referring to an appropriate order value matrix according to the position of the pixel group. Thus, it is possible to determine the presence or absence of dot formation more appropriately, and thus it is possible to print a high-quality image. Hereinafter, a dot formation presence / absence determination process according to a modification of the first embodiment will be described.

図14は、変形例のドット形成有無決定処理の流れを示すフローチャートである。以下、フローチャートに従って説明する。変形例のドット形成有無決定処理においても、先ず初めに画素群を1つ選択し(ステップS400)、その画素群の個数データを取得する(ステップS402)。次いで、複数組記憶されている順序値マトリックスの中から、選択した画素群に対応する順序値マトリックスを読み込む(ステップS404)。かかる処理について、図15および図16を参照しながら詳しく説明する。   FIG. 14 is a flowchart illustrating a flow of a dot formation presence / absence determination process according to a modification. Hereinafter, it demonstrates according to a flowchart. Also in the dot formation presence / absence determination process of the modified example, first, one pixel group is selected (step S400), and the number data of the pixel group is acquired (step S402). Next, an order value matrix corresponding to the selected pixel group is read from the order value matrix stored in plural sets (step S404). Such processing will be described in detail with reference to FIGS. 15 and 16.

図15は、変形例のドット形成有無決定処理において参照される複数の順序値マトリックスを生成する方法について示した説明図である。前述したように、1つの画素群は、主走査方向には4画素ずつ、副走査方向には2画素ずつの合計8つの画素から構成されているとしているから、これと対応して、ディザマトリックスの閾値も、主走査方向に4画素分ずつ、副走査方向に2画素分ずつの合計8画素分ずつの閾値をブロックにまとめてやる。図15(a)は、ディザマトリックスの左上隅にある8画素分の閾値をブロックにまとめている様子を概念的に示した説明図である。ここではディザマトリックスは、図6に示したように、主走査方向には128画素分、副走査方向には64画素分の大きさを有するものとしているから、主走査方向に4画素分、副走査方向に2画素分ずつの画素をブロックにまとめれば、ディザマトリックスは主走査方向および副走査方向にそれぞれ32ブロックずつ、全体では1024個のブロックに分割されることになる。   FIG. 15 is an explanatory diagram showing a method of generating a plurality of order value matrices referred to in the dot formation presence / absence determination process of the modification. As described above, one pixel group is composed of a total of 8 pixels, 4 pixels each in the main scanning direction and 2 pixels each in the sub-scanning direction. As for the threshold value, a threshold value of 8 pixels in total, that is, 4 pixels in the main scanning direction and 2 pixels in the sub-scanning direction is combined into a block. FIG. 15A is an explanatory diagram conceptually showing a state in which thresholds for 8 pixels at the upper left corner of the dither matrix are grouped into blocks. Here, as shown in FIG. 6, since the dither matrix has a size of 128 pixels in the main scanning direction and 64 pixels in the sub scanning direction, the dither matrix has a size of 4 pixels in the main scanning direction. If the pixels corresponding to two pixels in the scanning direction are grouped into blocks, the dither matrix is divided into 32 blocks each in the main scanning direction and the sub-scanning direction, for a total of 1024 blocks.

これらのブロックに、図15(b)に示すように、1番から1024番までの通し番号を付しておく。そして、1番から1024番までの各ブロックから1組ずつ順序値マトリックスを生成する。図15(c)は、通し番号1番のブロックから、順序値マトリックスを生成している様子を示した説明図である。図15(c)の左側半分には、通し番号1番のブロックに含まれるディザマトリックスの閾値が示されている。図7を用いて前述したように、ディザ法では画像データの階調値とディザマトリックスの閾値とを比較して、画像データの方が大きい場合にドットを形成すると判断しているから、ディザマトリックスの閾値が小さい画素ほどドットが形成され易くなる。従って、図15(c)に示した1番のブロックの中で1番初めにドットが形成される画素は、閾値「1」が設定された画素と考えることができる。そこで、この画素には順序値として「1」を設定する。同様に、2番目にドットが形成される画素は、2番目に小さな閾値である閾値「42」が設定された画素と考えることができる。そこで、この画素には順序値「2」を設定する。このようにして、ブロック内に設定されている閾値の小さな画素から順番に、順序値「1」から順序値「8」までを決定してやれば、図15(c)の右側半分に示した通し番号1番の順序値マトリックスを得ることができる。   As shown in FIG. 15B, serial numbers from 1 to 1024 are assigned to these blocks. Then, one set of order value matrices is generated from each block from No. 1 to No. 1024. FIG. 15C is an explanatory diagram showing a state in which an order value matrix is generated from the block of serial number 1. In the left half of FIG. 15C, the threshold value of the dither matrix included in the block having the serial number 1 is shown. As described above with reference to FIG. 7, in the dither method, the tone value of the image data is compared with the threshold value of the dither matrix, and it is determined that dots are formed when the image data is larger. The smaller the threshold value, the easier it is for dots to be formed. Therefore, the pixel in which the first dot is formed in the first block shown in FIG. 15C can be considered as the pixel for which the threshold value “1” is set. Therefore, “1” is set as the order value for this pixel. Similarly, the pixel in which the second dot is formed can be considered as a pixel in which the threshold “42”, which is the second smallest threshold, is set. Therefore, an order value “2” is set for this pixel. In this way, if the order value “1” to the order value “8” are determined in order from the pixel having the smallest threshold set in the block, the serial number 1 shown in the right half of FIG. An order value matrix of numbers can be obtained.

図15(d)は、同様にして、ブロック内で小さな閾値が設定されている画素から順番に、順序値「1」から順序値「8」までを設定することで、通し番号2番の順序値マトリックスを生成した様子を示している。図15(b)に示した通し番号「1」番から通し番号「1024」番までの全てのブロックについて、以上のような操作を行うことにより、通し番号「1」番から「1024」番までの順序値マトリックスを生成して記憶しておく。   Similarly, FIG. 15D shows an order value of serial number 2 by setting the order value “1” to the order value “8” in order from the pixel in which a small threshold is set in the block. It shows how the matrix is generated. By performing the above operation for all the blocks from the serial number “1” to the serial number “1024” shown in FIG. 15B, the sequence values from the serial numbers “1” to “1024” are obtained. A matrix is generated and stored.

図14のステップS404では、これら「1」番から「1024」番の順序値マトリックスの中から、ドット形成の有無を決定しようとする画素群に対応するマトリックスを選択して読み込む処理を行う。図16は、画素群に対応する順序値マトリックスを選択する方法を示した説明図である。今、ドット形成の有無を決定しようとしている画素群が、図16(a)に示すように、画像の一番左上隅を基準として主走査方向にn個目の画素群、副走査方向にm個目の画素群の位置にあるとする。また、このような画素群の位置を、座標値(n,m)によって表すものとする。   In step S404 in FIG. 14, a process is performed in which a matrix corresponding to a pixel group to be determined whether or not to form a dot is selected and read from the “1” to “1024” order value matrices. FIG. 16 is an explanatory diagram showing a method for selecting an order value matrix corresponding to a pixel group. Now, as shown in FIG. 16A, the pixel group for which the presence or absence of dot formation is to be determined is the nth pixel group in the main scanning direction and m in the sub scanning direction with reference to the upper left corner of the image. It is assumed that it is at the position of the pixel group. In addition, the position of such a pixel group is represented by a coordinate value (n, m).

ここで、ディザマトリックスの大きさは、通常は、画像のようには大きくはない。このためディザ法では、1つのディザマトリックスを、画像データに対して少しずつ位置をずらしながら繰り返して使用している。これと同じ理由から、図14に示したドット形成有無決定処理においても、1つのディザマトリックスを少しずつ移動させながら繰り返して使用する。ディザマトリックスを移動させる方法は、ディザ法においては種々の方法が使用されており、ドット形成有無を決定する場合も種々の移動方法を適用することができるが、ここでは説明の便宜から、最も単純な方法すなわちディザマトリックスを主走査方向に移動させるものとして説明する。図16(b)には、ディザマトリックスを主走査方向に少しずつ移動させながら、繰り返して使用する様子が概念的に示されている。   Here, the size of the dither matrix is usually not as large as the image. For this reason, in the dither method, one dither matrix is repeatedly used while shifting its position little by little with respect to the image data. For the same reason, in the dot formation presence / absence determination process shown in FIG. 14, one dither matrix is repeatedly used while being moved little by little. As a method of moving the dither matrix, various methods are used in the dither method, and various moving methods can be applied even when determining the presence or absence of dot formation. In the following description, it is assumed that the dither matrix is moved in the main scanning direction. FIG. 16B conceptually shows how the dither matrix is repeatedly used while being gradually moved in the main scanning direction.

図15(a)に示したように、ディザマトリックスを分割するブロックの大きさは、個数データを生成した画素群の大きさと一致しているから、図16(b)に示すようにディザマトリックスを移動させていくと、ディザマトリックスの各ブロックは画素群の位置に一致する。換言すれば、全ての画素群には、ディザマトリックスを分割するいずれかのブロックが適用されることになる。   As shown in FIG. 15 (a), the size of the block that divides the dither matrix matches the size of the pixel group that generated the number data, so that the dither matrix is changed as shown in FIG. 16 (b). As it is moved, each block of the dither matrix matches the position of the pixel group. In other words, any block that divides the dither matrix is applied to all pixel groups.

今、処理しようとしている画素群には、ディザマトリックス中で主走査方向にN個目、副走査方向にM個目のブロックが適用されたものとする。図15(b)に示すように、ここでは、1つのディザマトリックスには主走査方向・副走査方向にそれぞれ32個ずつのブロックが含まれるとしており、また、処理しようとする画素群の座標値は(n,m)、すなわち、画像の左上隅を基準として主走査方向にn個目、副走査方向にm個目の位置にあるとしているから、N、Mはそれぞれ次式で求めることができる。
N=n − int(n/32)×32
M=m − int(m/32)×32
ここで、intは、小数点以下を切り捨てて整数化することを表す演算子である。すなわち、int(n/32)は、n/32の計算結果に対して小数点以下の数値を切り捨てることによって得られた整数値を表している。従って、ある画素群についてドット形成の有無を決定する場合には、画素群の座標値(n,m)から上式によってN,Mを求めた後、ディザマトリックス中で対応する位置にあるブロックの通し番号を取得して、そのブロックから生成された順序値マトリックスを用いればよい。
It is assumed that the Nth block in the main scanning direction and the Mth block in the subscanning direction are applied to the pixel group to be processed in the dither matrix. As shown in FIG. 15B, here, one dither matrix is assumed to include 32 blocks in each of the main scanning direction and the sub-scanning direction, and the coordinate values of the pixel group to be processed. Is (n, m), that is, the n-th position in the main scanning direction and the m-th position in the sub-scanning direction with respect to the upper left corner of the image, N and M can be obtained by the following equations, respectively. it can.
N = n−int (n / 32) × 32
M = m−int (m / 32) × 32
Here, int is an operator representing rounding down to the integer. That is, int (n / 32) represents an integer value obtained by rounding down the numerical value after the decimal point to the calculation result of n / 32. Therefore, when determining the presence or absence of dot formation for a certain pixel group, after obtaining N and M from the coordinate values (n, m) of the pixel group according to the above equation, the block at the corresponding position in the dither matrix is determined. What is necessary is just to acquire a serial number and to use the order value matrix produced | generated from the block.

もっとも実際には、M,Nの値は、図16(d)に示すような計算を実行せずとも、極めて簡便に求めることができる。以下、この点について説明する。図17は、画素群の座標値(n,m)から、適用する順序値マトリックスを選択する方法を具体的に示した説明図である。図17(a)は、数値nを表す10ビットの2進数データを概念的に示している。図17(a)では、各ビットを識別するために、最上位ビットから最下位ビットに向かって1番から10番までの通し番号を付して表示している。   In practice, the values of M and N can be obtained very simply without executing the calculation shown in FIG. Hereinafter, this point will be described. FIG. 17 is an explanatory diagram specifically showing a method of selecting an applied order value matrix from the coordinate values (n, m) of the pixel group. FIG. 17A conceptually shows 10-bit binary data representing the numerical value n. In FIG. 17A, in order to identify each bit, serial numbers from No. 1 to No. 10 are assigned from the most significant bit to the least significant bit.

順序値マトリックスの選択に際しては、先ず初めに、int(n/32)を算出する。すなわち、数値nを32で除算して、小数点以下の値を切り捨てる操作を行う。32による除算は、2進数データを右方向に5ビット分だけビットシフトさせることで実行可能であり、また、データを整数形式で扱っていれば、小数点以下の値は自動的に切り捨てられてしまう。結局、int(n/32)の2進数データは、図17(a)に示した数値nの2進数データを、単に右方向に5ビット分だけビットシフトさせることで得ることができる。図17(b)は、数値nをビットシフトして得られたint(n/32)の2進数データを概念的に表している。   When selecting an order value matrix, first, int (n / 32) is calculated. That is, an operation of dividing the numerical value n by 32 and truncating the value after the decimal point is performed. Division by 32 can be performed by shifting the binary data to the right by 5 bits, and if the data is handled in integer format, the value after the decimal point is automatically truncated. . Eventually, the binary data of int (n / 32) can be obtained by bit-shifting the binary data of the numerical value n shown in FIG. 17A by 5 bits to the right. FIG. 17B conceptually shows binary data of int (n / 32) obtained by bit-shifting the numerical value n.

こうして得られたint(n/32)に32を乗算する。32による乗算は、2進数データを5ビット分だけ左方向にビットシフトすることで実施することができる。図17(c)は、数値nをビットシフトして得られたint(n/32)×32の2進数データを概念的に表している。   The int (n / 32) obtained in this way is multiplied by 32. Multiplication by 32 can be performed by bit-shifting binary data to the left by 5 bits. FIG. 17C conceptually represents int (n / 32) × 32 binary data obtained by bit-shifting the numerical value n.

次いで、数値nから、int(n/32)×32を減算すれば、前述の数値Nを得ることができる。数値nの2進数データ(図17(a)参照)とint(n/32)×32の2進数データ(図17(c)参照)とを比較すれば明らかなように、これら2進数データは、上位の5ビットは共通しており、減算する側の数値の下位5ビットは全て「0」となっている。従って、減算される側の数値(数値n)の下位5ビットをそのまま抜き出せば、求める数値Nを得ることができる。すなわち、図17(a)に示した2進数データと、図17(e)に示すようなマスクデータとの論理積を求めるだけで、極めて簡便に数値Nを得ることが可能である。   Next, the above-described numerical value N can be obtained by subtracting int (n / 32) × 32 from the numerical value n. As is clear from the comparison of binary data of numerical value n (see FIG. 17A) and binary data of int (n / 32) × 32 (see FIG. 17C), these binary data are The upper 5 bits are common, and the lower 5 bits of the numerical value on the subtraction side are all “0”. Therefore, if the lower 5 bits of the subtracted numerical value (numerical value n) are extracted as they are, the desired numerical value N can be obtained. That is, the numerical value N can be obtained very simply by simply obtaining the logical product of the binary number data shown in FIG. 17A and the mask data shown in FIG.

図17では、画素群の座標値(n,m)の数値nから、ディザマトリックス中でのブロック位置を示す数値Nを求める場合について説明したが、全く同様にして、ブロック位置を示す数値Mについても、数値mから極めて簡便に求めることができる。結局、画素群の座標値(n,m)が与えられれば、数値n、mから数値N、Mを求めることにより、その画素群には通し番号が何番の順序値マトリックスが適用されるかを知ることができるのである。図14に示したドット形成有無決定処理のステップS404では、このようにして、画素群に対応するマトリックスを選択して読み込む処理を行う。   In FIG. 17, the case where the numerical value N indicating the block position in the dither matrix is obtained from the numerical value n of the coordinate value (n, m) of the pixel group has been described, but the numerical value M indicating the block position is exactly the same. Can be obtained very simply from the numerical value m. Eventually, given the coordinate values (n, m) of a pixel group, by obtaining the numerical values N and M from the numerical values n and m, it is possible to determine what sequence number matrix is applied to that pixel group. You can know. In step S404 of the dot formation presence / absence determination process shown in FIG. 14, processing for selecting and reading a matrix corresponding to the pixel group is performed in this way.

以上のようにして、画素群に対応する順序値マトリックスを読み込んだら、処理中の画素群の中から、ドット形成の有無を決定しようとする対象画素を1つ選択する(ステップS406)。そして、読み込んでおいた順序値マトリックスを参照することで、対象画素の順序値を取得した後(ステップS408)、変換テーブルを参照することによって、対象画素についてのドット形成の有無を決定する(ステップS410)。変換テーブルには、図13を用いて前述した第1実施例の変換テーブルと同様に、順序値と個数データとの組合せに対応付けて、ドット形成の有無が設定されている。従って、画素群の個数データと対象画素の順序値とが分かれば、変換テーブルを参照することで直ちにドット形成の有無を決定することができる。   As described above, when the order value matrix corresponding to the pixel group is read, one target pixel for determining whether or not to form dots is selected from the pixel group being processed (step S406). Then, after acquiring the order value of the target pixel by referring to the read order value matrix (step S408), the presence or absence of dot formation for the target pixel is determined by referring to the conversion table (step S408). S410). In the conversion table, whether or not to form dots is set in association with the combination of the order value and the number data, as in the conversion table of the first embodiment described above with reference to FIG. Therefore, if the number data of the pixel group and the order value of the target pixel are known, the presence / absence of dot formation can be immediately determined by referring to the conversion table.

こうして、1つの対象画素についてドット形成の有無を決定したら、選択した画素群内の全画素について、ドット形成の有無を決定したか否かを判断する(ステップS412)。未だ、ドット形成の有無を決定していない画素が残っていれば(ステップS412:no)、ステップS406に戻って、新たな対象画素を選択し、続く一連の処理を行う。こうした処理を繰り返し、画素群内の全画素についてドット形成の有無を決定したと判断されたら(ステップS412:yes)、今度は、個数データが供給された全画素群について処理を終了したか否かを判断する(ステップS414)。そして、未処理の画素群が残っていれば(ステップS414:no)、ステップS400に戻って新たな画素群を選択し、続く一連の処理を行う。こうした処理を繰り返し、全ての画素群について処理が終了したら(ステップS414:yes)、図14に示した変形例のドット形成有無決定処理を終了して、図5の画像印刷処理に復帰する。   When the presence / absence of dot formation is thus determined for one target pixel, it is determined whether or not dot formation has been determined for all pixels in the selected pixel group (step S412). If there is still a pixel for which dot formation has not been determined (step S412: no), the process returns to step S406, a new target pixel is selected, and a series of processes are performed. If it is determined that dot formation has been determined for all the pixels in the pixel group by repeating these processes (step S412: yes), whether or not the process has been completed for all the pixel groups to which the number data has been supplied. Is determined (step S414). If an unprocessed pixel group remains (step S414: no), the process returns to step S400 to select a new pixel group, and a series of subsequent processes are performed. When such processes are repeated and the process is completed for all the pixel groups (step S414: yes), the dot formation presence / absence determination process of the modification shown in FIG. 14 is terminated, and the process returns to the image printing process of FIG.

以上に説明した変形例のドット形成有無決定処理においては、ディザマトリックスに基づいて複数の順序値マトリックスを生成する。そして、ある画素群についてドット形成の有無を決定する際には、ディザ法を適用したときに、その画素群の位置に適用される部分のディザマトリックスから生成された順序値マトリックスを用いて、ドット形成の有無を決定する。こうすれば、ディザマトリックスを用いて得られたドットの分布に準じた分布が得られるように、ドット形成の有無を決定することができる。周知のように、ディザマトリックスには、ドットが適切な分布で形成されるように、適切な分布で閾値が設定されているから、ディザマトリックスによるドットの分布に準じた分布が得られれば、高画質な画像を印刷することが可能となる。   In the dot formation presence / absence determination process of the modification described above, a plurality of order value matrices are generated based on the dither matrix. When determining the presence or absence of dot formation for a certain pixel group, when applying the dither method, a dot value is generated using the order value matrix generated from the dither matrix of the portion applied to the position of the pixel group. Determine the presence or absence of formation. In this way, it is possible to determine whether or not dots are formed so that a distribution according to the distribution of dots obtained using the dither matrix can be obtained. As is well known, the dither matrix has a threshold value set with an appropriate distribution so that the dots are formed with an appropriate distribution. It is possible to print an image with high image quality.

更に、順序値マトリックスを生成するために用いるディザマトリックスと、図10に示した個数データ生成処理中で使用するディザマトリックスとを同じマトリックスとしておけば、図8および図9を用いて前述したように、個数データから復元したドット分布は、ほとんどの場合は、ディザ法を用いて画素毎にドット形成の有無を判断した場合と全く同じドット分布となる。もちろん、前述したように、画素群内で画像データの階調値が大きく変化している場合には、ドット分布は異なったものとなるが、画像データには隣接する画素間では近似した(若しくは同一の)階調値を有する傾向があるため、多くの場合、ドット分布は同一となる。従って、適切なドット分布となるようにドット形成の有無を決定することができ、それだけ高画質な画像を印刷することが可能となる。   Furthermore, if the dither matrix used for generating the order value matrix and the dither matrix used in the number data generation process shown in FIG. 10 are the same matrix, as described above with reference to FIGS. In most cases, the dot distribution restored from the number data is exactly the same as the dot distribution determined by the dither method for each pixel. Of course, as described above, when the gradation value of the image data changes greatly in the pixel group, the dot distribution is different, but the image data is approximated between adjacent pixels (or In many cases, the dot distribution will be the same because they tend to have the same (same) tone values. Therefore, it is possible to determine the presence or absence of dot formation so as to obtain an appropriate dot distribution, and it is possible to print a high quality image.

もっとも、上述した変形例のドット形成有無決定処理では、変換テーブルに加えて、複数(上述した例では1024個)の順序値マトリックスを記憶しておく必要がある。これらテーブルおよびマトリックスを記憶するために、あまりに多くのメモリを使用したのでは、実際の製品に搭載する上で好ましいことではない。しかし、以下に説明するように、変換テーブルおよび順序値マトリックスを記憶するために多くのメモリを使用することはない。   However, in the dot formation presence / absence determination process of the above-described modification, it is necessary to store a plurality of (1024 in the above example) order value matrix in addition to the conversion table. Using too much memory to store these tables and matrices is not desirable for installation in actual products. However, as will be explained below, many memories are not used to store the conversion table and the order value matrix.

先ず、変換テーブルを記憶するために必要なメモリ容量について説明する。図13に示したように、変換テーブルには、順序値および個数データの組合せ毎にドット形成の有無が設定されているから、変換テーブルのデータサイズは、順序値および個数データがそれぞれ取り得る個数と、1画素分のドット形成の有無を表すために必要なデータ長とによって決定される。順序値は、画素群内の各画素にドットが形成される順番を示しているから、順序値は1つの画素群に含まれる画素数と同じ種類の値を取り得る。また、個数データは、画素群内に形成され得るドットの個数を表しているから、0個から画素数までの値を取ることができるので、画素数+1通りの値を取り得る。更に、ここでは、1つの画素にはドットが形成されるか否かのいずれかの状態しか取らないとしているから、1画素分のドット形成の有無は、1ビットあれば表現することができる。結局、変換テーブルを記憶するためのメモリ容量は、画素群に含まれる画素数をnとすると、
n×(n+1)ビット
あればよい。画素群に含まれる画素数は、高々16個程度だから、変換テーブルを記憶するために要するメモリ量は僅かなものである。
First, the memory capacity necessary for storing the conversion table will be described. As shown in FIG. 13, in the conversion table, presence / absence of dot formation is set for each combination of the order value and the number data. Therefore, the data size of the conversion table is the number that the order value and the number data can take. And the data length necessary to indicate the presence or absence of dot formation for one pixel. Since the order value indicates the order in which dots are formed in each pixel in the pixel group, the order value can take the same type of value as the number of pixels included in one pixel group. In addition, since the number data represents the number of dots that can be formed in the pixel group, values from 0 to the number of pixels can be taken, so that the number of pixels + 1 can be taken. Furthermore, since it is assumed here that only one state of whether or not dots are formed in one pixel, the presence or absence of dot formation for one pixel can be expressed with one bit. After all, the memory capacity for storing the conversion table is n, where n is the number of pixels included in the pixel group.
It suffices if there are n × (n + 1) bits. Since the number of pixels included in the pixel group is about 16 at most, the amount of memory required to store the conversion table is very small.

次に、順序値マトリックスを記憶するために必要なメモリ量について説明する。順序値マトリックスを記憶するためのメモリ量は、マトリックス1つ当たりに要するメモリ量と、マトリックスの個数とによって決定される。順序値マトリックスには、画素群内の各画素にドットが形成される順番が設定されているから、マトリックス1つ当たりのメモリ量は、画素群に含まれる画素数によって決まる。また、順序値マトリックスの個数は、図15を用いて前述したように、ディザマトリックスを画素群と同じ大きさのブロックで分割した時に得られるブロック数に等しいから、ディザマトリックスの大きさと、画素群の大きさとによって決定される。結局、順序値マトリックスを記憶するために必要なメモリ量は、ディザマトリックスの大きさと、画素群の大きさとによって決定されることになる。   Next, the amount of memory necessary for storing the order value matrix will be described. The amount of memory for storing the order value matrix is determined by the amount of memory required for each matrix and the number of matrices. Since the order value matrix sets the order in which dots are formed in each pixel in the pixel group, the memory amount per matrix is determined by the number of pixels included in the pixel group. Further, as described above with reference to FIG. 15, the number of the order value matrix is equal to the number of blocks obtained when the dither matrix is divided into blocks having the same size as the pixel group. Is determined by the size of Eventually, the amount of memory required to store the order value matrix is determined by the size of the dither matrix and the size of the pixel group.

図18は、各種大きさのディザマトリックスと、各種大きさの画素群とを想定して、順序値マトリックスを記憶するために必要なメモリ量を試算した結果を示す説明図である。具体的には、ディザマトリックスの大きさとしては、64×64(すなわち主走査方向に64画素、副走査方向に64画素)、128×64(主走査方向に128画素、副走査方向に64画素)、128×128(主走査方向に128画素、副走査方向に128画素)の3種類のサイズを想定している。画素群の大きさとしては、2×2(主走査方向に2画素、副走査方向に2画素)、4×2(主走査方向に4画素、副走査方向に2画素)、4×4(主走査方向に4画素、副走査方向に4画素)の3種類のサイズを想定している。上述した実施例に対応する条件、すなわち、ディザマトリックスサイズが128×64であり、画素群の大きさが4×2の条件での試算結果は、図18では、破線で囲って示されている。以下では、この条件を代表例として用いながら、順序値マトリックスの試算例について説明する。   FIG. 18 is an explanatory diagram showing the result of trial calculation of the amount of memory required to store the order value matrix, assuming dither matrices of various sizes and pixel groups of various sizes. Specifically, the dither matrix has a size of 64 × 64 (that is, 64 pixels in the main scanning direction and 64 pixels in the sub scanning direction), 128 × 64 (128 pixels in the main scanning direction, 64 pixels in the sub scanning direction). ), 128 × 128 (128 pixels in the main scanning direction and 128 pixels in the sub-scanning direction) are assumed. The size of the pixel group is 2 × 2 (2 pixels in the main scanning direction, 2 pixels in the sub scanning direction), 4 × 2 (4 pixels in the main scanning direction, 2 pixels in the sub scanning direction), 4 × 4 ( Three types of sizes are assumed: 4 pixels in the main scanning direction and 4 pixels in the sub-scanning direction. The trial calculation result under the condition corresponding to the above-described embodiment, that is, the condition where the dither matrix size is 128 × 64 and the size of the pixel group is 4 × 2 is shown in FIG. . Hereinafter, a trial calculation example of the order value matrix will be described using this condition as a representative example.

順序値マトリックスの個数は、ディザマトリックスを画素群と同じサイズで分割して得られるブロックの個数であるから、ディザマトリックスの画素数(128×64)を画素群当たりの画素数(4×2)で除算して、1024となる。また、順序値マトリックスに設定される順序値は、1〜8までの8通りの値を取るから、1つの順序値は3ビットあれば表現することができる。順序値マトリックスには8つの順序値が設定されているから、1つの順序値マトリックスを記憶するために必要なメモリ量は、3×8=24ビット(3バイト)となる。順序値マトリックスの個数は1024個あるから、全ての順序値マトリックスを記憶するために必要なメモリ量は、3Kバイトと求めることができる。   Since the number of the order value matrix is the number of blocks obtained by dividing the dither matrix with the same size as the pixel group, the number of pixels of the dither matrix (128 × 64) is the number of pixels per pixel group (4 × 2). Divide by to get 1024. In addition, since the order values set in the order value matrix take eight values from 1 to 8, one order value can be expressed by 3 bits. Since eight order values are set in the order value matrix, the amount of memory necessary for storing one order value matrix is 3 × 8 = 24 bits (3 bytes). Since there are 1024 order value matrices, the amount of memory required to store all the order value matrices can be calculated as 3 Kbytes.

また、画素群に含まれる画素数が4つの場合は、順序値は1〜4までの4通りの値を取るから、1つの順序値は2ビットあれば表現することができる。順序値マトリックスには4つの順序値が設定されるから、1つの順序値マトリックスを記憶するために要するメモリ量は、2×4=8ビット(1バイト)となる。同様に、画素群に含まれる画素数が16個の場合は、1つの順序値を表現するために要するデータ長は4ビット、これが16個あるから、順序値マトリックスを記憶するために要するメモリ量は、4×16=64ビット(8バイト)となる。   Further, when the number of pixels included in the pixel group is four, the order value takes four values from 1 to 4, and therefore, one order value can be expressed by 2 bits. Since four order values are set in the order value matrix, the amount of memory required to store one order value matrix is 2 × 4 = 8 bits (1 byte). Similarly, when the number of pixels included in the pixel group is 16, the data length required to express one sequence value is 4 bits, and since there are 16 data lengths, the amount of memory required to store the sequence value matrix Is 4 × 16 = 64 bits (8 bytes).

図18には、各種条件で、全ての順序値マトリックスを記憶するために必要なメモリ量を試算した結果がまとめて示されている。図示されている試算結果を見れば明らかなように、順序値マトリックスを記憶しておくために必要なメモリ量は、高々10Kバイトあれば十分と考えられる。このため、変換テーブルや順序値マトリックスを記憶するために必要なメモリ量が、実際の製品に搭載する上で障害になるほど大きくなることはない。   FIG. 18 collectively shows the results of trial calculation of the amount of memory necessary for storing all the order value matrices under various conditions. As is apparent from the trial calculation results shown in the drawing, it is considered that the memory amount required to store the sequence value matrix is at most 10 Kbytes. For this reason, the amount of memory necessary for storing the conversion table and the order value matrix does not become so large that it becomes an obstacle to mounting on an actual product.

C.第2実施例 :
以上に説明した第1実施例では、カラープリンタ200で形成可能なドットは1種類であるものとして説明した。しかし、今日では、印刷画質を向上させることを目的として、大きさの異なるドットや、インク濃度の異なるドットなど、多種のドットを形成可能なプリンタ(いわゆる多値ドットプリンタ)が広く使用されている。本願の発明は、こうした多値ドットプリンタに適用した場合にも、大きな効果を得ることができる。以下では、第2実施例として、本願発明を多値ドットプリンタに適用した場合について説明する。
C. Second embodiment:
In the first embodiment described above, the dot that can be formed by the color printer 200 has been described as one type. However, printers that can form various types of dots such as dots having different sizes and dots having different ink densities (so-called multi-value dot printers) are widely used today for the purpose of improving printing image quality. . The invention of the present application can achieve a great effect even when applied to such a multi-value dot printer. Below, the case where this invention is applied to a multi-value dot printer is demonstrated as 2nd Example.

C−1.第2実施例の画像印刷処理の概要 :
第2実施例の画像印刷処理は、フローチャートについては、図5に示した第1実施例の画像印刷処理と同様である。以下では、図5のフローチャートを流用しながら、第2実施例の画像印刷処理の概要について簡単に説明する。
C-1. Outline of the image printing process of the second embodiment:
The image printing process of the second embodiment is the same as the image printing process of the first embodiment shown in FIG. Hereinafter, the outline of the image printing process of the second embodiment will be briefly described with reference to the flowchart of FIG.

第2実施例の画像印刷処理を開始すると、先ず初めに、コンピュータ100で画像データを読み込んだ後、色変換処理を行う(図5のステップS100およびステップS102相当)。次いで、解像度変換処理を行って、画像データの解像度を印刷解像度に変換した後(ステップS104相当)、個数データ生成処理を開始する(ステップS106相当)。   When the image printing process of the second embodiment is started, first, after the image data is read by the computer 100, the color conversion process is performed (corresponding to step S100 and step S102 in FIG. 5). Next, resolution conversion processing is performed to convert the resolution of the image data into print resolution (corresponding to step S104), and then the number data generation processing is started (corresponding to step S106).

前述したように、第1実施例では、カラープリンタ200が形成可能なドットは1種類であるものとしており、個数データ生成処理では、画素群内に形成されるドット個数を表す個数データを生成して、カラープリンタ200に出力した。これに対して、第2実施例では、カラープリンタ200は、複数種類のドットを形成可能である。ここでは、大きさの異なる3種類のドット、すなわち大ドット、中ドット、小ドットを形成可能であるものとする。このことと対応して、第2実施例の個数データ生成処理では、画素群内に、大ドット、中ドット、小ドットがそれぞれ何個ずつ形成されるかを表すデータを、個数データを生成することになる。   As described above, in the first embodiment, the number of dots that can be formed by the color printer 200 is one, and in the number data generation process, number data representing the number of dots formed in the pixel group is generated. And output to the color printer 200. On the other hand, in the second embodiment, the color printer 200 can form a plurality of types of dots. Here, it is assumed that three types of dots having different sizes, that is, large dots, medium dots, and small dots can be formed. Corresponding to this, in the number data generation process of the second embodiment, the number data is generated that represents how many large dots, medium dots, and small dots are formed in the pixel group. It will be.

また、詳細には後述するが、個数データを少ないデータ量で効率よく出力するために、大ドット、中ドット、小ドットの個数をそのまま出力するのではなく、コード化された状態で出力する。こうした第2実施例の個数データ生成処理の詳細については後述する。尚、ここでは、カラープリンタ200が形成可能なドットは、大ドット、中ドット、小ドットと、互いに大きさの異なるドットであるものとして説明するが、もちろん、ドットの種類が異なるのであれば、大きさが異なる場合に限られるものではない。例えば、ドットを形成するインクの濃度が異なる複数種類のドットとしたり、あるいは、微細なドットを複数形成することで擬似的に1つのドットを形成する場合には、微細なドットの密度が異なる複数種類のドットとすることも可能である。   As will be described in detail later, in order to efficiently output the number data with a small data amount, the numbers of large dots, medium dots, and small dots are not output as they are, but are output in a coded state. Details of the number data generation processing of the second embodiment will be described later. Here, it is assumed that the dots that can be formed by the color printer 200 are large dots, medium dots, and small dots that are different in size, but of course, if the types of dots are different, It is not limited to when the sizes are different. For example, in the case where a plurality of types of dots having different ink densities for forming dots are formed, or a single dot is formed in a pseudo manner by forming a plurality of fine dots, a plurality of fine dots having different densities are used. It is also possible to use different types of dots.

カラープリンタ200の制御回路260に内蔵されたCPUは、コンピュータ100から供給された個数データを受け取ると、ドット形成有無決定処理を開始する(図5のステップS108相当)。詳細には後述するが、第2実施例のドット形成有無決定処理では、コード化された状態の個数データを受け取ると、画素群内の各画素について、大ドット、中ドット、小ドットのいずれのドットを形成するか、あるいはドットを形成しないかを決定する処理を行う。   When the CPU built in the control circuit 260 of the color printer 200 receives the number data supplied from the computer 100, it starts the dot formation presence / absence determination process (corresponding to step S108 in FIG. 5). As will be described in detail later, in the dot formation presence / absence determination process of the second embodiment, when the coded number data is received, any one of large dots, medium dots, and small dots is received for each pixel in the pixel group. Processing for determining whether to form a dot or not to form a dot is performed.

こうして、大中小の各種ドットについてドット形成の有無を決定したら、得られた結果に従って各種ドットを形成する(図5のステップS110相当)。こうして大ドット、中ドット、小ドットを形成することにより、画像データに対応した画像が印刷される。   In this way, when the presence / absence of dot formation is determined for various large, medium, and small dots, various dots are formed according to the obtained results (corresponding to step S110 in FIG. 5). By forming large dots, medium dots, and small dots in this way, an image corresponding to the image data is printed.

C−2.第2実施例の個数データ生成処理 :
次に、上述した第2実施例の画像印刷処理において、画素群内に形成される大ドット、中ドット、小ドットの個数がコード化された個数データを生成する処理について説明する。
C-2. Number data generation processing of the second embodiment:
Next, a process for generating the number data in which the numbers of large dots, medium dots, and small dots formed in the pixel group are encoded in the image printing process of the second embodiment described above will be described.

図19は、画素群内に形成される大ドット、中ドット、小ドットの個数を決定して、個数データを生成する処理の流れを示すフローチャートである。尚、かかる処理の詳細については、特許3292104号に開示されている。以下、フローチャートに従って説明する。処理を開始すると先ず初めに、互いに隣接する所定数の画素をまとめて画素群を形成する(ステップS500)。ここでは、前述の第1実施例と同様に、主走査方向に4画素、副走査方向に2画素の合計8つの画素を画素群としてまとめるものとする。   FIG. 19 is a flowchart showing a flow of processing for determining the number of large dots, medium dots, and small dots formed in the pixel group and generating the number data. Details of such processing are disclosed in Japanese Patent No. 3292104. Hereinafter, it demonstrates according to a flowchart. When the processing is started, first, a predetermined number of pixels adjacent to each other are collected to form a pixel group (step S500). Here, as in the first embodiment described above, a total of eight pixels, which are four pixels in the main scanning direction and two pixels in the sub-scanning direction, are collected as a pixel group.

次いで、画素群の中からドット形成の有無を判断するべく、処理対象とする画素を1つ選択した後(ステップS502)、選択した処理画素について、大ドット、中ドット、小ドットの形成有無を判断する(ステップS504)。大中小ドットの形成有無は次のようにして判断する。   Next, in order to determine the presence / absence of dot formation from the pixel group, one pixel to be processed is selected (step S502), and the formation presence / absence of large dots, medium dots, and small dots is determined for the selected processing pixel. Judgment is made (step S504). Whether large, medium, and small dots are formed is determined as follows.

図20は、選択した1つの画素についてハーフトーン処理を行うことにより、大ドット、中ドット、小ドットの形成有無を判断する処理の流れを示すフローチャートである。大中小ドットのハーフトーン処理を開始すると、先ず初めに処理対象とする画素についての画像データを、大ドット、中ドット、小ドットの各ドットについての密度データに変換する(ステップS550)。ここで、密度データとは、ドットをどの程度の密度で形成するかを表すデータである。密度データは、大きな階調値となるほどドットが高い密度で形成されることを表している。例えば、密度データの階調値「255」は、ドットの形成密度が100%、すなわち全ての画素にドットが形成されることを表しており、密度データの階調値「0」は、ドットの形成密度が0%、すなわちいずれの画素にもドットが形成されないことを表している。こうした密度データへの変換は、ドット密度変換テーブルと呼ばれる数表を参照することによって行うことができる。   FIG. 20 is a flowchart illustrating a flow of processing for determining whether or not large dots, medium dots, and small dots are formed by performing halftone processing on one selected pixel. When the halftone process for large, medium, and small dots is started, first, image data for the pixel to be processed is converted into density data for each of the large, medium, and small dots (step S550). Here, the density data is data representing the density at which dots are formed. The density data represents that dots are formed at a higher density as the gradation value becomes larger. For example, the gradation value “255” of the density data indicates that the dot formation density is 100%, that is, dots are formed in all pixels, and the gradation value “0” of the density data indicates that the dot is formed. This indicates that the formation density is 0%, that is, no dot is formed in any pixel. Such conversion into density data can be performed by referring to a numerical table called a dot density conversion table.

図21は、画像データの階調値を大中小各ドットについての密度データに変換する際に参照されるドット密度変換テーブルを概念的に示した説明図である。図示されているように、ドット密度変換テーブルには、色変換によって得られた画像データの階調値に対して、小ドット・中ドット・大ドットの各ドットについての密度データが設定されている。画像データが階調値「0」近傍の領域では、中ドット・大ドットの密度データはいずれも階調値「0」に設定されている。小ドットの密度データは、画像データの階調値が大きくなるに連れて増加して行くが、画像データがある階調値に達すると今度は逆に減少し始め、代わりに中ドットの密度データが増加し始める。画像データの階調値が更に増加して、ある階調値に達すると、小ドットの密度データが階調値「0」となり、中ドットの密度データが減少し始めて、代わりに大ドットの密度データが少しずつ増加していく。図20のステップS552では、このドット密度変換テーブルを参照しながら、画像データの階調値を、大ドットの密度データ、中ドットの密度データ、小ドットの密度データに変換する処理を行う。   FIG. 21 is an explanatory diagram conceptually showing a dot density conversion table that is referred to when converting the gradation value of image data into density data for large, medium, and small dots. As shown in the drawing, in the dot density conversion table, density data for each dot of small dots, medium dots, and large dots is set for the gradation value of the image data obtained by color conversion. . In the area where the image data is near the gradation value “0”, the density data of medium dots and large dots are both set to the gradation value “0”. The density data of small dots increases as the gradation value of the image data increases, but when the image data reaches a certain gradation value, it starts to decrease, and instead the density data of medium dots. Begins to increase. When the gradation value of the image data further increases and reaches a certain gradation value, the density data of the small dots becomes the gradation value “0”, and the density data of the medium dots starts to decrease. Instead, the density of the large dots Data increases little by little. In step S552 in FIG. 20, the gradation value of the image data is converted into large dot density data, medium dot density data, and small dot density data while referring to the dot density conversion table.

このようにして、処理対象とする画素について、大中小各ドットの密度データが得られたら、先ず初めに大ドットについての形成有無を判断する(図20のステップS554)。かかる判断は、大ドットの密度データと、処理対象としている画素の対応する位置に設定されているディザマトリックスの閾値とを比較することによって行う。そして、密度データの方が大きい場合は処理対象の画素には大ドットを形成するものと判断し(ステップS554:yes)、ハーフトーン処理を抜けて図19に示した個数データ生成処理に復帰する。   In this way, when density data of large, medium, and small dots is obtained for the pixel to be processed, first, it is determined whether or not large dots are formed (step S554 in FIG. 20). Such a determination is made by comparing the density data of large dots and the threshold value of the dither matrix set at the corresponding position of the pixel to be processed. If the density data is larger, it is determined that a large dot is to be formed on the pixel to be processed (step S554: yes), and the halftone process is exited to return to the number data generation process shown in FIG. .

逆に、大ドットの密度データよりも閾値の方が大きい場合は処理対象の画素には大ドットは形成されないと判断して(ステップS554:no)、今度は中ドットについて形成有無を判断する処理を開始する。中ドットの形成有無の判断には、大ドットの密度データと中ドットの密度データとを加算して、中ドット用の中間データを算出する(ステップS556)。そして、得られた中ドット用の中間データと、ディザマトリックスの閾値とを比較することにより、中ドットの形成有無を判断する(ステップSS558)。そして、中ドット用の中間データの方が大きい場合は処理対象の画素には中ドットを形成するものと判断し(ステップS560:yes)、ハーフトーン処理を抜けて図19の個数データ生成処理に復帰する。   Conversely, when the threshold value is larger than the density data of large dots, it is determined that no large dot is formed on the pixel to be processed (step S554: no), and this time, the process of determining whether or not a medium dot is formed. To start. To determine whether or not medium dots are formed, the medium dot intermediate data is calculated by adding the large dot density data and the medium dot density data (step S556). Then, by comparing the obtained intermediate data for medium dots and the threshold value of the dither matrix, it is determined whether or not medium dots are formed (step SS558). If the intermediate data for medium dots is larger, it is determined that a medium dot is to be formed in the pixel to be processed (step S560: yes), and the halftone process is skipped and the number data generation process in FIG. 19 is performed. Return.

逆に、中ドット用の中間データよりも閾値の方が大きい場合は処理対象の画素には中ドットも形成されないと判断して(ステップS560:no)、今度は小ドットについて形成有無を判断する処理を開始する。小ドットの形成有無の判断には、中ドット用の中間データと小ドットの密度データとを加算して、小ドット用の中間データを算出する(ステップS562)。そして、得られた小ドット用の中間データと、ディザマトリックスの閾値とを比較することにより、小ドットの形成有無を判断する(ステップS564)。そして、小ドット用の中間データの方が大きい場合は処理対象の画素には小ドットを形成するものと判断し、逆に、小ドット用の中間データよりも閾値の方が大きい場合には、いずれのドットも形成されないものと判断する。   On the other hand, if the threshold value is larger than the intermediate dot intermediate data, it is determined that no medium dot is formed on the pixel to be processed (step S560: no), and this time, whether or not a small dot is formed is determined. Start processing. To determine whether or not small dots are formed, intermediate data for medium dots and density data for small dots are added to calculate intermediate data for small dots (step S562). Then, by comparing the obtained intermediate data for small dots and the threshold value of the dither matrix, it is determined whether or not small dots are formed (step S564). If the intermediate data for small dots is larger, it is determined that a small dot is formed in the pixel to be processed. Conversely, if the threshold is larger than the intermediate data for small dots, It is determined that no dot is formed.

以上のような処理を行えば、処理対象としている画素について、大ドット、中ドット、小ドットのいずれのドットを形成するか、若しくは、いずれのドットも形成しないかを判断することができる。こうして、対象画素についてドット形成の有無を判断したら、図20に示したハーフトーン処理を抜けて図19の個数データ生成処理に復帰する。   By performing the processing as described above, it is possible to determine whether a large dot, a medium dot, or a small dot is formed for a pixel to be processed, or whether any dot is not formed. Thus, when it is determined whether or not dots are formed for the target pixel, the halftone process shown in FIG. 20 is exited and the process returns to the number data generation process shown in FIG.

上述した処理を行いながら大中小の各ドットの形成有無を判断する様子について、図22を参照しながら補足して説明する。図22は、画素群内の各画素について、ディザ法を適用しながら大中小各ドットの形成有無を判断している様子を概念的に示した説明図である。ここでは、説明が煩雑となることを避けるために、画素群内の全画素が同じ階調値を有しており、従って、大中小各ドットの密度データも同じ階調値を有しているものとする。図22(a)は、画素群内の各画素について得られた大中小ドットの密度データを示しており、いずれの画素も、大ドットの密度データが「2」、中ドットの密度データが「90」、小ドットの密度データが「32」であったものとする。   The manner of determining whether large, medium, and small dots are formed while performing the above-described processing will be supplementarily described with reference to FIG. FIG. 22 is an explanatory diagram conceptually showing a state in which the presence / absence of large / medium / small dots is determined for each pixel in the pixel group while applying the dither method. Here, in order to avoid complicated explanation, all the pixels in the pixel group have the same gradation value, and therefore the density data of the large, medium, and small dots also have the same gradation value. Shall. FIG. 22A shows the density data of large, medium, and small dots obtained for each pixel in the pixel group. For each pixel, the density data of large dots is “2” and the density data of medium dots is “ 90 ”, and the density data of small dots is“ 32 ”.

図22(b)は、ディザマトリックス中で、画素群に対応する位置に記憶されている閾値を表している。大ドットの形成有無を判断する際には、大ドットの密度データと、これら閾値とを比較する。ここでは、いずれの画素についても、大ドットの密度データは「2」であるとしているから、大ドットを形成すると判断される画素は、閾値「1」が設定された画素だけである。図22(b)には、大ドットが形成されると判断された画素には、細かい斜線を付して表示している。その他の画素については、中ドットか小ドットのどちらかが形成されるか、若しくはいずれのドットも形成されないかのいずれかであると考えられる。そこで、中ドットの形成有無を判断する。   FIG. 22B shows threshold values stored at positions corresponding to pixel groups in the dither matrix. When determining whether or not large dots are formed, the density data of large dots is compared with these threshold values. Here, since the density data of large dots is “2” for any pixel, the pixels that are determined to form large dots are only those for which the threshold value “1” is set. In FIG. 22B, the pixels for which large dots are determined to be formed are displayed with fine diagonal lines. For the other pixels, it is considered that either medium dots or small dots are formed, or no dot is formed. Therefore, it is determined whether or not medium dots are formed.

中ドットの形成有無の判断に際しては、大ドットの密度データ「2」と中ドットの密度データ「90」とを加算して中ドット用の中間データを算出し、得られた中間データ「92」とディザマトリックスの閾値とを比較する。その結果、閾値「42」が設定された画素と、閾値「58」が設定された画素の2つの画素にのみ、中ドットが形成されるものと判断される。図22(c)には、中ドットが形成されると判断された画素には、少し細かい斜線を付して表示している。そして、大ドットも中ドットも形成されない画素については、小ドットが形成されるか、ドットが形成されないかのいずれかであると考えられる。そこで、中ドット用の中間データ「92」に小ドットの密度データ「32」を加算して、小ドット用の中間データを算出し、得られた中間データ「124」とディザマトリックスの閾値とを比較する。その結果、閾値「109」が設定された画素にのみ、小ドットが形成されるものと判断される。図22(d)には、小ドットが形成されると判断された画素には、粗い斜線を付して表示している。   In determining whether or not a medium dot is formed, the medium dot intermediate data is calculated by adding the large dot density data “2” and the medium dot density data “90” and obtaining the intermediate data “92”. And the dither matrix threshold. As a result, it is determined that medium dots are formed only in two pixels, the pixel for which the threshold “42” is set and the pixel for which the threshold “58” is set. In FIG. 22 (c), a pixel that is determined to have a medium dot formed is displayed with a slight diagonal line. A pixel in which neither a large dot nor a medium dot is formed is considered to be either a small dot is formed or no dot is formed. Therefore, the small dot density data “32” is added to the intermediate dot intermediate data “92” to calculate the intermediate data for small dots, and the obtained intermediate data “124” and the threshold value of the dither matrix are calculated. Compare. As a result, it is determined that a small dot is formed only on a pixel for which the threshold value “109” is set. In FIG. 22D, the pixels for which small dots are determined to be formed are displayed with rough diagonal lines.

図19に示した個数データ生成処理のステップS502〜S506では、以上のようにして画素群内の各画素について中間データを算出しながら、大中小の各ドットについての形成有無を判断していく。こうして、画素群内の全画素について判断を終了したら(ステップS506:yes)、画素群内に形成される大ドット、中ドット、小ドットの個数を取得する(ステップS508)。図22に例示した画素群については、大ドット1個、中ドット2個、小ドット1個となる。   In steps S502 to S506 of the number data generation process shown in FIG. 19, the presence / absence of formation for large, medium, and small dots is determined while calculating intermediate data for each pixel in the pixel group as described above. When the determination is completed for all the pixels in the pixel group (step S506: yes), the number of large dots, medium dots, and small dots formed in the pixel group is acquired (step S508). The pixel group illustrated in FIG. 22 has one large dot, two medium dots, and one small dot.

以上のようにして、画素群内に形成される各種ドットの個数が得られたら、各種ドットの個数の組合せ(図22に示した例では、大ドット1個、中ドット2個、小ドット1個という組合せ)をコード化する処理を行う(ステップS510)。これは、次のような理由によるものである。例えばドットの種類が大中小の3種類である場合、ドットの種類毎に形成する個数を出力したのでは、1つの画素群について3回ずつドット個数を出力しなければならず、コンピュータ100からカラープリンタ200にデータを迅速に出力することで画像を迅速に印刷するという効果が減殺されてしまう。そこで、各ドットの個数を個別に出力するのではなく、各ドットの個数の組合せを、組合せ毎に設定された個別のコードに変換しておくのである。   When the number of various dots formed in the pixel group is obtained as described above, a combination of the numbers of various dots (in the example shown in FIG. 22, one large dot, two medium dots, and one small dot 1). A process of encoding the combination of the individual pieces is performed (step S510). This is due to the following reason. For example, when there are three types of dots, large, medium, and small, if the number of dots formed for each dot type is output, the number of dots must be output three times for each pixel group, and the computer 100 can output the color. By quickly outputting data to the printer 200, the effect of quickly printing an image is diminished. Therefore, instead of individually outputting the number of dots, the combination of the numbers of dots is converted into individual codes set for each combination.

大中小各ドットの組合せをコード化する処理は、ドット個数の組合せとコード化された個数データとを対応付けた状態で予め対応テーブルに記憶しておき、この対応テーブルを参照することで行う。図23は、画素群に形成される大中小各ドットの個数の組合せと、コード化された個数データとが対応付けて設定された対応テーブルを示す説明図である。図23に例示の対応テーブルには、例えば大ドット、中ドット、小ドットの個数がいずれも0個である組合せには、コード化された個数データ「0」が対応付けられている。また、大ドットが0個、中ドットが0個、小ドットが1個の組合せには、コード課された個数データ「1」が対応付けられている。このように対応テーブルには、各ドットの個数の組合せ毎に、コード化された個数データが予め設定されている。   The process of coding the combination of large, medium, and small dots is performed by storing the dot number combination and the coded number data in advance in a correspondence table and referring to the correspondence table. FIG. 23 is an explanatory diagram showing a correspondence table in which combinations of the numbers of large, medium, and small dots formed in a pixel group are set in association with coded number data. In the correspondence table illustrated in FIG. 23, for example, a combination in which the numbers of large dots, medium dots, and small dots are all 0 is associated with coded number data “0”. In addition, a code implied number data “1” is associated with a combination of 0 large dots, 0 medium dots, and 1 small dot. In this way, the coded number data is preset in the correspondence table for each combination of the number of dots.

ここで、大中小ドットの個数の組合せ数は、次のようなものとなる。画素群内の各画素には、大ドット、中ドット、小ドットのいずれのドットも形成され得るが、1つの画素に複数のドットが形成されることはないから、ドット個数の合計が画素群内の画素数(上述した実施例では8個)を越えることはない。従って、これら大中小ドットの個数の組合せは、「大ドットを形成する」、「中ドットを形成する」、「小ドットを形成する」、「ドットを形成しない」の4つの状態の中から重複を許して8回選択するときの組合せの数に等しくなるから、
(=4+8−1
によって求められ、165通りの組合せが存在していることになる。ここで、は、n種類の物の中から重複を許してr回選択したときに得られる組合せの数(重複組合せ数)を求める演算子である。また、は、n種類の物の中から重複を許さずにr回選択したときに得られる組合せの数を求める演算子である。
Here, the number of combinations of the numbers of large, medium, and small dots is as follows. A large dot, medium dot, and small dot can be formed on each pixel in the pixel group. However, since a plurality of dots are not formed in one pixel, the total number of dots is the pixel group. The number of pixels (8 in the above-described embodiment) is not exceeded. Therefore, the combination of the number of large, medium and small dots overlaps among the four states of “form large dots”, “form medium dots”, “form small dots” and “do not form dots”. Is equal to the number of combinations when selecting 8 times with
4 H 8 (= 4 + 8-1 C 8 )
Thus, there are 165 combinations. Here, n H r is an operator for obtaining the number of combinations (number of overlapping combinations) obtained when r times are selected from n types of objects while allowing duplication. N C r is an operator that calculates the number of combinations obtained when r times are selected from n types of objects without allowing duplication.

このように、大中小各ドットの個数の組合せが165通り存在していることから、コードデータも「0」〜「164」の165通りあればよい。165通りであれば、8ビットのデータ長があれば表現することができる。結局、大ドットの個数、中ドットの個数、小ドットの個数と、3回出力する代わりに、8ビットのコード化された個数データを1回出力するだけで、画素群に形成する各種ドットの個数を出力することが可能となる。そこで、図19のステップS510では、ステップS508で画素群毎に得られた各種ドットについての個数の組合せを、図23に示すような対応テーブルを参照しながらコード化された個数データに変換しておくのである。   Since there are 165 combinations of the numbers of large, medium, and small dots in this way, there are only 165 code data “0” to “164”. If there are 165 patterns, an 8-bit data length can be expressed. In the end, instead of outputting the number of large dots, the number of medium dots, the number of small dots, and outputting three times, the 8-bit coded number data is output only once. The number can be output. Accordingly, in step S510 in FIG. 19, the combination of the numbers for the various dots obtained for each pixel group in step S508 is converted into coded number data with reference to the correspondence table as shown in FIG. I will leave it.

こうして、画素群毎のドット個数の組合せをコード化した個数データが得られたら、画像の全画素について以上の処理を行ったか否かを判断する(ステップS512)。そして、未処理の画素が残っている場合は、ステップS500に戻って続く一連の処理を繰り返し、画像の全画素について処理を終了したと判断されたら、コード化された個数データを出力して(ステップS514)、図19に示した個数データ生成処理を終了する。   Thus, when the number data obtained by encoding the combination of the number of dots for each pixel group is obtained, it is determined whether or not the above processing has been performed for all the pixels of the image (step S512). If unprocessed pixels remain, the process returns to step S500 and repeats a series of processes. When it is determined that the process has been completed for all pixels of the image, the encoded number data is output ( Step S514), the number data generation process shown in FIG. 19 is terminated.

C−3.第2実施例のドット形成有無決定処理 :
次に、上述した第2実施例の画像印刷処理において、画素群毎に生成されたコード化された状態の個数データを受け取り、画素群内の各画素についてドット形成の有無を決定する処理について説明する。前述した第1実施例のドット形成有無決定処理では、変換テーブルを参照することで、個数データと順序値とから直ちにドット形成の有無を決定したが、第2実施例のドット形成有無決定処理においても同様に、変換テーブルを参照することにより、コード化された個数データと順序値とから直ちに大中小ドットの形成有無を決定することが可能である。このような処理が可能な理由を明らかにするとともに、こうした処理を行うことで処理が高速化されることを示すために、以下では、先ず初めに、変換テーブルを用いずに個数データからドット形成の有無を決定する処理について説明する。そして、次に、変換テーブルを参照することで、個数データから大中小各種ドットの形成有無を迅速に決定可能な、第2実施例のドット形成有無決定処理について説明する。
C-3. Dot formation presence / absence determination process of the second embodiment:
Next, in the image printing process of the second embodiment described above, a process for receiving the coded state number data generated for each pixel group and determining the presence or absence of dot formation for each pixel in the pixel group will be described. To do. In the dot formation presence / absence determination process of the first embodiment described above, the presence / absence of dot formation is immediately determined from the number data and the order value by referring to the conversion table. In the dot formation presence / absence determination process of the second embodiment, Similarly, by referring to the conversion table, it is possible to immediately determine whether large / medium / small dots are formed from the coded number data and the sequence value. In order to clarify the reason why such a process is possible and to show that the process is speeded up by performing such a process, first, in the following, dot formation is performed from the number data without using the conversion table. The process for determining the presence or absence of will be described. Next, the dot formation presence / absence determination process according to the second embodiment, which can quickly determine whether large / medium / small dots are formed from the number data by referring to the conversion table, will be described.

C−3−1.変換テーブルを参照せずにドット形成有無を決定する方法 :
図24は、変換テーブルを参照することなく、大中小各種ドットの形成有無を決定する処理の流れを示すフローチャートである。以下では、フローチャートに従って簡単に説明する。処理を開始すると、先ず初めに、画素位置を決定しようとする画素群を1つ選択し(ステップS600)、その画素群の個数データを取得する(ステップS602)。こうして取得された個数データは、コード化されたデータとなっている。そこで、個数データを復号して、大ドット、中ドット、小ドットについての個数を示すデータに変換する処理を行う(ステップS604)。個数データを復号する処理は、復号テーブルを参照することによって行う。図25は、コード化された個数データを復号するために参照される復号テーブルを概念的に示した説明図である。
C-3-1. How to determine dot formation without referring to the conversion table:
FIG. 24 is a flowchart showing the flow of processing for determining whether large, medium, and small dots are formed without referring to a conversion table. Below, it demonstrates easily according to a flowchart. When the process is started, first, one pixel group whose pixel position is to be determined is selected (step S600), and the number data of the pixel group is acquired (step S602). The number data obtained in this way is coded data. Therefore, the number data is decoded and converted into data indicating the number of large dots, medium dots, and small dots (step S604). The process of decoding the number data is performed by referring to the decoding table. FIG. 25 is an explanatory diagram conceptually showing a decoding table referred to for decoding the encoded number data.

図示されるように、復号テーブルには、コード化された個数データに対応する大ドット、中ドット、小ドットのドット個数の組合せが設定されている。例えば、コード化された個数データが「1」である場合は、大ドットおよび中ドットの個数は0個で、小ドットの個数が1個であるドット個数の組合せに復号される。図24のステップS604では、このような復号テーブルを参照することにより、コード化された個数データを大中小各ドットの個数を表すデータに変換する。   As shown in the figure, combinations of the numbers of large dots, medium dots, and small dots corresponding to the coded number data are set in the decoding table. For example, when the encoded number data is “1”, the number of large dots and medium dots is 0, and the number of small dots is 1 and is decoded into a combination of dot numbers. In step S604 of FIG. 24, the coded number data is converted into data representing the number of large, medium, and small dots by referring to such a decoding table.

次いで、個数データを復号した画素群に対応する順序値マトリックスを読み込んだ後(ステップS606)、読み込んだ順序値マトリックスを参照しながら、画素群内の各画素について大ドット、中ドット、小ドットの形成有無を判断していく。ここで順序値マトリックスとは、図15を用いて前述したように、画素群内の各画素についてドットが形成される順番を設定したマトリックスである。図26は、順序値マトリックスを参照しながら、大中小の各種ドットについての形成有無を画素毎に決定している様子を概念的に示した説明図である。例えば、個数データを復号することにより、大ドットの個数が1個、中ドットの個数が2個、小ドットの個数が1個の組合せが得られたものとする。   Next, after reading the order value matrix corresponding to the pixel group from which the number data has been decoded (step S606), referring to the read order value matrix, large dots, medium dots, and small dots for each pixel in the pixel group. Judging whether or not it is formed. Here, the order value matrix is a matrix in which the order in which dots are formed is set for each pixel in the pixel group, as described above with reference to FIG. FIG. 26 is an explanatory diagram conceptually showing a state where the presence / absence of formation of large, medium, and small dots is determined for each pixel with reference to the order value matrix. For example, it is assumed that a combination of one large dot, two medium dots, and one small dot is obtained by decoding the number data.

各画素についてのドット形成の有無を決定するに際しては、先ず初めに大ドットを形成する画素を決定する(図24のステップS608)。ここでは、大ドットの個数は1個であるとしているから、最もドットの形成されやすい画素、すなわち、順序値マトリックスで順序値が「1」に設定されている画素に大ドットが形成されるものと判断する。ここで、大ドットの個数がN個である場合は、順序値マトリックスで順序値が「1」から「N」までの値が設定されている画素に大ドットを形成するものと判断する。図26では、大ドットを形成する画素には、細かい斜線を付して表示している。   When determining the presence or absence of dot formation for each pixel, first, a pixel on which a large dot is to be formed is determined (step S608 in FIG. 24). Here, since the number of large dots is one, a large dot is formed in a pixel in which the dot is most easily formed, that is, a pixel in which the order value is set to “1” in the order value matrix. Judge. Here, when the number of large dots is N, it is determined that large dots are to be formed in pixels in which the order values are set to values “1” to “N” in the order value matrix. In FIG. 26, pixels forming large dots are displayed with fine diagonal lines.

大ドットを形成する画素を決定したら、大ドットが形成されなかった画素の中から、今度は、中ドットを形成する画素を決定する(図24のステップS610)。図26に示すように、中ドットの個数は2個であり、順序値「1」が設定されている画素位置には大ドットが形成されているから、中ドットは順序値「2」が設定された画素と順序値「3」が設定された画素とに形成される。図26では、中ドットが形成される画素位置には、少し粗い斜線を付して表示している。   If the pixel which forms a large dot is determined, the pixel which forms a medium dot is determined from the pixel in which the large dot was not formed next (step S610 of FIG. 24). As shown in FIG. 26, the number of medium dots is two, and large dots are formed at the pixel positions where the order value “1” is set. Therefore, the order value “2” is set for the medium dots. And the pixels for which the order value “3” is set. In FIG. 26, pixel positions where medium dots are formed are displayed with a slightly rough diagonal line.

こうして中ドットを形成する画素を決定したら、大ドットも中ドットも形成されない画素の中から、小ドットを形成する画素を決定する(図24のステップS612)。図26に示すように、小ドットの個数は1個であり、順序値「1」の画素には大ドットが、順序値「2」および「3」の画素には中ドットが形成されているから、小ドットは順序値「4」が設定された画素に形成される。図26では、小ドットが形成される画素には、粗い斜線を付して表示している。そして、最後に、大ドット、中ドット、小ドットのいずれも形成されなかった画素については、ドットを形成しないものと判断する(図24のステップS614)。   When the pixels for forming the medium dots are determined in this way, the pixels for forming the small dots are determined from the pixels in which neither the large dots nor the medium dots are formed (step S612 in FIG. 24). As shown in FIG. 26, the number of small dots is one, and large dots are formed in the pixels with the order value “1”, and medium dots are formed in the pixels with the order values “2” and “3”. Therefore, the small dots are formed in the pixels for which the order value “4” is set. In FIG. 26, pixels on which small dots are formed are displayed with rough diagonal lines. Finally, it is determined that no dot is formed for a pixel in which neither a large dot, a medium dot, nor a small dot is formed (step S614 in FIG. 24).

こうして、1つの画素群について、コード化された個数データを復号し、大中小の各ドットを形成する画素を決定したら、全画素群について処理を終了したか否かを判断する(図24のステップS616)。そして、未処理の画素群が残っている場合は(ステップS616:no)、ステップS600に戻って、新たな画素群について続く一連の処理を繰り返す。こうして全ての画素群について処理を終了したと判断されたら(ステップS616:yes)、図24に示したドット形成有無決定処理を終了する。   Thus, after decoding the coded number data for one pixel group and determining the pixels that form the large, medium, and small dots, it is determined whether or not the processing has been completed for all the pixel groups (step in FIG. 24). S616). If an unprocessed pixel group remains (step S616: no), the process returns to step S600, and a series of subsequent processes are repeated for the new pixel group. When it is determined that the process has been completed for all the pixel groups (step S616: yes), the dot formation presence / absence determination process shown in FIG. 24 is terminated.

C−3−2.変換テーブルを参照するドット形成有無決定処理 :
以上に説明したドット形成有無の決定処理では、コード化された個数データを受け取ると、画素群内に形成する大中小ドットの個数を示すデータに復号した後、各画素についていずれのドットを形成するかを決定するという、言わば2段階の操作を経ている。しかし、変換テーブルを参照すれば、各画素に形成するドットを、個数データを復号することなく直ちに決定することができる。以下では、変換テーブルを参照してドット形成の有無を決定する第2実施例のドット形成有無決定処理について説明する。
C-3-2. Dot formation presence / absence determination processing referring to the conversion table:
In the dot formation presence / absence determination process described above, when coded number data is received, it is decoded into data indicating the number of large, medium and small dots formed in the pixel group, and then any dot is formed for each pixel. This is a two-step operation. However, with reference to the conversion table, the dots to be formed in each pixel can be determined immediately without decoding the number data. Hereinafter, the dot formation presence / absence determination process of the second embodiment for determining the presence / absence of dot formation with reference to the conversion table will be described.

第2実施例のドット形成有無決定処理は、前述した第1実施例において図14を用いて説明した変形例のドット形成有無決定処理に対して、参照する変換テーブルが異なっているだけであり、処理の流れは同様である。そこで、以下では、図14のフローチャートを流用しながら、第2実施例のドット形成有無決定処理について説明する。   The dot formation presence / absence determination processing of the second embodiment is different from the dot formation presence / absence determination processing of the modification described with reference to FIG. The process flow is the same. Accordingly, in the following, the dot formation presence / absence determination process of the second embodiment will be described using the flowchart of FIG.

第2実施例のドット形成有無決定処理を開始すると、先ず初めに画素群を1つ選択し(ステップS400相当)、その画素群の個数データを取得する(ステップS402相当)。次いで、複数組記憶されている順序値マトリックスの中から、選択した画素群に対応する順序値マトリックスを読み込んでやる(ステップS404相当)。すなわち、図15および図16を用いて前述したように、画素群の座標値(n,m)から、nおよびmの下位5ビットを抜き出して、それぞれN,Mを求める。そして、ディザマトリックス中でN行M列のブロックから生成された順序値マトリックスを選択して、読み込んでやればよい。   When the dot formation presence / absence determination process of the second embodiment is started, first, one pixel group is selected (corresponding to step S400), and the number data of the pixel group is acquired (corresponding to step S402). Next, the sequence value matrix corresponding to the selected pixel group is read from the sequence value matrix stored in plural sets (corresponding to step S404). That is, as described above with reference to FIGS. 15 and 16, the lower 5 bits of n and m are extracted from the coordinate values (n, m) of the pixel group to obtain N and M, respectively. Then, an order value matrix generated from a block of N rows and M columns in the dither matrix may be selected and read.

以上のようにして、画素群に対応する順序値マトリックスを読み込んだら、処理中の画素群の中から、ドット形成の有無を決定しようとする対象画素を1つ選択する(ステップS406相当)。そして、読み込んでおいた順序値マトリックスを参照することで、対象画素の順序値を取得した後(ステップS408相当)、変換テーブルを参照することによって、対象画素についてのドット形成の有無を決定する(ステップS410相当)。   As described above, when the order value matrix corresponding to the pixel group is read, one target pixel for determining whether or not to form dots is selected from the pixel group being processed (corresponding to step S406). Then, after obtaining the order value of the target pixel by referring to the read order value matrix (corresponding to step S408), the presence or absence of dot formation for the target pixel is determined by referring to the conversion table ( Step S410 equivalent).

ここで、前述した第1実施例のドット形成有無決定処理において参照した変換テーブルには、個数データと順序値との組合せ毎に、ドット形成の有無を表すデータが設定されていた(図13参照のこと)。これに対して、第2実施例のドット形成有無決定処理で参照する変換テーブルには、コード化された状態の個数データと順序値との組合せ毎に、大中小いずれのドットを形成するか、あるいはドットを形成しないかを示すデータが設定されている。   Here, in the conversion table referred to in the dot formation presence / absence determination process of the first embodiment described above, data indicating the presence / absence of dot formation is set for each combination of the number data and the order value (see FIG. 13). ) On the other hand, in the conversion table referred to in the dot formation presence / absence determination process of the second embodiment, which of large / medium / small dots is formed for each combination of the coded number data and the sequence value, Alternatively, data indicating whether dots are not formed is set.

図27は、第2実施例のドット形成有無決定処理で参照される変換テーブルを概念的に示した説明図である。図23を用いて前述したように、コード化された個数データは0〜164までの165通りの値を取り得る。また、1つの画素群は8つの画素から構成されているとしているから、順序値は1〜8までの8通りの値を取り得る。第2実施例の変換テーブルには、これら165×8=1320通りの組合せ毎に、ドットを形成しないことを示す値「0」、小ドットを形成することを示す値「1」、中ドットを形成することを示す値「2」、大ドットを形成することを示す値「3」のいずれかが設定されている。従って、画素群の個数データと対象画素の順序値とが分かれば、直ちにドット形成の有無を決定することができる。第2実施例のドット形成有無決定処理では、このような変換テーブルを参照することで、対象画素に大中小いずれのドットを形成するのか、あるいはドットを形成しないのかを、直ちに決定するのである(図14のステップS410相当)。   FIG. 27 is an explanatory diagram conceptually showing a conversion table referred to in the dot formation presence / absence determination process of the second embodiment. As described above with reference to FIG. 23, the coded number data can take 165 values from 0 to 164. Since one pixel group is composed of eight pixels, the order value can take eight values from 1 to 8. In the conversion table of the second embodiment, for each of these 165 × 8 = 1320 combinations, a value “0” indicating that dots are not formed, a value “1” indicating that small dots are formed, and medium dots are displayed. Either a value “2” indicating formation or a value “3” indicating formation of a large dot is set. Therefore, if the number data of the pixel group and the order value of the target pixel are known, the presence / absence of dot formation can be determined immediately. In the dot formation presence / absence determination process of the second embodiment, by referring to such a conversion table, it is immediately determined whether a large / medium / small dot is formed in the target pixel or a dot is not formed ( (Corresponding to step S410 in FIG. 14).

ここで、図27に示すような変換テーブルを参照しながらドット形成の有無を決定した場合でも、大中小ドットについてのドット形成の有無を適切に決定可能な理由について説明する。図24ないし図26を用いて前述したように、変換テーブルを参照することなくドット形成の有無を決定する場合は、大きくは2段階の操作を経ている。すなわち、先ず第1段階では、コード化された個数データを大中小の各種ドットの個数に変換する。続く第2段階では、順序値マトリックスに従って各画素についてのドット形成の有無を決定する。ここで、図25に示されているように、コード化された個数データと、大中小ドットについての個数の組合せとは、一対一の関係にある。換言すれば、コード化された個数データが1つ与えられれば、各種ドットについての個数の組合せは一意的に決定することができる。   Here, the reason why it is possible to appropriately determine the presence / absence of dot formation for large, medium and small dots even when the presence / absence of dot formation is determined with reference to the conversion table as shown in FIG. As described above with reference to FIGS. 24 to 26, when the presence / absence of dot formation is determined without referring to the conversion table, two steps of operations are performed. That is, in the first stage, the coded number data is converted into the number of various large, medium, and small dots. In the subsequent second stage, whether or not to form dots for each pixel is determined according to the order value matrix. Here, as shown in FIG. 25, the encoded number data and the combination of the numbers of large, medium, and small dots have a one-to-one relationship. In other words, if one coded number data is given, a combination of numbers for various dots can be uniquely determined.

一方、画素群内に形成される各種ドットの個数が復号されると、図26に示したように、順序値マトリックスに従って、各画素についてのドット形成の有無が決定される。すなわち、順序値マトリックスが決まっていれば、各種ドットについての個数の組合せと、各画素についてのドット形成の有無とは、一対一の関係にある。上述したように、各種ドットについての個数の組合せは、コード化された個数データから一意的に決定されるから、結局、順序値マトリックスが決まっていれば、コード化された個数データから、画素群内の各画素について、各種ドットの形成有無は一意的に決定されることになる。   On the other hand, when the number of various dots formed in the pixel group is decoded, the presence / absence of dot formation for each pixel is determined according to the order value matrix as shown in FIG. That is, if the order value matrix is determined, the combination of the numbers for various dots and the presence / absence of dot formation for each pixel have a one-to-one relationship. As described above, the combination of the numbers for various dots is uniquely determined from the encoded number data. Therefore, if the order value matrix is determined after all, the pixel group is determined from the encoded number data. Whether or not various dots are formed is uniquely determined for each of the pixels.

ここで、各種ドットの個数と順序値マトリックスとに従って、各画素についてのドット形成の有無を決定する操作を更に詳しく観察すると、次のようなことが分かる。すなわち、各種ドットの個数の組合せは、ある順序値の画素にはどのようなドットが形成されるかを決定しており、順序値マトリックスは、そのような順序値の画素が、画素群中のどの位置にあるかを決定している。例えば、図26に示した例では、大ドット1個、中ドット2個、小ドット1個であるから、順序値「1」の画素には大ドットが形成され、順序値「2」および「3」の画素には中ドットが形成され、順序値「4」の画素には小ドットが形成され、順序値「5」〜「8」の画素にはいずれのドットも形成されないことがわかる。そして、これら順序値の画素が、画素群中ではどの位置にあるかについては、順序値マトリックスによって決定されている。このことから、コード化された個数データが与えられれば、ある順序値の画素にはどのようなドットが形成されるかについてまでは、一意的に決定することが可能である。   Here, when the operation for determining the presence / absence of dot formation for each pixel is observed in more detail according to the number of various dots and the order value matrix, the following can be understood. That is, the combination of the number of various dots determines what dots are formed in a pixel with a certain order value, and the order value matrix has such pixels with such order value in the pixel group. The position is determined. For example, in the example shown in FIG. 26, since there are one large dot, two medium dots, and one small dot, a large dot is formed in the pixel having the order value “1”, and the order values “2” and “ It can be seen that medium dots are formed in the pixels of “3”, small dots are formed in the pixels of the order value “4”, and no dots are formed in the pixels of the order values “5” to “8”. The position of the pixels having the order values in the pixel group is determined by the order value matrix. From this, given the coded number data, it is possible to determine uniquely what kind of dots are formed in a pixel of a certain order value.

そこで、全ての個数データについて、順序値とその順序値を有する画素に形成されるドットの種類とを予め決定しておき、図27に示すような変換テーブルに設定しておく。そして、画素群内の対象画素についてドット形成の有無を決定する場合には、順序値マトリックスを参照することで対象画素の順序値を求め、次いで変換テーブルを参照することで、その順序値に形成されるドットの種類を取得すれば、ドット形成の有無を適切に決定することが可能となるのである。   Therefore, for all the number data, the order value and the type of dot formed on the pixel having the order value are determined in advance and set in a conversion table as shown in FIG. When determining the presence or absence of dot formation for the target pixel in the pixel group, the order value of the target pixel is obtained by referring to the order value matrix, and then formed into the order value by referring to the conversion table. If the type of dot to be obtained is acquired, it is possible to appropriately determine the presence or absence of dot formation.

こうして、1つの対象画素についてドット形成の有無を決定したら、選択した画素群内の全画素について、ドット形成の有無を決定したか否かを判断する(図14のステップS412相当)。未だ、ドット形成の有無を決定していない画素が残っていれば、ステップS406に相当する箇所まで戻って、新たな対象画素を選択し、続く一連の処理を行う。こうした処理を繰り返し、画素群内の全画素についてドット形成の有無を決定したと判断されたら、今度は、個数データが供給された全画素群について処理を終了したか否かを判断する(ステップS414相当)。そして、未処理の画素群が残っていれば、一番初めまで戻って新たな画素群を選択し、続く一連の処理を行う。こうした処理を繰り返し、全ての画素群について処理が終了したら、第2実施例のドット形成有無決定処理を終了する。   When the presence / absence of dot formation is thus determined for one target pixel, it is determined whether or not dot formation has been determined for all pixels in the selected pixel group (corresponding to step S412 in FIG. 14). If pixels that have not yet been determined for dot formation remain, the process returns to the position corresponding to step S406, a new target pixel is selected, and a series of processes are performed. If it is determined that dot formation has been determined for all the pixels in the pixel group by repeating such processing, it is determined whether or not processing has been completed for all pixel groups to which the number data is supplied (step S414). Equivalent). If an unprocessed pixel group remains, the process returns to the very beginning, selects a new pixel group, and performs a series of subsequent processes. When these processes are repeated and the process is completed for all pixel groups, the dot formation presence / absence determination process of the second embodiment is completed.

以上に説明した第2実施例のドット形成有無決定処理においては、コード化された状態の個数データを受け取ると、順序値マトリックスを参照して対象画素の順序値を取得した後、個数データと順序値とから変換テーブルを参照することで、個数データを復号することなく各種ドットについての形成有無を決定することができる。このため、画素毎にドット形成有無を決定する処理を迅速に実行することが可能となり、延いては画像を迅速に出力することが可能となる。   In the dot formation presence / absence determination process of the second embodiment described above, when the coded number data is received, the order value of the target pixel is obtained by referring to the order value matrix, and then the number data and order By referring to the conversion table from the values, it is possible to determine whether or not to form various dots without decoding the number data. For this reason, it is possible to quickly execute the process of determining the presence or absence of dot formation for each pixel, and thus it is possible to output an image quickly.

また、第2実施例のドット形成有無決定処理の主な処理内容は、順序値マトリックスや変換テーブルを参照してデータを読み出しているだけであり、極めて単純な処理である。従って、コンピュータ100のようには高いデータ処理能力を備えていないカラープリンタ200においても、十分に迅速に実行することが可能であり、それだけ画像を迅速に印刷することが可能となる。   Further, the main processing content of the dot formation presence / absence determination processing of the second embodiment is simply reading data with reference to the order value matrix and the conversion table, which is a very simple processing. Accordingly, even the color printer 200 that does not have a high data processing capability like the computer 100 can be executed sufficiently quickly, and an image can be printed quickly.

更に、第2実施例のドット形成有無決定処理では、マトリックスあるいはテーブルを参照するだけで対象画素についてのドット形成の有無を決定することが可能であり、処理中に条件分岐が含まれていない。これに対して、変換テーブルを参照することなくドット形成の有無を判断する場合は、多数の条件分岐が発生する。この点について図24を参照しながら若干の補足説明を行う。   Furthermore, in the dot formation presence / absence determination processing of the second embodiment, it is possible to determine the presence / absence of dot formation for the target pixel simply by referring to the matrix or table, and no conditional branching is included in the processing. On the other hand, when determining the presence or absence of dot formation without referring to the conversion table, a large number of conditional branches occur. A slight supplementary explanation will be given on this point with reference to FIG.

変換テーブルを参照せずに各種ドットの形成の有無を決定する場合、先ず初めに大ドットについての形成有無を判断する(図24のステップS608)。そして、大ドットが形成されなければ、中ドットの形成有無を判断する(図24のステップS610)。大ドットも中ドットも形成されなければ、今度は小ドットの形成有無を判断する(図24のステップS612)。そして、小ドットも形成されないと判断された画素については、いずれのドットも形成されないと判断している。このように、大ドットが形成されるか否か、中ドットが形成されるか否か、小ドットが形成されるか否かによって、以降の処理内容が異なっており、従って、ドット形成有無を決定する処理には、多数の条件分岐が含まれている。   When determining whether or not various dots are formed without referring to the conversion table, first, it is determined whether or not a large dot is formed (step S608 in FIG. 24). If no large dot is formed, it is determined whether or not a medium dot is formed (step S610 in FIG. 24). If neither a large dot nor a medium dot is formed, it is determined whether or not a small dot is formed (step S612 in FIG. 24). And about the pixel judged not to form a small dot, it is judged that no dot is formed. As described above, the subsequent processing contents differ depending on whether a large dot is formed, whether a medium dot is formed, or whether a small dot is formed. The determination process includes a large number of conditional branches.

近年のCPUでは高速な処理を可能とするために、パイプライン処理と呼ばれる技術が採用されているが、条件分岐が発生すると、パイプライン処理による効果を得ることができない。この点で、変換テーブルを参照することなくドット形成有無を決定する処理は、上述したように多数の条件分岐を含んでいるために、迅速な処理を行うことが困難である。これに対して、変換テーブルを参照してドット形成有無を決定する処理は、図14に示したように、条件分岐を含まないためにパイプライン処理の効果を最大限に引き出すことが可能であり、この点でも高速処理に適した処理と言うことができる。   Recent CPUs employ a technique called pipeline processing to enable high-speed processing. However, if conditional branching occurs, the effect of pipeline processing cannot be obtained. In this respect, the process of determining whether or not to form dots without referring to the conversion table includes a large number of conditional branches as described above, and thus it is difficult to perform a quick process. On the other hand, the process of determining the presence or absence of dot formation by referring to the conversion table does not include conditional branching as shown in FIG. 14, so that the effect of pipeline processing can be maximized. In this respect, it can be said that the processing is suitable for high-speed processing.

以上に説明したように、第2実施例のドット形成有無決定処理では、画素群内の各画素についてのドット形成有無を、簡便に且つ迅速に決定することが可能であるが、多数の順序値マトリックスと図27に示したような変換テーブルを記憶しておく必要がある。これらマトリックスおよびテーブルを記憶するために、あまりに多くのメモリを使用したのでは、実際の製品に搭載する上で好ましいことではない。しかし、第2実施例のドット形成有無決定処理においても、前述した第1実施例と同様に、変換テーブルおよび順序値マトリックスを記憶するために必要なメモリ量は、製品に搭載する際の障害になるほど大きくなることはない。以下、この点について簡単に説明しておく。   As described above, in the dot formation presence / absence determination process of the second embodiment, the dot formation presence / absence for each pixel in the pixel group can be determined easily and quickly. It is necessary to store the matrix and the conversion table as shown in FIG. Using too much memory to store these matrices and tables is not desirable for installation in an actual product. However, also in the dot formation presence / absence determination process of the second embodiment, the memory amount necessary for storing the conversion table and the order value matrix is an obstacle to mounting on the product, as in the first embodiment. It won't be so big. This point will be briefly described below.

先ず、序列値マトリックスについては、前述した第1実施例と同様である。すなわち、順序値マトリックスを記憶するためのメモリ量は、ディザマトリックスの大きさと、画素群の大きさとによって決定され、図18に示したように、10Kバイト程度のメモリ量があれば、十分記憶することが可能と考えられる。   First, the order value matrix is the same as that of the first embodiment described above. That is, the amount of memory for storing the order value matrix is determined by the size of the dither matrix and the size of the pixel group, and if there is a memory amount of about 10 Kbytes as shown in FIG. It is considered possible.

次に、変換テーブルを記憶するために必要なメモリ容量について説明する。図27に示したように、変換テーブルには、順序値および個数データの組合せ毎にドット形成の有無が設定されている。画素群に含まれる画素数を8個とすれば、順序値は8通りの値を取る。また、形成可能なドットの種類が大ドット、中ドット、小ドットの3種類であるとすれば、図23を用いて前述したように、個数データは165通りの値を取り得る。更に、ドット形成有無の判断結果は、大ドットを形成する、中ドットを形成する、小ドットを形成する、ドットを形成しないの4通りしか取り得ないから、1つの判断結果は2ビットあれば表現することができる。従って、図27に示した変換テーブルは、8×165×2=2640ビット(0.322Kバイト)あれば記憶することができる。   Next, the memory capacity necessary for storing the conversion table will be described. As shown in FIG. 27, in the conversion table, whether or not dots are formed is set for each combination of the order value and the number data. If the number of pixels included in the pixel group is eight, the order value takes eight values. Assuming that there are three types of dots that can be formed, large dots, medium dots, and small dots, the number data can take 165 values as described above with reference to FIG. Furthermore, the determination result of dot formation presence / absence can be obtained only in four ways: forming a large dot, forming a medium dot, forming a small dot, and not forming a dot. can do. Therefore, the conversion table shown in FIG. 27 can be stored if 8 × 165 × 2 = 2640 bits (0.322 Kbytes).

図28は、変換テーブルを記憶するために必要なメモリ量を、画素群の大きさ毎に試算した結果をまとめた説明図である。図示されているように、変換テーブルについても、数Kバイト程度あれば、十分記憶することができる。従って、第2実施例のドット形成有無決定処理においても、順序値マトリックスや変換テーブルを記憶するためには僅かなメモリ量があればよく、メモリ容量が製品への搭載の障害となることはない。   FIG. 28 is an explanatory diagram summarizing the results of trial calculation of the amount of memory necessary for storing the conversion table for each size of the pixel group. As shown in the figure, the conversion table can be sufficiently stored if it is about several kilobytes. Therefore, even in the dot formation presence / absence determination process of the second embodiment, a small amount of memory is sufficient to store the sequence value matrix and the conversion table, and the memory capacity does not become an obstacle to mounting on the product. .

以上、各種の実施例について説明してきたが、本発明は上記すべての実施例に限られるものではなく、その要旨を逸脱しない範囲において種々の態様で実施することができる。例えば、以上の実施例では、印刷用紙上にドットを形成して画像を印刷する場合について説明したが、本発明の適用範囲は画像を印刷する場合に限られるものではない。例えば、液晶表示画面上で輝点を適切な密度で分散させることにより、階調が連続的に変化する画像を表現する液晶表示装置などにも、本発明を好適に適用することができる。   Although various embodiments have been described above, the present invention is not limited to all the embodiments described above, and can be implemented in various modes without departing from the scope of the invention. For example, in the above embodiments, the case where an image is printed by forming dots on printing paper has been described. However, the scope of application of the present invention is not limited to the case where an image is printed. For example, the present invention can be suitably applied to a liquid crystal display device that expresses an image whose gradation changes continuously by dispersing bright spots at an appropriate density on a liquid crystal display screen.

印刷システムを例にとって本発明の概要を説明するための説明図である。1 is an explanatory diagram for explaining an overview of the present invention taking a printing system as an example; FIG. 画像処理装置としてのコンピュータの構成を示す説明図である。And FIG. 14 is an explanatory diagram illustrating a configuration of a computer as an image processing apparatus. 本実施例のカラープリンタ200の概略構成を示す説明図である。It is explanatory drawing which shows schematic structure of the color printer 200 of a present Example. インク吐出用ヘッドにおけるインクジェットノズルの配列を示す説明図である。It is explanatory drawing which shows the arrangement | sequence of the inkjet nozzle in an ink discharge head. 第1実施例の画像印刷処理の全体的な流れを示すフローチャートである。It is a flowchart which shows the whole flow of the image printing process of 1st Example. ディザマトリックスの一部を概念的に例示した説明図である。It is explanatory drawing which illustrated a part of dither matrix conceptually. ディザマトリックスを参照しながら各画素についてのドット形成の有無を判断している様子を概念的に示した説明図である。It is explanatory drawing which showed notionally the mode of determining the presence or absence of the dot formation about each pixel, referring a dither matrix. ディザ法を用いて画像データをドット形成の有無を表すデータに変換している様子を示した説明図である。It is explanatory drawing which showed a mode that the image data was converted into the data showing the presence or absence of dot formation using the dither method. 個数データから画素毎にドット形成の有無を表すデータを生成する様子を示した説明図である。It is explanatory drawing which showed a mode that the data showing the presence or absence of dot formation for every pixel were produced | generated from number data. 第1実施例の個数データ生成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the number data generation process of 1st Example. 第1実施例のドット形成有無決定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the dot formation existence determination process of 1st Example. 第1実施例のドット形成有無決定処理において各画素についてのドット形成の有無が決定される様子を概念的に示した説明図である。It is explanatory drawing which showed notionally the mode that the presence or absence of the dot formation about each pixel was determined in the dot formation presence or absence determination process of 1st Example. 対象画素についてのドット形成の有無を決定するために参照される変換テーブルを概念的に示した説明図である。It is explanatory drawing which showed notionally the conversion table referred in order to determine the presence or absence of the dot formation about an object pixel. 変形例のドット形成有無決定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the dot formation presence / absence determination process of the modification. 変形例のドット形成有無決定処理において参照される複数の順序値マトリックスを生成する方法について示した説明図である。It is explanatory drawing shown about the method of producing | generating the several order value matrix referred in the dot formation presence / absence determination process of a modification. 画素群に対応する順序値マトリックスを選択する方法を示した説明図である。It is explanatory drawing which showed the method of selecting the order value matrix corresponding to a pixel group. 画素群の座標値(n,m)から適用する順序値マトリックスを選択する方法を具体的に示した説明図である。It is explanatory drawing which showed specifically the method of selecting the order value matrix applied from the coordinate value (n, m) of a pixel group. 各種大きさのディザマトリックスと各種大きさの画素群とを想定して順序値マトリックスを記憶するために必要なメモリ量を試算した結果を示す説明図である。It is explanatory drawing which shows the result of having calculated the memory amount required in order to memorize | store an order value matrix supposing the dither matrix of various sizes, and the pixel group of various sizes. 画素群内に形成される大中小の各種ドットの個数を決定して個数データを生成する処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which determines the number of the various large / medium / small dots formed in a pixel group, and produces | generates number data. 選択した画素について大中小の各種ドットについての形成有無を判断する処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process which judges the formation presence or absence about various large / medium / small dots about the selected pixel. 画像データの階調値を大中小の各種ドットについての密度データに変換するためのドット密度変換テーブルを概念的に示した説明図である。It is explanatory drawing which showed notionally the dot density conversion table for converting the gradation value of image data into the density data about various large, medium, and small dots. 画素群内の各画素についてディザ法を適用しながら大中小の各種ドットの形成有無を判断している様子を概念的に示した説明図である。It is explanatory drawing which showed notionally the mode that the presence or absence of formation of various large, medium, and small dots was determined while applying the dither method to each pixel in the pixel group. 画素群に形成される大中小各ドットの個数の組合せとコードデータとが対応付けて設定された対応テーブルを示す説明図である。It is explanatory drawing which shows the corresponding | compatible table in which the combination of the number of each large / medium / small dot formed in a pixel group and code data were matched and set. 変換テーブルを参照することなく大中小の各種ドットの形成有無を決定する処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which determines the formation existence of various large / medium / small dots without referring to a conversion table. コード化された個数データを復号するために参照される復号テーブルを概念的に示した説明図である。It is explanatory drawing which showed notionally the decoding table referred in order to decode the number data encoded. 順序値マトリックスを参照しながら、大中小の各種ドットについての形成有無を画素毎に決定している様子を概念的に示した説明図である。It is explanatory drawing which showed notionally the mode that the presence or absence of formation about various large and small dots was determined for every pixel, referring an order value matrix. 第2実施例のドット形成有無決定処理で参照される変換テーブルを概念的に示した説明図である。It is explanatory drawing which showed notionally the conversion table referred by the dot formation presence determination process of 2nd Example. 変換テーブルを記憶するために必要なメモリ量を画素群の大きさ毎に試算した結果をまとめた説明図である。It is explanatory drawing which put together the result of having calculated the memory amount required in order to memorize | store a conversion table for every magnitude | size of a pixel group.

符号の説明Explanation of symbols

10…コンピュータ、 20…カラープリンタ、 100…コンピュータ、
108…周辺機器インターフェースPIF、
109…ディスクコントローラDDC、
110…ネットワークインターフェースカードNIC、
112…ビデオインターフェースVIF、
116…バス、 118…ハードディスク、 120…デジタルカメラ、
122…カラースキャナ、 124…フレキシブルディスク、
126…コンパクトディスク、 230…キャリッジモータ、 235…モータ、
236…プラテン、 240…キャリッジ、 241…印字ヘッド、
242…インクカートリッジ、 243…インクカートリッジ、
244…インク吐出用ヘッド、 260…制御回路、 200…カラープリンタ、
300…通信回線、 310…記憶装置
10 ... computer, 20 ... color printer, 100 ... computer,
108: Peripheral device interface PIF,
109 ... disk controller DDC,
110: Network interface card NIC,
112 ... Video interface VIF,
116 ... Bus, 118 ... Hard disk, 120 ... Digital camera,
122 ... color scanner, 124 ... flexible disk,
126: Compact disc, 230: Carriage motor, 235 ... Motor,
236 ... Platen, 240 ... Carriage, 241 ... Print head,
242 ... Ink cartridge, 243 ... Ink cartridge,
244 ... Ink ejection head 260 ... Control circuit 200 ... Color printer
300 ... communication line, 310 ... storage device

Claims (11)

画像データに所定の画像処理を施す画像処理装置と、該画像処理の結果に基づいてドットを形成することにより出力媒体上に画像を出力する画像出力装置とを備える画像出力システムであって、
前記画像処理装置は、
前記画像から、互いに隣接する画素を所定個数ずつまとめた画素群を、順次取り出す手段と、
該画素群に属する画素の階調値を、ディザマトリックスを構成する閾値のうち前記画像における前記画素群の位置に対応する位置に存在する複数の閾値と比較するにより、前記各々の画素群内に形成されるべきドットの個数を表す個数データを生成する個数データ生成手段と、
前記画素群毎に生成された個数データを、前記画像出力装置に供給する個数データ供給手段と
を備えており、
前記画像出力装置は、
前記各画素群について前記個数データを生成する際に用いる前記ディザマトリックスの前記画素群に対応した位置に存在する複数の閾値の大きさの順に基づいて、画素群を構成する各画素にドットが形成される順番を示す順序値を定めておき、前記画像処理装置から前記画素群の個数データの供給を受けたとき、該個数データが生成された画素群に対応する前記順序値を取得する該順序値取得手段と、
記個数データと前記順序値とを関連づけ、順序値と該順序値の画素におけるドット形成の有無との対応関係を記憶している対応関係記憶手段と、
前記画素群についての個数データの供給を受けると、前記対応関係を参照することにより、前記画素群について取得された前記順序値に従って、前記画素群を構成する各画素についてのドット形成の有無を決定するドット形成有無決定手段と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成するドット形成手段と
を備え
前記ディザマトリックスは、該ディザマトリックスを構成する閾値の個数が、前記画素群を構成する画素の数よりも2桁以上大きい
画像出力システム。
An image output system comprising: an image processing device that performs predetermined image processing on image data; and an image output device that outputs an image on an output medium by forming dots based on the result of the image processing,
The image processing apparatus includes:
Means for sequentially extracting a pixel group in which a predetermined number of adjacent pixels are collected from the image ;
By comparing the gradation values of the pixels belonging to the pixel group with a plurality of threshold values existing at positions corresponding to the position of the pixel group in the image among the threshold values constituting the dither matrix , the number data representing the number of dots to be formed and the number data generation means that generates,
Number data supply means for supplying the number data generated for each pixel group to the image output device, and
The image output device includes:
A dot is formed in each pixel constituting the pixel group based on the order of a plurality of threshold values existing at positions corresponding to the pixel group of the dither matrix used when generating the number data for each pixel group. An order value indicating an order to be processed is determined, and when the number data of the pixel group is supplied from the image processing apparatus, the order value corresponding to the pixel group in which the number data is generated is acquired. A value acquisition means;
Associate before Symbol number data and the order value, a correlation storage means for storing a correspondence relationship between the presence or absence of dot formation in the pixel of the order value and the sequence value,
Determining when supplied with count data for said pixel group, by referring to the correspondence relationship, in accordance with the order value obtained for the pixel groups, the presence or absence of dot formation for each pixel constituting the pixel group Dot forming presence / absence determining means to perform,
Dot forming means for forming dots on the output medium according to the determined presence or absence of dot formation ,
The dither matrix is an image output system in which the number of thresholds constituting the dither matrix is two digits or more larger than the number of pixels constituting the pixel group .
前記画素群は、2×2、4×2、4×4画素のいずれかとして構成された請求項1記載の画像出力システム。 The image output system according to claim 1 , wherein the pixel group is configured as one of 2 × 2, 4 × 2, and 4 × 4 pixels . 前記ディザマトリックスを構成する閾値の個数は、2 m ×2 n (m,nは、6以上の整数)である請求項2記載の画像出力システム。 The image output system according to claim 2, wherein the number of thresholds constituting the dither matrix is 2 m × 2 n (m and n are integers of 6 or more) . 所定の画像処理が施された画像データを受け取って、該画像データに基づいて出力媒体上にドットを形成することにより、画像を出力する画像出力装置であって、
前記画像において互いに隣接する画素が所定個数ずつ画素群としてまとめられ、該画素群内に形成すべきドットの個数を表す個数データの状態で、前記画像データを受け取る個数データ受取手段と、
前記各画素群について前記個数データを生成する際に用いられるディザマトリックスの前記画素群に対応した位置に存在する複数の閾値の大きさの順に基づいて、画素群を構成する各画素にドットが形成される順番を示す順序値を定めておき、前記個数データの状態の前記画像データを受け取ったとき、該個数データに対応する前記順序値を取得する該順序値取得手段と、
記個数データと前記順序値とを関連づけ、順序値と該順序値の画素におけるドット形成の有無との対応関係を記憶している対応関係記憶手段と、
前記画素群についての個数データの供給を受けると、前記対応関係を参照することにより、前記画素群について取得された前記順序値に従って、前記画素群を構成する各画素についてのドット形成の有無を決定するドット形成有無決定手段と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成するドット形成手段と
を備える画像出力装置。
An image output device that receives image data that has undergone predetermined image processing and outputs an image by forming dots on an output medium based on the image data.
And Matomera is, in the state number data representing the number of dots to be formed in the pixel group number data receiving means for receiving the image data adjacent pixels from each other as the pixel group by a predetermined number in the image,
A dot is formed in each pixel constituting the pixel group based on the order of a plurality of threshold values existing at positions corresponding to the pixel group in the dither matrix used when generating the number data for each pixel group. An order value indicating the order to be performed, and when receiving the image data in the state of the number data, the order value acquisition means for acquiring the order value corresponding to the number data ;
Associate before Symbol number data and the order value, a correlation storage means for storing a correspondence relationship between the presence or absence of dot formation in the pixel of the order value and the sequence value,
Determining when supplied with count data for said pixel group, by referring to the correspondence relationship, in accordance with the order value obtained for the pixel groups, the presence or absence of dot formation for each pixel constituting the pixel group Dot forming presence / absence determining means to perform,
An image output device comprising: dot forming means for forming dots on the output medium in accordance with the determined dot formation.
前記画素群は、2×2、4×2、4×4画素のいずれかとして構成された請求項4記載の画像出力装置。 The image output apparatus according to claim 4 , wherein the pixel group is configured as one of 2 × 2, 4 × 2, and 4 × 4 pixels . 前記ディザマトリックスを構成する閾値の個数は、2 m ×2 n (m,nは、6以上の整数)である請求項5記載の画像出装置。 The number of thresholds which constitute the dither matrix is, 2 m × 2 n (m , n is 6 or more integer) image output apparatus according to claim 5, wherein a. 画像データに応じて出力媒体上にドットを形成することにより、該画像データに対応した画像を出力する画像出力装置であって、
前記画像から、互いに隣接する画素を所定個数ずつまとめた画素群を、順次取り出す手段と、
該画素群に属する画素の階調値を、ディザマトリックスを構成する閾値のうち前記画像における前記画素群の位置に対応する位置に存在する複数の閾値と比較するにより、前記各々の画素群内に形成されるべきドットの個数を表す個数データを生成する個数データ生成手段と、
前記各画素群について前記個数データを生成する際に用いる前記ディザマトリックスの前記画素群に対応した位置に存在する複数の閾値の大きさの順に基づいて、画素群を構成する各画素にドットが形成される順番を示す順序値を定めておき、前記画素群の個数データを受け取ったとき、該個数データが生成された画素群に対応する前記順序値を取得する該順序値取得手段と、
記個数データと前記順序値とを関連づけ、順序値と該順序値の画素におけるドット形成の有無との対応関係を記憶している対応関係記憶手段と、
前記画素群についての個数データの供給を受けると、前記対応関係を参照することにより、前記画素群について取得された前記順序値に従って、前記画素群を構成する各画素についてのドット形成の有無を決定するドット形成有無決定手段と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成するドット形成手段と
を備え
前記ディザマトリックスは、該ディザマトリックスを構成する閾値の個数が、前記画素群を構成する画素の数よりも2桁以上大きい
を備える画像出力装置。
An image output device that outputs an image corresponding to image data by forming dots on an output medium according to the image data,
Means for sequentially extracting a pixel group in which a predetermined number of adjacent pixels are collected from the image ;
By comparing the gradation values of the pixels belonging to the pixel group with a plurality of threshold values existing at positions corresponding to the position of the pixel group in the image among the threshold values constituting the dither matrix , the number data representing the number of dots to be formed and the number data generation means that generates,
A dot is formed in each pixel constituting the pixel group based on the order of a plurality of threshold values existing at positions corresponding to the pixel group of the dither matrix used when generating the number data for each pixel group. Order value indicating the order to be performed, and when receiving the number data of the pixel group, the order value acquisition means for acquiring the order value corresponding to the pixel group from which the number data is generated ;
Associate before Symbol number data and the order value, a correlation storage means for storing a correspondence relationship between the presence or absence of dot formation in the pixel of the order value and the sequence value,
Determining when supplied with count data for said pixel group, by referring to the correspondence relationship, in accordance with the order value obtained for the pixel groups, the presence or absence of dot formation for each pixel constituting the pixel group Dot forming presence / absence determining means to perform,
Dot forming means for forming dots on the output medium according to the determined presence or absence of dot formation ,
The dither matrix is an image output device comprising a number of thresholds constituting the dither matrix that is two or more digits larger than the number of pixels constituting the pixel group .
画像データに所定の画像処理を施して、得られた結果に基づいてドットを形成することにより、出力媒体上に画像を出力する画像出力方法であって、
前記画像から、互いに隣接する画素を所定個数ずつまとめた画素群を、順次取り出すと共に、該画素群に属する画素の階調値を、ディザマトリックスを構成する閾値のうち前記画像における前記画素群の位置に対応する位置に存在する複数の閾値と比較するにより、前記各々の画素群内に形成されるべきドットの個数を表す個数データを生成する第1の工程と、
前記各画素群について前記個数データを生成する際に用いる前記ディザマトリックスの前記画素群に対応した位置に存在する複数の閾値の大きさの順に基づいて、画素群を構成する各画素にドットが形成される順番を示す順序値を定めておき、前記画素群の個数データを受け取ったとき、該個数データが生成された画素群に対応する前記順序値を取得する第2の工程と、
記個数データと前記順序値とを関連づけ、順序値と該順序値の画素におけるドット形成の有無との対応関係を記憶しておく第3の工程と、
前記画素群についての個数データの供給を受けると、前記対応関係を参照することにより、前記画素群について取得された前記順序値に従って、前記画素群を構成する各画素についてのドット形成の有無を決定する第4の工程と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する第5の工程と
を備え
前記ディザマトリックスは、該ディザマトリックスを構成する閾値の個数が、前記画素群を構成する画素の数よりも2桁以上大きい
画像出力方法。
An image output method for outputting an image on an output medium by performing predetermined image processing on image data and forming dots based on the obtained result,
A pixel group in which a predetermined number of adjacent pixels are grouped is sequentially extracted from the image, and the gradation value of the pixel belonging to the pixel group is determined from the threshold values constituting the dither matrix in the position of the pixel group in the image. a first step of more compared to multiple thresholds to generate the number data representing the number of dots to be formed in the pixel group of the respective existing in positions corresponding to,
A dot is formed in each pixel constituting the pixel group based on the order of a plurality of threshold values existing at positions corresponding to the pixel group of the dither matrix used when generating the number data for each pixel group. A second step of obtaining an order value corresponding to the pixel group in which the number data is generated when the order value indicating the order to be performed is received and the number data of the pixel group is received ;
Associate before Symbol number data and the order value, a third step of storing the correspondence between the presence or absence of dot formation in the pixel of the order value and the sequence value,
Determining when supplied with count data for said pixel group, by referring to the correspondence relationship, in accordance with the order value obtained for the pixel groups, the presence or absence of dot formation for each pixel constituting the pixel group A fourth step of
A fifth step of forming dots on the output medium in accordance with the determined presence / absence of dot formation ,
The dither matrix is an image output method in which the number of thresholds constituting the dither matrix is two digits or more larger than the number of pixels constituting the pixel group .
所定の画像処理が施された画像データを受け取って、該画像データに基づいて出力媒体上にドットを形成することにより、画像を出力する画像出力方法であって、
前記画像において互いに隣接する画素が所定個数ずつ画素群としてまとめられ、該画素群内に形成すべきドットの個数を表す個数データの状態で、前記画像データを受け取る工程(A)と、
前記各画素群について前記個数データを生成する際に用いられるディザマトリックスの前記画素群に対応した位置に存在する複数の閾値の大きさの順に基づいて、画素群を構成する各画素にドットが形成される順番を示す順序値を定めておき、前記個数データの状態の前記画像データを受け取ったとき、該個数データに対応する前記順序値を取得する工程(B)と、
記個数データと前記順序値とを関連づけ、順序値と該順序値の画素におけるドット形成の有無との対応関係を記憶しておく工程(C)と、
前記画素群についての個数データの供給を受けると、前記対応関係を参照することにより、前記画素群について取得された前記順序値に従って、前記画素群を構成する各画素についてのドット形成の有無を決定する工程(D)と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する工程(E)と
を備える画像出力方法。
An image output method for receiving image data that has undergone predetermined image processing and outputting an image by forming dots on an output medium based on the image data,
The adjacent pixels in the image Matomera is as pixel groups by a predetermined number, a state number data representing the number of dots to be formed in the pixel group, and step (A) receiving said image data,
A dot is formed in each pixel constituting the pixel group based on the order of a plurality of threshold values existing at positions corresponding to the pixel group in the dither matrix used when generating the number data for each pixel group. A step (B) of determining an order value indicating an order to be performed and obtaining the order value corresponding to the number data when the image data in the number data state is received ;
Associate before Symbol number data and the order value, a step of storing the correspondence between the presence or absence of dot formation in the pixel of the order value and the sequence value (C),
Determining when supplied with count data for said pixel group, by referring to the correspondence relationship, in accordance with the order value obtained for the pixel groups, the presence or absence of dot formation for each pixel constituting the pixel group Step (D) to perform,
And (E) forming a dot on the output medium according to the determined dot formation.
画像データに所定の画像処理を施して、得られた結果に基づいてドットを形成することにより出力媒体上に画像を出力する方法を、コンピュータを用いて実現するためのプログラムであって、
前記画像から、互いに隣接する画素を所定個数ずつまとめた画素群を、順次取り出すと共に、該画素群に属する画素の階調値を、ディザマトリックスを構成する閾値のうち前記画像における前記画素群の位置に対応する位置に存在する複数の閾値と比較するにより、前記各々の画素群内に形成されるべきドットの個数を表す個数データを生成する第1の機能と、
前記各画素群について前記個数データを生成する際に用いる前記ディザマトリックスの前記画素群に対応した位置に存在する複数の閾値の大きさの順に基づいて、画素群を構成する各画素にドットが形成される順番を示す順序値を定めておき、前記画素群の個数データを受け取ったとき、該個数データが生成された画素群に対応する前記順序値を取得する第2の機能と、
記個数データと前記順序値とを関連づけ、順序値と該順序値の画素におけるドット形成の有無との対応関係を記憶しておく第3の機能と、
前記画素群についての個数データの供給を受けると、前記対応関係を参照することにより、前記画素群について取得された前記順序値に従って、前記画素群を構成する各画素についてのドット形成の有無を決定する第4の機能と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する第5の機能と
を実現するプログラム。
A program for implementing a method of outputting an image on an output medium by performing predetermined image processing on image data and forming dots based on the obtained result using a computer,
A pixel group in which a predetermined number of adjacent pixels are grouped is sequentially extracted from the image, and the gradation value of the pixel belonging to the pixel group is determined from the threshold values constituting the dither matrix in the position of the pixel group in the image. first and capabilities more, to generate the number data representing the number of dots to be formed in the pixel group of the each compared with a plurality of threshold values that exist in a position corresponding to,
A dot is formed in each pixel constituting the pixel group based on the order of a plurality of threshold values existing at positions corresponding to the pixel group of the dither matrix used when generating the number data for each pixel group. A second function for obtaining an order value corresponding to the pixel group in which the number data is generated when the order value indicating the order to be performed is determined and the number data of the pixel group is received ;
Associate before Symbol number data and the order value, a third function of storing a correspondence relationship between the presence or absence of dot formation in the pixel of the order value and the sequence value,
Determining when supplied with count data for said pixel group, by referring to the correspondence relationship, in accordance with the order value obtained for the pixel groups, the presence or absence of dot formation for each pixel constituting the pixel group A fourth function to
And a fifth function for forming dots on the output medium in accordance with the determined dot formation.
所定の画像処理が施された画像データを受け取って、該画像データに基づいて出力媒体上にドットを形成することにより画像を出力する方法を、コンピュータを用いて実現するためのプログラムであって、
前記画像において互いに隣接する画素が所定個数ずつ画素群としてまとめられ、該画素群内に形成すべきドットの個数を表す個数データの状態で、前記画像データを受け取る機能(A)と、
前記各画素群について前記個数データを生成する際に用いられるディザマトリックスの前記画素群に対応した位置に存在する複数の閾値の大きさの順に基づいて、画素群を構成する各画素にドットが形成される順番を示す順序値を定めておき、前記個数データの状態の前記画像データを受け取ったとき、該個数データに対応する前記順序値を取得する機能(B)と、
記個数データと前記順序値とを関連づけ、順序値と該順序値の画素におけるドット形成の有無との対応関係を記憶しておく機能(C)と、
前記画素群についての個数データの供給を受けると、前記対応関係を参照することにより、前記画素群について取得された前記順序値に従って、前記画素群を構成する各画素についてのドット形成の有無を決定する機能(D)と、
前記決定したドット形成の有無に従って前記出力媒体上にドットを形成する機能(E)と
を実現するプログラム。
A program for realizing, using a computer, a method of receiving image data subjected to predetermined image processing and outputting an image by forming dots on an output medium based on the image data,
The adjacent pixels in the image Matomera is as pixel groups by a predetermined number, a state number data representing the number of dots to be formed in the pixel group, function of receiving the image data and (A),
A dot is formed in each pixel constituting the pixel group based on the order of a plurality of threshold values existing at positions corresponding to the pixel group in the dither matrix used when generating the number data for each pixel group. A function (B) for obtaining an order value corresponding to the number data when receiving the image data in the state of the number data ;
Before Symbol number data and association with the order value, functions of storing a correspondence relationship between the presence or absence of dot formation in the pixel of the order value and the sequence value (C), and
Determining when supplied with count data for said pixel group, by referring to the correspondence relationship, in accordance with the order value obtained for the pixel groups, the presence or absence of dot formation for each pixel constituting the pixel group Function (D) to
A program for realizing a function (E) for forming dots on the output medium in accordance with the determined dot formation.
JP2004044649A 2004-02-10 2004-02-20 An image output system for outputting an image based on information on the number of dots formed in a predetermined area Expired - Fee Related JP4375050B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2004044649A JP4375050B2 (en) 2004-02-20 2004-02-20 An image output system for outputting an image based on information on the number of dots formed in a predetermined area
PCT/JP2005/002527 WO2005076592A1 (en) 2004-02-10 2005-02-10 Image output system for outputting image based on information of number of dots to be formed in predetermined area
US10/589,069 US7830553B2 (en) 2004-02-10 2005-02-10 Image output system for outputting image based on information of number of dots to be formed in predetermined area
CN200580004501.6A CN1918898B (en) 2004-02-10 2005-02-10 Image output system for outputting image based on information of number of dots to be formed in predetermined area
EP05710373A EP1722549A4 (en) 2004-02-10 2005-02-10 Image output system for outputting image based on information of number of dots to be formed in predetermined area
US12/925,234 US8023154B2 (en) 2004-02-10 2010-10-15 Image output system for outputting image based on information of number of dots to be formed in predetermined area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004044649A JP4375050B2 (en) 2004-02-20 2004-02-20 An image output system for outputting an image based on information on the number of dots formed in a predetermined area

Publications (2)

Publication Number Publication Date
JP2005236768A JP2005236768A (en) 2005-09-02
JP4375050B2 true JP4375050B2 (en) 2009-12-02

Family

ID=35019255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004044649A Expired - Fee Related JP4375050B2 (en) 2004-02-10 2004-02-20 An image output system for outputting an image based on information on the number of dots formed in a predetermined area

Country Status (1)

Country Link
JP (1) JP4375050B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014119429A1 (en) 2013-02-04 2014-08-07 富士フイルム株式会社 Image formation device, method and program
WO2014119440A1 (en) 2013-02-04 2014-08-07 富士フイルム株式会社 Image formation device, method, program, and formed image
US10755152B2 (en) 2017-01-27 2020-08-25 Seiko Epson Corporation Image forming system, image forming device, and image forming method

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4534963B2 (en) * 2005-11-18 2010-09-01 セイコーエプソン株式会社 Image forming method, image forming apparatus, image forming system, printing method, printed matter generating method, and computer program for controlling image forming apparatus
JP4534964B2 (en) 2005-11-18 2010-09-01 セイコーエプソン株式会社 Image forming method, image forming apparatus, image forming system, printed matter generation method, and computer program for controlling image forming apparatus
JP5211481B2 (en) 2006-06-27 2013-06-12 セイコーエプソン株式会社 Dither matrix generation
JP4752709B2 (en) * 2006-10-04 2011-08-17 セイコーエプソン株式会社 Image processing device
JP4293231B2 (en) 2006-11-24 2009-07-08 セイコーエプソン株式会社 Control of ink discharge amount based on dot formation order
JP4598750B2 (en) 2006-12-27 2010-12-15 セイコーエプソン株式会社 Dither matrix generation
JP5277604B2 (en) 2007-10-15 2013-08-28 セイコーエプソン株式会社 Control of liquid jet unevenness

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014119429A1 (en) 2013-02-04 2014-08-07 富士フイルム株式会社 Image formation device, method and program
WO2014119440A1 (en) 2013-02-04 2014-08-07 富士フイルム株式会社 Image formation device, method, program, and formed image
US9259940B2 (en) 2013-02-04 2016-02-16 Fujifilm Corporation Image formation device, method and program
US9387685B2 (en) 2013-02-04 2016-07-12 Fujifilm Corporation Image formation device, method, program, and formed image
US10755152B2 (en) 2017-01-27 2020-08-25 Seiko Epson Corporation Image forming system, image forming device, and image forming method

Also Published As

Publication number Publication date
JP2005236768A (en) 2005-09-02

Similar Documents

Publication Publication Date Title
JP4375235B2 (en) Image output system that outputs images while coding multiple pixels at a time
WO2005076592A1 (en) Image output system for outputting image based on information of number of dots to be formed in predetermined area
JP4241823B2 (en) Dot data processing apparatus, image output system and methods thereof
CN100379250C (en) Image processing device and image processing method for performing conversion of color image data
JP4375398B2 (en) Image processing apparatus that performs multi-value conversion for each pixel
JP4534964B2 (en) Image forming method, image forming apparatus, image forming system, printed matter generation method, and computer program for controlling image forming apparatus
JP2007142847A (en) High-definition halftone processing
JP4375050B2 (en) An image output system for outputting an image based on information on the number of dots formed in a predetermined area
US20060158691A1 (en) Image processing system, image processing device, image output device, and method and program product therefor
JP4296999B2 (en) An image output system that outputs images while performing multi-value conversion for each pixel.
JP4297033B2 (en) Image processing apparatus that performs multi-value conversion for each pixel
JP2004350257A (en) Image display system for displaying image on the basis of information of number of dot formed in prescribed region
JP4375071B2 (en) An image output system for outputting an image based on information on the number of dots formed in a predetermined area
JP4225319B2 (en) Image output control system, image processing apparatus and method
JP4274030B2 (en) Image output system, image processing apparatus, image output apparatus, and methods thereof
JP2005224983A (en) Image output system for outputting image according to information on number of dots formed in prescribed area
JP4297000B2 (en) An image output system that outputs images while performing multi-value conversion for each pixel.
JP4561049B2 (en) Printing system for printing an image based on information on the number of dots formed in a predetermined area
JP2006229810A (en) Image output system for outputting image, while coding a plurality of pixels each
JP2014069534A (en) Image processing apparatus and image processing method
JP4059121B2 (en) Image display system for displaying an image based on information on the number of dots formed in a predetermined area
JP2006191268A (en) Image output device outputting image while performing image processing a plurality of pixels at a time
JP4225320B2 (en) Image output control system, image output apparatus, image processing apparatus, and methods thereof
WO2004082942A1 (en) Printer for printing an image according to presence/absence of dot formation and printing control device thereof
JP2005039491A (en) Image display system for displaying image based on information of the number of dots to be formed in prescribed area

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070220

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20070220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081209

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090209

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4375050

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120918

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130918

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees