JP2006191268A - Image output device outputting image while performing image processing a plurality of pixels at a time - Google Patents

Image output device outputting image while performing image processing a plurality of pixels at a time Download PDF

Info

Publication number
JP2006191268A
JP2006191268A JP2005000444A JP2005000444A JP2006191268A JP 2006191268 A JP2006191268 A JP 2006191268A JP 2005000444 A JP2005000444 A JP 2005000444A JP 2005000444 A JP2005000444 A JP 2005000444A JP 2006191268 A JP2006191268 A JP 2006191268A
Authority
JP
Japan
Prior art keywords
value
pixel group
data
pixel
dot
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.)
Withdrawn
Application number
JP2005000444A
Other languages
Japanese (ja)
Inventor
Shigeaki Sumiya
繁明 角谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005000444A priority Critical patent/JP2006191268A/en
Publication of JP2006191268A publication Critical patent/JP2006191268A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique for speedily outputting an image of high picture quality. <P>SOLUTION: When image data are received from a digital camera, a pixel group gradation value is determined for each pixel group comprising a plurality of pixels and compared with thresholds stored for each pixel group to make a pixel group gradation value multi-valued, and obtained multi-valued result values are converted into dot data. Data of the image are received from a computer in the form of multi-valued result values for each of the pixel groups, and the multi-valued result values are converted into dot data by referring to correspondence relation where the multi-valued result values and presence/absence of dots formed in the pixel groups are related for each of the pixel groups. Consequently, even equipment having insufficient processing capability or memory is capable of receiving and converting image data from the digital camera into dot data and outputting an image. Further, even when data of high resolution are received from the computer, an image of high picture quality can be outputted. <P>COPYRIGHT: (C)2006,JPO&NCIPI

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. Of course, if you look at each pixel, you can take only one of the states of whether or not dots are formed, but if you look at an area with a certain size, the density of dots to be formed will be coarse and dense. It is possible to output a multi-tone image by changing the dot formation density. Accordingly, if the dot formation density is appropriately controlled, a multi-tone image can be output. In this way, 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.

また、近年では、これら画像出力装置に対しては、出力画像の高画質化が要請されるよ
うになっており、こうした要請に応えるために、画像をより細かな画素に分割して(すな
わち高解像度の画像として)取り扱うことが多くなってきた。もっとも、画像を高解像度
化すると、画素数が増加する分だけ画像処理に要する時間が長くなってしまい、画像を迅
速に出力することが困難となる。そこで、画像処理を迅速に実行可能とする技術が提案さ
れている(特許文献1)。
In recent years, these image output devices have been required to improve the image quality of output images. In order to meet these requirements, an image is divided into finer pixels (that is, a higher image quality). It has become increasingly handled as a resolution image. However, when the resolution of an image is increased, the time required for image processing increases as the number of pixels increases, making it difficult to output the image quickly. Therefore, a technique that enables image processing to be executed quickly has been proposed (Patent Document 1).

一方、最近になって、デジタルカメラなどで撮影した画像を手軽に出力したいとの要請
も強くなってきた。こうした要請に応えるために、画像を撮影した機器と画像出力装置と
を接続し、画像データを画像出力装置に直接供給して、画像出力装置内で画像処理を行っ
て画像を出力する技術が採用されるようになっている。また、かかる技術については、画
像出力装置に供給すべき画像データを簡単に指定するための技術など、種々の改良が行わ
れている(特許文献2など)。
On the other hand, recently, there has been a strong demand for easily outputting images taken with a digital camera or the like. To meet these demands, a technology that connects the device that captured the image to the image output device, supplies the image data directly to the image output device, performs image processing in the image output device, and outputs the image is adopted. It has come to be. In addition, various improvements have been made on this technique, such as a technique for easily designating image data to be supplied to the image output apparatus (Patent Document 2, etc.).

特開2002−185789号公報JP 2002-185789 A 特開平10−126724号公報JP-A-10-126724

しかし、高画質化の要請と、画像を手軽に出力したいという要請とは、互いに相反する
ことが多いため、従来の画像出力装置では、2つの要請を共に満足させるための構成につ
いては十分な配慮が払われていなかった。すなわち、高画質な画像を出力しようとすると
、画像の解像度が高くなり、画素数が増加するため画像処理に多くの記憶容量が必要とな
る。更に画像処理が高度化する傾向にあることとも相まって、高画質化の要請に対しては
、コンピュータなどを用いてある程度の画像処理を行っておくことが前提となる。このよ
うな場合は、コンピュータなどの高い処理能力と大きな記憶容量とを活用して、大きな画
像データを迅速に処理することが重要になる。これに対して、手軽に画像を出力したいと
いう要請に応えるためには、デジタルカメラなど画像を撮影する機器から、コンピュータ
などの画像処理装置を介さず、直接、画像出力装置に画像データを供給して、画像出力装
置内で画像処理を行った後に画像を出力することが前提となる。従って、画像出力装置の
有する限られた記憶容量および処理能力の制約の中で、できるだけ画質を維持して画像を
出力することが重要になる。このように、2つの要請に対して画像出力装置に要求される
性能は大きく異なっているため、これらを共に満足させるための構成については十分な配
慮が払われていなかった。
However, since there is often a contradiction between the demand for higher image quality and the desire to output images easily, conventional image output devices have sufficient consideration for the configuration to satisfy both requirements. Was not paid. That is, when trying to output a high-quality image, the resolution of the image increases and the number of pixels increases, so that a large storage capacity is required for image processing. Further, coupled with the trend toward advanced image processing, it is premised that a certain degree of image processing should be performed using a computer or the like for a request for higher image quality. In such a case, it is important to process large image data quickly by utilizing a high processing capacity and a large storage capacity of a computer or the like. On the other hand, in order to meet the demand for easily outputting images, image data is directly supplied from an image capturing device such as a digital camera to the image output device without using an image processing device such as a computer. Thus, it is assumed that an image is output after image processing is performed in the image output apparatus. Accordingly, it is important to output an image while maintaining the image quality as much as possible within the limitation of the limited storage capacity and processing capability of the image output apparatus. As described above, the performance required for the image output apparatus greatly differs with respect to the two requirements, and thus sufficient consideration has not been given to the configuration for satisfying both.

この発明は、従来の技術における上述した課題を解決するためになされたものであり、
高画質な画像を出力したいという要請と、手軽に画像を出力したいという要請とを、共に
満足させることの可能な合理的な構成を備えた画像処理技術の提供を目的とする。
The present invention has been made to solve the above-described problems in the prior art,
It is an object of the present invention to provide an image processing technique having a rational configuration capable of satisfying both a request for outputting a high-quality image and a request for outputting an image easily.

上述した課題の少なくとも一部を解決するために、本願発明の画像出力装置は、次の構
成を採用した。すなわち、
画素毎にドット形成の有無を表したドットデータに基づいてドットを形成することによ
り、画像を出力する画像出力装置であって、
画素毎の階調値が規定された画像データを受け取って、該画像データを前記ドットデー
タに変換する第1のデータ変換部と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取って、該多値化結果値を前記ドットデータに変換する
第2のデータ変換部と、
前記第1のデータ変換部または前記第2のデータ変換部のいずれかによって生成された
前記ドットデータに基づいてドットを形成するドット形成手段と
を備え、
前記第1のデータ変換部は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する多値化手段と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する多値化
結果値変換手段と
を備えた変換部であり、
前記第2のデータ変換部は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成するドットデータ生成手段を備えた変換部であることを要旨とする。
In order to solve at least a part of the problems described above, the image output apparatus of the present invention employs the following configuration. That is,
An image output device that outputs an image by forming dots based on dot data representing the presence or absence of dot formation for each pixel,
A first data converter that receives image data in which gradation values for each pixel are defined, and converts the image data into the dot data;
For each pixel group in which a predetermined number of pixels are collected, a multi-value quantization result value of a pixel group tone value that is a tone value representing the pixel group is received, and the multi-value quantization result value is received as the dot data A second data converter for converting into
Dot forming means for forming dots based on the dot data generated by either the first data converter or the second data converter;
The first data converter is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor Multi-value conversion means for multi-value the pixel group gradation value by comparing the tone value;
Multi-value conversion that converts the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group A conversion unit including a result value conversion unit,
The second data converter is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. The gist of the present invention is that the conversion unit includes dot data generation means for determining whether or not to form dots for each pixel in the pixel group from the values and generating the dot data.

また、上記の画像出力システムに対応する本願発明の画像出力方法は、
画素毎にドット形成の有無を表したドットデータに基づいてドットを形成することによ
り、画像を出力する画像出力方法であって、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する工程(1)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する工程(2)と、
前記工程(1)または前記工程(2)のいずれかによって生成された前記ドットデータ
に基づいてドットを形成する工程(3)と
を備え、
前記工程(1)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副工程(1−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副工程
(1−b)と
を備えた工程であり、
前記工程(2)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副工程(2−a)を備えた工程であることを要旨とする。
The image output method of the present invention corresponding to the image output system described above is
An image output method for outputting an image by forming dots based on dot data representing the presence or absence of dot formation for each pixel,
When receiving image data in which a gradation value for each pixel is defined, the step (1) of converting the image data into the dot data;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are grouped, the multi-value quantization result value is Converting to the dot data (2);
And (3) forming a dot based on the dot data generated by either the step (1) or the step (2),
The step (1)
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-step (1-a) for converting the pixel group gradation value into a multi-value by comparing the tone value;
A sub-step of converting the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( 1-b) and
The step (2)
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. The gist of the present invention is a process including a sub-process (2-a) for determining whether or not to form dots for each pixel in the pixel group from the values and generating the dot data.

かかる本願発明の画像出力装置および画像出力方法においては、画素毎の階調値が規定
された画像データ、あるいは、画素群毎の多値化結果値の何れかの形態で、出力しようと
する画像についてのデータを受け取る。そして、いずれの形態で受け取った場合にも、受
け取ったデータをそれぞれの方法でドットデータに変換した後、得られたドットデータに
基づいてドットを形成することにより画像を出力する。ここで、出力しようとする画像に
ついてのデータを画像データの形態で受け取った場合には、画素群にまとめられた各画素
の階調値から画素群階調値を決定した後、画素群毎に記憶されている少なくとも1つの閾
値と該画素群階調値とを比較することによって、該画素群階調値を多値化結果値に変換す
る。次いで、画素群毎に得られた多値化結果値に基づいて、画素群内の各画素についてド
ットの形成有無を決定することにより、多値化結果値をドットデータに変換する。一方、
出力しようとする画像についてのデータを画素群毎の多値化結果値の形態で受け取った場
合には、予め記憶されている対応関係を参照することにより、多値化結果値から画素群内
の各画素についてドットの形成有無を決定してドットデータを生成する。対応関係には、
多値化結果値と画素群内の各画素についてのドット形成の有無とが、画素群毎に関連付け
られているので、かかる対応関係を参照すれば、多値化結果値から画素群内の各画素につ
いてのドット形成有無を決定することができる。このように、出力しようとする画像につ
いてのデータを受け取った形態に応じて、いずれかの方法で生成されたドットデータに基
づいて画像を出力する。
In such an image output apparatus and image output method of the present invention, an image to be output in either form of image data in which a gradation value for each pixel is defined or a multi-value quantization result value for each pixel group. Receive data about. In either case, the received data is converted into dot data by each method, and then an image is output by forming dots based on the obtained dot data. Here, when the data about the image to be output is received in the form of image data, after determining the pixel group gradation value from the gradation value of each pixel grouped in the pixel group, for each pixel group By comparing at least one stored threshold value and the pixel group tone value, the pixel group tone value is converted into a multi-value quantization result value. Next, the multi-value quantization result value is converted into dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group. on the other hand,
When data about an image to be output is received in the form of a multi-value quantization result value for each pixel group, the multi-value quantization result value is stored in the pixel group by referring to the correspondence stored in advance. Dot data is generated by determining the presence or absence of dot formation for each pixel. In correspondence,
Since the multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are associated with each pixel group, referring to this correspondence, each multi-value quantization result value The presence or absence of dot formation for a pixel can be determined. As described above, an image is output based on dot data generated by one of the methods in accordance with the form in which data about the image to be output is received.

詳細には後述するが、上述した方法を用いて画像データから多値化結果値を生成し、得
られた多値化結果値からドットデータを生成することとすれば、使用可能な記憶容量や処
理能力が限られている場合でも、十分な画質と処理速度とを維持して画像を出力すること
ができる。尚、画素毎の階調値が規定された画像データは、画素毎の階調値を決定するこ
とが可能なデータであれば足り、必ずしも各画素に階調値が設定されたデータである必要
はない。例えば、画素毎に設定された階調値が、いわゆるJPEGなどのように所定個数
の画素分ずつ圧縮した状態で記述されており、このデータを解凍することによって画素毎
の階調値を得ることができるようなデータであっても構わない。
Although details will be described later, if a multi-value quantization result value is generated from image data using the above-described method, and dot data is generated from the obtained multi-value quantization result value, usable storage capacity and Even when the processing capability is limited, an image can be output while maintaining sufficient image quality and processing speed. Note that the image data in which the gradation value for each pixel is defined may be data that can determine the gradation value for each pixel, and is not necessarily data in which the gradation value is set for each pixel. There is no. For example, the gradation value set for each pixel is described in a compressed state for a predetermined number of pixels such as so-called JPEG, and the gradation value for each pixel is obtained by decompressing this data. It does not matter if the data is such that

一方、コンピュータなどの画像処理装置からデータを受け取る場合、すなわち、ある程
度の画像処理が施された形態でデータを受け取る場合には、画素群毎の多値化結果値の形
態で受け取って、予め記憶されている対応関係を参照しながら多値化結果値をドットデー
タに変換する。画像の全画素についてドット形成の有無を表すデータに比べれば、画素群
毎の多値化結果値は遙かに小さなデータとすることができるので、解像度が高く従って画
素数の多い画像を出力する場合でも迅速にデータを受け取ることができる。また、対応関
係を参照すれば、多値化結果値を迅速にドットデータに変換することができるので、速や
かに画像を出力することができる。加えて、理由については後ほど詳しく説明するが、対
応関係を適切に設定しておけば、このようにして画像を出力した場合でも画質が悪化する
ことはない。
On the other hand, when data is received from an image processing apparatus such as a computer, that is, when data is received in a form that has undergone some image processing, it is received in the form of a multi-value quantization result value for each pixel group and stored in advance. The multi-value quantization result value is converted into dot data while referring to the corresponding relationship. Compared to data representing the presence or absence of dot formation for all pixels in the image, the multi-value quantization result value for each pixel group can be much smaller data, so an image with high resolution and therefore a large number of pixels is output. Even if you can receive data quickly. Further, by referring to the correspondence relationship, the multi-value quantization result value can be quickly converted into dot data, so that an image can be output quickly. In addition, the reason will be described in detail later, but if the correspondence is set appropriately, the image quality will not deteriorate even when the image is output in this way.

また、画像データを受け取ってドットデータを生成するに際しては、次のようにして生
成することとしても良い。すなわち、画素群内に形成されるドットの個数を表す個数デー
タと多値化結果値とが画素群毎に関連付けられた変換テーブルを予め記憶しておき、かか
る変換テーブルを参照することによって、画素群毎に得られた多値化結果値から個数デー
タを生成する。ここで、個数データは画素群内に形成されるドットの個数が特定できるデ
ータであれば足り、直接的にドットの個数を表したデータである必要はない。また、個数
データと多値化結果値とが画素群毎に関連付けられているとは、個数データと画素群とを
特定すれば、対応する多値化結果値を決定可能であればよく、例えば、関数式などの態様
で対応付けられているものであっても構わない。このような変換テーブルに加えて、画素
群内の各画素についてドットが形成される順番も、画素群毎に記憶しておく。そして、変
換テーブルを参照して得られた画素群毎の個数データと、該画素群内の各画素について記
憶されている順番とに基づいて、画素毎にドット形成有無を決定することにより、ドット
データを生成することとしても良い。
Further, when generating dot data by receiving image data, it may be generated as follows. That is, a conversion table in which number data representing the number of dots formed in a pixel group and a multi-value quantization result value are associated with each pixel group is stored in advance, and the pixel is obtained by referring to the conversion table. Number data is generated from the multi-value quantization result values obtained for each group. Here, the number data need only be data that can specify the number of dots formed in the pixel group, and need not be data that directly represents the number of dots. The number data and the multi-value quantization result value are associated with each pixel group as long as the number data and the pixel group are specified as long as the corresponding multi-value quantization result value can be determined. Or may be associated in a functional expression or the like. In addition to such a conversion table, the order in which dots are formed for each pixel in the pixel group is also stored for each pixel group. Then, based on the number data for each pixel group obtained by referring to the conversion table and the order stored for each pixel in the pixel group, the dot formation presence / absence is determined for each pixel. Data may be generated.

詳細な理由は後述するが、画素群にドットが形成される順番を画素群毎に適切に記憶し
ておき、個数データと記憶しておいた適切な順番とに基づいて、各画素についてのドット
形成の有無を決定すれば、ドット形成の有無を適切に決定して、高画質な画像を出力する
ことが可能となる。
Although the detailed reason will be described later, the order in which dots are formed in the pixel group is appropriately stored for each pixel group, and the dot for each pixel is determined based on the number data and the stored appropriate order. If the presence / absence of formation is determined, it is possible to appropriately determine the presence / absence of dot formation and output a high-quality image.

また、個数データから、画素群内の各画素についてのドット形成有無を決定するに際し
ては、次のようにして決定することとしても良い。すなわち、先ず初めに、個数データを
中間データに変換する。ここで中間データとは、画素群に含まれる画素数をNとして、該
画素群に形成されるドットの個数をMとしたときに、ドットを形成することを意味するM
個の連続するデータと、ドットを形成しないことを意味する(N−M)個の連続するデー
タとからなるデータである。次いで、個数データを変換して画素群毎に得られた中間デー
タの中から、画素群内の各画素に記憶された順番に対応する位置のデータを読み出すこと
により、その画素群内の各画素についてのドット形成の有無を決定することとしても良い
In addition, when determining whether or not to form dots for each pixel in the pixel group from the number data, it may be determined as follows. That is, first, the number data is converted into intermediate data. Here, the intermediate data means that a dot is formed when the number of pixels included in the pixel group is N and the number of dots formed in the pixel group is M.
This is data consisting of continuous data and (N−M) continuous data which means that dots are not formed. Next, by reading the data at the position corresponding to the order stored in each pixel in the pixel group from the intermediate data obtained for each pixel group by converting the number data, each pixel in the pixel group It may be possible to determine whether or not to form dots.

このようにして個数データを中間データに一旦変換しておけば、中間データの中から該
当する位置のデータを読み出すだけで、各画素についてのドット形成の有無を簡便に且つ
迅速に決定することが可能となる。
Once the number data is converted into intermediate data in this way, the presence or absence of dot formation for each pixel can be determined easily and quickly simply by reading the data at the corresponding position from the intermediate data. It becomes possible.

あるいは、多値化結果値を個数データに一旦変換してから中間データを求めるのではな
く、多値化結果値から直ちに中間データを求めることも可能である。すなわち、多値化結
果値と中間データとを画素群毎に対応付けて記憶しておき、多値化結果値から直ちに中間
データが得られるようにしても良い。
Alternatively, it is also possible to obtain intermediate data immediately from the multi-value quantization result value, instead of obtaining the intermediate data after converting the multi-value quantization result value into number data. That is, the multi-value quantization result value and the intermediate data may be stored in association with each pixel group, and the intermediate data may be obtained immediately from the multi-value quantization result value.

こうすれば、個数データを生成することなく直ちに中間データを求めることができるの
で、各画素についてのドット形成の有無を迅速に決定することができ、延いては、画像を
迅速に出力することが可能となる。
In this way, since intermediate data can be obtained immediately without generating the number data, it is possible to quickly determine the presence or absence of dot formation for each pixel and, in turn, to output an image quickly. It becomes possible.

あるいは、上述した画像出力装置においては、画像データを受け取って画素群毎の画素
群階調値を多値化結果値に変換した後、多値化結果値と画素群内の各画素についてのドッ
ト形成の有無とが関連付けられた前記対応関係を参照することにより、多値化結果値をド
ットデータに変換することとしても良い。
Alternatively, in the image output device described above, after receiving the image data and converting the pixel group gradation value for each pixel group into a multi-value quantization result value, the multi-value quantization result value and the dot for each pixel in the pixel group The multi-value quantization result value may be converted into dot data by referring to the correspondence relationship associated with the presence or absence of formation.

こうすれば、画像のデータとして受け取った画素群毎の多値化結果値を、ドットデータ
に変換するために参照する対応関係を、画像データから画素群毎に決定した多値化結果値
をドットデータに変換する際にも利用することができるので、画像出力装置の記憶容量を
節約することが可能となるので好ましい。
By doing this, the multi-value quantization result value for each pixel group received as image data is converted into dot data, and the multi-value quantization result value determined for each pixel group from the image data is converted to dot data. Since it can also be used when converting to data, it is possible to save the storage capacity of the image output apparatus, which is preferable.

また、こうした画像出力装置においては、画像中での位置に応じて画素群を複数種類に
分類し、各々の画素群に分類番号を付与しておき、該分類番号を用いて画素群を識別しな
がらドットデータを生成することとしても良い。すなわち、画素群階調値を多値化結果値
に変換するに際しては、分類番号毎に記憶されている少なくとも1つの閾値と比較するこ
とによって、画素群階調値を多値化する。また、得られた多値化結果値と、多値化結果値
が得られた画素群についての分類番号とに基づいて、多値化結果値をドットデータに変換
する。あるいは、多値化結果値と画素群内の各画素についてのドット形成の有無とを、分
類番号毎に関連付けて対応関係に記憶しておき、かかる対応関係を参照して、多値化結果
値からドットデータを生成することとしてもよい。
Further, in such an image output apparatus, the pixel group is classified into a plurality of types according to the position in the image, a classification number is assigned to each pixel group, and the pixel group is identified using the classification number. However, dot data may be generated. That is, when converting the pixel group gradation value to the multi-value quantization result value, the pixel group gradation value is multi-valued by comparing with at least one threshold value stored for each classification number. Further, the multi-value quantization result value is converted into dot data based on the obtained multi-value quantization result value and the classification number for the pixel group from which the multi-value quantization result value is obtained. Alternatively, the multi-value quantization result value and the presence / absence of dot formation for each pixel in the pixel group are stored in correspondence in association with each classification number, and the multi-value quantization result value is referenced with reference to the correspondence relationship. It is good also as producing | generating dot data from.

このように画像中での位置に応じて付与された分類番号に基づいて画素群を識別してお
けば、たとえ複数の画素群に亘って同じ画素群階調値が続いた場合でも、これら画素群の
分類番号が異なることとなるため、同じ多値化結果値が複数の画素群に亘って連続するこ
とがない。このため、ドットが一定のパターンで形成されてしまい、画質が悪化するおそ
れがない。また、以降の変換についても、分類番号を用いて画素群を識別しながら変換し
ていけば、画像中での位置に応じて適切に変換することができるので、高画質な画像を出
力することが可能となる。
Thus, if the pixel group is identified based on the classification number assigned according to the position in the image, even if the same pixel group gradation value continues across a plurality of pixel groups, these pixels Since the group classification numbers are different, the same multi-value quantization result value does not continue over a plurality of pixel groups. For this reason, dots are formed in a constant pattern, and there is no possibility that the image quality deteriorates. Also, for subsequent conversions, if conversion is performed while identifying pixel groups using classification numbers, conversion can be performed appropriately according to the position in the image, so a high-quality image can be output. Is possible.

尚、画像中での位置に応じて画素群を分類するに際しては、少なくとも100種類以上
の画素群に分類することとしても良い。
In addition, when classifying a pixel group according to the position in an image, it is good also as classifying into at least 100 types or more of pixel groups.

例えば、画素群を数種類にしか分類しないのであれば、広い領域に亘って同じ画素群階
調値が続く場合などには、多値化結果値が一定のパターンで繰り返されることが生じ、ド
ットの発生パターンに一定の規則性が表れてしまうことが起こり得る。こうしたことを回
避するためには、画素群をより多くの種類に分類しておくことが望ましいが、経験上、1
00種類以上の画素群に分類しておけば、ドットの発生に一定のパターンが現れることを
、実用上の問題が発生しない程度に抑制することが可能となる。
For example, if the pixel group is classified into only a few types, when the same pixel group gradation value continues over a wide area, the multi-value quantization result value may be repeated in a certain pattern, It may happen that a certain regularity appears in the generation pattern. In order to avoid this, it is desirable to classify the pixel group into a larger number of types.
If the pixel groups are classified into 00 types or more, it is possible to suppress the occurrence of a certain pattern in the generation of dots to such an extent that a practical problem does not occur.

あるいは、こうした画像出力装置においては、画素群を分類する種類数と、画素群にま
とめられる画素数との乗算値が、少なくとも1000以上となるように設定することとし
ても良い。
Alternatively, in such an image output apparatus, the multiplication value of the number of types for classifying the pixel group and the number of pixels collected in the pixel group may be set to be at least 1000 or more.

画素群に含まれる画素数が多くなれば、1つの画素群内でもドットの発生パターンは多
くのパターンを取ることができる。従って、画素群を分類する種類が十分には多くない場
合でも、画素群に含まれる画素数が多ければ、これを補って、ドットの発生パターンに一
定の規則性が表れてしまうことを抑制することができる。経験によれば、画素群を分類す
る種類数と、画素群に含まれる画素数との乗算値が1000以上となるように選んでおけ
ば、ドットの発生に一定のパターンが現れることを抑制して、実用上の問題が発生するこ
とを回避することが可能である。
If the number of pixels included in a pixel group increases, a large number of dot generation patterns can be obtained within one pixel group. Therefore, even when the number of types for classifying the pixel group is not large enough, if the number of pixels included in the pixel group is large, this is compensated to prevent a certain regularity from appearing in the dot generation pattern. be able to. According to experience, if the product of the number of types that classify a pixel group and the number of pixels included in the pixel group is selected to be 1000 or more, the occurrence of a certain pattern in the generation of dots is suppressed. Thus, it is possible to avoid the occurrence of practical problems.

また、こうした画像出力装置においては、単ドットあたりに表現可能な階調値の異なる
複数種類のドットを形成可能として、画像データあるいは画素群毎に受け取った多値化結
果値を、複数種類のドットについての形成有無を表したドットデータに変換した後、得ら
れたドットデータに基づいて、各種のドットを形成することとしても良い。
Further, in such an image output device, a plurality of types of dots having different gradation values that can be expressed per single dot can be formed, and the multilevel halftoning result value received for each image data or pixel group is converted into a plurality of types of dots. After conversion into dot data representing the presence or absence of formation, various dots may be formed based on the obtained dot data.

複数種類のドットを形成可能な場合、画像データからドットデータを生成するために要
する時間が長くなる傾向にあり、あるいは、生成したドットデータを画像出力装置に供給
するための時間も長くなる傾向にある。これに対して、本願発明の画像出力装置では、形
成可能なドットの種類が増加しても、単純な処理で画像データをドットデータに変換する
ことができる。あるいは、画像のデータを、画素群毎の多値化結果値の形態で受け取れば
、ドットの種類が多い場合でも迅速にデータを受け取ることができる。結局、画素毎の階
調値が規定された画像データを受け取る場合でも、画素群毎の多値化結果値を受け取る場
合でも、ドットデータを迅速に生成して速やかに画像を出力することが可能となるので好
ましい。
When multiple types of dots can be formed, the time required to generate the dot data from the image data tends to increase, or the time required to supply the generated dot data to the image output device tends to increase. is there. In contrast, the image output apparatus of the present invention can convert image data into dot data with a simple process even if the number of dots that can be formed increases. Alternatively, if image data is received in the form of a multi-value quantization result value for each pixel group, the data can be quickly received even when there are many types of dots. Eventually, even when receiving image data with a specified gradation value for each pixel or when receiving multi-value quantization result values for each pixel group, it is possible to generate dot data quickly and output an image quickly. Therefore, it is preferable.

また、画像データを受け取った場合と、画素群毎の多値化結果値を受け取った場合とで
、適切な方法で画像処理を施してドットデータを生成している点に着目すれば、本願発明
は、画像処理装置あるいは画像処理方法として把握することも可能である。すなわち、本
願発明の画像処理装置は、
画像を表すデータに対して所定の画像処理を施すことにより、画素毎にドット形成の有
無を表したドットデータを生成して、画像出力装置に供給する画像処理装置であって、
画素毎の階調値が規定された画像データを受け取って、該画像データを前記ドットデー
タに変換する第1のデータ変換部と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取って、該多値化結果値を前記ドットデータに変換する
第2のデータ変換部と、
前記第1のデータ変換部または前記第2のデータ変換部のいずれかによって生成された
前記ドットデータを前記画像出力装置に供給するドットデータ供給手段と
を備え、
前記第1のデータ変換部は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する多値化手段と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する多値化
結果値変換手段と
を備えた変換部であり、
前記第2のデータ変換部は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成するドットデータ生成手段を備えた変換部であることを要旨とする。
Further, if attention is paid to the fact that dot data is generated by performing image processing by an appropriate method between when image data is received and when a multi-value quantization result value for each pixel group is received, the present invention Can be grasped as an image processing apparatus or an image processing method. That is, the image processing apparatus of the present invention is
An image processing apparatus that generates dot data representing the presence or absence of dot formation for each pixel by applying predetermined image processing to data representing an image, and supplies the dot data to an image output apparatus,
A first data converter that receives image data in which gradation values for each pixel are defined, and converts the image data into the dot data;
For each pixel group in which a predetermined number of pixels are collected, a multi-value quantization result value of a pixel group tone value that is a tone value representing the pixel group is received, and the multi-value quantization result value is received as the dot data A second data converter for converting into
Dot data supply means for supplying the dot data generated by either the first data conversion unit or the second data conversion unit to the image output device,
The first data converter is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor Multi-value conversion means for multi-value the pixel group gradation value by comparing the tone value;
Multi-value conversion that converts the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group A conversion unit including a result value conversion unit,
The second data converter is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. The gist of the present invention is that the conversion unit includes dot data generation means for determining whether or not to form dots for each pixel in the pixel group from the values and generating the dot data.

また、上記の画像処理装置に対応する本願発明の画像処理方法は、
画像を表すデータに対して所定の画像処理を施すことにより、画素毎にドット形成の有
無を表したドットデータを生成して、画像出力装置に供給する画像処理方法であって、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する工程(A)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する工程(B)と、
前記工程(A)または前記工程(B)のいずれかによって生成された前記ドットデータ
を前記画像出力装置に供給する工程(C)と
を備え、
前記工程(A)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副工程(A−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副工程
(A−b)と
を備えた工程であり、
前記工程(B)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副工程(B−a)を備えた工程であることを要旨とする。
Further, the image processing method of the present invention corresponding to the above image processing apparatus is as follows.
An image processing method for generating dot data representing the presence / absence of dot formation for each pixel by applying predetermined image processing to data representing an image and supplying the dot data to an image output device,
When receiving image data in which a gradation value for each pixel is defined, the step (A) of converting the image data into the dot data;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are grouped, the multi-value quantization result value is A step (B) of converting into the dot data;
And (C) supplying the dot data generated by either the step (A) or the step (B) to the image output device,
The step (A)
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-process (Aa) that multi-values the pixel group gradation value by comparing the tone value;
A sub-step of converting the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( A-b) and
The step (B)
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. The gist of the present invention is a process including a sub-process (Ba) for determining whether or not to form dots for each pixel in the pixel group from the values and generating the dot data.

かかる本願発明の画像処理装置および画像処理方法においても、画素毎の階調値が規定
された画像データ、あるいは、画素群毎の多値化結果値の何れかの形態で画像のデータを
受け取ると、受け取った形態に応じて、それぞれの方法でドットデータに変換する。
Also in the image processing apparatus and the image processing method of the present invention, when image data is received in either form of image data in which a gradation value for each pixel is defined or a multi-value quantization result value for each pixel group. Depending on the received form, it is converted into dot data by each method.

こうすれば、画像データを受け取った場合には、使用可能な記憶容量や処理能力が限ら
れている場合でも、十分な画質と処理速度とを維持して、ドットデータを生成することが
できる。また、画素群毎の多値化結果値を受け取る場合には、たとえ解像度の高いデータ
であっても迅速にデータを受け取って、迅速にドットデータを生成することが可能となる
In this way, when image data is received, dot data can be generated while maintaining sufficient image quality and processing speed even when the usable storage capacity and processing capability are limited. Further, when receiving a multi-value quantization result value for each pixel group, it is possible to quickly receive data even if it is high resolution data, and to quickly generate dot data.

更に本願発明は、上述した画像出力方法あるいは画像処理方法を実現するためのプログ
ラムをコンピュータに読み込ませ、コンピュータを用いて実現することも可能である。従
って、本発明は次のようなプログラム、あるいは該プログラムを記録した記録媒体として
の態様も含んでいる。すなわち、上述した画像出力方法に対応する本願発明のプログラム
は、
画素毎にドット形成の有無を表したドットデータに基づいてドットを形成することによ
り、画像を出力する方法を、コンピュータで実現するためのプログラムであって、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する機能(1)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する機能(2)と、
前記機能(1)または前記機能(2)のいずれかによって生成された前記ドットデータ
に基づいてドットを形成する機能(3)と
をコンピュータを用いて実現するとともに、
前記機能(1)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副機能(1−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副機能
(1−b)と
を備えた機能であり、
前記機能(2)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副機能(2−a)を備えた機能であることを要旨とする。
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 or image processing 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 program of the present invention corresponding to the image output method described above is
A program for realizing a method of outputting an image by forming a dot on the basis of dot data representing the presence or absence of dot formation for each pixel by a computer,
A function (1) for converting the image data into the dot data when image data in which a gradation value for each pixel is defined is received;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are grouped, the multi-value quantization result value is A function (2) for converting to the dot data;
A function (3) for forming dots based on the dot data generated by either the function (1) or the function (2) is realized using a computer,
The function (1) is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-function (1-a) that multi-values the pixel group gradation value by comparing the tone value;
A sub-function for converting the multi-value quantization result value into the dot data by determining the presence / absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( 1-b) and
The function (2) is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. The gist of the present invention is a function having a sub-function (2-a) for generating dot data by determining the presence / absence of dot formation for each pixel in the pixel group from the value.

また、上記のプログラムに対応する本願発明の記録媒体は、
画素毎にドット形成の有無を表したドットデータに基づいてドットを形成することによ
り、画像を出力するプログラムを、コンピュータで読み取り可能に記録した記録媒体であ
って、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する機能(1)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する機能(2)と、
前記機能(1)または前記機能(2)のいずれかによって生成された前記ドットデータ
に基づいてドットを形成する機能(3)と
をコンピュータを用いて実現するプログラムを記憶しているとともに、
前記機能(1)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副機能(1−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副機能
(1−b)と
を備えた機能であり、
前記機能(2)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副機能(2−a)を備えた機能であるプログラム。
The recording medium of the present invention corresponding to the above program is
A recording medium on which a program for outputting an image is recorded so as to be readable by a computer by forming dots based on dot data representing the presence or absence of dot formation for each pixel,
A function (1) for converting the image data into the dot data when image data in which a gradation value for each pixel is defined is received;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are grouped, the multi-value quantization result value is A function (2) for converting to the dot data;
A program that uses a computer to store a function (3) that forms dots based on the dot data generated by either the function (1) or the function (2);
The function (1) is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-function (1-a) that multi-values the pixel group gradation value by comparing the tone value;
A sub-function for converting the multi-value quantization result value into the dot data by determining the presence / absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( 1-b) and
The function (2) is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. A program having a sub-function (2-a) for generating dot data by determining whether or not to form dots for each pixel in the pixel group from the values.

更に、上述した画像処理方法に対応する本願発明のプログラムは、
画像を表すデータに対して所定の画像処理を施すことにより、画素毎にドット形成の有
無を表したドットデータを生成して画像出力装置に供給する方法を、コンピュータで実現
するためのプログラムであって、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する機能(A)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する機能(B)と、
前記機能(A)または前記機能(B)のいずれかによって生成された前記ドットデータ
を前記画像出力装置に供給する機能(C)と
をコンピュータを用いて実現するとともに、
前記機能(A)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副機能(A−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副機能
(A−b)と
を備えた機能であり、
前記機能(B)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副機能(B−a)を備えた機能であることを要旨とする。
Furthermore, the program of the present invention corresponding to the above-described image processing method is as follows:
A computer program for realizing a method of generating dot data representing the presence / absence of dot formation for each pixel and supplying it to an image output device by performing predetermined image processing on the data representing the image. And
A function (A) for converting the image data into the dot data when image data in which a gradation value for each pixel is defined is received;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are grouped, the multi-value quantization result value is A function (B) for converting to the dot data;
The function (C) for supplying the dot data generated by either the function (A) or the function (B) to the image output device is realized using a computer.
The function (A) is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-function (Aa) that multi-values the pixel group gradation value by comparing the tone value;
A sub-function for converting the multi-value quantization result value into the dot data by determining the presence / absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( A-b) and
The function (B) is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. The gist of the present invention is a function having a sub-function (Ba) for generating dot data by determining whether or not to form dots for each pixel in the pixel group from the values.

また、上記のプログラムに対応する本願発明の記録媒体は、
画像を表すデータに対して所定の画像処理を施すことにより、画素毎にドット形成の有
無を表したドットデータを生成して画像出力装置に供給するプログラムを、コンピュータ
で読み取り可能に記録した記録媒体であって、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する機能(A)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する機能(B)と、
前記機能(A)または前記機能(B)のいずれかによって生成された前記ドットデータ
を前記画像出力装置に供給する機能(C)と
をコンピュータを用いて実現するプログラムを記憶しているとともに、
前記機能(A)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副機能(A−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副機能
(A−b)と
を備えた機能であり、
前記機能(B)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副機能(B−a)を備えた機能であることを要旨とする。
The recording medium of the present invention corresponding to the above program is
A recording medium on which a computer-readable program for generating dot data representing the presence / absence of dot formation for each pixel and supplying it to an image output device by performing predetermined image processing on data representing an image Because
A function (A) for converting the image data into the dot data when image data in which a gradation value for each pixel is defined is received;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are grouped, the multi-value quantization result value is A function (B) for converting to the dot data;
A program for realizing, using a computer, a function (C) for supplying the dot data generated by either the function (A) or the function (B) to the image output device;
The function (A) is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-function (Aa) that multi-values the pixel group gradation value by comparing the tone value;
A sub-function for converting the multi-value quantization result value into the dot data by determining the presence / absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( A-b) and
The function (B) is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. The gist of the present invention is a function having a sub-function (Ba) for generating dot data by determining whether or not to form dots for each pixel in the pixel group from the values.

こうしたプログラム、あるいは記録媒体に記録されているプログラムをコンピュータに
読み込ませ、該コンピュータを用いて上述の各種機能を実現させれば、十分な画質を維持
したまま、ドットデータを迅速に生成し、延いては迅速に画像を出力することが可能とな
る。
If such a program or a program recorded on a recording medium is read into a computer and the various functions described above are realized using the computer, dot data can be generated quickly and extended while maintaining sufficient image quality. Therefore, it is possible to output an image quickly.

以下では、本発明の作用・効果をより明確に説明するために、本発明の実施の形態を、
次のような順序に従って説明する。
A.実施例の概要:
B.装置構成:
C.画像印刷処理の概要:
D.第1のドットデータ生成処理:
D−1.処理の概要:
D−2.画素群の分類番号:
D−3.閾値テーブルの設定方法:
D−4.変換テーブルの設定方法:
D−5.順序値マトリックスの設定方法:
D−6.高画質な画像を印刷可能な理由:
E.第2のドットデータ生成処理:
E−1.処理の概要:
E−2.多値化結果値をコードデータに変換可能な理由:
E−3.コンピュータ内で多値化結果値を迅速に得る方法:
F.変形例:
In the following, in order to more clearly explain the operation and effect of the present invention, the embodiment of the present invention will be described.
The description will be given in the following order.
A. Summary of Examples:
B. Device configuration:
C. Overview of image printing process:
D. First dot data generation process:
D-1. Process overview:
D-2. Pixel group classification number:
D-3. Setting method of threshold table:
D-4. How to set the conversion table:
D-5. To set the order value matrix:
D-6. Reasons for printing high-quality images:
E. Second dot data generation process:
E-1. Process overview:
E-2. Reasons why multi-value quantization result values can be converted to code data:
E-3. How to quickly obtain multi-valued result values in a computer:
F. Variations:

A.実施例の概要 :
実施例の詳細な説明に入る前に、図1を参照しながら、実施例の概要について説明して
おく。図1は、本実施例の画像出力装置としてのプリンタ10の概要を示した説明図であ
る。図示されているように、本実施例のプリンタ10は、大きくは第1のデータ変換部と
、第2のデータ変換部と、ドット形成モジュールなどから構成されている。ドット形成モ
ジュールは、画素毎にドット形成の有無を表したドットデータを受け取って、印刷媒体上
にドットを形成することによって画像を出力する。ドットデータは、第1のデータ変換部
または第2のデータ変換部のいずれかによって生成されて、ドット形成モジュールに供給
される。
A. Summary of Examples:
Prior to detailed description of the embodiment, an outline of the embodiment will be described with reference to FIG. FIG. 1 is an explanatory diagram showing an overview of a printer 10 as an image output apparatus of the present embodiment. As shown in the figure, the printer 10 of this embodiment is mainly composed of a first data conversion unit, a second data conversion unit, a dot formation module, and the like. The dot formation module receives dot data representing the presence or absence of dot formation for each pixel, and outputs an image by forming dots on the print medium. The dot data is generated by either the first data conversion unit or the second data conversion unit and supplied to the dot formation module.

プリンタ10は、デジタルカメラ20などの撮影機器から画像データを受け取って画像
を出力することもできるし、コンピュータ30などによって画像処理が施されたデータを
受け取って画像を出力することもできる。尚、通常のプリンタでは、コンピュータなどで
画像処理が施されたデータを受け取る場合には、ドットデータに変換されたデータを受け
取るが、本実施例のプリンタ10では、以下に説明するように、ドットデータとは異なる
形態で受け取ることとしている。
The printer 10 can receive image data from a photographing device such as the digital camera 20 and output an image, or can receive data processed by the computer 30 and output the image. In a normal printer, when data subjected to image processing by a computer or the like is received, data converted into dot data is received. However, in the printer 10 of this embodiment, as described below, dot data is received. The data is received in a different form.

デジタルカメラ20などからの画像データは、第1のデータ変換部に供給されて、次の
ようにしてドットデータに変換される。先ず、画素群階調値決定モジュールにて、画像デ
ータは画素群階調値に変換される。ここで画素群階調値とは、複数の画素が所定個数ずつ
まとめられた画素群について、画素群を代表する階調値である。次いで、画素群毎に少な
くとも1つの閾値が記憶されている閾値テーブルを参照しながら、画素群階調値と閾値と
を比較することによって画素群階調値を多値化結果値に変換する。こうして画素群毎に得
られた多値化結果値をドットデータに変換して、ドット形成モジュールに供給する。
Image data from the digital camera 20 or the like is supplied to the first data converter and converted to dot data as follows. First, the pixel group tone value determination module converts the image data into pixel group tone values. Here, the pixel group gradation value is a gradation value representing a pixel group in a pixel group in which a predetermined number of pixels are collected. Next, the pixel group gradation value is converted into a multi-value quantization result value by comparing the pixel group gradation value with the threshold value while referring to a threshold value table in which at least one threshold value is stored for each pixel group. The multi-value quantization result value thus obtained for each pixel group is converted into dot data and supplied to the dot formation module.

一方、コンピュータ30などによって画像処理が施されたデータを受け取る場合には、
本実施例のプリンタ10では、画素群毎の多値化結果値の形態で受け取る。すなわち、印
刷しようとする画像を表した画像データを、コンピュータ30などの機能を用いて実現さ
れる多値化結果値生成モジュールによって画素群毎の多値化結果値に変換し、得られた多
値化結果値をプリンタ10に供給するのである。コンピュータ30の内部で生成された画
像データや、デジタルカメラ20などの撮影機器で撮影した画像データを多値化結果値生
成モジュールに供給すれば、これらの画像データを画素群毎の多値化結果値に変換するこ
とができる。こうして生成された多値化結果値は、プリンタ10の第2のデータ変換部に
供給される。第2のデータ変換部には、多値化結果値と、画素群内の各画素についてのド
ット形成の有無とが、画素群毎に関連付けられた変換テーブルが記憶されており、かかる
変換テーブルを参照することにより多値化結果値をドットデータに変換して、ドット形成
モジュールに供給する。
On the other hand, when receiving data subjected to image processing by the computer 30 or the like,
In the printer 10 of this embodiment, it is received in the form of a multi-value quantization result value for each pixel group. That is, image data representing an image to be printed is converted into a multi-value quantization result value for each pixel group by a multi-value quantization result value generation module realized using a function of the computer 30 or the like, and the obtained multi-value is obtained. The value conversion result value is supplied to the printer 10. If image data generated inside the computer 30 or image data photographed by a photographing device such as the digital camera 20 is supplied to the multi-value quantization result value generation module, these image data are converted into multi-value quantization results for each pixel group. Can be converted to a value. The multi-value quantization result value generated in this way is supplied to the second data conversion unit of the printer 10. The second data conversion unit stores a conversion table in which the multi-value quantization result value and the presence / absence of dot formation for each pixel in the pixel group are associated with each pixel group. By referencing, the multi-value quantization result value is converted into dot data and supplied to the dot formation module.

以上に説明したように、デジタルカメラ20などから直接画像データを受け取った場合
には、一旦、画素群階調値に変換し、閾値テーブルを参照することによって多値化結果値
に変換した後、得られた多値化結果値からドットデータを生成する。詳細な理由は後述す
るが、こうすれば、プリンタ10に搭載されたメモリを圧迫することなく画像データをド
ットデータに変換することができる。従って、メモリを節約するために解像度を低下させ
たり、画像処理を簡素化する必要がなく、高い画質を維持したまま画像を印刷することが
できる。一方、コンピュータ30などで画像処理したデータを受け取ることができる場合
には、画素群毎の多値化結果値の形態で受け取り、変換テーブルを参照しながら多値化結
果値をドットデータに変換する。画素毎にドット形成の有無を表すドットデータよりも、
画素群毎の多値化結果値の方がデータ量が小さくなることから、多値化結果値の形態でデ
ータを受け取ることで、画素数の多い高解像度の画像であっても迅速にデータを受け取る
ことができる。加えて、変換テーブルを参照することで、多値化結果値をドットデータに
迅速に変換することが可能となるため、高解像度の画像であっても速やかに印刷すること
が可能となる。結局、コンピュータ30などで画像処理が施されたデータを受け取る場合
は、高解像度の画像であっても迅速に高い画質で出力することができ、デジタルカメラ2
0などから直接画像データを受け取る場合でも十分な画質を維持したまま画像を出力する
ことが可能となる。以下では、このような実施例について詳しく説明する。
As described above, when image data is directly received from the digital camera 20 or the like, the image data is once converted into a pixel group gradation value and converted into a multi-value quantization result value by referring to a threshold value table. Dot data is generated from the obtained multi-value quantization result value. Although the detailed reason will be described later, in this way, the image data can be converted into dot data without squeezing the memory mounted in the printer 10. Therefore, it is not necessary to reduce the resolution or simplify the image processing in order to save memory, and an image can be printed while maintaining high image quality. On the other hand, when image-processed data can be received by the computer 30 or the like, it is received in the form of a multi-value quantization result value for each pixel group, and the multi-value quantization result value is converted into dot data while referring to the conversion table. . Rather than dot data representing the presence or absence of dot formation for each pixel,
Since the multi-value quantization result value for each pixel group has a smaller data amount, data can be received quickly even in a high-resolution image with a large number of pixels by receiving data in the form of multi-value quantization result values. Can receive. In addition, by referring to the conversion table, the multi-value quantization result value can be quickly converted into dot data, so even a high-resolution image can be printed quickly. Eventually, when receiving data that has been subjected to image processing by the computer 30 or the like, even a high-resolution image can be quickly output with high image quality.
Even when image data is directly received from 0 or the like, it is possible to output an image while maintaining sufficient image quality. Hereinafter, such an embodiment will be described in detail.

B.装置構成 :
図2は、本実施例のカラープリンタ200に画素群毎の多値化結果値を供給するコンピ
ュータ100の構成を示す説明図である。コンピュータ100は、CPU102を中心に
、ROM104やRAM106などを、バス116で互いに接続することによって構成さ
れた周知のコンピュータである。
B. Device configuration :
FIG. 2 is an explanatory diagram illustrating the configuration of the computer 100 that supplies the multi-value quantization result value for each pixel group to the color printer 200 of this 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に接続すれば、デジタルカメラ12
0やカラースキャナ122で取り込んだ画像に対して画像処理を施すことも可能である。
また、ネットワークインターフェースカードNIC110を装着すれば、コンピュータ1
00を通信回線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 the 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. If the digital camera 120, the color scanner 122, etc. are connected to the PIF 108, the digital camera 12
It is also possible to perform image processing on an image captured by 0 or the color scanner 122.
If the network interface card NIC 110 is installed, the computer 1
00 can be connected to the communication line 300 to obtain 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 color inks, 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, depending on the case, cyan ink, magenta ink, yellow ink, black ink, light cyan ink, and light magenta ink may be changed to C ink,
It may be abbreviated as M ink, Y ink, K ink, LC ink, and LM ink.

カラープリンタ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に供給される。
The carriage 240 includes an ink cartridge 242 that stores K ink, C ink,
An ink cartridge 243 that stores various inks of M ink and Y ink is mounted. 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, the bottom surface of the ink ejection head has C, M, Y
, K are ejected, and four sets of nozzle rows are formed, and 48 nozzles Nz are arranged at a constant nozzle pitch k per set of nozzle rows.

制御回路260は、CPUや、ROM、RAM、PIF(周辺機器インターフェース)
等がバスで相互に接続されて構成されている。制御回路260は、キャリッジモータ23
0および紙送りモータ235の動作を制御することによってキャリッジ240の主走査動
作および副走査動作の制御を行う。また、コンピュータ100から出力された多値化結果
値のデータあるいはデジタルカメラ120等から出力された画像データは、一旦、制御回
路260に供給され、制御回路260内で、後述する所定の処理が施されてドットデータ
に変換される。そして、キャリッジ240の主走査および副走査に動きに合わせて、ドッ
トデータに従ってインク吐出用ヘッド244ないし247を駆動することにより、各ノズ
ルからインク滴を吐出する。こうして、制御回路260の制御の下、印刷媒体上の適切な
位置に各色のインクドットを形成することによって、カラープリンタ200はカラー画像
を印刷することが可能となっている。
The control circuit 260 is a CPU, ROM, RAM, PIF (peripheral device interface)
Etc. are connected to each other via a bus. The control circuit 260 is connected to the carriage motor 23.
The main scanning operation and the sub scanning operation of the carriage 240 are controlled by controlling the operation of 0 and the paper feed motor 235. The multi-value quantization result value data output from the computer 100 or the image data output from the digital camera 120 or the like is temporarily supplied to the control circuit 260, and predetermined processing described later is performed in the control circuit 260. And converted to dot data. Then, ink droplets are ejected from each nozzle by driving the ink ejection heads 244 to 247 according to the dot data in accordance with the movement of the carriage 240 in the main scanning and the sub scanning. 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.

また、本実施例のカラープリンタ200は、吐出するインク滴の大きさを制御すること
により、インクドットの大きさを制御することが可能である。以下、カラープリンタ20
0が大きさの異なるインクドットを形成する方法について説明するが、その準備として、
先ず、各色インクを吐出するノズルの内部構造について説明する。
Further, the color printer 200 of the present embodiment can control the size of the ink dots by controlling the size of the ink droplets to be ejected. Hereinafter, the color printer 20
A method for forming ink dots having different sizes of 0 will be described.
First, the internal structure of the nozzle that discharges each color ink will be described.

図5(a)は、インクを吐出するノズルの内部構造を示した説明図である。各色のイン
ク吐出用ヘッド244ないし247には、このようなノズルが複数設けられている。図示
するように、各ノズルにはインク通路255と、インク室256と、インク室の上にピエ
ゾ素子PEとが設けられている。キャリッジ240にインクカートリッジ242,243
を装着すると、カートリッジ内のインクがインクギャラリ257を経由してインク室25
6に供給される。ピエゾ素子PEは、周知のように電圧を印加すると結晶構造が歪んで極
めて高速に電気−機械エネルギの変換を行う素子である。本実施例では、ピエゾ素子PE
の両端に設けられた電極間に所定波形の電圧を印加することで、インク室256の側壁を
変形させる。その結果、インク室256の容積が減少し、容積の減少分に相当するインク
がインク滴IpとなってノズルNzから吐出される。このインク滴Ipがプラテン236
に装着された印刷用紙Pに染み込むことで、印刷用紙上にインクドットが形成される。
FIG. 5A is an explanatory diagram showing the internal structure of a nozzle that ejects ink. Each of the ink discharge heads 244 to 247 for each color is provided with a plurality of such nozzles. As shown in the figure, each nozzle is provided with an ink passage 255, an ink chamber 256, and a piezo element PE on the ink chamber. Ink cartridges 242 and 243 on the carriage 240
Is attached, the ink in the cartridge passes through the ink gallery 257 and the ink chamber 25.
6 is supplied. The piezo element PE is an element that performs electro-mechanical energy conversion at an extremely high speed because the crystal structure is distorted when a voltage is applied as is well known. In this embodiment, the piezo element PE
The side wall of the ink chamber 256 is deformed by applying a voltage having a predetermined waveform between the electrodes provided at both ends of the ink chamber 256. As a result, the volume of the ink chamber 256 is reduced, and ink corresponding to the reduced volume is ejected from the nozzle Nz as ink droplets Ip. This ink droplet Ip is the platen 236.
Ink dots are formed on the printing paper by soaking into the printing paper P mounted on the printing paper.

図5(b)は、ピエゾ素子PEに印加する電圧波形を制御することで、吐出するインク
滴の大きさを変更する原理を示した説明図である。ノズルからインク滴Ipを吐出するた
めには、ピエゾ素子PEに府の電圧を印加してインクギャラリ257からインク室256
内に一旦インクを吸入し、その後、ピエゾ素子PEに正電圧を印加してインク室容積を減
少させて、インク滴Ipを吐出させる。ここで、インクの吸引速度が適切であればインク
室容積の変化量に相当するインクが吸入されるが、吸引速度が速すぎると、インクギャラ
リ257とインク室256との間には通路抵抗があるためにインクギャラリ257からの
インクの流入が間に合わなくなる。その結果、インク通路255のインクがインク室内に
逆流して、ノズル付近のインク界面が大きく後退した状態となる。図5(b)に実践で示
した電圧波形aは、適正な速度でインクを吸引する波形を示し、破線で示した電圧波形b
は適切速度より大きな速度で吸引する波形の一例を示している。
FIG. 5B is an explanatory diagram showing the principle of changing the size of the ink droplets ejected by controlling the voltage waveform applied to the piezo element PE. In order to eject the ink droplet Ip from the nozzle, a pre-voltage is applied to the piezo element PE and the ink chamber 256 is supplied from the ink gallery 257.
The ink is once sucked in, and then a positive voltage is applied to the piezo element PE to reduce the ink chamber volume, thereby ejecting the ink droplet Ip. Here, if the ink suction speed is appropriate, ink corresponding to the amount of change in the ink chamber volume is sucked, but if the suction speed is too fast, there is a passage resistance between the ink gallery 257 and the ink chamber 256. Therefore, the inflow of ink from the ink gallery 257 is not in time. As a result, the ink in the ink passage 255 flows back into the ink chamber, and the ink interface near the nozzle is largely retracted. A voltage waveform a shown in FIG. 5B in practice shows a waveform for sucking ink at an appropriate speed, and a voltage waveform b shown by a broken line.
Shows an example of a waveform of suction at a speed larger than the appropriate speed.

十分なインクがインク室256内に供給された状態で、ピエゾ素子PEに正電圧を印加
すると、インク室256の容積減少に相当する体積のインク滴IpがノズルNzから吐出
される。これに対して、インクの供給量が不足してインク界面が大きく後退した状態で正
電圧を印加すると、吐出されるインク滴は小さなインク滴となる。このように、本実施例
のプリンタ200では、インク滴の吐出前に印加する府の電圧波形を制御してインクの吸
引速度を変更することで、吐出するインク滴の大きさを制御し、大ドット、中ドット、小
ドットの3種類のインクドットを形成することが可能となっている。
When a positive voltage is applied to the piezo element PE in a state where sufficient ink is supplied into the ink chamber 256, an ink droplet Ip having a volume corresponding to the volume reduction of the ink chamber 256 is ejected from the nozzle Nz. On the other hand, when a positive voltage is applied in a state where the ink supply amount is insufficient and the ink interface is largely retracted, the ejected ink droplet becomes a small ink droplet. As described above, in the printer 200 of the present embodiment, the size of the ink droplet to be ejected is controlled by changing the suction speed of the ink by controlling the voltage waveform applied before the ink droplet is ejected. It is possible to form three types of ink dots: dots, medium dots, and small dots.

もちろん、3種類に限らず、より多種類のドットを形成することも可能である。更には
、微細なインク滴を一度に複数吐出して、吐出するインク滴の数を制御するといった方法
を用いて、印刷用紙上に形成されるインクドットの大きさを制御してもよい。このように
してインクドットの大きさを制御すれば、印刷しようとする画像の領域に応じて異なる大
きさのインクドットを使い分けてやることで、より高画質の画像を印刷することも可能と
なる。
Of course, not only three types but also more types of dots can be formed. Further, the size of the ink dots formed on the printing paper may be controlled by using a method in which a plurality of fine ink droplets are ejected at a time and the number of ejected ink droplets is controlled. By controlling the size of the ink dots in this way, it is possible to print a higher quality image by using different ink dots depending on the area of the image to be printed. .

尚、各色のインク吐出ヘッドからインク滴を吐出する方法には、種々の方法を適用する
ことができる。すなわち、ピエゾ素子を用いてインク滴を吐出する方式や、インク通路に
配置したヒータでインク通路内に泡(バブル)を発生させてインク滴を吐出する方法など
を用いることができる。また、インク滴を吐出する代わりに、熱転写などの現象を利用し
て印刷用紙上にインクドットを形成する方式や、静電気を利用して各色のトナー粉を印刷
媒体上に付着させる方式のプリンタを使用することも可能である。
Note that 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 droplets 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. In addition, instead of ejecting ink droplets, there is a printer that uses a phenomenon such as thermal transfer to form ink dots on printing paper, or a method that uses static electricity to attach toner powder of each color onto the print medium. It is also possible to use it.

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

以上に説明したように、本実施例のカラープリンタ200は、デジタルカメラ120な
どから画像データを受け取って直ちに画像を印刷することもできるし、コンピュータ10
0などで画像処理が施されたデータを受け取って画像を印刷することも可能となっている
。ここで、上述したように、カラープリンタ200の制御回路260内にはCPU,RA
M,ROMなどが搭載されていることから、コンピュータ100が行う処理をカラープリ
ンタ200内で実施することも原理的には可能である。しかし、カラープリンタ200の
処理能力はコンピュータ100のようには高くはなく、使用可能なメモリ量にも制限があ
ることから、コンピュータ100内で行う画像処理をそのまま実行することは、実際には
困難である。そこで、本実施例のカラープリンタ200では、印刷しようとする画像のデ
ータをコンピュータ100から受け取る場合と、デジタルカメラ120などから受け取る
場合とで、次のように画像処理方法を切り換えることで、適切に画像を印刷することを可
能としている。以下、本実施例のカラープリンタ200において、画像を印刷する処理に
ついて説明する。
As described above, the color printer 200 according to this embodiment can receive image data from the digital camera 120 or the like and immediately print an image.
It is also possible to receive data that has undergone image processing at 0 or the like and print an image. Here, as described above, the CPU, RA are included in the control circuit 260 of the color printer 200.
Since M, ROM, etc. are mounted, it is possible in principle to carry out the processing performed by the computer 100 in the color printer 200. However, since the processing capability of the color printer 200 is not as high as that of the computer 100 and the amount of memory that can be used is limited, it is actually difficult to execute the image processing performed in the computer 100 as it is. It is. Therefore, in the color printer 200 according to the present embodiment, the image processing method is switched appropriately between the case where the image data to be printed is received from the computer 100 and the case where the image data is received from the digital camera 120 or the like as follows. It is possible to print an image. Hereinafter, a process of printing an image in the color printer 200 of the present embodiment will be described.

C.画像印刷処理の概要 :
図6は、本実施例のカラープリンタ200が画像を印刷するために行う画像印刷処理の
流れを示すフローチャートである。かかる処理は、コンピュータ100などの画像処理装
置、あるいはデジタルカメラ120などの撮影機器から、印刷しようとする画像について
のデータを受け取ると、カラープリンタ200の制御回路260に内蔵されたCPUの機
能によって実行される処理である。尚、以下では、コンピュータ100を画像処理装置の
代表例とし、デジタルカメラ120を撮影機器など画像データを画像処理を行わずに出力
する機器の代表例として説明する。すなわち、以下の説明における「コンピュータ100
」との記載は、コンピュータに代表される各種の画像処理装置を指しているものとし、ま
た、「デジタルカメラ120」との記載は、デジタルカメラに代表される各種の撮影機器
など、画像データをそのまま出力する機器を指しているものとする。また、以下では、カ
ラープリンタ200は、コンピュータ100やデジタルカメラ120からデータを直接受
け取るものとして説明するが、もちろん、記録媒体を介してデータを受け取ることとして
も良い。
C. Overview of image printing process:
FIG. 6 is a flowchart showing the flow of image printing processing performed by the color printer 200 of this embodiment for printing an image. Such processing is executed by the function of the CPU built in the control circuit 260 of the color printer 200 when data about an image to be printed is received from an image processing apparatus such as the computer 100 or a photographing device such as the digital camera 120. Process. Hereinafter, the computer 100 will be described as a representative example of an image processing apparatus, and the digital camera 120 will be described as a representative example of a device that outputs image data without performing image processing, such as a photographing device. That is, “computer 100 in the following description.
"" Refers to various image processing apparatuses typified by computers, and "digital camera 120" refers to image data such as various photographic devices typified by digital cameras. It shall be the device that outputs as it is. In the following description, the color printer 200 is described as receiving data directly from the computer 100 or the digital camera 120, but of course, the data may be received via a recording medium.

画像印刷処理を開始すると、制御回路260のCPUは先ず初めに、コンピュータ10
0あるいはデジタルカメラ120から画像のデータの読み込みを行う(ステップS100
)。本実施例のカラープリンタ200は、デジタルカメラ120からは画素毎の階調値が
規定されたデータの形態で画像のデータを受け取り、コンピュータ100からは画素群毎
の多値化結果値の形態で画像のデータを受け取る。
When the image printing process is started, the CPU of the control circuit 260 first starts with the computer 10.
0 or image data is read from the digital camera 120 (step S100).
). The color printer 200 of this embodiment receives image data from the digital camera 120 in the form of data in which the gradation value for each pixel is defined, and from the computer 100 in the form of a multi-value quantization result value for each pixel group. Receive image data.

次いで、受け取った画像のデータが、画素群毎の多値化結果値か否かを判断する(ステ
ップS102)。かかる判断は、例えばデータのヘッダに、多値化結果値のデータか画素
毎の階調値のデータかを示す情報を設定しておき、ヘッダを解析することによって判断す
ることができる。そして、画素群毎の多値化結果値のデータではないと判断された場合は
(ステップS102:no)、画素毎の階調値を規定した画像データであると判断して、
第1のドットデータ生成処理を行う(ステップS104)。第1のドットデータ生成処理
では、後述するようにして、画像データをドットデータに変換する。一方、画素群毎の多
値化結果値のデータであると判断された場合は(ステップS102:yes)、第2のド
ットデータ生成処理を行う(ステップS106)。第2のドットデータ生成処理では、後
述する方法によって、画素群毎の多値化結果値をドットデータに速やかに変換することが
できる。
Next, it is determined whether the received image data is a multi-value quantization result value for each pixel group (step S102). Such determination can be made, for example, by setting information indicating whether the data is a multi-value quantization result value or gradation value data for each pixel in the data header and analyzing the header. If it is determined that the data is not multi-value quantization result value data for each pixel group (step S102: no), it is determined that the image data defines the gradation value for each pixel.
First dot data generation processing is performed (step S104). In the first dot data generation process, image data is converted into dot data as described later. On the other hand, when it is determined that the data is a multi-value quantization result value for each pixel group (step S102: yes), a second dot data generation process is performed (step S106). In the second dot data generation process, the multi-value quantization result value for each pixel group can be promptly converted into dot data by a method described later.

こうして、受け取った画像のデータに対して、第1のドットデータ生成処理あるいは第
2のドットデータ生成処理のいずれかの処理が施され、得られたドットデータに基づいて
ドットを形成する(ステップS108)。すなわち、キャリッジ240の主走査および副
走査の動きに合わせて、ドットデータに従ってインク滴を吐出することで、印刷用紙上の
適切な位置に適切な大きさのインクドットを形成する。以上のようにして、ドットデータ
に従って全てのドットが形成されたら、画像が印刷されたことになるので、図6に示す画
像印刷処理を終了する。
In this way, either the first dot data generation process or the second dot data generation process is performed on the received image data, and dots are formed based on the obtained dot data (step S108). ). That is, by ejecting ink droplets according to dot data in accordance with the main scanning and sub-scanning movements of the carriage 240, ink dots having an appropriate size are formed at appropriate positions on the printing paper. As described above, when all the dots are formed according to the dot data, the image has been printed, so the image printing process shown in FIG. 6 is terminated.

このように、本実施例のカラープリンタ200では、印刷しようとする画像のデータを
、画素毎に階調値が規定された画像データの形態で受け取った場合には(ステップS10
2:no)、第1のドットデータ生成処理を行うことにより以下の方法でドットデータを
生成し、画像のデータを画素群毎の多値化結果値の形態で受け取った場合には(ステップ
S102:yes)、第2のドットデータ生成処理を行って以下の方法によりドットデー
タを生成する。このため、デジタルカメラ120から受け取った画像データを、高い画質
を維持したまま印刷することができる。また、コンピュータ100から高解像度の画像の
データを受け取った場合には、高画質の画像を迅速に印刷することが可能である。以下で
は、先ず初めに第1のドットデータ生成処理の概要について説明し、次いで、かかる処理
を行うことで、デジタルカメラ120から受け取った画像データを、高い画質を維持した
まま印刷可能な理由について説明する。第2のドットデータ生成処理についても同様に、
初めに処理の概要について説明し、次いで、こうした処理を行うことで、高解像度の画像
を迅速に高い画質で印刷することができる理由について説明する。
As described above, in the color printer 200 of this embodiment, when the image data to be printed is received in the form of image data in which the gradation value is defined for each pixel (step S10).
2: no), by performing the first dot data generation process, dot data is generated by the following method, and when image data is received in the form of a multi-value quantization result value for each pixel group (step S102) : Yes), the second dot data generation process is performed to generate dot data by the following method. Therefore, the image data received from the digital camera 120 can be printed while maintaining high image quality. In addition, when high-resolution image data is received from the computer 100, it is possible to quickly print a high-quality image. In the following, first, the outline of the first dot data generation process will be described, and then the reason why image data received from the digital camera 120 can be printed while maintaining high image quality by performing such process will be described. To do. Similarly for the second dot data generation process,
First, an overview of the processing will be described, and then the reason why a high-resolution image can be quickly printed with high image quality by performing such processing will be described.

D.第1のドットデータ生成処理 :
D−1.処理の概要 :
図7は、第1のドットデータ生成処理の流れを示すフローチャートである。かかる処理
は、図6に示した画像印刷処理中で、デジタルカメラ120から画像データを受け取ると
、カラープリンタ200の制御回路260に搭載されたCPUによって実行される処理で
ある。
D. First dot data generation process:
D-1. Process overview:
FIG. 7 is a flowchart showing the flow of the first dot data generation process. This process is a process executed by the CPU mounted on the control circuit 260 of the color printer 200 when image data is received from the digital camera 120 during the image printing process shown in FIG.

第1のドットデータ生成処理を開始すると、先ず初めに、解像度変換処理を行う(ステ
ップS200)。解像度変換処理とは、デジタルカメラ120から供給された画像データ
の解像度を、カラープリンタ200が画像を印刷する解像度(印刷解像度)に変換する処
理である。画像データの解像度が印刷解像度よりも低い場合は、補間演算を行って画素間
に新たな画像データを生成し、逆に画像データの解像度が印刷解像度よりも高い場合には
、一定の割合でデータを間引くことによって、画像データの解像度を印刷解像度に一致さ
せる処理を行う。
When the first dot data generation processing is started, first, resolution conversion processing is performed (step S200). The resolution conversion process is a process for converting the resolution of the image data supplied from the digital camera 120 to a resolution (printing resolution) at which the color 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.

次いで、カラープリンタ200に搭載されたCPUは、色変換処理を行う(ステップS
202)。色変換処理とは、デジタルカメラ120から受け取った画像データの表色系を
、カラープリンタ200で採用されている表色系に変換する処理である。すなわち、デジ
タルカメラ120では、通常、R,G,Bの階調値の組合せによって色彩を表現するRG
B表色系が採用されており、デジタルカメラ120から受け取った画像データは、RGB
カラー画像データとなっている。一方、カラープリンタ200は、前述したようにC,M
,Y,Kの4色のインクを用いて色彩を表現するCMY表色系が採用されている。そこで
、色変換処理を行って、デジタルカメラ120から受け取ったRGBカラー画像データを
、C,M,Y,Kの各色の階調値によって表現されたデータに変換するのである。色変換
処理は、色変換テーブル(LUT)と呼ばれる3次元の数表を参照することで行う。LU
Tには、RGBカラー画像データに対して、色変換によって得られるC,M,Y,K各色
の階調値が予め記憶されている。ステップS202の処理では、このLUTを参照するこ
とにより、RGBカラー画像データをC,M,Y,K各色の画像データに迅速に色変換す
ることが可能となっている。
Next, the CPU mounted on the color printer 200 performs color conversion processing (step S).
202). The color conversion process is a process of converting the color system of image data received from the digital camera 120 into the color system adopted by the color printer 200. That is, in the digital camera 120, an RG that normally expresses a color by a combination of R, G, and B gradation values.
B color system is adopted, and the image data received from the digital camera 120 is RGB
Color image data. On the other hand, as described above, the color printer 200 uses the C, M
A CMY color system that expresses colors using four color inks of, Y, and K is employed. Therefore, color conversion processing is performed to convert the RGB color image data received from the digital camera 120 into data expressed by gradation values of each color of C, M, Y, and K. The color conversion process is performed by referring to a three-dimensional numerical table called a color conversion table (LUT). LU
In T, 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 S202, RGB color image data can be quickly color-converted into C, M, Y, and K image data by referring to this LUT.

以上のようにして色変換処理を行うことにより、RGB各色の画像データが、C,M,
Y,K各色の画像データに変換されたら、今度は、各色毎の画像データをドットデータに
変換する。尚、かかる処理はC,M,Y,Kの各色について同様に行われることから、説
明が煩雑となることを避けるために、以下では色を特定せずに説明した場合は、C,M,
Y,Kの各色について同様な処理が行われることを意味するものとする。
By performing the color conversion process as described above, the image data of each color of RGB is converted into C, M,
Once converted into image data for each color Y and K, this time, the image data for each color is converted to dot data. In addition, since such processing is similarly performed for each color of C, M, Y, and K, in order to avoid complicated description, in the following description, when the color is not specified, C, M,
It means that the same processing is performed for each color of Y and K.

画像データをドットデータに変換するに際しては、先ず初めに、互いに隣接する所定個
数の画素をまとめて画素群を生成する(ステップS204)。ここでは、主走査方向に4
画素分、副走査方向に2画素分の合計8つの画素を画素群にまとめるものとする。尚、画
素群としてまとめる画素は、このように矩形状に縦横の位置が揃った画素である必要はな
く、互いに隣接し且つ所定の位置関係にあればどのような画素を画素群としてまとめても
良い。
When converting image data into dot data, first, a predetermined number of pixels adjacent to each other are grouped to generate a pixel group (step S204). Here, 4 in the main scanning direction.
A total of eight pixels for two pixels in the sub-scanning direction are grouped into a pixel group. Note that the pixels to be grouped as a pixel group do not need to be pixels having vertical and horizontal positions aligned in a rectangular shape as described above. good.

次いで、画素群階調値と、画素群の分類番号とを決定する(ステップS206)。画素
群階調値とは、画素群を代表する階調値であり、次のようにして簡単に求めることができ
る。例えば、画素群内の各画素に割り当てられた画像データの平均値を求めて画素群階調
値とすることができる。あるいは、画素群の中で最も多くの画素に割り当てられた画像デ
ータ、更には、画素群内で特定の位置にある画素の画像データを画素群階調値とすること
も可能である。
Next, the pixel group gradation value and the pixel group classification number are determined (step S206). The pixel group tone value is a tone value that represents a pixel group, and can be easily obtained as follows. For example, an average value of image data assigned to each pixel in the pixel group can be obtained and used as a pixel group gradation value. Alternatively, image data assigned to the largest number of pixels in the pixel group, and further, image data of a pixel at a specific position in the pixel group can be used as the pixel group gradation value.

また、画素群の分類番号とは、簡単に言えば、画素群内の各画素についてのドット形成
の有無をディザマトリックスを用いて判断するときに、ディザマトリックス中のどの部分
が画素群に適用されるかを表す番号である。画素群の分類番号は、次のようにして極めて
簡便に決定することができる。図8は、画素群の分類番号を決定する方法を示した説明図
である。図8(a)は、画像中で8つの画素をまとめて生成された1つの画素群を表して
いる。以下では、この画素群についての分類番号を決定する方法について説明する。尚、
図8(a)に示すような、分類番号を決定するために着目している画素群を、着目画素群
と呼ぶことにする。
In addition, the pixel group classification number, simply speaking, when using the dither matrix to determine the presence or absence of dot formation for each pixel in the pixel group, which part of the dither matrix is applied to the pixel group. It is a number that represents. The pixel group classification number can be determined very simply as follows. FIG. 8 is an explanatory diagram showing a method of determining the pixel group classification number. FIG. 8A shows one pixel group generated by grouping eight pixels in an image. Hereinafter, a method for determining the classification number for this pixel group will be described. still,
A pixel group focused on for determining the classification number as shown in FIG. 8A is referred to as a focused pixel group.

今、画像の一番左上隅を原点に取って、原点からの主走査方向および副走査方向への画
素数によって画素位置を表すものとする。また、画素群の位置は、画素群の左上隅にある
画素の画素位置によって表すものとする。図8(a)では、着目画素群の位置を示す画素
に黒丸を付して表示している。この画素の画素位置が(X,Y)であったとする。着目画
素群の分類番号は、X,Yを2進数表示して、所定のビットに記憶されているデータを読
み出すだけで、極めて容易に決定することができる。例えば、図8(b)に示すように、
着目画素群の位置を表すX,Yがそれぞれ10ビットデータであったとする。そして、X
の最上位の4ビット目から8ビット目までのデータを読み出して得られた値をNとし、Y
の最上位の4ビット目から8ビット目までのデータを読み出して得られた値をMとする。
すると、本実施例の場合は、
N+(M−1)×32 …(1)
を算出することによって、画素群の分類番号を簡単に決定することができる。画素群の分
類番号の意味する内容、および、このようにして画素群の分類番号を決定することができ
る理由については、後ほど詳しく説明する。
Now, assuming that the upper left corner of the image is the origin, the pixel position is represented by the number of pixels from the origin in the main scanning direction and the sub-scanning direction. The position of the pixel group is represented by the pixel position of the pixel at the upper left corner of the pixel group. In FIG. 8A, the pixel indicating the position of the pixel group of interest is displayed with a black circle. Assume that the pixel position of this pixel is (X, Y). The classification number of the pixel group of interest can be determined very easily simply by displaying X and Y in binary and reading the data stored in the predetermined bits. For example, as shown in FIG.
Assume that X and Y representing the position of the pixel group of interest are 10-bit data, respectively. And X
The value obtained by reading the data from the 4th bit to the 8th bit of the most significant bit is N, and Y
Let M be the value obtained by reading the data from the 4th bit to the 8th bit of the most significant bit.
Then, in this example,
N + (M−1) × 32 (1)
By calculating, the pixel group classification number can be easily determined. The meaning of the pixel group classification number and the reason why the pixel group classification number can be determined in this manner will be described in detail later.

こうして、画素群の分類番号と画素群階調値とを決定したら、以下に説明する閾値テー
ブルを参照することにより、画素群階調値を多値化する(ステップS208)。図9は、
画素群階調値を多値化する際に参照される閾値テーブルを示した説明図である。図示され
ているように閾値テーブルには、分類番号毎に、少なくとも1個以上の閾値の組が設定さ
れている。この閾値は、画素群階調値を階調値0から階調値255まで増加させたときに
、多値化結果値が切り換わる画素群階調値を表している。
When the pixel group classification number and the pixel group gradation value are determined in this way, the pixel group gradation value is converted into a multi-value by referring to a threshold value table described below (step S208). FIG.
It is explanatory drawing which showed the threshold value table referred when multi-value-izing a pixel group gradation value. As shown in the figure, at least one threshold set is set for each classification number in the threshold table. This threshold value represents the pixel group gradation value at which the multi-value quantization result value is switched when the pixel group gradation value is increased from the gradation value 0 to the gradation value 255.

一例として、分類番号1番の画素群について説明する。分類番号1番については、閾値
「2」から閾値「243」までの複数個の閾値からなる閾値の組が設定されている。この
中で最も小さな閾値は「2」であるから、この値に満たない画素群階調値、すなわち画素
群階調値「0」または「1」については、多値化結果値「0」に多値化される。また、閾
値の組の中で2番目に小さな閾値は「15」であるから、画素群階調値が「2」以上で「
15」未満の値であれば多値化結果値「1」に多値化される。同様に、画素群階調値「1
5」以上「18」未満であれば多値化結果値「2」に多値化され、画素群階調値「18」
以上「24」未満であれば多値化結果値「3」に多値化される。このように、画素群の画
素群階調値を、閾値テーブルに設定されている閾値の組と比較して、画素群階調値よりも
小さな閾値の個数を求めることにより、画素群階調値を多値化結果値に変換することがで
きる。
As an example, a pixel group with classification number 1 will be described. For the classification number 1, a set of threshold values including a plurality of threshold values from the threshold value “2” to the threshold value “243” is set. Since the smallest threshold among these is “2”, the pixel group gradation value less than this value, that is, the pixel group gradation value “0” or “1” is set to the multi-value quantization result value “0”. Multi-valued. Also, since the second smallest threshold in the threshold set is “15”, the pixel group gradation value is “2” or more and “
If the value is less than 15 ”, the value is converted to a multi-valued result value“ 1 ”. Similarly, the pixel group gradation value “1”
If it is 5 ”or more and less than“ 18 ”, it is multi-valued to the multi-value quantization result value“ 2 ”, and the pixel group gradation value“ 18 ”.
If it is less than “24” as described above, it is converted into a multi-value into the multi-value conversion result value “3”. In this way, by comparing the pixel group tone value of the pixel group with a set of threshold values set in the threshold table, the pixel group tone value is obtained by obtaining the number of threshold values smaller than the pixel group tone value. Can be converted into a multivalued result value.

図9に示されているように、閾値テーブルに設定されている閾値の組は、分類番号毎に
閾値の値や閾値の個数が異なっている。このため、たとえ画素群階調値が同じ値であって
も、画素群の分類番号によって異なる値に多値化されることになる。
As shown in FIG. 9, the threshold value set in the threshold value table has a different threshold value and the number of threshold values for each classification number. For this reason, even if the pixel group gradation value is the same value, it is multivalued to a different value depending on the pixel group classification number.

図10は、画素群の分類番号に応じて、画素群階調値が異なる多値化結果値に変換され
る様子を概念的に示した説明図である。図10では、横軸に画素群階調値を取り、縦軸の
多値化結果値を取った折れ線グラフを用いて、画素群階調値に対する多値化結果値を表示
している。尚、図中では、異なる分類番号N1〜N5を有する5つの画素群についての多
値化結果を示しているが、これら画素群の折れ線が重なって判別し難くなることを避ける
ために、多値化結果値の原点位置を縦軸方向に少しずつ、ずらして表示している。
FIG. 10 is an explanatory diagram conceptually showing a state in which pixel group gradation values are converted into different multi-value quantization result values in accordance with pixel group classification numbers. In FIG. 10, the multi-value quantization result value for the pixel group tone value is displayed using a line graph in which the horizontal axis represents the pixel group tone value and the vertical axis represents the multi-value quantization result value. In the figure, the multi-value conversion result is shown for five pixel groups having different classification numbers N1 to N5. The origin position of the conversion result value is displayed while being shifted little by little in the vertical axis direction.

一例として、図中に太い実線で示した分類番号N1番の画素群について説明すると、画
素群階調値が0〜4の範囲では、多値化結果値は「0」であるが、画素群階調値が5〜2
0の範囲では多値化結果値は「1」に増加する。次いで、画素群階調値が21〜42の範
囲では多値化結果値は「2」に増加し、画素群階調値が43〜69の範囲では多値化結果
値は「3」に増加する。このように、画素群階調値が増加するに従って、多値化結果値も
段階的に増加していき、最終的には、多値化結果値は「15」まで増加する。すなわち、
分類番号N1番の画素群については、階調値0〜255の範囲を取り得る画素群階調値を
、階調値0〜15までの16段階に多値化(言わば、16値化)していることになる。
As an example, a pixel group with classification number N1 indicated by a thick solid line in the figure will be described. In the range where the pixel group gradation value is 0 to 4, the multi-value quantization result value is “0”. The gradation value is 5-2
In the range of 0, the multi-value quantization result value increases to “1”. Next, the multi-value quantization result value increases to “2” when the pixel group gradation value ranges from 21 to 42, and the multi-value quantization result value increases to “3” when the pixel group gradation value ranges from 43 to 69. To do. Thus, as the pixel group gradation value increases, the multi-value quantization result value also increases stepwise, and finally the multi-value quantization result value increases to “15”. That is,
For the pixel group of classification number N1, pixel group gradation values that can take a range of gradation values 0 to 255 are multi-valued (in other words, 16-valued) in 16 levels from gradation values 0 to 15. Will be.

同様に、図中で太い破線で示した分類番号N2番の画素群や、太い一点鎖線で示した分
類番号N3番の画素群については、階調値0〜255の範囲を取り得る画素群階調値を、
階調値0〜17までの18段階に多値化(言わば、18値化)している。更に、細い実線
で示した分類番号N4番の画素群および細い一点鎖線で示した分類番号N5番の画素群に
ついては、画素群階調値を階調値0〜20までの21段階に多値化(言わば、21値化)
していることになる。このように、図7に示す第1のドットデータ生成処理においては、
画素群毎の多値化の段数(多値化結果値の取り得る状態数)が同じではなく、画素群の分
類番号に応じて固有の段数で多値化されている。この結果、同じ画素群階調値を多値化し
た場合でも、画素群の分類番号が異なり、そのため多値化の段数が異なっていれば、異な
る結果値に多値化されることになる。
Similarly, for the pixel group with the classification number N2 indicated by the thick broken line in the drawing and the pixel group with the classification number N3 indicated by the thick dashed-dotted line, the pixel group floor that can take the range of the gradation value 0 to 255. The key value
Multi-valued (in other words, 18-valued) is performed in 18 levels from gradation values 0 to 17. Further, for the pixel group of classification number N4 indicated by a thin solid line and the pixel group of classification number N5 indicated by a thin one-dot chain line, the pixel group gradation value is multi-valued in 21 steps from gradation values 0 to 20. (In other words, 21 values)
Will be. Thus, in the first dot data generation process shown in FIG.
The number of stages of multi-value conversion for each pixel group (the number of states that can be taken as multi-value conversion result values) is not the same, and multi-value conversion is performed with a specific number of stages according to the pixel group classification number. As a result, even when the same pixel group gradation value is multi-valued, if the pixel group classification number is different, and therefore the number of multi-value levels is different, the multi-value value is different.

また、多値化段数が同じであったとしても、同じ画素群階調値が同じ多値化結果値に変
換されるわけではない。例えば、図10に示した分類番号N2の画素群と、分類番号N3
の画素群とを比較すれば明らかなように、これら画素群についての多値化段数はいずれも
18段であるが、多値化結果値が切り換わる画素群階調値は多くの場合、一致していない
。これは、分類番号N2と分類番号N3とで、図9に示した閾値テーブルに設定されてい
る閾値の組に異なった閾値が設定されていることによる。分類番号N4の画素群と分類番
号N5の画素群とについても同様に、これら画素群の多値化段数はいずれも21段である
が、多値化結果値が切り換わる画素群階調値は一致していないことが多い。このことから
、例え画素群の多値化段数が同じでも、分類番号が異なれば、異なる多値化結果値が得ら
れることになる。
Further, even if the number of multi-value levels is the same, the same pixel group gradation value is not converted to the same multi-value value. For example, a pixel group with classification number N2 shown in FIG.
As is clear from comparison with these pixel groups, the number of multi-value levels for these pixel groups is 18 in all cases. However, in many cases, the pixel group tone value to which the multi-value result value is switched is one. I have not done it. This is because different threshold values are set for the threshold value groups set in the threshold value table shown in FIG. 9 for the classification number N2 and the classification number N3. Similarly, for the pixel group of classification number N4 and the pixel group of classification number N5, the number of multi-value levels of these pixel groups is 21, but the pixel group tone value at which the multi-value quantization result value is switched is Often does not match. For this reason, even if the number of multi-value levels in the pixel group is the same, different multi-value values are obtained if the classification numbers are different.

以上に説明したように、図9に示した閾値テーブルには、画素群の分類番号毎に固有の
閾値の組が設定されている。図7に示した第1のドットデータ生成処理のステップS20
8では、画素群毎に決定しておいた画素群階調値および分類番号から、図9に示した閾値
テーブルを参照することにより、画素群の画素群階調値を多値化結果値に変換する処理を
行う。尚、図9に示す閾値テーブルの設定方法については、後ほど詳しく説明する。
As described above, in the threshold value table shown in FIG. 9, a unique threshold set is set for each pixel group classification number. Step S20 of the first dot data generation process shown in FIG.
8, the pixel group gradation value of the pixel group is converted into a multi-value quantization result value by referring to the threshold value table shown in FIG. 9 from the pixel group gradation value and the classification number determined for each pixel group. Perform the conversion process. The threshold table setting method shown in FIG. 9 will be described in detail later.

次いで、画素群毎に得られた多値化結果値を個数データに変換する(図7のステップS
210)。個数データとは、画素群に形成されるドット個数を表すデータである。前述し
たように、カラープリンタ200は、大ドット、中ドット、小ドットの3種類のドットを
形成可能であるから、個数データは、これら各種ドットが画素群内に形成される個数を示
すデータとなる。多値化結果値から個数データへの変換は、予め設定しておいた変換テー
ブルを参照することにより、極めて迅速に行うことができる。
Next, the multi-value quantization result value obtained for each pixel group is converted into number data (step S in FIG. 7).
210). The number data is data representing the number of dots formed in the pixel group. As described above, since the color printer 200 can form three types of dots, large dots, medium dots, and small dots, the number data is data indicating the number of these various dots formed in the pixel group. Become. The conversion from the multi-value quantization result value to the number data can be performed very quickly by referring to a conversion table set in advance.

図11は、画素群の多値化結果値を個数データに変換する際に参照される変換テーブル
を概念的に示した説明図である。図示されているように、図示されているように、変換テ
ーブルには、多値化結果値に対応する個数データが、分類番号毎に設定されている。一例
として、分類番号1番の画素群について説明すると、多値化結果値0に対しては、個数デ
ータ「0」が設定されている。個数データ「0」は、大ドット、中ドット、小ドットの形
成個数がいずれも0個であることを表したデータである。また、多値化結果値1に対して
は個数データ「1」が設定されている。個数データ「1」は、大ドット、中ドットの形成
個数は0個であり、小ドットの形成個数が1個であることを表すデータである。更に、多
値化結果値15に対しては個数データ「164」が設定されている。個数データ「164
」は、大ドットを8個形成し、中ドットおよび小ドットは形成しないことを表すデータで
ある。尚、分類番号1番の画素群については、「16」より大きな多値化結果値に対して
は個数データが設定されていない。これは、分類番号1番の画素群は多値化段数が16段
であり、多値化結果値は0〜15の値しか取り得ないことに対応するものである。従って
、分類番号2番の画素群のように多値化段数が18段の画素群については、0〜17の多
値化結果値に対してのみ個数データが設定され、「18」より大きな多値化結果値に対し
ては、個数データが設定されることはない。尚、図12には、個数データと、その個数デ
ータが表す大ドット・中ドット・小ドットの個数の組合せとの対応関係が示されている。
また、図11に示すような変換テーブルを設定する方法については、別図を用いて後ほど
詳しく説明する。
FIG. 11 is an explanatory diagram conceptually showing a conversion table that is referred to when converting a multi-value quantization result value of a pixel group into number data. As shown in the drawing, as shown in the drawing, in the conversion table, number data corresponding to the multi-value quantization result value is set for each classification number. As an example, a pixel group with classification number 1 will be described. For multi-value quantization result value 0, number data “0” is set. The number data “0” is data representing that the number of large dots, medium dots, and small dots formed is zero. In addition, for multi-value quantization result value 1, number data “1” is set. The number data “1” is data indicating that the number of large dots and medium dots formed is zero and the number of small dots formed is one. Further, the number data “164” is set for the multi-value quantization result value 15. Number data “164”
"Is data representing that eight large dots are formed, and medium and small dots are not formed. For the pixel group with classification number 1, number data is not set for multi-value quantization result values larger than “16”. This corresponds to the fact that the pixel group of classification number 1 has 16 multi-value levels, and the multi-value result value can only take values from 0 to 15. Therefore, for a pixel group with 18 multi-level levels, such as the pixel group of classification number 2, number data is set only for the multi-level result values of 0 to 17, and a number larger than “18” is set. The number data is not set for the valuation result value. FIG. 12 shows the correspondence between the number data and the combination of the number of large dots, medium dots, and small dots represented by the number data.
A method for setting the conversion table as shown in FIG. 11 will be described in detail later with reference to another drawing.

このように、変換テーブルには、画素群内に形成される各種ドットの個数を示すデータ
が、画素群の分類番号と画素群階調値との組合せ毎に設定されている。従って、変換テー
ブルを参照すれば、画素群の多値化結果値を速やかに個数データに変換することができる
。図7に示した第1のドットデータ生成処理のステップS210では、このようにして画
素群毎の多値化結果値を個数データに変換する。
Thus, in the conversion table, data indicating the number of various dots formed in the pixel group is set for each combination of the pixel group classification number and the pixel group gradation value. Therefore, referring to the conversion table, the multi-value quantization result value of the pixel group can be quickly converted into the number data. In step S210 of the first dot data generation process shown in FIG. 7, the multi-value quantization result value for each pixel group is thus converted into number data.

尚、個数データは、画素群内に形成されるドットの個数を、何らかの方法で特定するこ
とができれば、どのような形態のデータとすることもできる。例えば、画素群内に形成さ
れる大ドットの個数をK個、中ドットの個数をL個、小ドットの個数をM個として、「K
LM」という数値の並びを個数データとして用いることも可能である。もっとも、このよ
うな方法ではなく、上述したように、0〜164までの数値と、各種ドットについての形
成個数の組合せとを対応付けておき、この数値によって各種ドットの形成個数を表した方
が、個数データのデータ量を小さくすることが可能となる。以下、この点について説明す
る。
The number data can be any form of data as long as the number of dots formed in the pixel group can be specified by some method. For example, if the number of large dots formed in a pixel group is K, the number of medium dots is L, and the number of small dots is M, “K
It is also possible to use a sequence of numerical values “LM” as the number data. However, instead of such a method, as described above, it is better to associate a numerical value from 0 to 164 with a combination of the number of formed dots for various dots, and to express the number of formed various dots by this numerical value. Therefore, the data amount of the number data can be reduced. Hereinafter, this point will be described.

先ず、ここでは1つの画素群には8つの画素が含まれているとしているから、大ドット
の形成個数(K個)、中ドットの形成個数(L個)、小ドットの形成個数(M個)は、そ
れぞれ0〜8個の値を取り得る。従って、各種ドットの個数をそのまま並べて、KLMと
表現しようとすると、大ドットの個数、中ドットの個数、小ドットの個数を表すためにそ
れぞれ4ビットずつ必要であり、結局、画素群1つあたりの個数データは、12ビットの
データとなる。
First, since one pixel group includes 8 pixels, the number of large dots (K), the number of medium dots (L), the number of small dots (M) ) Can take from 0 to 8 values. Therefore, if the numbers of various dots are arranged as they are and expressed as KLM, 4 bits are required to represent the number of large dots, the number of medium dots, and the number of small dots, respectively. The number data is 12-bit data.

一方、1つの画素群は8つの画素から構成されているから、画素群に形成され得るドッ
ト個数の合計は、最大でも8個である。例えば、大ドットが4個、中ドットが3個、小ド
ットが2個といったドット個数の組合せは、ドット個数の合計が9個となって8個を越え
てしまうので現実には発生し得ない。こうした点に着目すれば、現実に発生し得るドット
個数の組合せは、それほど多くの種類はないと考えられる。実際に算出すれば、次のよう
になる。画素群には8つの画素が含まれており、各画素についてみれば「大ドットを形成
する」、「中ドットを形成する」、「小ドットを形成する」、「ドットを形成しない」の
4つの状態を取り得る。従って、画素群に形成し得るドット個数の組合せは、これら4つ
の状態を、重複を許して8回選択した時の組合せの数に等しくなるから、
(=4+8−1
によって求められ、結局、最大でも165通りの組合せしか出現しないことになる。ここ
で、は、n個の物の中から重複を許してr回選択するときの重複組合せ数を求める
演算子である。また、は、n個の物の中から重複を許さずにr回選択するときの組
合せ数を求める演算子である。165通りの組合せであれば、8ビットあれば表現するこ
とができる。従って、現実に発生し得るドット個数の組合せにコード番号を設定しておけ
ば、画素群に形成すべきドット個数の組合せを8ビットのデータで表すことができる。結
局、各種ドットの形成個数を、図12に示すような対応関係によって表してやれば、ドッ
トの種類毎に形成個数を並べて表すよりも、個数データのデータ量を低減することが可能
となり、延いては分類番号と多値化結果値との組合せ毎に個数データが設定された変換テ
ーブルのデータ量を減少させることが可能となるのである。
On the other hand, since one pixel group is composed of eight pixels, the total number of dots that can be formed in the pixel group is eight at most. For example, a combination of the number of dots such as four large dots, three medium dots, and two small dots cannot be generated in reality because the total number of dots exceeds nine and exceeds eight. . Focusing on these points, it is considered that there are not so many kinds of combinations of the number of dots that can actually occur. The actual calculation is as follows. The pixel group includes eight pixels. For each pixel, “form a large dot”, “form a medium dot”, “form a small dot”, “do not form a dot” 4 It can take two states. Therefore, the combination of the number of dots that can be formed in the pixel group is equal to the number of combinations when these four states are selected eight times with allowance for overlap.
4 H 8 (= 4 + 8-1 C 8 )
As a result, only 165 combinations at most appear. Here, n H r is an operator for obtaining the number of overlapping combinations when r times are selected from n objects by allowing duplication. N C r is an operator for obtaining the number of combinations when selecting r times from n objects without allowing duplication. If there are 165 combinations, 8 bits can be expressed. Therefore, if a code number is set for a combination of the number of dots that can actually occur, the combination of the number of dots to be formed in the pixel group can be represented by 8-bit data. In the end, if the number of dots formed is represented by the correspondence as shown in FIG. 12, it is possible to reduce the data amount of the number data rather than arranging the number of dots formed for each dot type. This makes it possible to reduce the data amount of the conversion table in which the number data is set for each combination of the classification number and the multi-value quantization result value.

以上のようにして、画素群の多値化結果値を個数データに変換したら(図7のステップ
S210)、個数データを一旦、中間データに変換する(ステップS212)。すなわち
、画素群毎に得られた個数データをドットデータに変換する準備として、個数データを、
より変換の容易なデータ形式に変更しておく処理を行うのである。
When the multi-value quantization result value of the pixel group is converted into the number data as described above (step S210 in FIG. 7), the number data is once converted into intermediate data (step S212). That is, as preparation for converting the number data obtained for each pixel group into dot data,
The process of changing to a data format that is easier to convert is performed.

個数データから中間データへの変換は、予め設定しておいた対応表を参照することで速
やかに実行することができる。図13は、個数データと中間データとを対応付けた対応表
を示す説明図である。図示されているように変換表には、それぞれの個数データに、対応
する中間データが設定されており、それぞれの中間データは16ビット長のデータとなっ
ている。ここで、中間データのデータ長が16ビットとなっているのは、画素群内に含ま
れる画素数が8個であり、また、形成可能なドットの種類は大中小の3種類であるから画
素毎に2ビットあればドット形成の有無を表現可能であることによる。すなわち、中間デ
ータは、2ビットずつを1組として、画素数に相当する8組のデータを用いて、ドットの
形成有無を画素毎に表したデータとなっている。図13を参照しながら具体的に説明する
The conversion from the number data to the intermediate data can be quickly executed by referring to a preset correspondence table. FIG. 13 is an explanatory diagram showing a correspondence table in which the number data and the intermediate data are associated with each other. As shown in the figure, in the conversion table, corresponding intermediate data is set for each number data, and each intermediate data is 16-bit data. Here, the reason why the data length of the intermediate data is 16 bits is that the number of pixels included in the pixel group is 8, and the types of dots that can be formed are large, medium, and small. This is because the presence or absence of dot formation can be expressed with 2 bits for each. That is, the intermediate data is data that represents the presence or absence of dot formation for each pixel, using 8 sets of data corresponding to the number of pixels, with 2 bits each as one set. This will be specifically described with reference to FIG.

例えば、個数データ「1」は、大ドット0個、中ドット0個、小ドット1個の組合せを
示している。尚、参考として、図13の右側には、それぞれの個数データが示すドット個
数の組合せが示されている。今、小ドットを表す2ビットデータを「01」とすれば、個
数データ「1」に対応する16ビットデータは、「01」が1組だけ含まれており、他の
7組の2ビットデータは「00」であるようなデータとなる。尚、2ビットデータ「00
」はドットを形成しないことを表すデータである。
For example, the number data “1” indicates a combination of 0 large dots, 0 medium dots, and 1 small dot. For reference, on the right side of FIG. 13, combinations of dot numbers indicated by the respective number data are shown. If the 2-bit data representing a small dot is “01”, the 16-bit data corresponding to the number data “1” includes only one set of “01”, and the other 7 sets of 2-bit data. Becomes data such as “00”. The 2-bit data “00”
"Is data indicating that dots are not formed.

同様に、個数データ「163」は、大ドット7個、中ドット1個、小ドット0個の組合
せを示している。今、大ドットを表す2ビットデータを「11」として、中ドットを表す
2ビットデータを「10」とすれば、個数データ「163」に対応する16ビットデータ
は、「11」の2ビットデータが7組含まれており、「10」の2ビットデータが1組含
まれたデータとなる。
Similarly, the number data “163” indicates a combination of seven large dots, one medium dot, and zero small dots. If the 2-bit data representing the large dot is “11” and the 2-bit data representing the medium dot is “10”, the 16-bit data corresponding to the number data “163” is the 2-bit data “11”. Are included, and the data includes one set of 2-bit data “10”.

尚、これら2ビットデータは、大ドット、中ドット、小ドットの順番で、右詰めで設定
されている。例えば、ドット個数の組合せが、大ドット1個、中ドット2個、小ドット3
個であったとすると、8組の2ビットデータの中で、大ドットを表す2ビットデータ「1
1」は右端に1組だけ設定され、その左隣に続けて、中ドットを表す2ビットデータ「1
0」が2組設定され、更にその左隣に続けて、小ドットを表す2ビットデータ「01」が
3組設定され、残った2組には、ドットを形成しないことを表す2ビットデータ「00」
が設定されることになる。もっとも、これら2ビットデータを左詰めで設定することとし
ても良い。すなわち、大ドット、中ドット、小ドットの順番で左から順番に設定しても良
い。
These 2-bit data are set right-justified in the order of large dots, medium dots, and small dots. For example, the combination of the number of dots is one large dot, two medium dots, and three small dots.
If there are two pieces of data, 8 bits of 2-bit data, 2 bits of data representing a large dot “1”
“1” is set only at the right end, and next to the left, two-bit data “1” representing a medium dot is set.
Two sets of “0” are set, and three sets of 2-bit data “01” representing small dots are set to the left of the two sets, and the remaining two sets of 2-bit data “0” indicating that dots are not formed. 00 "
Will be set. However, these 2-bit data may be set left justified. That is, the order may be set from the left in the order of large dots, medium dots, and small dots.

図7に示した第1のドットデータ生成処理のステップS212では、図13に示す変換
表を参照することにより、画素群毎に得られた個数データを中間データに変換する処理を
行う。画素群に形成される各種ドットの個数をこのような形式で表現しておけば、後述す
るように画素との対応が取り易くなるため、ドット形成有無を簡便に決定することが可能
となる。
In step S212 of the first dot data generation process shown in FIG. 7, a process for converting the number data obtained for each pixel group into intermediate data by referring to the conversion table shown in FIG. If the number of various dots formed in the pixel group is expressed in such a format, it becomes easy to correspond to the pixels as will be described later, and therefore it is possible to easily determine whether or not dots are formed.

尚、本実施例では、図11に示した変換テーブルを参照することにより、画素群毎に得
られた多値化結果値を個数データに一旦変換した後、個数データを中間データに変換して
いる。しかし、図13に示すように、個数データと中間データとは一対一で対応する関係
にあり、個数データが決まれば直ちに中間データを決定することができることから、図1
1に示す変換テーブルで、個数データの代わりに中間データを設定しておき、変換テーブ
ルを参照することで直ちに多値化結果値から中間データを求めることとしても良い。こう
すれば、個数データを中間データに変換する手間が省けるので、迅速にドットデータを生
成することができる。もっとも、中間データは個数データよりもデータ長が長いので、変
換テーブルに個数データの代わりに中間データを設定すると、変換テーブルを記憶してお
くためのデータ量が増加してしまう。すなわち、本実施例では、個数データは1バイトの
データ長であるのに対し、中間データは2バイトのデータであるから、個数データを設定
した変換テーブルは、中間データを設定した変換テーブルの半分のメモリ容量で記憶して
おくことが可能となる。
In this embodiment, by referring to the conversion table shown in FIG. 11, the multi-value quantization result value obtained for each pixel group is once converted into number data, and then the number data is converted into intermediate data. Yes. However, as shown in FIG. 13, there is a one-to-one correspondence between the number data and the intermediate data, and the intermediate data can be determined immediately after the number data is determined.
In the conversion table shown in FIG. 1, intermediate data may be set instead of the number data, and the intermediate data may be immediately obtained from the multi-value quantization result value by referring to the conversion table. In this way, the trouble of converting the number data into intermediate data can be saved, so that dot data can be generated quickly. However, since the intermediate data has a data length longer than that of the number data, if intermediate data is set in the conversion table instead of the number data, the amount of data for storing the conversion table increases. That is, in this embodiment, the number data has a data length of 1 byte, whereas the intermediate data is data of 2 bytes. Therefore, the conversion table in which the number data is set is half of the conversion table in which the intermediate data is set. It is possible to store in the memory capacity.

以上のようにして中間データを取得したら、画素群に対応する順序値マトリックスを読
み込んで、画素群内の各画素についてのドット形成有無を決定する処理を行う(ステップ
S214)。ここで、順序値マトリックスとは、画素群内の各画素について、ドットが形
成される順番を設定したマトリックスである。
When the intermediate data is acquired as described above, the order value matrix corresponding to the pixel group is read, and processing for determining whether or not to form dots for each pixel in the pixel group is performed (step S214). 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.

図14は、順序値マトリックスを例示した説明図である。図示されているように、順序
値マトリックスも画素群の分類番号毎に異なるマトリックスが設定されている。一例とし
て、図14(a)に示した分類番号1番の順序値マトリックスについて説明する。分類番
号1番の画素群は、画素群を構成する8つの画素の中で、左上隅にある画素が最もドット
の形成され易い画素として設定されている。順序値マトリックスの左上隅の画素に数値「
1」が設定されているのは、この画素が1番目にドットが形成される画素であることを表
したものである。尚、順序値マトリックスに設定されているこのような順番を表す数値を
、順序値と呼ぶものとする。また、画素群の右下隅の画素に順序値「2」が設定されてい
るのは、この画素が画素群中で2番目にドットが形成され易い(従って、この画素群内で
は2番目にドットが形成される)ことを表している。このように、順序値マトリックスに
は、画素群に含まれる8つの画素について、ドットが形成される順番を示す順序値が設定
されている。
FIG. 14 is an explanatory diagram illustrating an order value matrix. As shown in the figure, the order value matrix is also set to a different matrix for each pixel group classification number. As an example, the order value matrix of classification number 1 shown in FIG. In the pixel group with classification number 1, the pixel at the upper left corner is set as the pixel in which the dot is most easily formed among the eight pixels constituting the pixel group. The numerical value “
“1” is set to indicate that this pixel is a pixel in which a dot is formed first. A numerical value representing such an order set in the order value matrix is referred to as an order value. In addition, the order value “2” is set for the pixel in the lower right corner of the pixel group. This is because the second dot in the pixel group is likely to be formed in the pixel group (therefore, the second dot in the pixel group is formed). Is formed). As described above, in the order value matrix, order values indicating the order in which dots are formed are set for the eight pixels included in the pixel group.

こうした順序値マトリックスは、画素群の分類番号によって異なったマトリックスとな
っている。例えば、図14(b)に示した分類番号2番の順序値マトリックスでは、1番
目にドットが形成される画素(順序値「1」の画素)は、下段の左から2番目の画素であ
り、2番目にドットが形成される画素(順序値「2」の画素)は、右下隅の画素である。
図14(c)に示した分類番号3番の順序値マトリックスでは、1番目にドットが形成さ
れる画素(順序値「1」の画素)は、上段の右から2番目の画素であり、2番目にドット
が形成される画素(順序値「2」の画素)は、左下隅の画素である。尚、画素群の分類番
号毎に順序値マトリックスを設定する方法については、別図を用いて詳しく説明する。
Such an order value matrix differs depending on the pixel group classification number. For example, in the order value matrix of classification number 2 shown in FIG. 14B, the pixel in which the first dot is formed (the pixel with the order value “1”) is the second pixel from the left in the lower row. The pixel on which the second dot is formed (the pixel having the order value “2”) is the pixel in the lower right corner.
In the order value matrix of classification number 3 shown in FIG. 14C, the pixel in which the first dot is formed (the pixel with the order value “1”) is the second pixel from the right on the upper stage, and 2 The pixel in which the dot is formed in the second order (the pixel having the order value “2”) is the pixel in the lower left corner. A method for setting the order value matrix for each pixel group classification number will be described in detail with reference to another drawing.

カラープリンタ200の制御回路260に搭載されたROMには、図14に例示したよ
うな順序値マトリックスが画素群の分類番号毎に予め記憶されている。そして、画素群の
中間データから各画素についてのドット形成有無を決定するに際しては、画素群の分類番
号に対応する順序値マトリックスを読み出して、次のような処理を行う。
In the ROM mounted on the control circuit 260 of the color printer 200, an order value matrix as illustrated in FIG. 14 is stored in advance for each pixel group classification number. When determining whether or not to form dots for each pixel from the intermediate data of the pixel group, the order value matrix corresponding to the pixel group classification number is read out and the following processing is performed.

図15は、中間データの中から順序値に対応する箇所のデータを読み出すことにより、
ドット形成の有無を決定している様子を示した説明図である。図15(a)は、ある画素
群についての個数データを変換して得られた中間データを例示したものである。前述した
ように中間データは、16ビット長のデータであり、2ビットずつ8組のデータから構成
されている。また、図15(a)に示した中間データには、大ドットを表す2ビットデー
タ「11」が1組、中ドットを表す2ビットデータ「10」が2組、小ドットを表す2ビ
ットデータ「01」が3組、ドットを形成しないことを表す2ビットデータ「00」が2
組含まれており、これら2ビットデータが、大ドット、中ドット、小ドットの順序で右詰
めに設定されている。
FIG. 15 shows that by reading the data corresponding to the sequence value from the intermediate data,
It is explanatory drawing which showed a mode that the presence or absence of dot formation was determined. FIG. 15A exemplifies intermediate data obtained by converting the number data for a certain pixel group. As described above, the intermediate data is 16-bit data, and is composed of 8 sets of 2 bits each. The intermediate data shown in FIG. 15A includes two sets of 2-bit data “11” representing a large dot, two sets of 2-bit data “10” representing a medium dot, and two bits representing a small dot. “01” is 3 sets, and 2-bit data “00” indicating that a dot is not formed is 2
A set is included, and these 2-bit data are set right-justified in the order of large dots, medium dots, and small dots.

今、画素群の分類番号が1番であったとする。分類番号1番の順序値マトリックスは、
図14(a)に示されている。この画素群の中からドット形成有無を決定しようとする画
素を1つ選択する。ここでは、画素群の左上隅の画素を選択したものとする。順序値マト
リックスによれば、この画素の順序値は「1」である。そこで、図15(a)に示す中間
データの中で、一番右端に設定されている2ビットのデータを読み出すことにより、この
画素に形成すべきドットの種類を決定することができる。図15(a)に示した例では、
一番右端に設定されている2ビットのデータは「11」であるから、この画素には大ドッ
トが形成されることになる。
Assume that the pixel group classification number is number 1. The order value matrix of classification number 1 is
It is shown in FIG. From this pixel group, one pixel for determining whether or not to form dots is selected. Here, it is assumed that the pixel in the upper left corner of the pixel group is selected. According to the order value matrix, the order value of this pixel is “1”. Therefore, by reading out the 2-bit data set at the right end in the intermediate data shown in FIG. 15A, the type of dot to be formed on this pixel can be determined. In the example shown in FIG.
Since the 2-bit data set at the right end is “11”, a large dot is formed in this pixel.

次に、その右隣の画素(上段の左から2番目の画素)については、図14(a)の順序
値マトリックスには順序値「6」が設定されているから、図15(a)の中間データの中
で、右から6組目に設定されている2ビットデータを読み出せば、順序値6の画素に形成
すべきドットの種類を決定することができる。図15(b)には、中間データの右端から
6組目にある2ビットデータを読み出している様子が、概念的に示されている。図示した
例では、読み出した2ビットデータは「01」であるから、この画素には小ドットが形成
されることになる。
Next, the order value “6” is set in the order value matrix of FIG. 14A for the pixel on the right (second pixel from the left in the upper stage), and therefore the order value “6” in FIG. 15A is set. If the 2-bit data set in the sixth set from the right is read out from the intermediate data, the type of dot to be formed on the pixel having the order value 6 can be determined. FIG. 15B conceptually shows a state in which 2-bit data in the sixth set from the right end of the intermediate data is read. In the illustrated example, since the read 2-bit data is “01”, a small dot is formed in this pixel.

尚、以上では、中間データの中で2ビットデータを読み出す箇所を順序値に応じて変更
するものとして説明した。しかし、中間データの中で読み出す箇所を変えるのではなく、
データを読み出す箇所は固定しておき、中間データを順序値に相当する組数だけシフトさ
せることとしても良い。この様にしても、ドット形成の有無を決定することができる。図
15(c)は、中間データをシフトさせることによって、ドット形成有無を決定している
様子を概念的に示した説明図である。図示した例では、中間データの右端にある2ビット
データを読み出すこととして、中間データを画素の順序値に応じた組数(具体的には順序
値から1だけ少ない組数)だけ右方向にシフトさせている。図15(b)と図15(c)
とを比較すれば明らかなように、どちらの操作を行った場合でも、結局は、中間データの
中の同じ箇所に設定されている2ビットデータを読み出していることになる。データを所
定のビット数だけシフトさせる処理は、比較的高速に実施可能であることから、この様に
して中間データをシフトさせれば、順序値に応じた箇所の2ビットデータを迅速に読み出
して、着目している画素についてのドット形成の有無を迅速に決定することができる。
In the above description, it is assumed that the location where 2-bit data is read in the intermediate data is changed according to the order value. However, instead of changing the location to be read in the intermediate data,
The location where data is read may be fixed, and the intermediate data may be shifted by the number of pairs corresponding to the order value. Even in this way, it is possible to determine the presence or absence of dot formation. FIG. 15C is an explanatory diagram conceptually showing a state in which the presence / absence of dot formation is determined by shifting intermediate data. In the example shown, the 2-bit data at the right end of the intermediate data is read out, and the intermediate data is shifted rightward by the number of sets corresponding to the order value of the pixels (specifically, the number of sets less by 1 from the order value). I am letting. FIG. 15 (b) and FIG. 15 (c)
As is clear from comparison between the two, the two-bit data set at the same location in the intermediate data is eventually read out regardless of which operation is performed. Since the process of shifting the data by a predetermined number of bits can be performed at a relatively high speed, if the intermediate data is shifted in this way, the 2-bit data at the location corresponding to the sequence value can be read quickly. The presence or absence of dot formation for the pixel of interest can be quickly determined.

図16は、図14に示したそれぞれの順序値マトリックスに、図15(a)の中間デー
タを適用して、画素群内の各画素についてドットの形成有無を決定した様子を示した説明
図である。上述したように、画素群内の各画素についてドットが形成されるか否かは、画
素群について得られた中間データと、画素群の分類番号に対応付けて記憶されている順序
値マトリックスとによって決定されるから、たとえ中間データが同じ値であったとしても
、画素群の分類番号が異なれば、その画素群内に形成されるドットの配置は異なった配置
が得られることになる。
FIG. 16 is an explanatory diagram showing how the intermediate data of FIG. 15A is applied to the respective order value matrices shown in FIG. 14 to determine whether or not dots are formed for each pixel in the pixel group. is there. As described above, whether or not a dot is formed for each pixel in the pixel group is determined by the intermediate data obtained for the pixel group and the order value matrix stored in association with the pixel group classification number. Therefore, even if the intermediate data has the same value, if the pixel group classification numbers are different, different arrangements of dots are formed in the pixel group.

以上に説明したように、個数データを変換した中間データと順序値マトリックスとを参
照すれば、画素群内の各画素について何れのドットが形成されるか、あるいは何れのドッ
トも形成されないかを、簡単な操作によって決定することができる。図7に示した第1の
ドットデータ生成処理のステップS214では、このようにして、画素群内の各画素につ
いてドット形成の有無を決定する処理を行う。
As described above, referring to the intermediate data obtained by converting the number data and the order value matrix, which dot is formed for each pixel in the pixel group, or which dot is not formed, It can be determined by a simple operation. In step S214 of the first dot data generation process shown in FIG. 7, the process for determining whether or not to form dots is performed for each pixel in the pixel group in this way.

こうして画素群内の全ての画素についてドット形成の有無を決定したら、上述した一連
の処理を全ての画素について行ったか否かを判断する(ステップS216)。そして、未
処理の画素が残っている場合は(ステップS216:no)、ステップS204に戻って
新たな画素群を生成した後、続く一連の処理を行うことにより、その画素群内の各画素に
ついてドット形成の有無を決定する。こうした処理を繰り返し、全ての画素について処理
を終了したと判断されたら(ステップS216:yes)、得られたドットデータをイン
ク吐出用ヘッドに出力する(ステップS218)。そして、図7に示した第1のドットデ
ータ生成処理を終了して、図6の画像印刷処理に復帰する。前述したように、画像印刷処
理では、出力されたドットデータに従ってインク滴を吐出することにより、印刷用紙上に
ドットが形成されて画像が印刷される。
When the presence / absence of dot formation is determined for all the pixels in the pixel group in this way, it is determined whether the above-described series of processing has been performed for all the pixels (step S216). If unprocessed pixels remain (step S216: no), the process returns to step S204 to generate a new pixel group, and then a series of processes are performed to obtain each pixel in the pixel group. The presence or absence of dot formation is determined. Such processing is repeated, and if it is determined that the processing has been completed for all pixels (step S216: yes), the obtained dot data is output to the ink ejection head (step S218). Then, the first dot data generation process shown in FIG. 7 is terminated, and the process returns to the image printing process of FIG. As described above, in the image printing process, ink droplets are ejected according to the output dot data, whereby dots are formed on the printing paper and the image is printed.

以上、デジタルカメラ120から画像データを受け取ってドットデータを生成するため
の、第1のドットデータ生成処理の大まかな手順について説明した。次に、こうした手順
の意味するところ、および、こうした手順によって、画像データをドットデータに変換す
ることが可能な理由について説明する。
The general procedure of the first dot data generation process for receiving the image data from the digital camera 120 and generating the dot data has been described above. Next, the meaning of these procedures and the reason why image data can be converted into dot data by such procedures will be described.

D−2.画素群の分類番号 :
上述したように、第1のドットデータ生成処理では、画素群階調値を多値化結果値に変
換する際にも、多値化結果値を個数データに変換する際にも、更に、個数データを変換し
て得られた中間データから画素群内の各画素についてのドット形成有無を決定する際にも
、画素群の分類番号を用いて処理を行っている。そこで、先ず初めに、画素群の分類番号
の意味するところについて詳しく説明する。
D-2. Pixel group classification number:
As described above, in the first dot data generation process, the number of pixels is further increased both when the pixel group gradation value is converted into a multivalued result value and when the multivalued result value is converted into number data. When determining the presence or absence of dot formation for each pixel in the pixel group from the intermediate data obtained by converting the data, processing is performed using the pixel group classification number. First, the meaning of the pixel group classification number will be described in detail.

前述したように、画素群の分類番号とは、簡単に言えば、画素群内の各画素についての
ドット形成の有無をディザマトリックスを用いて判断するときに、ディザマトリックス中
のどの部分が画素群に適用されるかを表す番号である。図17は、ディザマトリックスの
一部を拡大して例示した説明図である。図示したマトリックスには、横方向(主走査方向
)に128画素、縦方向(副走査方向)に64画素、合計8192個の画素に、階調値1
〜255の範囲から万遍なく選択された閾値がランダムに記憶されている。ここで、閾値
の階調値が1〜255の範囲から選択されているのは、本実施例では、画像データが階調
値0〜255の値を取り得る1バイトデータとしていることに加えて、画像データの階調
値と閾値とが等しい場合には、その画素にはドットを形成するものと判断していることに
よるものである。
As described above, the pixel group classification number simply means that when determining the presence or absence of dot formation for each pixel in the pixel group using the dither matrix, which part of the dither matrix is the pixel group. It is a number indicating whether it is applied to. FIG. 17 is an explanatory diagram illustrating an enlarged part of the dither matrix. The illustrated matrix includes 128 pixels in the horizontal direction (main scanning direction), 64 pixels in the vertical direction (sub-scanning direction), a total of 8192 pixels, and a gradation value of 1
A threshold value uniformly selected from the range of ˜255 is randomly stored. 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. This is because, when the gradation value of the image data is equal to the threshold value, it is determined that a dot is formed in the pixel.

すなわち、ドットが形成されるのは画像データの階調値が閾値よりも大きい画素に限る
(すなわち階調値と閾値とが等しい画素にはドットは形成しない)とした場合、画像デー
タの取り得る最大階調値と同じ値の閾値を有する画素には、決してドットが形成されるこ
とはない。こうしたことを避けるため、閾値の取り得る範囲は、画像データの取り得る範
囲から最大階調値を除いた範囲とする。逆に、画像データの階調値と閾値とが等しい画素
にもドットを形成するとした場合、画像データの取り得る最小階調値と同じ値の閾値を有
する画素には、常にドットが形成されてしまうことになる。こうしたことを避けるため、
閾値の取り得る範囲は、画像データの取り得る範囲から最小階調値を除いた範囲とする。
本実施例では、画像データの取り得る階調値が0〜255であり、画像データと閾値が等
しい画素にはドットを形成するとしていることから、閾値の取り得る範囲を1〜255と
しておくのである。尚、ディザマトリックスの大きさは、図17に例示したような大きさ
に限られるものではなく、縦と横の画素数が同じマトリックスも含めて種々の大きさとす
ることができる。
That is, if the dots are formed only in pixels whose gradation value of the image data is larger than the threshold value (that is, dots are not formed in pixels where the gradation value and the threshold value are equal), the image data can be taken. A dot is never formed on a pixel having a threshold value equal to the maximum 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 formed even in pixels where the gradation value of the image data is equal to the threshold value, dots are always formed in the pixels having the same threshold value as the minimum gradation value that the image data can take. It will end up. To avoid this,
The range that can be taken by the threshold is a range obtained by removing 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. 17 and can be various sizes including a matrix having the same number of vertical and horizontal pixels.

図18は、ディザマトリックスを参照しながら、各画素についてのドット形成の有無を
判断している様子を概念的に示した説明図である。ドット形成の有無を判断するに際して
は、先ず、判断しようとする画素を選択し、この画素についての画像データの階調値と、
ディザマトリックス中で対応する位置に記憶されている閾値とを比較する。図18中に示
した細い破線の矢印は、画像データの階調値と、ディザマトリックスに記憶されている閾
値とを、画素毎に比較していることを模式的に表したものである。例えば、画像データの
左上隅の画素については、画像データの階調値は97であり、ディザマトリックスの閾値
は1であるから、この画素にはドットを形成すると判断する。図18中に実線で示した矢
印は、この画素にはドットを形成すると判断して、判断結果をメモリに書き込んでいる様
子を模式的に表したものである。一方、この画素の右隣の画素については、画像データの
階調値は97、ディザマトリックスの閾値は177であり、閾値の方が大きいので、この
画素についてはドットを形成しないと判断する。ディザ法では、こうしてディザマトリッ
クスを参照しながら、画素毎にドットを形成するか否かを判断することで、画像データを
画素毎にドット形成の有無を表すデータに変換する。以上に説明した内容を踏まえて、以
下では、画素群の分類番号の意味する内容と、分類番号を決定する考え方について説明す
る。
FIG. 18 is an explanatory diagram conceptually showing a state in which the presence / absence of dot formation for each pixel is determined with reference to the dither matrix. In determining the presence or absence of dot formation, first, the pixel to be determined is selected, the gradation value of the image data for this pixel,
The threshold value stored in the corresponding position in the dither matrix is compared. The thin broken arrow shown in FIG. 18 schematically represents that the gradation value of the image data and the threshold value stored in the dither matrix are compared 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. 18 schematically represents a state in which it is determined that a dot is to be 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, the image data is converted into data representing the presence / absence of dot formation for each pixel by determining whether or not to form dots for each pixel while referring to the dither matrix. Based on the content described above, the following describes the meaning of the pixel group classification number and the concept of determining the classification number.

図19は、画素群毎の分類番号の意味する内容を示す説明図である。具体的に説明する
ために、ここでは、主走査方向(紙面上では横方向)に4画素、副走査方向(紙面上では
縦方向)に2画素の合計8つの画素を画素群としてまとめることとして、図19(a)に
示すように、画像の一番左上隅の箇所の画素群に着目して説明する。
FIG. 19 is an explanatory diagram showing the content of the classification number for each pixel group. For the sake of specific explanation, here, a total of eight pixels, ie, four pixels in the main scanning direction (horizontal direction on the paper surface) and two pixels in the sub-scanning direction (vertical direction on the paper surface) are grouped as a pixel group. As shown in FIG. 19 (a), description will be made by paying attention to the pixel group at the upper left corner of the image.

前述したように、ディザ法では画素に割り当てられた画像データの階調値と、ディザマ
トリックスの対応する位置に設定されている閾値とを比較して、画素毎にドット形成の有
無を判断している。一方、本実施例では、隣接する所定数の画素を画素群としてまとめて
いるから、ディザマトリックスに設定されている閾値についても、画素群に対応する所定
数ずつまとめてブロックを生成することにする。図19(b)は、図17に示したディザ
マトリックスに設定されている閾値を、横方向に4つ、縦方向に2つずつまとめて複数の
ブロックを生成した様子を示している。図17に示したディザマトリックスは、横方向(
主走査方向)に128画素分、縦方向(副走査方向)に64画素分の合計8192画素分
の閾値が設定されているから、これら閾値を横方向に4つ、縦方向に2つずつブロックに
まとめれば、ディザマトリックスは縦横それぞれ32個ずつ、合計1024個のブロック
に分割されることになる。
As described above, in the dither method, the tone value of the image data assigned to the pixel is compared with the threshold value set at the corresponding position in the dither matrix, and the presence or absence of dot formation is determined for each pixel. Yes. On the other hand, in the present embodiment, since a predetermined number of adjacent pixels are grouped as a pixel group, a predetermined number of blocks corresponding to the pixel group are also generated for the threshold values set in the dither matrix. . FIG. 19B shows a state in which a plurality of blocks are generated by collecting four threshold values set in the dither matrix shown in FIG. 17 and two in the vertical direction. The dither matrix shown in FIG.
Since thresholds for a total of 8192 pixels are set for 128 pixels in the main scanning direction and 64 pixels in the vertical direction (sub-scanning direction), the thresholds are set to 4 in the horizontal direction and 2 in the vertical direction. In summary, the dither matrix is divided into a total of 1024 blocks, 32 each in length and width.

今、図19(b)に示すように、これらブロックに1番〜1024番までの通し番号を
付しておく。そして、画像データにディザマトリックスを適用した時に、各画素群の位置
に適用されるブロックの通し番号によって、画素群を分類してやる。例えば、図19(c
)に示したように、画像の一番左上隅にある画素群には、図19(b)中の通し番号1番
のブロックが適用されるから、この画素群は分類番号1番の画素群に分類される。以上に
説明したように、画素群の分類番号とは、その画素群にはディザマトリックス中のどのブ
ロックが適用されるかを表すものである。
Now, as shown in FIG. 19B, serial numbers from 1 to 1024 are assigned to these blocks. Then, when the dither matrix is applied to the image data, the pixel groups are classified according to the serial numbers of the blocks applied to the positions of the pixel groups. For example, FIG.
As shown in FIG. 19B, since the block having the serial number 1 in FIG. 19B is applied to the pixel group at the upper left corner of the image, this pixel group is classified into the pixel group having the classification number 1. being classified. As described above, the pixel group classification number represents which block in the dither matrix is applied to the pixel group.

次に、図8を用いて前述した方法によって、画素群の分類番号を算出可能な理由につい
て説明する。図20は、画素群の分類番号を算出する方法を示した説明図である。図20
(a)は、画像中で生成された1つの画素群を表している。以下では、この画素群を着目
画素群として、分類番号を算出する方法について説明する。前述したように、着目画素群
の位置は、画素群の左上隅にある画素の画素位置によって表すものとする。図20(a)
では、画素群の位置を示す画素に黒丸を付して表示している。この画素の画素位置が(X
,Y)であったとする。すると、各画素群の大きさは、主走査方向に4画素、副走査方向
に2画素としているから、
X=4n+1、 Y=2m+1
となるようなn、m(ここで、n,mは0以上の正整数)が存在する。換言すれば、着目
画素群の左側にはn個の画素群が並んでおり、着目画素群の上側にはm個の画素群が並ん
でいることになる。
Next, the reason why the pixel group classification number can be calculated by the method described above with reference to FIG. 8 will be described. FIG. 20 is an explanatory diagram showing a method for calculating a pixel group classification number. FIG.
(A) represents one pixel group generated in the image. Hereinafter, a method for calculating a classification number using this pixel group as a target pixel group will be described. As described above, the position of the pixel group of interest is represented by the pixel position of the pixel at the upper left corner of the pixel group. FIG. 20 (a)
In the figure, pixels indicating the position of the pixel group are displayed with black circles. The pixel position of this pixel is (X
, Y). Then, since the size of each pixel group is 4 pixels in the main scanning direction and 2 pixels in the sub scanning direction,
X = 4n + 1, Y = 2m + 1
N and m (where n and m are positive integers greater than or equal to 0) exist. In other words, n pixel groups are arranged on the left side of the pixel group of interest, and m pixel groups are arranged above the pixel group of interest.

ここで、前述したように画素群は、画像データにディザマトリックスを適用したときに
、着目画素群に適用されるブロックの通し番号に基づいて分類することとしているから(
図19参照のこと)、ディザマトリックスを移動させながら画像データに適用する方法に
よって、同じ画素群でも異なった分類番号に分類されることになる。実際には、ディザマ
トリックスを移動させながら画像データに適用する方法はどのような方法でも構わないが
、ここでは説明の便宜から、最も単純な方法すなわちディザマトリックスを横方向に移動
させるものとして説明する。図20(b)には、ディザマトリックスを横方向に少しずつ
移動させながら、繰り返し画像データに適用している様子が概念的に示されている。
Here, as described above, the pixel group is classified based on the serial number of the block applied to the pixel group of interest when the dither matrix is applied to the image data (
According to the method applied to the image data while moving the dither matrix, the same pixel group is classified into different classification numbers (see FIG. 19). In practice, any method may be used for applying the image data while moving the dither matrix, but here, for convenience of explanation, the simplest method, that is, the dither matrix is described as moving horizontally. . FIG. 20B conceptually shows how the dither matrix is repeatedly applied to the image data while being gradually moved in the horizontal direction.

図20(c)は、図20(b)に示すようにディザマトリックスを繰り返して用いなが
ら、図20(a)に示した着目画素群にディザマトリックスを適用している様子を概念的
に表している。このようにディザマトリックスを移動させていくと、ディザマトリックス
中のいずれかのブロックが、着目画素群に適用されることになる。ここでは、着目画素群
には、ディザマトリックス中でM行N列目のブロックが適用されたものとする。すると、
図20(a)に示したように着目画素群の左側にはn個の画素群があり、上側にはm個の
画素群があるから、Nとn、およびMとmとの間には、それぞれ
N=n − int(n/32)×32 + 1
M=m − int(m/32)×32 + 1
の関係が成り立っている。ここで、intは、小数点以下を切り捨てて整数化することを
表す演算子である。すなわち、int(n/32)は、n/32の計算結果に対して小数
点以下の数値を切り捨てることによって得られた整数値を表している。このように、着目
画素群の位置が分かれば、図20(d)に表示した上述の関係式から数値MおよびNを求
めて、ディザマトリックス中でM行N列目にあるブロックのブロック番号を、その着目画
素群の分類番号としてやればよい。もっとも実際には、図8を用いて前述したように、着
目画素群の座標値X,Yを2進数表示したデータから、所定ビットのデータを抜き出すだ
けで、極めて簡単に求めることができる。以下、この理由について説明する。
FIG. 20C conceptually shows how the dither matrix is applied to the pixel group of interest shown in FIG. 20A while repeatedly using the dither matrix as shown in FIG. Yes. When the dither matrix is moved in this way, any block in the dither matrix is applied to the target pixel group. Here, it is assumed that the block of the Mth row and the Nth column in the dither matrix is applied to the pixel group of interest. Then
As shown in FIG. 20 (a), there are n pixel groups on the left side of the target pixel group and m pixel groups on the upper side. , N = n−int (n / 32) × 32 + 1
M = m−int (m / 32) × 32 + 1
The relationship is established. 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. Thus, if the position of the pixel group of interest is known, numerical values M and N are obtained from the above-described relational expression displayed in FIG. The classification number of the pixel group of interest may be used. However, in practice, as described above with reference to FIG. 8, the data can be obtained very simply by extracting predetermined bit data from the data in which the coordinate values X and Y of the pixel group of interest are displayed in binary. Hereinafter, this reason will be described.

図21は、着目画素群の座標値の2進数表示から分類番号を求める方法を示した説明図
である。着目画素群の座標値を(X,Y)として、X,Yが10ビットで表現されている
ものとする。図21(a)は、数値Xを表す10ビットの2進数データを概念的に示して
いる。図では、各ビットを識別するために、最上位ビットから最下位ビットに向かって1
番から10番までの通し番号を付して表示している。
FIG. 21 is an explanatory diagram showing a method for obtaining the classification number from the binary display of the coordinate value of the pixel group of interest. Assume that the coordinate value of the pixel group of interest is (X, Y), and X and Y are expressed by 10 bits. FIG. 21A conceptually shows 10-bit binary data representing the numerical value X. In the figure, a 1 from the most significant bit to the least significant bit is used to identify each bit.
The serial numbers from No. 10 to No. 10 are attached and displayed.

図20を用いて前述したように、着目画素群の左側にある画素群の個数nは、数値Xか
ら1を減算して4で除算すれば得ることができる。ここで、4での除算は、2ビット分だ
け右方向にシフトさせることで実施することができるから、数値Xから1を減算して、得
られた2進数データを右方向に2ビット分だけビットシフトさせればよい。更に、数値X
は任意の値を取るのではなく、4n+1の形式で表現可能な数値しか取り得ないから、1
を減算せずに、単に2進数データを右方向に2ビット分だけビットシフトさせるだけで、
画素群の個数nを得ることができる。図21(b)は、こうして数値Xをビットシフトし
て得られた個数nの2進数データを概念的に表している。
As described above with reference to FIG. 20, the number n of pixel groups on the left side of the pixel group of interest can be obtained by subtracting 1 from the numerical value X and dividing by 4. Here, the division by 4 can be performed by shifting rightward by 2 bits, so 1 is subtracted from the numerical value X, and the binary data obtained is only 2 bits rightward. A bit shift may be performed. Furthermore, the numerical value X
Can take only a numerical value that can be expressed in the form of 4n + 1, not an arbitrary value.
Without subtracting, simply shifting the binary data to the right by 2 bits,
The number n of pixel groups can be obtained. FIG. 21B conceptually represents the number n of binary number data obtained by bit shifting the numerical value X in this way.

次いで、int(n/32)を算出する。すなわち、個数nを32で除算して、小数点
以下の数値を切り捨てる操作を行う。32による除算は、2進数データを右方向に5ビッ
ト分だけビットシフトさせることで実行可能であり、また、データを整数形式で扱ってい
れば、小数点以下の数値は自動的に切り捨てられてしまう。結局、int(n/32)の
2進数データは、個数nの2進数データを、単に右方向に5ビット分だけビットシフトさ
せることで得ることができる。図21(c)は、個数nをビットシフトして得られたin
t(n/32)の2進数データを概念的に表している。
Next, int (n / 32) is calculated. That is, an operation of dividing the number n by 32 and truncating the numerical value after the decimal point is performed. The division by 32 can be executed by shifting the binary data to the right by 5 bits, and if the data is handled in integer format, the numerical value after the decimal point is automatically truncated. . Eventually, binary data of int (n / 32) can be obtained by simply shifting the number n of binary data by 5 bits in the right direction. FIG. 21 (c) shows the in obtained by bit shifting the number n.
The binary data of t (n / 32) is conceptually represented.

こうして得られたint(n/32)に32を乗算する。32による乗算は、2進数デ
ータを5ビット分だけ左方向にビットシフトすることで実施することができる。図21(
d)は、個数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.
d) conceptually represents int (n / 32) × 32 binary data obtained by bit-shifting the number n.

次いで、個数nからint(n/32)×32を減算すれば、前述の数値Nを得ること
ができる。個数nの2進数データ(図21(b)参照)とint(n/32)×32の2
進数データ(図21(d)参照)とを比較すれば明らかなように、これら2進数データは
、上位の5ビットは共通しており、減算する側の数値の下位5ビットは全て「0」となっ
ている。従って、減算される側の数値(個数n)の下位5ビットをそのまま抜き出せば、
求める数値Mを得ることができる。すなわち、図21(b)に示した2進数データに対し
て、図21(f)に示すようなマスクデータを作用させるだけで、極めて簡便に数値Nを
得ることが可能である。より簡便には、図21(a)に示した着目画素群の位置を示す数
値Xの2進数データに対して、図21(g)のようなマスクデータを作用させて、4番目
〜8番目のビットデータを直接抜き出すことによっても、数値Nを得ることができる。
Next, the above-described numerical value N can be obtained by subtracting int (n / 32) × 32 from the number n. Number n binary data (see FIG. 21B) and int (n / 32) × 32 2
As is clear from comparison with the decimal data (see FIG. 21 (d)), these binary data have the same upper 5 bits, and all the lower 5 bits of the numerical value to be subtracted are “0”. It has become. Therefore, if the lower 5 bits of the subtracted numerical value (number n) are extracted as they are,
The desired numerical value M can be obtained. That is, it is possible to obtain the numerical value N very simply by applying the mask data as shown in FIG. 21F to the binary data shown in FIG. More simply, the mask data as shown in FIG. 21G is applied to the binary data of the numerical value X indicating the position of the pixel group of interest shown in FIG. The numerical value N can also be obtained by directly extracting the bit data.

図21では、着目画素群の位置を示す座標値(X,Y)の数値Xから、ディザマトリッ
クス中でのブロック位置を示す数値Nを求める場合について説明したが、全く同様にして
、ブロック位置を示す数値Mも数値Yから求めることができる。結局、着目画素群の位置
が分かれば、2進数データから特定のビット位置のデータを抜き出すだけで、着目画素群
がディザマトリックス中で何行何列目のブロックに対応するかを知ることができ、このブ
ロックの通し番号を算出すれば、着目画素群の分類番号を得ることができる。図8を用い
て前述した分類番号の算出方法は、このようにして導かれた方法である。
In FIG. 21, the case where the numerical value N indicating the block position in the dither matrix is obtained from the numerical value X of the coordinate values (X, Y) indicating the position of the pixel group of interest has been described. The indicated numerical value M can also be obtained from the numerical value Y. After all, if the position of the pixel group of interest is known, it is possible to know how many rows and columns correspond to the pixel group of interest in the dither matrix simply by extracting data at a specific bit position from the binary data. If the serial number of this block is calculated, the classification number of the pixel group of interest can be obtained. The classification number calculation method described above with reference to FIG. 8 is a method derived in this manner.

D−3.閾値テーブルの設定方法 :
図7を用いて前述したように第1のドットデータ生成処理では、こうして分類番号を求
めた後、画素群階調値と分類番号とを組み合わせて閾値テーブルを参照することによって
画素群階調値を多値化結果値に変換している。図9に示したように閾値テーブルには、分
類番号毎に閾値の組が設定されており、閾値の組に設定されている閾値と画素群階調値と
比較することで、画素群階調値が多値化結果値に変換される。すなわち、画素群階調値を
適切に多値化結果値に変換するためには、適切な閾値テーブルを設定しておくことが大切
である。そこで、以下では、図9に示した閾値テーブルを設定する方法について説明する
D-3. Threshold table setting method:
As described above with reference to FIG. 7, in the first dot data generation process, after obtaining the classification number in this way, the pixel group gradation value is obtained by referring to the threshold value table by combining the pixel group gradation value and the classification number. Is converted to a multi-value quantization result value. As shown in FIG. 9, a threshold set is set for each classification number in the threshold table, and the pixel group gradation is compared with the threshold set in the threshold set and the pixel group gradation value. The value is converted into a multi-value quantization result value. That is, it is important to set an appropriate threshold value table in order to appropriately convert the pixel group gradation value into the multi-value quantization result value. In the following, a method for setting the threshold value table shown in FIG. 9 will be described.

本実施例の閾値テーブルは、大きさの異なる複数種類のドットについて画素毎にドット
形成の有無を判断可能なように、前述したディザ法を発展させた手法を基にして設定され
ている。かかる手法の詳細な内容は、特許3292104号に開示されている。閾値テー
ブルの設定方法を説明する前に、その準備として、上記の特許公報に開示された技術の概
要について簡単に説明しておく。
The threshold value table of this embodiment is set based on a technique developed from the dither method described above so that the presence or absence of dot formation can be determined for each pixel for a plurality of types of dots having different sizes. The detailed contents of this method are disclosed in Japanese Patent No. 3292104. Before describing the threshold value table setting method, as a preparation, an outline of the technique disclosed in the above-mentioned patent publication will be briefly described.

図22は、ディザ法を発展させて、画素毎に大ドット・中ドット・小ドットの形成の有
無を決定可能としたハーフトーン処理の流れを示すフローチャートである。ハーフトーン
処理を開始すると、先ず初めに、ドットの形成有無を判断しようとする画素を選択して、
その画素の画像データを取得する(ステップS250)。次いで、取得した画像データを
、大中小の各ドットについての密度データに変換する。ここで、密度データとは、ドット
をどの程度の密度で形成するかを表すデータである。密度データは、階調値が大きくなる
程、ドットが高い密度で形成されることを表している。例えば、密度データの階調値「2
55」は、ドットの形成密度が100%、すなわち全ての画素にドットが形成されること
を表しており、密度データの階調値「0」は、ドットの形成密度が0%、すなわちいずれ
の画素にもドットが形成されないことを表している。こうした密度データへの変換は、ド
ット密度変換テーブルと呼ばれる数表を参照することによって行うことができる。
FIG. 22 is a flowchart showing the flow of halftone processing in which the dither method is developed so that the presence / absence of formation of large dots, medium dots, and small dots can be determined for each pixel. When halftone processing is started, first, select a pixel to be determined whether or not dots are formed,
Image data of the pixel is acquired (step S250). Next, the acquired image data is converted into density data for large, medium, and small dots. Here, the density data is data representing the density at which dots are formed. The density data indicates that dots are formed at a higher density as the gradation value increases. For example, the gradation value “2” of the density data
“55” indicates that the dot formation density is 100%, that is, dots are formed in all pixels. The gradation value “0” of the density data indicates that the dot formation density is 0%, that is, This indicates that no dot is formed on the pixel. Such conversion into density data can be performed by referring to a numerical table called a dot density conversion table.

図23は、画像データの階調値を大中小各ドットについての密度データに変換する際に
参照されるドット密度変換テーブルを概念的に示した説明図である。図示されているよう
に、ドット密度変換テーブルには、画像データの階調値に対して、小ドット・中ドット・
大ドットの各ドットについての密度データが設定されている。画像データが階調値「0」
近傍の領域では、中ドット・大ドットの密度データはいずれも階調値「0」に設定されて
いる。小ドットの密度データは、画像データの階調値が大きくなるにつれて増加して行く
が、画像データがある階調値に達すると今度は逆に減少し始め、代わりに中ドットの密度
データが増加し始める。画像データの階調値が更に増加して、ある階調値に達すると、小
ドットの密度データが階調値「0」となり、中ドットの密度データが減少し始めて、代わ
りに大ドットの密度データが少しずつ増加していく。図22のステップS252では、こ
のドット密度変換テーブルを参照しながら、画像データの階調値を、大ドットの密度デー
タ、中ドットの密度データ、小ドットの密度データに変換する処理を行う。
FIG. 23 is an explanatory diagram conceptually showing a dot density conversion table that is referred to when the gradation value of the image data is converted into density data for large, medium, and small dots. As shown in the figure, in the dot density conversion table, small dots, medium dots,
Density data for each large dot is set. Image data has a gradation value of “0”
In the neighboring area, 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 the density data of medium dots increases instead. Begin to. 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”, the density data of the medium dots starts to decrease, and instead the density of the large dots Data increases little by little. In step S252 in FIG. 22, the gradation value of the image data is converted to large dot density data, medium dot density data, and small dot density data while referring to this dot density conversion table.

処理対象とする画素について、大中小各ドットの密度データが得られたら、先ず初めに
大ドットについての形成有無を判断する(図22のステップS254)。かかる判断は、
大ドットの密度データと、処理対象としている画素の対応する位置に設定されているディ
ザマトリックスの閾値とを比較することによって行う。大ドットの密度データが閾値より
も大きい場合は、処理対象の画素には大ドットを形成するものと判断し、逆に密度データ
の方が小さい場合は、大ドットは形成しないものと判断する。
When the density data of the large, medium, and small dots is obtained for the pixel to be processed, it is first determined whether or not large dots are formed (step S254 in FIG. 22). Such judgment is
This is done by comparing the density data of the large dots with the threshold value of the dither matrix set at the corresponding position of the pixel to be processed. If the density data of large dots is larger than the threshold value, it is determined that large dots are to be formed on the pixel to be processed. Conversely, if the density data is smaller, it is determined that no large dots are formed.

次いで、処理対象の画素に大ドットを形成すると判断されているか否かを判定し(ステ
ップS256)、大ドットを形成すると判断されている場合は(ステップS256:ye
s)、中ドットおよび小ドットについての判断は省略して、全画素を終了したか否かを判
断する(ステップS268)。そして、ドット形成の有無を未判断の画素が残っている場
合は(ステップS268:no)、ステップS250に戻って新たな画素を選択し、続く
一連の処理を行う。
Next, it is determined whether or not it is determined to form a large dot on the pixel to be processed (step S256). If it is determined to form a large dot (step S256: yes).
s) The determination of medium dots and small dots is omitted, and it is determined whether or not all pixels have been completed (step S268). If there remains a pixel for which dot formation has not been determined (step S268: no), the process returns to step S250 to select a new pixel and perform a series of subsequent processing.

一方、処理対象の画素に大ドットを形成すると判断されていない場合は(ステップS2
56:no)、中ドットについての形成有無を判断するべく、大ドットの密度データに中
ドットの密度データを加算して中ドット用の中間データを算出する(ステップS258)
。こうして得られた中ドット用の中間データと、ディザマトリックスの閾値とを比較する
。そして、中ドット用の中間データの方が閾値よりも大きければ、中ドットを形成するも
のと判断し、逆に中間データよりもディザマトリックスの閾値の方が大きければ、中ドッ
トを形成しないものと判断する(ステップS260)。
On the other hand, if it is not determined that a large dot is to be formed on the pixel to be processed (step S2
56: no), in order to determine whether medium dots are formed or not, medium dot density data is added to the large dot density data to calculate intermediate data for medium dots (step S258).
. The intermediate data for medium dots thus obtained is compared with the threshold value of the dither matrix. If the intermediate data for medium dots is larger than the threshold, it is determined that a medium dot is formed. Conversely, if the threshold of the dither matrix is larger than the intermediate data, no medium dot is formed. Judgment is made (step S260).

次いで、処理対象の画素に中ドットを形成すると判断されているか否かを判定し(ステ
ップS262)、中ドットを形成すると判断されている場合は(ステップS262:ye
s)、小ドットについての判断は省略して、全画素を終了したか否かを判断する(ステッ
プS268)。
Next, it is determined whether or not it is determined to form a medium dot in the pixel to be processed (step S262). If it is determined to form a medium dot (step S262: yes).
s) The determination of small dots is omitted, and it is determined whether or not all pixels have been completed (step S268).

処理対象の画素に中ドットを形成すると判断されていない場合は(ステップS262:
no)、小ドットについての形成有無を判断するべく、中ドット用の中間データに小ドッ
トの密度データを加算して小ドット用の中間データを算出する(ステップS264)。そ
して、得られた小ドット用の中間データと、ディザマトリックスの閾値とを比較する。そ
の結果、小ドット用の中間データの方が閾値よりも大きければ、小ドットを形成するもの
と判断し、逆に中間データよりもディザマトリックスの閾値の方が大きければ、いずれの
ドットも形成しないものと判断する(ステップS266)。
If it is not determined that a medium dot is to be formed in the pixel to be processed (step S262:
no) In order to determine whether or not the small dot is formed, the small dot intermediate data is calculated by adding the density data of the small dot to the intermediate data for the medium dot (step S264). Then, the obtained intermediate data for small dots is compared with the threshold value of the dither matrix. As a result, if the intermediate data for small dots is larger than the threshold value, it is determined that a small dot is formed. Conversely, if the dither matrix threshold value is larger than the intermediate data, no dot is formed. Judgment is made (step S266).

すなわち、大ドットの密度データよりもディザマトリックスに設定された閾値の方が大
きい画素(大ドットが形成されない画素)については、大ドットの密度データに中ドット
の密度データを加算して、得られた中間データと閾値とを比較し、中間データの方が大き
くなれば、中ドットを形成すると判断する。一方、中間データよりも依然として閾値の方
が大きい画素については、中間データに小ドットの密度データを加算して新たな中間デー
タを算出する。そして、この中間データと閾値とを比較して、新たな中間データの方が大
きくなれば小ドットを形成すると判断し、依然として閾値の方が大きい画素についてはい
ずれのドットも形成しないと判断するのである。
That is, for a pixel having a larger threshold set in the dither matrix than the large dot density data (a pixel in which no large dot is formed), it is obtained by adding the medium dot density data to the large dot density data. The intermediate data is compared with the threshold value, and if the intermediate data becomes larger, it is determined that a medium dot is formed. On the other hand, for pixels whose threshold is still larger than that of the intermediate data, new intermediate data is calculated by adding density data of small dots to the intermediate data. Then, the intermediate data is compared with the threshold value, and if the new intermediate data is larger, it is determined that a small dot is to be formed, and it is determined that no dot is formed for a pixel having a still larger threshold value. is there.

以上のような処理を行うことにより、処理対象の画素について、大ドット、中ドット、
小ドットのいずれのドットを形成するか、若しくは、いずれのドットも形成しないかを判
断することができる。そこで、全画素についての処理を終了したか否かを判断し(ステッ
プS268)、未判断の画素が残っている場合は(ステップS268:no)、ステップ
S250に戻って新たな画素を選択し、続く一連の処理を行う。このようにして、処理対
象として選択された画素について1つずつ、大中小のいずれのドットを形成するか否かを
判断していく。そして、全画素について処理を終了したと判断されたら(ステップS26
8:yes)、図22に示したハーフトーン処理を終了する。
By performing the processing as described above, large dots, medium dots,
It is possible to determine which of small dots is formed or whether any dot is not formed. Therefore, it is determined whether or not the processing has been completed for all the pixels (step S268). If there are any undetermined pixels remaining (step S268: no), the process returns to step S250 to select a new pixel, A series of subsequent processing is performed. In this manner, it is determined whether large, medium, or small dots are to be formed one by one for the pixel selected as the processing target. If it is determined that the processing has been completed for all pixels (step S26).
8: yes), the halftone process shown in FIG. 22 is terminated.

以上、ディザマトリックスを利用して、大中小の各ドットについての形成有無を判断す
る方法について説明した。以下では、上述の説明を踏まえて、図9に示した閾値テーブル
の設定方法について説明する。
The method for determining the presence / absence of formation for each large, medium, and small dot using the dither matrix has been described above. In the following, based on the above description, a setting method of the threshold table shown in FIG. 9 will be described.

前述したように多値化結果値生成処理では、画素群内に含まれる各画素の画像データを
画素群階調値で代表させることにより、画素群をまとめて多値化している。そこで、多値
化テーブルを設定するに際しては、先ず、画素群内の全画素が画素群階調値と同じ値の画
像データを有するものとして、各画素について大中小の各種ドットについての形成有無を
判断することを考える。各種ドットについての形成有無の判断は、図22を用いて前述し
たハーフトーン処理によって行う。
As described above, in the multi-value quantization result value generation process, the pixel group is collectively multi-valued by representing the image data of each pixel included in the pixel group by the pixel group tone value. Therefore, when setting the multi-value conversion table, first, assuming that all pixels in the pixel group have image data having the same value as the pixel group gradation value, whether or not various large, medium, and small dots are formed for each pixel. Think about judging. The determination of whether or not various dots are formed is performed by the halftone process described above with reference to FIG.

図24は、画素群内の各画素について、大中小各ドットの形成有無を判断している様子
を概念的に示した説明図である。図中では、ハーフトーン処理を行うために着目している
画素群を太い実線で囲って表している。画素群は8つの画素から構成されており、各画素
の画像データは、いずれも画素群階調値と同じ値(図示した例では階調値97)を有して
いる。大中小各種ドットの形成有無を判断するためには、画像データを各ドットについて
の密度データに変換する。密度データへの変換は、図23に示したドット密度変換テーブ
ルを参照することによって行う。ここでは、画素群内の全画素が同じ画像データを有する
ものとしているから、各種ドットについても密度データも全て画素について同じ値となる
。図示した例では、大ドットの密度データの階調値が「2」、中ドットの密度データの階
調値が「95」、小ドットの密度データの階調値が「30」であった場合を表している。
FIG. 24 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. In the drawing, a pixel group of interest for performing halftone processing is surrounded by a thick solid line. The pixel group is composed of eight pixels, and the image data of each pixel has the same value as the pixel group gradation value (gradation value 97 in the illustrated example). In order to determine whether large, medium, or small dots are formed, the image data is converted into density data for each dot. Conversion to density data is performed by referring to the dot density conversion table shown in FIG. Here, since all the pixels in the pixel group have the same image data, all of the various dots and the density data have the same value for the pixels. In the illustrated example, the gradation value of the density data for large dots is “2”, the gradation value of the density data for medium dots is “95”, and the gradation value of the density data for small dots is “30”. Represents.

次いで、図22のフローチャートを用いて説明したように、大ドットの密度データ、中
ドット用の中間データ、あるいは小ドット用の中間データと、ディザマトリックスに設定
されている閾値とを比較することによって、各種ドットについての形成有無を画素毎に判
断する。ここで、比較に用いるディザマトリックスの閾値は、ディザマトリックスの中か
ら、着目している画素群に対応する箇所に設定されている閾値を使用する。例えば、図2
4に示した例では、画素群が画像の左上隅にあることから、閾値についても、ディザマト
リックス中の左上隅の画素群に設定されている閾値を使用する。
Next, as described with reference to the flowchart of FIG. 22, by comparing the density data for large dots, the intermediate data for medium dots, or the intermediate data for small dots with the threshold value set in the dither matrix. Whether or not various dots are formed is determined for each pixel. Here, as the threshold value of the dither matrix used for comparison, a threshold value set in a location corresponding to the pixel group of interest is used from the dither matrix. For example, FIG.
In the example shown in FIG. 4, since the pixel group is in the upper left corner of the image, the threshold value set in the upper left corner pixel group in the dither matrix is also used as the threshold value.

そして、画素群に設定されている8つの閾値の中で、大ドットの密度データよりも小さ
な閾値が設定されている画素については、大ドットを形成すると判断する。ここでは、大
ドットの密度データは階調値「2」としているから、大ドットが形成される画素は、閾値
「1」が設定されている画素だけである。図24では、大ドットが形成されると判断され
た画素には、細かい斜線を付して表示している。大ドットの密度データ「2」よりも大き
く、大ドットの密度データと中ドットの密度データとを加算して得られた中ドット用の中
間データ「97」よりも小さな閾値が設定されている画素には、中ドットを形成するもの
と判断する。このような画素は、閾値「42」が設定された画素、および閾値「58」が
設定された画素の2つの画素だけである。図24では、中ドットが形成されると判断され
た画素には、少し粗い斜線を付して表示している。そして、最後に、中ドット用の中間デ
ータ「97」よりも大きく、中ドット用の中間データに小ドット用の密度データを加算し
て得られた小ドット用の中間データ「127」よりも小さな閾値が設定されている画素に
は、小ドットを形成するものと判断する。このような画素は、閾値「109」が設定され
た画素だけである。図24では、小ドットが形成されると判断された画素には、粗い斜線
を付して表示している。このようにして、大ドット、中ドット、小ドットの形成有無を判
断した結果、着目している画素群の画素群階調値が「97」である場合には、大ドット1
個、中ドット2個、小ドット1個が形成されることになる。
Then, among the eight threshold values set for the pixel group, it is determined that a large dot is formed for a pixel for which a threshold value smaller than the large dot density data is set. Here, since the density data of the large dots is the gradation value “2”, the pixels where the large dots are formed are only the pixels for which the threshold value “1” is set. In FIG. 24, the pixels for which large dots are determined to be formed are displayed with fine diagonal lines. Pixels that are larger than the large dot density data “2” and have a smaller threshold than the medium dot intermediate data “97” obtained by adding the large dot density data and the medium dot density data. Is determined to form a medium dot. There are only two such pixels, a pixel for which the threshold “42” is set and a pixel for which the threshold “58” is set. In FIG. 24, pixels that are determined to have medium dots formed are displayed with a slightly rough diagonal line. Finally, it is larger than intermediate data “97” for medium dots, and smaller than intermediate data “127” for small dots obtained by adding density data for small dots to intermediate data for medium dots. It is determined that a small dot is formed in a pixel for which a threshold is set. Such pixels are only those for which the threshold value “109” is set. In FIG. 24, the pixels for which small dots are determined to be formed are displayed with rough diagonal lines. In this way, when the pixel group gradation value of the pixel group of interest is “97” as a result of determining whether large dots, medium dots, and small dots are formed, large dots 1
One, two medium dots, and one small dot are formed.

画素群階調値が大きく異なれば、画素群内に形成される大ドット、中ドット、小ドット
の個数も異なったものとなる。また、画素群階調値を「0」から「255」まで変化させ
れば、それに伴って大ドット、中ドット、小ドットの個数は、幾段階かに変化するはずで
ある。更に、画素群の分類番号が異なれば、ディザマトリックスの閾値も異なることから
、ドット個数の変化の仕方も異なるはずである。図9に示した閾値テーブルは、画素群階
調値を「0」から「255」まで変化させたときの、各種ドットの個数が段階的に変化す
る挙動を、分類番号毎に調べることによって設定されている。
If the pixel group tone value is greatly different, the numbers of large dots, medium dots, and small dots formed in the pixel group are also different. Further, if the pixel group gradation value is changed from “0” to “255”, the number of large dots, medium dots, and small dots should be changed in several steps. Furthermore, if the pixel group classification number is different, the dither matrix threshold value is also different, so the manner of changing the number of dots should be different. The threshold value table shown in FIG. 9 is set by examining the behavior in which the number of various dots changes step by step when the pixel group gradation value is changed from “0” to “255”. Has been.

図25は、実際に、閾値テーブルを設定する処理の流れを示したフローチャートである
。以下、フローチャートに従って説明する。閾値テーブルの設定処理を開始すると、先ず
初めに、画素群の分類番号を1つ選択する(ステップS300)。例えば、ここでは分類
番号1番を選択したものとする。
FIG. 25 is a flowchart showing the flow of processing for actually setting the threshold value table. Hereinafter, it demonstrates according to a flowchart. When the threshold table setting process is started, first, one pixel group classification number is selected (step S300). For example, it is assumed here that classification number 1 is selected.

次いで、選択した分類番号の画素群に対応する閾値を、ディザマトリックスの中から読
み出してやる(ステップS302)。例えば、ここでは分類番号1番を選択したものとし
ているから、図17に例示したディザマトリックスの中から、図19(b)中で1番と表
示したブロック位置に設定されている8つの閾値を読み出す。
Next, the threshold corresponding to the pixel group of the selected classification number is read out from the dither matrix (step S302). For example, since classification number 1 is selected here, eight threshold values set at the block position indicated as number 1 in FIG. 19B are selected from the dither matrix illustrated in FIG. read out.

そして、画素群階調値BDを「0」に設定し(ステップS304)、大ドット、中ドッ
ト、小ドットの形成個数をいずれも0個に設定しておく(ステップS306)。
Then, the pixel group tone value BD is set to “0” (step S304), and the number of large dots, medium dots, and small dots formed is set to 0 (step S306).

続いて、図23に示したドット密度変換テーブルを参照することにより、画素群階調値
を大ドット、中ドット、小ドットについての密度データに変換した後(ステップS308
)、これら密度データと先に読み込んでおいた閾値とに基づいて、大中小の各種ドットに
ついての形成個数を決定する(ステップS310)。すなわち、図22あるいは図24を
用いて説明したように、大ドットの密度データよりも小さな閾値の個数を求めて、得られ
た個数を大ドットの形成個数とする。また、大ドットの密度データよりも大きく且つ中ド
ット用の中間データよりも小さな閾値の個数を求めて、これを中ドットの形成個数とする
。更に、中ドット用の中間データよりも大きく且つ小ドット用の中間データよりも小さな
閾値の個数を求めて、これを小ドットの形成個数とする。
Subsequently, by referring to the dot density conversion table shown in FIG. 23, the pixel group gradation value is converted into density data for large dots, medium dots, and small dots (step S308).
) Based on these density data and the threshold value read in advance, the number of formations for various large, medium, and small dots is determined (step S310). That is, as described with reference to FIG. 22 or FIG. 24, the number of threshold values smaller than the large dot density data is obtained, and the obtained number is used as the large dot formation number. Further, the number of threshold values larger than the density data for large dots and smaller than the intermediate data for medium dots is obtained, and this is set as the number of medium dots formed. Further, the number of thresholds larger than the intermediate data for medium dots and smaller than the intermediate data for small dots is obtained, and this is used as the number of small dots formed.

こうして求めた各種ドットの形成個数が、先に設定されていた形成個数に対して変更さ
れたか否かを判断する(ステップS312)。そして、形成個数が変更されたと判断され
れば(ステップS312:yes)、そのときの画素群階調値BDを新たな閾値として、
分類番号に対応する閾値の組に追加する(ステップS314)。一方、形成個数が変更さ
れていないと判断された場合は(ステップS312:no)、閾値を追加する処理はスキ
ップする。
It is determined whether or not the number of dots formed in this way has been changed with respect to the number of dots previously set (step S312). If it is determined that the number of formations has been changed (step S312: yes), the pixel group gradation value BD at that time is set as a new threshold value.
It adds to the group of the threshold value corresponding to a classification number (step S314). On the other hand, when it is determined that the number of formations has not been changed (step S312: no), the process of adding a threshold is skipped.

次いで、画素群階調値BDが階調値255に達したか否かを判断する(ステップS31
6)。階調値255に達していなければ(ステップS316:no)、画素群階調値BD
を「1」だけ増加させて(ステップS318)、ステップS308に戻って再び画素群階
調値BDを密度データに変換した後、続く一連の処理を行って、画素群内に形成されるド
ット個数が変化していれば、その画素群階調値BDを新たな閾値として、分類番号に対応
する閾値に組に追加する(ステップS314)。画素群階調値BDが階調値255に達す
るまで、こうした操作を繰り返す。そして、画素群階調値BDが階調値255に達したら
(ステップS316:yes)、選択した分類番号については、閾値の組を設定し終えた
ことになる。
Next, it is determined whether or not the pixel group gradation value BD has reached the gradation value 255 (step S31).
6). If the gradation value 255 has not been reached (step S316: no), the pixel group gradation value BD
Is increased by “1” (step S318), and the process returns to step S308 to convert the pixel group gradation value BD into density data again, and then a series of processes are performed to determine the number of dots formed in the pixel group. Is changed, the pixel group gradation value BD is added as a new threshold value to the threshold value corresponding to the classification number (step S314). Such an operation is repeated until the pixel group gradation value BD reaches the gradation value 255. When the pixel group gradation value BD reaches the gradation value 255 (step S316: yes), the setting of the threshold set has been completed for the selected classification number.

そこで、すべての分類番号について、以上のような処理を行ったか否かを判断し(ステ
ップS320)、未処理の分類番号が残っている場合は(ステップS320:no)、ス
テップS300に戻って再び上述した処理を行う。こうした処理を繰り返し、すべての分
類番号について、閾値の組を設定し終えたと判断されたら(ステップS320:yes)
、図25に示した閾値テーブル設定処理を終了する。
Therefore, it is determined whether or not the above processing has been performed for all the classification numbers (step S320). If there is an unprocessed classification number (step S320: no), the process returns to step S300 and again. The above-described processing is performed. If it is determined that such a process is repeated and setting of threshold sets has been completed for all classification numbers (step S320: yes).
Then, the threshold table setting process shown in FIG.

以上の説明から明らかなように、分類番号の閾値の組は、画素群内に形成されるドット
個数の組合せが切り換わる画素群階調値を検出して、この値を閾値として記憶したものと
なっている。通常は、画素群階調値が階調値0から255まで増加する間に、形成される
ドット個数は幾段階かに切り換わるから、複数個の閾値が閾値の組として記憶されること
になる。そして、それぞれの閾値の組には、次のような理由から、分類番号毎に異なった
閾値が設定され、また閾値の個数も異なったものとなっている。
As is clear from the above description, the threshold number group of the classification number is obtained by detecting a pixel group gradation value in which the combination of the number of dots formed in the pixel group is switched and storing this value as the threshold value. It has become. Usually, while the pixel group gradation value increases from the gradation value 0 to 255, the number of dots to be formed is switched in several stages, and thus a plurality of threshold values are stored as a set of threshold values. . In each threshold set, a different threshold is set for each classification number and the number of thresholds is different for the following reasons.

先ず、画素群内に形成されるドットの個数は、画素群階調値を変換して得られた大中小
各ドットの密度データと、ディザマトリックス中で画素群に対応する位置に記憶されてい
る閾値とによって決定される。ここで、図23に示したドット密度変換テーブルは、画素
群の分類番号が異なっていても同じテーブルを参照するから、画素群階調値に対する各ド
ットの密度データも、分類番号によらず同じ密度データが得られる。しかし、ディザマト
リックスから読み出された複数の閾値は、分類番号毎に異なったものとなる。何故なら、
ディザマトリックスは、画像上でドットが一定のパターンで発生したり、あるいは近接し
た位置に固まって発生することで画質を悪化させることの無いように、ディザマトリック
スの閾値は出来るだけ分散させて且つ出来るだけランダムに設定されている。このため、
たとえ画素群階調値が同じであったとしても、ドットの発生の仕方はそれぞれの画素群で
分類番号毎に異なったものとなり、その結果、設定される閾値も分類番号毎に異なったも
のとなるのである。
First, the number of dots formed in the pixel group is stored in the density data of the large, medium, and small dots obtained by converting the pixel group gradation value and the position corresponding to the pixel group in the dither matrix. And a threshold value. Here, since the dot density conversion table shown in FIG. 23 refers to the same table even if the pixel group classification numbers are different, the density data of each dot for the pixel group gradation value is the same regardless of the classification number. Density data is obtained. However, the plurality of threshold values read from the dither matrix are different for each classification number. Because,
The dither matrix can be made with the dither matrix thresholds dispersed as much as possible so that the dots do not occur in a fixed pattern on the image, or do not deteriorate the image quality due to the formation of dots in close proximity. Only randomly set. For this reason,
Even if the pixel group gradation values are the same, the dot generation method differs for each pixel group and for each pixel group, and as a result, the set threshold value also differs for each category number. It becomes.

もっとも、画素群階調値を0〜255まで増加させたときに、1つの画素群内で発生し
得るドット分布の種類には、画素群に含まれる画素数および各画素に形成可能なドットの
種類に応じて、自ずから数の上限がある。前述したように、閾値の組に記憶されている閾
値は、画素群内に形成されるドット分布が切り替わった時の画素群階調値を記憶したもの
であるから、閾値の組に設定される閾値の個数にも、画素群の大きさおよび形成可能なド
ットの種類に応じて上限がある。本実施例のように、画素群の大きさが画素8つ分であり
、形成可能なドットの種類が3種類である場合には、1つの閾値の組に設定される閾値の
個数は、高々20数個、多く見積もっても30個を超えることはない。これに伴って、画
素群の多値化結果値も、高々0〜31の範囲しか取り得ず、このような多値化結果値であ
れば、5ビットあれば表現することが可能となる。
However, when the pixel group tone value is increased from 0 to 255, the types of dot distribution that can occur in one pixel group include the number of pixels included in the pixel group and the number of dots that can be formed in each pixel. Depending on the type, there is an upper limit on the number. As described above, the threshold value stored in the threshold group is a pixel group tone value when the dot distribution formed in the pixel group is switched, and is thus set to the threshold group. The number of thresholds also has an upper limit depending on the size of the pixel group and the types of dots that can be formed. As in the present embodiment, when the size of the pixel group is eight pixels and there are three types of dots that can be formed, the number of thresholds set for one threshold group is at most. It is not more than 30 even if it is estimated by 20 or more. Accordingly, the multi-value quantization result value of the pixel group can only take a range of 0 to 31 at most, and such multi-value quantization result value can be expressed with 5 bits.

D−4.変換テーブルの設定方法 :
次に、図11を用いて前述した変換テーブルの設定方法について説明する。かかる変換
テーブルは、図7に示した第1のドットデータ生成処理中で、多値化結果値を、画素群に
形成されるドット個数を表す個数データに変換するために参照されるテーブルである。
D-4. How to set the conversion table:
Next, the conversion table setting method described above will be described with reference to FIG. This conversion table is a table that is referred to in order to convert the multi-value quantization result value into number data representing the number of dots formed in the pixel group during the first dot data generation processing shown in FIG. .

図25を用いて前述した閾値テーブルの設定方法から明らかなように、閾値テーブルに
分類番号毎に設定されている閾値の組は、画素群に形成される大中小の各ドットの個数が
切り換わる画素群階調値を記憶したものとなっている。そして、閾値テーブルを参照する
ことで得られる多値化結果値は、各ドットの形成個数が何段階目に切り換わった状態に対
応するかを表す値となっている。しかし、上述したように、大中小の各ドットの発生状態
は、画素群の分類番号によって異なっているため、画素群階調値を増加させた場合にドッ
トの形成個数が変化する階調値だけでなく、形成個数の変化の仕方も異なったものとなる
。例えば、ある分類番号の画素群では、初めに小ドットが形成され、画素群階調値が増加
するに従って小ドットの個数が1つずつ増加していくのに対して、他の分類番号の画素群
では、ドットがなかなか形成されず、いきなり中ドットが形成され、その後は画素群階調
値が増加するに従って小ドットが1つずつ増加するといったことが起こり得る。すなわち
、画素群の多値化結果値は、画素群の分類番号と組み合わせなければ、画素群内に形成さ
れるドットの個数に変換することができない。そこで、図7を用いて前述した第1のドッ
トデータ生成処理では、多値化結果値と分類番号との組合せ毎に、画素群内に形成される
各種ドットの個数を求めて、図11に示した変換テーブルに記憶しておき、この変換テー
ブルを参照することによって、多値化結果値および分類番号から、直ちに個数データを得
ることとしているのである。
As is clear from the threshold table setting method described above with reference to FIG. 25, the threshold group set for each classification number in the threshold table switches the number of large, medium, and small dots formed in the pixel group. The pixel group gradation value is stored. Then, the multi-value quantization result value obtained by referring to the threshold value table is a value representing the number of stages in which the number of dots formed corresponds to the state. However, as described above, the occurrence state of each large, medium, and small dot differs depending on the pixel group classification number, so that only the gradation value that changes the number of dots formed when the pixel group gradation value is increased. In addition, the method of changing the number of formations is also different. For example, in a pixel group of a certain classification number, small dots are formed first, and the number of small dots increases by one as the pixel group gradation value increases, whereas pixels of other classification numbers In a group, dots are not easily formed, medium dots are suddenly formed, and thereafter small dots may increase one by one as the pixel group gradation value increases. That is, the multi-value quantization result value of the pixel group cannot be converted into the number of dots formed in the pixel group unless combined with the pixel group classification number. Therefore, in the first dot data generation process described above with reference to FIG. 7, the number of various dots formed in the pixel group is obtained for each combination of the multi-value quantization result value and the classification number. The number data is immediately obtained from the multi-value quantization result value and the classification number by storing in the conversion table shown and referring to this conversion table.

以上の説明から明らかなように、図11に示した変換テーブルは、ある多値化結果値を
有するときに画素群内の各画素に形成されるドットの個数を、画素群の分類番号毎に求め
ることによって設定されている。以下では、変換テーブルを設定するための具体的な方法
について説明する。
As is clear from the above description, the conversion table shown in FIG. 11 indicates the number of dots formed in each pixel in the pixel group when having a certain multi-value quantization result value for each pixel group classification number. Is set by asking. Hereinafter, a specific method for setting the conversion table will be described.

図26は、変換テーブルを設定する処理の流れを示したフローチャートである。以下、
フローチャートに従って説明する。変換テーブル設定処理を開始すると、先ず初めに、設
定対象とする分類番号を1つ選択し(ステップS400)、多値化結果値RVを0に設定
する(ステップS402)。
FIG. 26 is a flowchart showing a flow of processing for setting a conversion table. Less than,
It demonstrates according to a flowchart. When the conversion table setting process is started, first, one classification number to be set is selected (step S400), and the multi-value quantization result value RV is set to 0 (step S402).

次いで、図9に示した閾値テーブルで、分類番号に設定されている閾値の組の中から多
値化結果値RVに対応する閾値を取得する(ステップS404)。例えば、多値化結果値
が「N」であったとする。多値化結果値Nは、その画素群に形成されるドットの個数がN
回目に切り換わったことを意味しているから、閾値の組の中でN番目に小さな値を取得す
る。尚、多値化結果値が「0」の場合は、閾値「0」を取得すればよい。
Next, in the threshold table shown in FIG. 9, a threshold corresponding to the multi-value quantization result value RV is acquired from the threshold set set in the classification number (step S404). For example, it is assumed that the multi-value quantization result value is “N”. The multi-value quantization result value N is such that the number of dots formed in the pixel group is N
Since it means that it has switched to the second time, the Nth smallest value is acquired in the threshold set. When the multi-value quantization result value is “0”, the threshold value “0” may be acquired.

次いで、画素群の画素群階調値が、取得した閾値の値を有するものとして、画素群内に
形成される各種ドットの個数を決定する(ステップS406)。画素群内に形成されるド
ットの個数は、図22ないし図24を用いて前述した方法によって決定することができる
Next, assuming that the pixel group tone value of the pixel group has the acquired threshold value, the number of various dots formed in the pixel group is determined (step S406). The number of dots formed in the pixel group can be determined by the method described above with reference to FIGS.

こうして決定した各ドットの個数の組合せを、個数データに変換する(ステップS40
8)。ドット個数の組合せから個数データへの変換は、図12に示した対応表を参照する
ことによって行う。次いで、得られた個数データを、多値化結果値に対応付けて記憶した
後(ステップS410)、対象としている分類番号についての最大の多値化結果に達した
か否かを判断する(ステップS412)。すなわち、図10を用いて説明したように、
すなわち、図9の閾値テーブルに示されているように、閾値の組には、分類番号に応じた
個数の閾値が設定されており、このことに対応して、多値化結果値の最大値も分類番号に
応じた値となっている。そこで、多値化結果値が、対象としている分類番号についての最
大値に達したか否かを判断するのである。かかる判断は、分類番号に応じて取得した閾値
の組に、画素群内でのドット形成個数を決定していない閾値の有無によって行うことがで
きる。すなわち、決定していない閾値が残っていれば、多値化結果値の最大値に達してい
ないと判断することができ、未決定の閾値が残っていなければ、多値化結果値の最大値に
達したものと判断することができる。
The combination of the numbers of dots thus determined is converted into number data (step S40).
8). Conversion from the dot number combination to the number data is performed by referring to the correspondence table shown in FIG. Next, after storing the obtained number data in association with the multi-value quantization result value (step S410), it is determined whether or not the maximum multi-value multi-value result for the target classification number has been reached (step S410). S412). That is, as described with reference to FIG.
That is, as shown in the threshold value table of FIG. 9, a threshold number corresponding to the classification number is set in the threshold value set. Corresponding to this, the maximum value of the multi-value quantization result value is set. Is also a value corresponding to the classification number. Therefore, it is determined whether the multi-value quantization result value has reached the maximum value for the target classification number. Such a determination can be made based on the presence / absence of a threshold that does not determine the number of dots formed in the pixel group in the threshold set acquired according to the classification number. That is, if an undecided threshold value remains, it can be determined that the maximum value of the multi-value quantization result value has not been reached, and if an undecided threshold value does not remain, the maximum value of the multi-value quantization result value It can be determined that

多値化結果の最大値に達していないと判断された場合は(ステップS412:no)、
多値化結果RVの値を「1」だけ増加させた後(ステップS414)、ステップS404
に戻って、閾値の組の中から新たな多値化結果値RVに対応する閾値を取得し、続く一連
の処理を繰り返す。こうした操作を繰り返し、対象としている分類番号の最大多値化結果
値に達したと判断されたら(ステップS412:yes)、その分類番号については全デ
ータが変換テーブルに設定されたことになる。
When it is determined that the maximum value of the multi-value quantization result has not been reached (step S412: no),
After increasing the value of the multi-value quantization result RV by “1” (step S414), step S404
Returning to FIG. 5, the threshold corresponding to the new multi-value quantization result value RV is acquired from the set of thresholds, and the series of subsequent processing is repeated. When such operations are repeated and it is determined that the maximum multi-value quantization result value of the target classification number has been reached (step S412: yes), all data for that classification number is set in the conversion table.

そこで今度は、全ての分類番号について同様の処理を行ったか否かを判断する(ステッ
プS416)。そして、未だ処理していない分類番号が残っている場合は、ステップS4
00に戻って新たな分類番号を選択し、この分類番号について、上述した一連の処理を行
う。こうして全ての分類番号について処理を終了したと判断されたら(ステップS416
:yes)、変換テーブルの全てのデータが設定されたことになるので、図26に示す処
理を終了する。
Therefore, this time, it is determined whether or not the same processing has been performed for all classification numbers (step S416). And when the classification number which has not been processed still remains, step S4
Returning to 00, a new classification number is selected, and the above-described series of processing is performed on this classification number. When it is determined that the processing has been completed for all the classification numbers (step S416).
: Yes), since all the data of the conversion table has been set, the processing shown in FIG. 26 is terminated.

以上に説明したように、閾値テーブルも変換テーブルも、図22ないし図24を用いて
説明した特許3292104号に開示された手法(ディザ法を発展させて、大きさの異な
る複数種類のドットの形成の有無を判断可能とした手法)を基にして設定されている。従
って、閾値テーブルを参照して画素群階調値を多値化結果値に変換し、変換テーブルを参
照して多値化結果値を個数データに変換してやれば、画素群内の全画素が同じ画像データ
(画素群階調値)を有するものとして、上記の特許に開示された方法を適用して得られる
ドットの個数と、同じ個数を得られることになる。
As described above, both of the threshold value table and the conversion table are the methods disclosed in Japanese Patent No. 3292104 described with reference to FIGS. 22 to 24 (the dither method is developed to form a plurality of types of dots having different sizes. It is set based on the method that makes it possible to determine whether or not there is. Therefore, if the pixel group gradation value is converted into the multi-value quantization result value with reference to the threshold value table, and the multi-value conversion result value is converted into the number data with reference to the conversion table, all the pixels in the pixel group are the same. As the image data (pixel group gradation value), the same number as the number of dots obtained by applying the method disclosed in the above patent can be obtained.

D−5.順序値マトリックスの設定方法 :
次に、図14に例示した順序値マトリックスを設定する方法について説明する。前述し
たように、順序値マトリックスとは、画素群内の各画素について、ドットが形成される順
番を設定したマトリックスである。
D-5. How to set the order value matrix:
Next, a method for setting the order value matrix illustrated in FIG. 14 will be described. As described above, 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.

図27は、順序値マトリックスを設定する方法について具体的に示した説明図である。
以下、図を参照しながら説明する。順序値マトリックスの設定に際しては、先ず、ディザ
マトリックスを画素群と同じ大きさを有する複数のブロックに分割して、各ブロックに通
し番号を付しておく。図19を用いて前述したように、この通し番号がそのまま画素群の
分類番号となる。図27(a)は、ディザマトリクスを複数のブロックに分割した様子を
概念的に示した説明図である。今、ディザマトリックスが図17に示した大きさ(すなわ
ち、主走査方向に128画素、副走査方向に64画素)を有しているものとすると、1つ
の画素群は主走査方向に4画素、副走査方向に2画素の大きさを有するとしているから、
図27(a)に示すように、ディザマトリックスは主走査方向および副走査方向にそれぞ
れ32ブロックずつ、全体では、1番から1024番までの分類番号が付された1024
個のブロックに分割されることになる。
FIG. 27 is an explanatory diagram specifically showing a method for setting an order value matrix.
Hereinafter, description will be given with reference to the drawings. When setting the order value matrix, first, the dither matrix is divided into a plurality of blocks having the same size as the pixel group, and serial numbers are assigned to the respective blocks. As described above with reference to FIG. 19, this serial number is directly used as the pixel group classification number. FIG. 27A is an explanatory diagram conceptually showing a state in which the dither matrix is divided into a plurality of blocks. Now, assuming that the dither matrix has the size shown in FIG. 17 (that is, 128 pixels in the main scanning direction and 64 pixels in the sub-scanning direction), one pixel group has 4 pixels in the main scanning direction, Since it has a size of 2 pixels in the sub-scanning direction,
As shown in FIG. 27 (a), the dither matrix is 1024 with 32 blocks each in the main scanning direction and sub-scanning direction, with classification numbers from 1 to 1024 as a whole.
It will be divided into blocks.

ディザマトリックスを複数のブロックに分割したら、各ブロックから1組ずつ順序値マ
トリックスを生成する。図27(b)は、一例として、分類番号1番のブロックから順序
値マトリックスを生成している様子を示した説明図である。図27(b)の左側半分には
、分類番号1番のブロックに含まれるディザマトリックスの閾値が示されている。図24
を用いて前述したように、ドットは小さな閾値が設定されている画素から順番に形成され
る。従って、図27(b)に示した1番のブロックの中で1番初めにドットが形成される
画素は、閾値「1」が設定された画素と考えることができる。そこで、この画素には順序
値として「1」を設定する。同様に、2番目にドットが形成される画素は、2番目に小さ
な閾値である閾値「42」が設定された画素と考えることができる。そこで、この画素に
は順序値「2」を設定する。このようにして、ブロック内に設定されている閾値の小さな
画素から順番に、順序値「1」から順序値「8」までを決定してやれば、図27(b)の
右側半分に示した分類番号1番の順序値マトリックスを得ることができる。
When the dither matrix is divided into a plurality of blocks, one set of order value matrices is generated from each block. FIG. 27B is an explanatory diagram showing a state in which an order value matrix is generated from the block with classification number 1 as an example. In the left half of FIG. 27B, the threshold value of the dither matrix included in the block of classification number 1 is shown. FIG.
As described above using, dots are formed in order from the pixel for which a small threshold is set. Therefore, the pixel in which the first dot is formed in the first block shown in FIG. 27B can be considered as a 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 with the smallest threshold set in the block, the classification numbers shown in the right half of FIG. The first order value matrix can be obtained.

他の分類番号のブロックについても、同様にして順序値マトリックスを設定することが
できる。図27(c)は、分類番号2番のブロックについて、同様にして、ブロック内で
小さな閾値が設定されている画素から順番に、順序値「1」から順序値「8」までを設定
することで、順序値マトリックスを設定した様子を示している。図27(a)に示した分
類番号「1」番から「1024」番までの全てのブロックについて、以上のような操作を
行うことにより、分類番号「1」番から「1024」番までの順序値マトリックスを得る
ことができる。
The order value matrix can be set in the same manner for other classification number blocks. FIG. 27C shows that the order value “1” to the order value “8” are set in order from the pixel having a small threshold value in the block in the same way for the block with classification number 2. This shows how the order value matrix is set. The order from the classification numbers “1” to “1024” is performed by performing the above operation for all the blocks from the classification numbers “1” to “1024” shown in FIG. A value matrix can be obtained.

カラープリンタ200の制御回路260に内蔵されたROM内には、このようにして設
定された順序値マトリックスが、画素群の分類番号に対応付けて予め記憶されている。そ
して、図7に示した第1のドットデータ生成処理においては、画素群の分類番号に対応付
けて記憶されている順序値マトリックスをROMから読み出して、ドットデータを生成す
るのである。
In the ROM built in the control circuit 260 of the color printer 200, the order value matrix set in this way is stored in advance in association with the pixel group classification number. Then, in the first dot data generation process shown in FIG. 7, the sequence value matrix stored in association with the pixel group classification number is read from the ROM to generate dot data.

D−6.高画質な画像を印刷可能な理由 :
図7に示した第1のドットデータ生成処理では、以上のようにして設定した閾値テーブ
ル、変換テーブル、順序値マトリックスを参照することによって、デジタルカメラ120
などから受け取った画像データをドットデータに変換している。このようにして得られた
ドットデータに従ってドットを形成すれば、高画質な画像を印刷することができる。以下
では、こうしたことが可能となる理由について説明する。
D-6. Reasons for printing high-quality images:
In the first dot data generation process shown in FIG. 7, the digital camera 120 is referred to by referring to the threshold value table, conversion table, and order value matrix set as described above.
The image data received from such as is converted to dot data. If dots are formed according to the dot data thus obtained, a high-quality image can be printed. The following explains why this is possible.

先ず、前述した特許3292104号に開示された技術を用いれば、図22ないし図2
4を用いて前述したように、画像データを大ドットの密度データ、中ドット用の中間デー
タ、小ドット用の中間データに変換して、ディザマトリックスに設定されている閾値と比
較することで、大中小各ドットについての形成の有無を判断することができる。更に、こ
のときに参照するディザマトリックスを、いわゆるブルーノイズマスク、あるいはグリー
ンノイズマスクに代表されるような分散性が考慮されたマトリックスとしておけば、ドッ
トが良好に分散した高画質な画像を得ることができる。
First, if the technique disclosed in the above-mentioned Japanese Patent No. 3292104 is used, FIGS.
As described above using 4, the image data is converted into density data for large dots, intermediate data for medium dots, and intermediate data for small dots, and compared with the threshold value set in the dither matrix, It can be determined whether large, medium, or small dots are formed. Furthermore, if the dither matrix to be referred to at this time is a matrix in which dispersibility is considered as represented by a so-called blue noise mask or green noise mask, a high-quality image in which dots are well dispersed can be obtained. Can do.

また、画像データは一般的に、隣接する画素間では近似する(若しくは同一の)階調値
が割り当てられる傾向がある。近年では、高画質化の要請から画像データの解像度は益々
高くなる傾向にあるが、隣接する画素間で近似若しくは同一の階調値が割り当てられる傾
向は、画像データの解像度が高くなるほど顕著に現れる。このことから、図24を用いて
前述したように、複数個の画素を画素群としてまとめてしまい、画素群内の画素は全て同
じ画像データを有するものとして大中小各ドットの形成有無を判断した場合でも、実際に
は画質に差が生じることは稀である。
In general, image data tends to be assigned an approximate (or the same) gradation value between adjacent pixels. In recent years, the resolution of image data tends to increase more and more due to the demand for higher image quality, but the tendency to assign an approximate or identical gradation value between adjacent pixels becomes more prominent as the resolution of the image data increases. . Therefore, as described above with reference to FIG. 24, a plurality of pixels are grouped as a pixel group, and it is determined whether each pixel in the pixel group has the same image data. Even in this case, it is rare that a difference in image quality actually occurs.

第1のドットデータ生成処理は、この点に着目して、画素毎にドットデータを生成する
手法である。また、図22ないし図24に示した手法では、ディザマトリックスを参照す
ることで、画素群内のいずれの画素に、大中小いずれのドットを形成するかを決定してい
る。これに対して、図7に示した第1のドットデータ生成処理では、ディザマトリックス
を参照してドットが形成される画素位置および形成されるドットの種類を決定する操作を
2段階に分けて、先ず初めに画素群内に形成される各種ドットの個数(個数データ)を決
定し、次いで、これらドットが画素群内のいずれの画素に形成されるかを決定する。この
ように、2段階に分けて決定することとすれば、もはやディザマトリックスを参照する必
要はなく、代わりに、よりデータ量の少ないテーブルを参照してドットデータを生成する
ことができる。すなわち、画素群階調値を個数データに変換し、個数データを更に変換し
てドットデータを生成することが可能となる。更に、第1のドットデータ生成処理では、
画素群階調値を直ちに個数データに変換するのではなく、一旦、多値化結果値に変換して
から個数データに変換する。こうすることにより、参照するテーブルのデータ量を更に小
さなものとすることが可能となる。結局、上述した第1のドットデータ生成処理では、閾
値テーブルおよび変換テーブルを参照することで、画素群階調値を画素群毎に個数データ
に変換し、得られた個数データから、順序値マトリックスを参照して各画素のドット形成
有無を決定することで、図22ないし図24に示した方法を用いて得られたものと同じ結
果を得ることが可能となっているのである。以下では、図7のフローチャートを参照しな
がら、より具体的に説明する。
The first dot data generation process is a method for generating dot data for each pixel by paying attention to this point. In the method shown in FIG. 22 to FIG. 24, it is determined which large, medium, and small dots are formed in which pixel in the pixel group by referring to the dither matrix. On the other hand, in the first dot data generation process shown in FIG. 7, the operation of determining the pixel position where the dot is formed and the type of dot formed with reference to the dither matrix is divided into two stages. First, the number (number data) of various dots formed in the pixel group is determined, and then in which pixel in the pixel group these dots are formed. In this way, if it is determined in two steps, it is no longer necessary to refer to the dither matrix, and instead, dot data can be generated by referring to a table with a smaller amount of data. That is, it is possible to convert the pixel group gradation value into number data, and further convert the number data to generate dot data. Furthermore, in the first dot data generation process,
The pixel group tone value is not immediately converted into the number data, but once converted into a multi-value quantization result value and then converted into the number data. By doing so, it is possible to further reduce the data amount of the referenced table. Eventually, in the first dot data generation process described above, the pixel group gradation value is converted into the number data for each pixel group by referring to the threshold value table and the conversion table, and the order value matrix is obtained from the obtained number data. By determining whether or not dots are formed for each pixel with reference to FIG. 8, it is possible to obtain the same result as that obtained using the method shown in FIGS. Hereinafter, a more specific description will be given with reference to the flowchart of FIG.

先ず、第1のドットデータ生成処理では、所定数の画素をまとめて画素群を生成し、画
素群の画素群階調値を決定している(図7のステップS206)。前述したように、画像
データは、隣接する画素間では近似する(若しくは同一の)階調値が割り当てられる傾向
があるため、複数個の画素を画素群としてまとめて、画素群内の画素は全て同じ画像デー
タを有するものとして扱った場合でも、実際には画質に差が生じることはない。
First, in the first dot data generation process, a predetermined number of pixels are grouped to generate a pixel group, and a pixel group gradation value of the pixel group is determined (step S206 in FIG. 7). As described above, since image data tends to be assigned an approximate (or the same) gradation value between adjacent pixels, a plurality of pixels are grouped into a pixel group, and all the pixels in the pixel group are included. Even when handled as having the same image data, there is actually no difference in image quality.

次いで、閾値テーブルを参照して画素群階調値を多値化結果値に変換し、得られた多値
化結果値を、変換テーブルを参照して個数データに変換する(図7のステップS208、
S210)。閾値テーブルおよび変換テーブルの設定方法についての説明から明らかなよ
うに、このようにして得られた個数データは、画素群内の全画素が同じ画像データ(画素
群階調値)を有するものとして、画素群内に形成される各種ドットの個数を、図22ない
し図24を用いて説明した方法によって決定した場合と同じ結果が得られる。
Next, the pixel group gradation value is converted into a multi-value quantization result value with reference to the threshold value table, and the obtained multi-value quantization result value is converted into number data with reference to the conversion table (step S208 in FIG. 7). ,
S210). As is clear from the description of the setting method of the threshold value table and the conversion table, the number data obtained in this way is assumed that all the pixels in the pixel group have the same image data (pixel group tone value). The same result as that obtained when the number of various dots formed in the pixel group is determined by the method described with reference to FIGS. 22 to 24 is obtained.

こうして得られた個数データを、ドットデータへの変換がより容易な中間データに変換
した後、順序値マトリックスに設定された順序値に従って、画素群内の各画素について、
ドット形成の有無を決定する(ステップS212、S214)。図24を用いて前述した
ように、ディザマトリックスに設定された閾値は、ドットが形成される順番を表している
ものと考えることができ、そして、図27を用いて前述したように、順序値マトリックス
は、ディザマトリックスの対応する位置でドットが形成される順番を表すマトリックスと
なっている。そして、画素群内に形成されるドットの種類、およびドットの個数について
は、ディザマトリックスを用いて求めたものと同じ結果が既に得られているから、順序値
マトリックスに従ってこれらドットが形成される画素を決定してやれば、図22ないし図
24を用いて説明した方法を適用して各画素についてのドット形成の有無を決定した場合
と、同じ結果を得ることができる。このため、ドットが良好に分散された高画質な画像を
印刷することが可能となるのである。
After converting the number data obtained in this way into intermediate data that is easier to convert to dot data, for each pixel in the pixel group according to the order value set in the order value matrix,
The presence / absence of dot formation is determined (steps S212 and S214). As described above with reference to FIG. 24, the threshold values set in the dither matrix can be considered to represent the order in which dots are formed, and as described above with reference to FIG. The matrix is a matrix representing the order in which dots are formed at corresponding positions in the dither matrix. As for the types of dots formed in the pixel group and the number of dots, the same results as those obtained using the dither matrix have already been obtained, so the pixels in which these dots are formed according to the order value matrix If the method described with reference to FIGS. 22 to 24 is applied, it is possible to obtain the same result as when the presence or absence of dot formation for each pixel is determined. For this reason, it becomes possible to print a high-quality image in which dots are well dispersed.

また、閾値テーブル、変換テーブル、順序値マトリックスを、いわゆるブルーノイズ特
性や、グリーンノイズ特性を持ったディザマトリックスに基づいて設定しておけば、比較
的少数ずつ(本実施例では8個ずつ)の画素群をまとめて処理しているにも関わらず、ブ
ルーノイズマスク、あるいはグリーンノイズマスクを用いることで実現されるような、良
好なドット分布を得ることが可能となるのである。
Further, if the threshold value table, the conversion table, and the order value matrix are set based on a so-called blue noise characteristic or a dither matrix having a green noise characteristic, a relatively small number (8 in this embodiment) is set. This makes it possible to obtain a good dot distribution that can be realized by using a blue noise mask or a green noise mask, even though the pixel group is processed together.

加えて、上述した第1のドットデータ生成処理では、画素群階調値を多値化結果値に変
換し、多値化結果値を個数データに変換し、個数データを中間データに変換して、最後に
ドットデータを得ており、結局、画素群階調値からドットデータが得られるまでに4段階
の変換を経ていることになる。図22ないし図24を用いて説明した方法では、画像デー
タを大中小各ドットの密度データに変換し、密度データからドットデータを求めているか
ら、2段階の変換でよい。このように、第1のドットデータ生成処理では、図22に示し
た方法よりも多段階の変換が必要となるものの、変換の内容は、単にテーブルを参照する
という極めて単純な処理であるため、図22に示す方法を用いた場合に対して、処理に要
する時間が長くなることはなく、速やかにドットデータを生成して画像を印刷することが
できる。
In addition, in the first dot data generation process described above, the pixel group gradation value is converted into a multi-value quantization result value, the multi-value quantization result value is converted into number data, and the number data is converted into intermediate data. Finally, dot data is obtained. Eventually, four-step conversion is performed until the dot data is obtained from the pixel group gradation value. In the method described with reference to FIGS. 22 to 24, image data is converted into density data of large, medium, and small dots, and dot data is obtained from the density data. As described above, in the first dot data generation process, although multi-stage conversion is required as compared with the method shown in FIG. 22, the content of the conversion is an extremely simple process of simply referring to the table. Compared with the method shown in FIG. 22, the time required for processing does not increase, and dot data can be quickly generated to print an image.

E.第2のドットデータ生成処理 :
本実施例のカラープリンタ200は、デジタルカメラ120から画像データを受け取っ
た場合には、以上に説明した第1のドットデータ生成処理を行ってドットデータを生成す
る。こうすれば、カラープリンタ200の制御回路260内で画像データをドットデータ
に変換することができるので、コンピュータ100を経由することなく、高画質な画像を
手軽に印刷することができる。一方、デジタルカメラ120で撮影した画像データを一旦
、コンピュータ100に供給してやれば、コンピュータ100内でより高解像度の画像デ
ータに変換したり、種々の画像処理を施して画像データに修正を加えることができる。こ
うしてコンピュータ100で所定の処理を施した画像のデータをカラープリンタ200に
供給すれば、より好ましい画像を印刷することが可能となる。
E. Second dot data generation process:
When the color printer 200 according to the present embodiment receives image data from the digital camera 120, the color printer 200 performs the first dot data generation process described above to generate dot data. In this way, since the image data can be converted into dot data within the control circuit 260 of the color printer 200, a high-quality image can be easily printed without going through the computer 100. On the other hand, once the image data photographed by the digital camera 120 is supplied to the computer 100, it can be converted into higher resolution image data in the computer 100, or various image processing can be performed to correct the image data. it can. If image data that has been subjected to predetermined processing by the computer 100 is supplied to the color printer 200 in this way, a more preferable image can be printed.

図6を用いて前述したように、本実施例のカラープリンタ200は、コンピュータ10
0から画像のデータを受け取る場合には、画素群毎の多値化結果値の形態でデータを受け
取り、以下に説明する第2のドットデータ生成処理を行うことによってドットデータを生
成する。このため、高解像度の画像であっても、迅速に印刷することが可能となる。以下
では、先ず初めに第2のドットデータ生成処理の概要について説明し、次いで、このよう
な方法でドットデータを生成することで、高解像度の画像であっても、高い画質を維持し
たまま迅速に印刷することが可能な理由について説明する。
As described above with reference to FIG. 6, the color printer 200 according to the present embodiment includes the computer 10.
When image data is received from 0, the data is received in the form of multi-value quantization result values for each pixel group, and dot data is generated by performing a second dot data generation process described below. For this reason, even a high-resolution image can be printed quickly. In the following, the outline of the second dot data generation process will be described first, and then dot data is generated by such a method so that even a high-resolution image can be quickly maintained while maintaining high image quality. The reason why printing is possible will be described.

E−1.処理の概要 :
図28は、第2のドットデータ生成処理の流れを示すフローチャートである。かかる処
理は、図6に示した画像印刷処理中で、コンピュータ100から、多値化結果値の形態で
画像のデータを受け取ると、カラープリンタ200の制御回路260に搭載されたCPU
によって実行される処理である。すなわち、画像データは、コンピュータ100内で、解
像度変換処理(図7のステップS200に相当)、色変換処理(図7のステップS202
に相当)が施された後、画素群毎の画素群階調値が求められ、更に画素群毎の多値化結果
値に変換された状態でカラープリンタ200に供給される。コンピュータ100内で、多
値化結果値を生成する方法は、前述した第1のドットデータ生成処理と同様に、閾値テー
ブルを参照して変換することもできるが、コンピュータ100には比較的十分な容量のメ
モリが搭載されていることが多いから、後述する方法を用いて、より迅速に多値化結果値
を求めることも可能である。
E-1. Process overview:
FIG. 28 is a flowchart showing the flow of the second dot data generation process. When the image data is received from the computer 100 in the form of a multi-value quantization result value during the image printing process shown in FIG. 6, the CPU mounted in the control circuit 260 of the color printer 200.
Is a process executed by. That is, the image data is converted into resolution conversion processing (corresponding to step S200 in FIG. 7) and color conversion processing (step S202 in FIG. 7) in the computer 100.
The pixel group gradation value for each pixel group is obtained, and further converted to a multi-value quantization result value for each pixel group, and supplied to the color printer 200. The method of generating the multi-value quantization result value in the computer 100 can be converted by referring to the threshold value table, as in the first dot data generation process described above, but is relatively sufficient for the computer 100. Since a large-capacity memory is often installed, it is also possible to obtain a multi-value quantization result value more quickly using a method described later.

第2のドットデータ生成処理を開始すると、先ず初めに、処理対象とする画素群を1つ
選択する(ステップS500)。次いで、選択した画素群の多値化結果値を取得し(ステ
ップS502)、選択した画素群の分類番号を算出する(ステップS504)。
When the second dot data generation process is started, first, one pixel group to be processed is selected (step S500). Next, the multi-value quantization result value of the selected pixel group is acquired (step S502), and the classification number of the selected pixel group is calculated (step S504).

画素群の分類番号は、画像中での画素群の位置から、次のようにして簡単に求めること
ができる。図29は、画像上での画素群の位置に基づいて、分類番号を求める方法を示し
た説明図である。今、対象としている画素群が、図29(a)に示すように、画像の一番
左上隅を基準として主走査方向にi個目の画素群、副走査方向にj個目の画素群の位置に
あるとする。また、このような画素群の位置を、座標値(i,j)によって表すものとす
る。また、ディザマトリックスの大きさは、通常は、画像のようには大きくはないので、
図20(b)を用いて前述したように、ディザマトリックスを主走査方向に移動させなが
ら、繰り返して使用するものとする。
The classification number of the pixel group can be easily obtained from the position of the pixel group in the image as follows. FIG. 29 is an explanatory diagram showing a method for obtaining the classification number based on the position of the pixel group on the image. As shown in FIG. 29A, the target pixel group is an i-th pixel group in the main scanning direction and a j-th pixel group in the sub-scanning direction with reference to the upper left corner of the image. Suppose it is in position. In addition, the position of such a pixel group is represented by coordinate values (i, j). Also, the size of the dither matrix is usually not as large as the image,
As described above with reference to FIG. 20B, the dither matrix is repeatedly used while being moved in the main scanning direction.

1つのディザマトリックスには主走査方向・副走査方向にそれぞれ32個ずつのブロッ
クが含まれるとしているから(図19(b)参照)、ディザマトリックス中で、対象の画
素群がある位置をI行J列とすれば、I、Jはそれぞれ次式で求めることができる。
I=i − int(i/32)×32
J=j − int(j/32)×32
ここで、intは、小数点以下を切り捨てて整数化することを表す前述した演算子である
。従って、画素群の座標値(i,j)に上式を適用してI,Jを求めることで、その画素
群がディザマトリックス中でI行J列にあることが分かる。これより、分類番号は、
I+(J−1)×32 …(2)
によって求めることができる。
Since one dither matrix includes 32 blocks each in the main scanning direction and the sub-scanning direction (see FIG. 19B), the position where the target pixel group is located in the dither matrix is I rows. If it is set as J row | line | column, I and J can each be calculated | required by following Formula.
I = i−int (i / 32) × 32
J = j−int (j / 32) × 32
Here, int is the above-described operator that represents rounding down to the integer. Therefore, by obtaining the values I and J by applying the above formula to the coordinate values (i, j) of the pixel group, it can be seen that the pixel group is in row I and column J in the dither matrix. From this, the classification number is
I + (J−1) × 32 (2)
Can be obtained.

また、画素群のディザマトリックス中での位置を表す値I,Jは、上述したような計算
を実行せずとも、i,jの2進数表示から所定ビットのデータを抜き出すだけで、極めて
簡便に求めることができる。図30は、画素群の座標値(i,j)から、画素群のディザ
マトリックス中での位置を求める方法を具体的に示した説明図である。図30(a)は、
数値iを表す10ビットの2進数表示したデータを概念的に示している。尚、図30(a
)では、各ビットを識別するために、最上位ビットから最下位ビットに向かって1番から
10番までの通し番号を付して表示している。
Also, the values I and J representing the position of the pixel group in the dither matrix can be very simply obtained by extracting predetermined bit data from the binary display of i and j without performing the above-described calculation. Can be sought. FIG. 30 is an explanatory diagram specifically showing a method for obtaining the position of the pixel group in the dither matrix from the coordinate value (i, j) of the pixel group. FIG. 30 (a)
10-bit binary data representing the numerical value i is conceptually shown. Note that FIG.
), In order to identify each bit, serial numbers from 1 to 10 are assigned and displayed from the most significant bit to the least significant bit.

画素群の位置を示す値Iを求めるに際しては、先ず初めに、int(i/32)を算出
する。この演算は、iの2進数データを右方向に5ビット分だけビットシフトさせること
で実行することができる(図30(b)参照)。次いで、int(i/32)×32を算
出する。この演算は、int(i/32)の2進数データを左方向に5ビット分だけビッ
トシフトさせることで実行することができる(図30(c)参照)。最後に、数値iから
、int(i/32)×32を減算すれば、目的とする数値Iを得ることができる。この
操作は、結局は、数値iの2進数データから下位の5ビットのみを抜き出していることに
他ならないから、極めて簡便に数値Iを得ることが可能である。同様にして、数値jの2
進数データから下位の5ビットのみを抜き出すことで、極めて簡便に数値Jを得ることが
可能である。こうして数値IおよびJが求まれば、上述の(2)式を用いて分類番号を算
出することができる。図28に示した第2のドットデータ生成処理のステップS504で
は、以上のようにして画素群の分類番号を算出する。
In obtaining the value I indicating the position of the pixel group, first, int (i / 32) is calculated. This calculation can be executed by shifting the binary data of i by 5 bits to the right (see FIG. 30B). Next, int (i / 32) × 32 is calculated. This calculation can be executed by bit-shifting the int (i / 32) binary data by 5 bits to the left (see FIG. 30C). Finally, by subtracting int (i / 32) × 32 from the numerical value i, the target numerical value I can be obtained. In the end, this operation is nothing but the extraction of the lower 5 bits from the binary data of the numerical value i, so that the numerical value I can be obtained very simply. Similarly, the numerical value j 2
By extracting only the lower 5 bits from the decimal data, the numerical value J can be obtained very simply. If the numerical values I and J are obtained in this way, the classification number can be calculated using the above-described equation (2). In step S504 of the second dot data generation process shown in FIG. 28, the pixel group classification number is calculated as described above.

こうして画素群の多値化結果値を取得して(図28のステップS502)、分類番号を
求めたら(S504)、デコードテーブルを参照することにより、画素群内の各画素につ
いてドット形成の有無を表したドットデータを読み出してやる(ステップS506)。デ
コードテーブルには、画素群の多値化結果値と分類番号の組合せ毎に、画素群についての
ドットデータが予め設定されている。
In this way, the multi-value quantization result value of the pixel group is acquired (step S502 in FIG. 28), and the classification number is obtained (S504). By referring to the decode table, the presence or absence of dot formation is determined for each pixel in the pixel group. The represented dot data is read out (step S506). In the decode table, dot data for the pixel group is set in advance for each combination of the multi-value quantization result value of the pixel group and the classification number.

図31は、第2のドットデータ生成処理で参照されるデコードテーブルを概念的に示し
た説明図である。図示されているように、デコードテーブルには、多値化結果値と分類番
号との組合せに対応付けて、画素群内の各画素に形成されるドット種類を表すデータ(ド
ットデータ)が設定されている。従って、このようなデコードテーブルを参照すれば、画
素群の分類番号と画素群階調値との組合せから、対応するドットデータを直ちに読み出す
ことができる。例えば、分類番号i番、画素群階調値jであれば、ドットデータはDD(
i,j)となる。こうして読み出されたドットデータには、画素群内の各画素についてド
ット形成の有無が記述されている。
FIG. 31 is an explanatory diagram conceptually showing a decode table referred to in the second dot data generation process. As shown in the figure, in the decode table, data (dot data) representing the dot type formed in each pixel in the pixel group is set in association with the combination of the multi-value quantization result value and the classification number. ing. Accordingly, by referring to such a decoding table, corresponding dot data can be read immediately from the combination of the pixel group classification number and the pixel group gradation value. For example, if the classification number is i and the pixel group tone value is j, the dot data is DD (
i, j). The dot data read out in this way describes the presence or absence of dot formation for each pixel in the pixel group.

図32は、デコードテーブルに設定されているドットデータのデータ構造を示した説明
図である。図32(a)に示すように、ドットデータは2ビットずつのデータ8組から構
成された16ビット長のデータとなっている。ここで、1つのドットデータが8組のデー
タから構成されているのは、本実施例では、1つの画素群に8つの画素が含まれているこ
とに対応するものである。従って、例えば、1つの画素群が4つの画素から構成される場
合は、1つのドットデータは4組のデータから構成されることになる。また、1組のデー
タが2ビットとなっているのは、本実施例のカラープリンタ200が1つの画素あたり、
「大ドットを形成」、「中ドットを形成」、「小ドットを形成」、「ドットを形成しない
」の4つの状態を表現し得ることに対応したものである。すなわち、1つの画素あたり4
つの状態しか取り得ないのであれば、2ビットで表現可能である。そこで、画素1つ分に
対応する1組のデータを、2ビットのデータ長としているのである。
FIG. 32 is an explanatory diagram showing the data structure of dot data set in the decode table. As shown in FIG. 32A, dot data is 16-bit data composed of 8 sets of 2-bit data. Here, the fact that one dot data is composed of eight sets of data corresponds to the fact that eight pixels are included in one pixel group in this embodiment. Therefore, for example, when one pixel group is composed of four pixels, one dot data is composed of four sets of data. One set of data consists of 2 bits because the color printer 200 of this embodiment has one pixel per pixel.
This corresponds to the fact that four states of “large dot formation”, “medium dot formation”, “small dot formation”, “no dot formation” can be expressed. That is, 4 per pixel
If only one state can be obtained, it can be expressed by 2 bits. Therefore, a set of data corresponding to one pixel has a 2-bit data length.

また、図32に示すように、ドットデータを構成する8組のデータは、それぞれ画素群
内の所定位置の画素に対応付けられている。例えば、図32(a)に示したドットデータ
の先頭にある1組目のデータは、図32(b)に示すように、画素群内で左上隅の画素に
対応している。また、ドットデータの先頭から2組目のデータは、画素群内で上段の左か
ら2番目の画素に対応している。このように、ドットデータを構成する8組のデータは、
それぞれ画素群内の所定位置の画素に予め対応付けられている。
Further, as shown in FIG. 32, the eight sets of data constituting the dot data are respectively associated with pixels at predetermined positions in the pixel group. For example, the first set of data at the head of the dot data shown in FIG. 32A corresponds to the pixel at the upper left corner in the pixel group, as shown in FIG. In addition, the second set of data from the top of the dot data corresponds to the second pixel from the upper left in the pixel group. Thus, the eight sets of data that make up the dot data are:
Each is associated in advance with a pixel at a predetermined position in the pixel group.

そして、各組のデータの内容は、対応する画素に形成するドットの種類を表している。
すなわち、2ビットのデータ「11」は大ドットを形成することを意味している。2ビッ
トのデータ「10」は中ドットを形成することを意味しており、「01」は小ドットを形
成することを、そして「00」はドットを形成しないことを意味している。以上の説明か
ら分かるように、図32(a)に例示したドットデータは、画素群の左上隅の画素には大
ドットを形成し、上段の左から3番目の画素には中ドットを、下段の左から2番目の画素
には小ドットを、画素群の右下隅の画素には中ドットを形成し、そして、その他の画素に
はドットを形成しないことを表すデータとなっている。
The contents of each set of data represent the types of dots formed on the corresponding pixels.
That is, the 2-bit data “11” means that a large dot is formed. The 2-bit data “10” means that a medium dot is formed, “01” means that a small dot is formed, and “00” means that a dot is not formed. As can be seen from the above description, in the dot data illustrated in FIG. 32A, a large dot is formed in the pixel at the upper left corner of the pixel group, a middle dot is formed in the third pixel from the left in the upper stage, and the lower stage. This is data indicating that a small dot is formed in the second pixel from the left, a medium dot is formed in the pixel at the lower right corner of the pixel group, and no dot is formed in the other pixels.

このように、デコードテーブルに設定されているデータは、画素群内の各画素について
何れのドットを形成するかを直接表すデータとなっているので、かかるデコードテーブル
を参照することにより、画素群の分類番号と多値化結果値との組合せから、直ちに、画素
群内の各画素についてのドット形成有無を決定することが可能となるのである。
In this way, the data set in the decode table is data that directly represents which dot is to be formed for each pixel in the pixel group. From the combination of the classification number and the multi-value quantization result value, it is possible to immediately determine whether or not dots are formed for each pixel in the pixel group.

次いで、全画素群についてドット形成の有無を決定したか否かを判断し(図28のステ
ップS508)、未処理の画素群が残っていれば(ステップS508:no)、ステップ
S500に戻って新たな画素群を選択し、その画素群について続く一連の処理を行う。こ
うした操作を繰り返して、全画素群について処理を終了したと判断されたら(ステップS
508:yes)、得られたドットデータをインク吐出用ヘッドに出力する(ステップS
510)。そして、図28に示した第2のドットデータ生成処理を終了して、図6の画像
印刷処理に復帰する。画像印刷処理では、このようにして生成されたドットデータに従っ
てインク吐出用ヘッドを駆動してインク滴を吐出することにより、印刷用紙上にドットを
形成して画像を印刷する。
Next, it is determined whether or not dot formation has been determined for all the pixel groups (step S508 in FIG. 28). If there is an unprocessed pixel group (step S508: no), the process returns to step S500 and a new one is created. A pixel group is selected, and a series of processes are performed for the pixel group. If it is determined that the process has been completed for all pixel groups by repeating these operations (step S).
508: yes), the obtained dot data is output to the ink ejection head (step S).
510). Then, the second dot data generation process shown in FIG. 28 is terminated, and the process returns to the image printing process of FIG. In the image printing process, the ink ejection head is driven according to the dot data generated in this manner to eject ink droplets, thereby forming dots on the printing paper and printing the image.

E−2.多値化結果値をコードデータに変換可能な理由 :
次に、以上に説明した第2のドットデータ生成処理によっても、前述した第1のドット
データ生成処理と同様に、高画質な画像を印刷することが可能な理由について説明する。
図33は、前述した第1のドットデータ生成処理において、多値化結果値から、画素群内
の各画素について大中小各ドットの形成有無を判断する処理の大まかな流れを概念的にま
とめた説明図である。図示されているように、第1のドットデータ生成処理では、多値化
結果値および分類番号から、変換テーブルを参照して個数データを決定する。また、予め
記憶されている順序値マトリックスの中から、分類番号に対応付けて記憶されているマト
リックスを読み出しておく。そして、順序値マトリックスに設定されている順序値と、個
数データを変換して得られた中間データとを用いて、画素群内の各画素についてのドット
形成有無を決定した。
E-2. Reason why multi-value conversion result value can be converted to code data:
Next, the reason why a high-quality image can be printed by the second dot data generation process described above as well as the first dot data generation process described above will be described.
FIG. 33 conceptually summarizes the general flow of processing for determining whether large, medium, and small dots are formed for each pixel in the pixel group from the multi-value quantization result value in the first dot data generation processing described above. It is explanatory drawing. As shown in the drawing, in the first dot data generation process, the number data is determined by referring to the conversion table from the multi-value quantization result value and the classification number. Also, a matrix stored in association with the classification number is read out from the sequence value matrix stored in advance. Then, using the order values set in the order value matrix and the intermediate data obtained by converting the number data, the presence or absence of dot formation for each pixel in the pixel group was determined.

このように、第1のドットデータ生成処理では、画素群の多値化結果値および分類番号
が決まれば、画素群内の各画素に形成されるドットの種類を決定することができる。従っ
て、予め、多値化結果値と分類番号との組合せ毎に、画素群内の各画素に形成されるドッ
トの種類を求めてデコードテーブルに記憶しておけば、かかるデコードテーブルを参照す
るだけで、直ちにドット形成有無を決定することが可能となるのである。こうして得られ
たドットデータは、第1のドットデータ生成処理によって得られたドットデータと全く同
じデータとなる。結局、デコードテーブルを参照して、多値化結果値をドットデータに変
換しても、ドットが良好に分散された高画質な画像を印刷することが可能となるのである
As described above, in the first dot data generation process, if the multi-value quantization result value and the classification number of the pixel group are determined, the type of dot formed in each pixel in the pixel group can be determined. Therefore, if the types of dots formed in each pixel in the pixel group are obtained and stored in the decode table in advance for each combination of the multi-value quantization result value and the classification number, only the decode table is referred to. Thus, it is possible to immediately determine whether or not dots are formed. The dot data obtained in this way is exactly the same data as the dot data obtained by the first dot data generation process. Eventually, even if the multi-value quantization result value is converted into dot data with reference to the decode table, it is possible to print a high-quality image in which dots are well dispersed.

E−3.コンピュータ内で多値化結果値を迅速に得る方法 :
前述した第1のドットデータ生成処理では、図9に示した閾値テーブルを参照すること
により、画素群の画素群階調値を多値化結果値に変換していた。しかし、コンピュータ1
00内で、画素群階調値を多値化結果値に変換する場合は、より迅速に多値化結果値を得
ることが可能である。以下では、かかる方法について簡単に説明する。
E-3. How to quickly obtain multi-valued result values in a computer:
In the first dot data generation process described above, the pixel group gradation value of the pixel group is converted into a multi-value quantization result value by referring to the threshold value table shown in FIG. But computer 1
When the pixel group gradation value is converted into the multi-value quantization result value within 00, it is possible to obtain the multi-value quantization result value more quickly. Below, this method is demonstrated easily.

図34は、コンピュータ100内で画素群階調値を多値化結果値に変換する際に参照さ
れるエンコードテーブルを概念的に示した説明図である。図示されているように、エンコ
ードテーブルには、画素群の分類番号毎に、画素群階調値に対する多値化結果値が対応づ
けて記憶されている。このエンコードテーブルは、第1のドットデータ生成処理で参照し
た閾値テーブルを、画素群階調値に対する多値化結果値が明示された表現形式に書き直し
たものとなっている。すなわち、閾値テーブルを参照して多値化結果値を決定する場合は
、前述したように、先ず、分類番号に設定されている閾値の組を読み出して、画素群階調
値より小さな閾値の個数を数えることで多値化結果値を求めることができた。従って、分
類番号と画素群階調値とが決まれば、閾値テーブルを参照して多値化結果値を決定するこ
とが可能である。そこで、分類番号と画素群階調値との組合せ毎に、多値化結果値を予め
求めておくことによって得られたテーブルが、図34に示したエンコードテーブルである
。このようなエンコードテーブルを参照すれば、分類番号と画素群階調値との組合せから
、迅速に多値化結果値を求めることが可能となる。
FIG. 34 is an explanatory diagram conceptually showing an encode table that is referred to when the pixel group gradation value is converted into the multi-value quantization result value in the computer 100. As shown in the figure, the encoding table stores a multi-value quantization result value for each pixel group gradation value in association with each pixel group classification number. This encoding table is obtained by rewriting the threshold value table referred to in the first dot data generation process into an expression format in which the multi-value quantization result value for the pixel group gradation value is clearly shown. That is, when determining the multi-value quantization result value with reference to the threshold value table, first, as described above, the threshold value set in the classification number is read, and the number of threshold values smaller than the pixel group gradation value is read. Multi-valued result values can be obtained by counting. Therefore, if the classification number and the pixel group gradation value are determined, the multi-value quantization result value can be determined with reference to the threshold value table. Therefore, the table obtained by previously obtaining the multi-value quantization result value for each combination of the classification number and the pixel group gradation value is the encode table shown in FIG. By referring to such an encoding table, it is possible to quickly obtain a multi-value quantization result value from a combination of a classification number and a pixel group gradation value.

もっとも、このようなデコードテーブルは、分類番号と画素群階調値との組合せ毎に多
値化結果値が設定されているため、デコードテーブルを記憶しておくためには多くのメモ
リ容量を必要とするという難点がある。従って、コンピュータ100などのように、比較
的多くのメモリ容量を搭載している場合には、デコードテーブルを参照して多値化結果値
を求めることが好ましい。これに対して、カラープリンタ200のように、搭載している
メモリ量が比較的少ない場合には、閾値テーブルを参照して多値化結果値を求めることと
すれば、少ないメモリ使用量で画素群階調値を多値化結果値に変換することができる。
However, since such a decoding table has a multi-value quantization result value for each combination of a classification number and a pixel group gradation value, a large memory capacity is required to store the decoding table. There is a difficulty that. Therefore, when a relatively large memory capacity is installed, such as the computer 100, it is preferable to obtain the multi-value quantization result value by referring to the decode table. On the other hand, when the installed memory amount is relatively small, such as the color printer 200, if the multi-value quantization result value is obtained by referring to the threshold value table, the pixel with a small memory usage amount The group gradation value can be converted into a multi-value quantization result value.

以上に説明したように、第2のドットデータ生成処理によれば、デコードテーブルを1
階参照するだけで、多値化結果値から画素群内の各画素についてのドット形成有無を直ち
に決定することができる。従って、コンピュータ100から供給された画素群毎の多値化
結果値を速やかにドットデータに変換することができる。
As described above, according to the second dot data generation process, the decoding table is set to 1
By simply referring to the floor, it is possible to immediately determine whether or not dots are formed for each pixel in the pixel group from the multi-value quantization result value. Therefore, the multi-value quantization result value for each pixel group supplied from the computer 100 can be quickly converted into dot data.

また、コンピュータ100内では、デコードテーブルを参照することで迅速に多値化結
果値を求めることができる。更に、画素群毎の多値化結果値であれば、画像データあるい
はドットデータよりも、遙かに少ないデータ量で表現することができる。このため、印刷
しようとする画像のデータを、多値化結果値の形態でカラープリンタ200に供給すれば
、たとえ解像度が高く従って画素数の多い画像であっても、迅速にデータを出力すること
ができる。
In the computer 100, the multi-value quantization result value can be quickly obtained by referring to the decode table. Furthermore, a multi-value quantization result value for each pixel group can be expressed with a much smaller data amount than image data or dot data. Therefore, if data of an image to be printed is supplied to the color printer 200 in the form of a multi-value quantization result value, even if the image has a high resolution and therefore a large number of pixels, the data can be output quickly. Can do.

このように、第2のドットデータ生成処理では、コンピュータ100で迅速に生成した
多値化結果値を迅速に受け取って、迅速にドットデータに変換することができる。このた
め、高画質な画像を速やかに印刷することができるのである。
As described above, in the second dot data generation process, the multilevel halftoning result value generated quickly by the computer 100 can be quickly received and quickly converted to dot data. For this reason, a high-quality image can be printed quickly.

F.ドットデータの生成方法を切り替える理由 :
上述したように本実施例のカラープリンタ200では、デジタルカメラ120から画像
データを受け取った場合には、第1のドットデータ生成処理によってドットデータを生成
し、コンピュータ100から画像のデータを受け取った場合には画素群毎の多値化結果値
の形態で受け取ることとして、第2のドットデータ生成処理によって画像データを生成し
ている。このように、デジタルカメラ120から画像データを受け取る場合と、コンピュ
ータ100から画像のデータを受け取る場合とで、ドットデータを生成する方法を切り替
えているのは、次のようなことを考慮したためである。
F. Reasons for switching the dot data generation method:
As described above, in the color printer 200 of the present embodiment, when image data is received from the digital camera 120, dot data is generated by the first dot data generation process and image data is received from the computer 100. Is received in the form of a multi-value quantization result value for each pixel group, and image data is generated by the second dot data generation processing. The reason why the dot data generation method is switched between the case of receiving image data from the digital camera 120 and the case of receiving image data from the computer 100 is as follows. .

コンピュータ100から受け取る画像のデータは、近年では解像度が高くなる傾向にあ
る。これは、画像を高い画質で印刷したいとする要請が高くなっており、これに伴って、
コンピュータ100上で画像を作成した後、印刷のために画像データを出力するに際して
は、高解像度のデータとして出力することが多くなっているためである。また、デジタル
カメラ120などで撮影した画像であっても、コンピュータ100に一旦読み込んで、画
像に種々の修正を加えた後、解像度を高くしてからカラープリンタ200に出力されるこ
とも多くなっている。
In recent years, image data received from the computer 100 tends to have high resolution. The demand for printing images with high image quality is increasing, and along with this,
This is because, after an image is created on the computer 100, when image data is output for printing, it is often output as high-resolution data. In addition, even images taken with the digital camera 120 or the like are often output to the color printer 200 after being read into the computer 100 and after various corrections are made to the image, the resolution is increased. Yes.

画像の解像度を高くすると、画像を構成する画素の数が多くなる分だけ、画像データの
データ量は増加する。このように画像データが大きくなると、画像データをドットデータ
に変換するための時間が長くなり、加えて、データをカラープリンタ200に出力するた
めの時間も長くなる。更に、カラープリンタ200が受け取ったデータに基づいてドット
を形成するための時間も長くなるので、結局、画像を印刷するために要する時間が増加し
てしまう。このため、コンピュータ100から画像のデータを受け取る場合には、画像デ
ータをドットデータに迅速に変換することが重要となる。また、大量のデータをコンピュ
ータ100からカラープリンタ200に供給する必要があるので、できるだけ迅速に供給
可能な形態でデータを供給することも重要となる。
When the image resolution is increased, the amount of image data increases as the number of pixels constituting the image increases. When the image data becomes large in this way, the time for converting the image data into dot data becomes longer, and in addition, the time for outputting the data to the color printer 200 becomes longer. In addition, since the time for forming dots based on the data received by the color printer 200 becomes longer, the time required for printing an image eventually increases. For this reason, when receiving image data from the computer 100, it is important to quickly convert the image data into dot data. Further, since it is necessary to supply a large amount of data from the computer 100 to the color printer 200, it is also important to supply the data in a form that can be supplied as quickly as possible.

一方、デジタルカメラ120から画像データをカラープリンタ200に直接供給して画
像を印刷する場合には、画像データをドットデータに変換する処理を、カラープリンタ2
00内で行わなければならない。一般に、カラープリンタ200に搭載されているCPU
は、コンピュータ100に搭載されているもの程には処理能力が高いわけではなく、また
RAMもコンピュータ100のようには十分なメモリ量のRAMが搭載されているわけで
はない。従って、できるだけCPUに負担を掛けない簡素な処理で、しかもメモリを圧迫
しない処理としておくことが望まれる。これに対して、コンピュータ100から画像のデ
ータを受け取る場合は、コンピュータ100に搭載されたCPUやRAMを利用すること
ができるので、カラープリンタ200内で画像処理を行うときのような、こうした問題が
生じることはない。
On the other hand, when image data is directly supplied from the digital camera 120 to the color printer 200 to print an image, the process of converting the image data into dot data is performed by the color printer 2.
Must be done within 00. Generally, a CPU mounted on the color printer 200
However, the processing capacity is not as high as that installed in the computer 100, and the RAM is not equipped with a sufficient amount of RAM unlike the computer 100. Therefore, it is desirable to use a simple process that does not impose a burden on the CPU as much as possible and a process that does not compress the memory. On the other hand, when receiving image data from the computer 100, the CPU and RAM installed in the computer 100 can be used. Therefore, such a problem as when performing image processing in the color printer 200 occurs. It does not occur.

本実施例のカラープリンタ200では、デジタルカメラ120から画像データを受け取
って印刷する場合と、コンピュータ100から画像のデータを受け取って印刷する場合と
で、それぞれに生じる上述した要請を共に満足させるために、ドットデータを生成するた
めの処理方法を切り替えているのである。以下では、先ず初めに、コンピュータ100か
ら画像のデータを受け取る場合について説明し、次に、デジタルカメラ120から画像デ
ータを受け取る場合について説明する。
In the color printer 200 of the present embodiment, in order to satisfy both the above-described demands that occur when image data is received from the digital camera 120 for printing and when image data is received from the computer 100 for printing. The processing method for generating dot data is switched. In the following, a case where image data is received from the computer 100 will be described first, and then a case where image data is received from the digital camera 120 will be described.

F−1.コンピュータから画像のデータを受け取る場合 :
先ず、コンピュータ100から画像のデータを受け取る場合は、前述したように、画素
群毎の多値化結果値の形態でデータを受け取り、図31に示したデコードテーブルを参照
してドットデータに変換する。画素群毎の多値化結果値は、画素毎に階調値が設定された
画像データや画素毎にドット形成の有無を表したドットデータよりも少ないデータ量で表
現することができるので、画像のデータを多値化結果値の形態で供給すれば、コンピュー
タ100からカラープリンタ200に迅速に画像のデータを供給することが可能となる。
加えて、図31に示したデコードテーブルを参照すれば、多値化結果値をドットデータに
速やかに変換することができる。更に、コンピュータ100の内部においても図34に示
したエンコードテーブルを参照すれば、画素群の画素群階調値を速やかに多値化結果値に
変換することができる。結局、コンピュータ100内で多値化結果値を速やかに生成し、
得られた多値化結果値を迅速にカラープリンタ200に供給し、更にカラープリンタ20
0内で迅速にドットデータに変換することができるので、高解像度の画像であっても速や
かに印刷することが可能となる。
F-1. When receiving image data from a computer:
First, when receiving image data from the computer 100, as described above, the data is received in the form of multi-value quantization result values for each pixel group, and converted to dot data with reference to the decode table shown in FIG. . The multi-value quantization result value for each pixel group can be expressed with a smaller amount of data than image data in which gradation values are set for each pixel or dot data representing the presence or absence of dot formation for each pixel. Is supplied in the form of a multi-value quantization result value, the image data can be quickly supplied from the computer 100 to the color printer 200.
In addition, with reference to the decode table shown in FIG. 31, the multi-value quantization result value can be quickly converted into dot data. Furthermore, by referring to the encoding table shown in FIG. 34 also inside the computer 100, the pixel group gradation value of the pixel group can be quickly converted into a multi-value quantization result value. Eventually, the multi-value quantization result value is quickly generated in the computer 100,
The obtained multi-value quantization result value is quickly supplied to the color printer 200, and further the color printer 20
Since it can be quickly converted into dot data within 0, even a high-resolution image can be printed quickly.

もっとも、このような方法を用いた場合には、コンピュータ100内には、図34に示
すエンコードテーブルを記憶しておき、カラープリンタ200内には、図31に示すデコ
ードテーブルを記憶しておく必要がある。これらテーブルを記憶するためには、以下のメ
モリ容量が必要となる。
However, when such a method is used, it is necessary to store the encode table shown in FIG. 34 in the computer 100 and the decode table shown in FIG. 31 in the color printer 200. There is. In order to store these tables, the following memory capacity is required.

先ず、エンコードテーブルについては、図34に示したように、分類番号と画素群階調
値との組み合わせ毎に1つずつ多値化結果値が設定されているから、エンコードテーブル
を記憶しておくためのメモリ量は、[分類番号の個数]×[画素群階調値の個数]×[多
値化結果値のデータ長]となる。分類番号の個数は、図19を用いて説明したように、デ
ィザマトリックスの大きさと、画素群の大きさとによって決定される。本実施例では、1
つの画素群が8つの画素から構成されているものとし、ディザマトリックスが図17に示
すような大きさであるとしているから、分類番号の個数は1024個となる。また、多値
化結果値のデータ長は、5ビットとなる。これは、閾値テーブルの設定方法についての説
明の中で前述したように、形成可能なドットの種類が3種類であり、画素群が8つの画素
から構成されているものとすれば、多値化結果値の取り得る種類は、高々20数種類、多
く見積もっても32種類を超えることはなく、32種類以内であれば5ビットあれば表現
することができるからである。結局、エンコードテーブルを記憶するためのメモリ容量は
、160kバイト(=1024×256×5ビット)となる。前述したように、コンピュ
ータ100には比較的メモリ容量の大きなRAMが搭載されているから、この程度のメモ
リ容量であれば、エンコードテーブルを記憶してもメモリを圧迫することはない。
First, as shown in FIG. 34, the encoding table is stored in the encoding table because one multi-value quantization result value is set for each combination of the classification number and the pixel group gradation value. The amount of memory for this is [number of classification numbers] × [number of pixel group gradation values] × [data length of multi-value quantization result value]. The number of classification numbers is determined by the dither matrix size and the pixel group size, as described with reference to FIG. In this example, 1
Since one pixel group is composed of eight pixels and the dither matrix has a size as shown in FIG. 17, the number of classification numbers is 1024. The data length of the multi-value quantization result value is 5 bits. As described above in the description of the threshold value table setting method, if the number of dots that can be formed is three and the pixel group is composed of eight pixels, multi-value conversion is possible. This is because the number of types of result values that can be taken is at most 20, more than 32 types are not estimated, and if it is within 32 types, it can be expressed with 5 bits. Eventually, the memory capacity for storing the encoding table is 160 kbytes (= 1024 × 256 × 5 bits). As described above, since the computer 100 is equipped with a RAM having a relatively large memory capacity, even if the encoding table is stored, the memory is not compressed if the memory capacity is about this level.

次にデコードテーブルについては、図31に示したように、分類番号と多値化結果値と
の組み合わせ毎に画素群のドットデータが1つずつ設定されているから、デコードテーブ
ルを記憶しておくためのメモリ量は、[分類番号の個数]×[多値化結果値の個数]×[
画素群あたりのドットデータのデータ長]となる。前述したように分類番号の個数は10
24個、多値化結果値の個数は32個である。また、画素群あたりのドットデータのデー
タ長は、16ビットとなる。これは、形成可能なドットの種類が3種類であるから、画素
あたり2ビットあればその画素に形成されるドットの有無を表現することが可能であり、
また、画素群が8つの画素で構成されているから、画素群あたりでは2ビット×8画素で
16ビットとなるからである。結局、デコードテーブルを記憶するためのメモリ容量は、
64kバイト(=1024×32×16ビット)となる。前述したように、カラープリン
タ200に搭載されるメモリ量は、コンピュータ100ほどには大きくはないが、この程
度のメモリ容量であれば、デコードテーブルを記憶しておいてもカラープリンタ200の
メモリを圧迫することはない。
Next, with respect to the decoding table, as shown in FIG. 31, one dot data of the pixel group is set for each combination of the classification number and the multi-value quantization result value, so the decoding table is stored. The amount of memory for [number of classification numbers] × [number of multi-value quantization result values] × [
Data length of dot data per pixel group]. As mentioned above, the number of classification numbers is 10
The number of 24 multi-value quantization result values is 32. The data length of dot data per pixel group is 16 bits. This is because there are three types of dots that can be formed, so if there are 2 bits per pixel, it is possible to express the presence or absence of dots formed on that pixel,
In addition, since the pixel group is composed of eight pixels, it is 2 bits × 8 pixels and 16 bits per pixel group. After all, the memory capacity to store the decode table is
64 kbytes (= 1024 × 32 × 16 bits). As described above, the amount of memory installed in the color printer 200 is not as large as that of the computer 100. However, if the memory capacity is about this level, the memory of the color printer 200 can be stored even if the decode table is stored. There is no pressure.

F−2.デジタルカメラから画像データを受け取る場合 :
次に、デジタルカメラ120から画像データを直接受け取る場合は、前述したように、
画像データから画素群毎の画素群階調値を求めた後、図9に示した閾値テーブルを参照し
て画素群毎の多値化結果値に変換する。次いで、図11に示した変換テーブルを参照して
、多値化結果値を個数データに変換し、これを図13に示す変換表に従って中間データに
変換する。そして最後に、画素群毎の順序値マトリックスを参照して、中間データを画素
群についてのドットデータに変換する。このようにして多段階の変換を経て、画像データ
をドットデータに変換してやれば、個々の変換は単純な処理となるためカラープリンタ2
00に搭載された処理能力の高くないCPUでも速やかに処理することができる。加えて
、コンピュータ100から画像のデータを転送することがないため、データの転送に時間
が掛かって印刷に要する時間が長くなってしまうこともない。しかも、個々の変換に際し
て参照されるテーブルは僅かなメモリ容量で記憶しておくことができるので、カラープリ
ンタ200のメモリを圧迫することがない。以下、この点について具体的に説明する。
F-2. When receiving image data from a digital camera:
Next, when receiving image data directly from the digital camera 120, as described above,
After obtaining the pixel group gradation value for each pixel group from the image data, it is converted into a multi-value quantization result value for each pixel group with reference to the threshold value table shown in FIG. Next, referring to the conversion table shown in FIG. 11, the multi-value quantization result value is converted into number data, and this is converted into intermediate data according to the conversion table shown in FIG. Finally, the intermediate data is converted into dot data for the pixel group with reference to the order value matrix for each pixel group. If the image data is converted into dot data through multi-step conversion in this way, each conversion becomes a simple process, so the color printer 2
Even a CPU with a high processing capacity installed in 00 can perform processing promptly. In addition, since image data is not transferred from the computer 100, it does not take a long time to transfer the data and the time required for printing does not increase. In addition, since the table referred to in each conversion can be stored with a small memory capacity, the memory of the color printer 200 is not compressed. Hereinafter, this point will be specifically described.

先ず、閾値テーブルについては、図9に示したように、分類番号毎に閾値の組が設定さ
れているから、閾値テーブルを記憶しておくためのメモリ量は、[分類番号の個数]×[
閾値の組1組あたりのデータ量]となる。多値化結果値の取り得る範囲が高々0〜31の
範囲としているから、閾値の組1組あたりに含まれる閾値の個数は31個を越えることは
なく、閾値は1バイトで表現することができるから、結局、閾値テーブルを記憶するため
のメモリ容量は、31kバイト(=1024×31×1バイト)に過ぎない。前述したエ
ンコードテーブルを記憶するために要するメモリ量(160kバイト)と比較すると、僅
かなメモリ量ということができる。
First, with respect to the threshold value table, as shown in FIG. 9, since a set of threshold values is set for each classification number, the memory amount for storing the threshold value table is [number of classification numbers] × [
Data amount per set of threshold values]. Since the possible range of the multi-value quantization result value is at most 0 to 31, the number of threshold values included in one set of threshold values does not exceed 31, and the threshold value can be expressed by 1 byte. Therefore, after all, the memory capacity for storing the threshold value table is only 31k bytes (= 1024 × 31 × 1 bytes). Compared with the amount of memory (160 kbytes) required to store the encoding table, it can be said that the amount of memory is small.

次に、変換テーブルを記憶するためのメモリ量は次のようなものとなる。図11に示し
たように、変換テーブルは、分類番号と多値化結果値との組み合わせ毎に個数データが設
定されているから、変換テーブルを記憶しておくためのメモリ量は、[分類番号の個数]
×[多値化結果値の個数]×[個数データのデータ長]となる。分類番号の個数は102
4個、多値化結果値の個数は32個であり、個数データのデータ長は1バイトであるから
、結局、変換テーブルを記憶するためのメモリ容量は、約32kバイト(=1024×3
2×1バイト)となる。
Next, the amount of memory for storing the conversion table is as follows. As shown in FIG. 11, in the conversion table, since the number data is set for each combination of the classification number and the multi-value quantization result value, the memory amount for storing the conversion table is [classification number Number of]
× [number of multi-value quantization result values] × [data length of number data]. The number of classification numbers is 102
Since the number of 4 multi-value quantization result values is 32 and the data length of the number data is 1 byte, the memory capacity for storing the conversion table is about 32 kbytes (= 1024 × 3).
2 × 1 bytes).

また、個数データを中間データに変換する際に参照される変換表については、次のよう
になる。図13に示したように変換表には、個数データごとに中間データが記憶されてい
るから、変換表を記憶しておくために要するメモリ量は、[個数データの個数]×[中間
データのデータ長]となる。前述したように、形成可能なドットの種類が3種類で、画素
群に含まれる画素が8つであれば、個数データは高々0〜164の範囲しか取り得ないか
ら、結局、変換表を記憶しておくためのメモリ量は、0.3kバイト(=165×16ビ
ット)に過ぎない。
The conversion table referred to when converting the number data into the intermediate data is as follows. As shown in FIG. 13, since the conversion table stores intermediate data for each piece of number data, the amount of memory required to store the conversion table is [number of pieces of number data] × [number of intermediate data]. Data length]. As described above, if there are three types of dots that can be formed and eight pixels are included in the pixel group, the number data can only take a range of 0 to 164 at most. The amount of memory for storage is only 0.3 kbytes (= 165 × 16 bits).

最後に、画素群の分類番号ごとに順序値マトリックスを記憶しておくためのメモリ量に
ついて説明する。図14に示したように、順序値マトリックスには画素毎に順序値が設定
されている。画素群に含まれる画素数を8つとすれば、順序値は1〜8の値しか取り得な
いので3ビットあれば順序値を表現することができるから、順序値マトリックスを1つ記
憶するために要するメモリ容量は、3バイト(=3ビット×8)となる。結局、分類番号
毎に順序値マトリックスを記憶しておくためには、3kバイト(=1024×3ビット×
8)のメモリ容量があればよい。
Finally, the memory amount for storing the order value matrix for each pixel group classification number will be described. As shown in FIG. 14, an order value is set for each pixel in the order value matrix. If the number of pixels included in the pixel group is eight, the order value can only take values from 1 to 8, and the order value can be expressed with 3 bits. Therefore, it is necessary to store one order value matrix. The memory capacity is 3 bytes (= 3 bits × 8). After all, in order to store the order value matrix for each classification number, 3 kbytes (= 1024 × 3 bits ×
The memory capacity of 8) is sufficient.

以上に説明したように、画像データをドットデータに変換する際に、閾値テーブル、変
換テーブル、変換表、および順序値マトリックスを参照して変換することとすれば、閾値
テーブルが31kバイト、変換テーブルが32kバイト、変換表が0.3kバイト、順序
値マトリクスが3kバイトで、合計でも66.3kバイトしか必要としない。前述したよ
うに、カラープリンタ200に搭載されるメモリ量は、コンピュータ100ほどには大き
くはないが、この程度のメモリ容量であれば、カラープリンタ200のメモリを圧迫する
ことはない。従って、コンピュータ100のようには、搭載されているCPUの処理能力
が高くはなく、メモリ量にも制限のあるカラープリンタ200でも、メモリを圧迫するこ
となく画像データをドットデータに変換して、高画質な画像を比較的速やかに印刷するこ
とが可能となるのである。
As described above, when converting image data into dot data, if the threshold value table, the conversion table, the conversion table, and the order value matrix are referred to, the threshold value table is 31 kbytes. Is 32 kbytes, the conversion table is 0.3 kbytes, the order value matrix is 3 kbytes, and only 66.3 kbytes are required in total. As described above, the amount of memory installed in the color printer 200 is not as large as that of the computer 100. However, with this memory capacity, the memory of the color printer 200 is not compressed. Therefore, even in the color printer 200 in which the processing capacity of the mounted CPU is not high as in the computer 100 and the amount of memory is limited, the image data is converted into dot data without squeezing the memory. This makes it possible to print a high-quality image relatively quickly.

G.変形例 :
以上の説明では、デジタルカメラ120から画像データを受け取った場合は、閾値テー
ブルを参照して多値化結果値を生成した後、変換テーブル、変換表、および順序値マトリ
ックスを参照することによって、多値化結果値を画素群についてのドットデータに変換す
るものとして説明した。上述したように、変換テーブル、変換表、および順序値マトリッ
クスは、それぞれ32kバイト、0.3kバイト、3kバイトであり、合計しても35.
3kバイトにしかならないので、カラープリンタ200のメモリを圧迫することなく画像
データをドットデータに変換することができた。もっとも、カラープリンタ200のメモ
リに多少の余裕がある場合には、前述したデコードテーブルを参照して、多値化結果値を
画素群についてのドットデータに変換することとしても良い。すなわち、デジタルカメラ
120から画像データを受け取ると、画素群毎に画素群階調値を求め、閾値テーブルを参
照して多値化結果値に変換する。そして、図31に示したデコードテーブルを参照するこ
とにより、多値化結果値を直接、画素群についてのドットデータに変換することとしても
良い。
G. Modified example:
In the above description, when image data is received from the digital camera 120, a multi-value quantization result value is generated by referring to the threshold value table, and then the conversion table, the conversion table, and the order value matrix are referred to. The description has been given on the assumption that the conversion result value is converted into dot data for the pixel group. As described above, the conversion table, the conversion table, and the order value matrix are 32 kbytes, 0.3 kbytes, and 3 kbytes, respectively.
Since it is only 3 kbytes, the image data could be converted to dot data without squeezing the memory of the color printer 200. However, when there is some margin in the memory of the color printer 200, the multi-value quantization result value may be converted into dot data for the pixel group with reference to the above-described decoding table. That is, when image data is received from the digital camera 120, a pixel group gradation value is obtained for each pixel group, and converted to a multi-value quantization result value with reference to a threshold value table. Then, by referring to the decoding table shown in FIG. 31, the multi-value quantization result value may be directly converted into dot data for the pixel group.

このようにしてデコードテーブルを参照すれば、多値化結果値からドットデータを直接
生成することができるので、迅速にドットデータを生成することができ、延いては画像を
迅速に印刷することができる。もちろん、前述したように、デコードテーブルを記憶する
ためには64kバイトものメモリ量が必要となるが、変換テーブルや、変換表、および順
序値マトリックスを記憶しておく必要はなくなるので、実質的なメモリの増加は28.7
kバイトとなる。
By referring to the decoding table in this way, dot data can be generated directly from the multi-value quantization result value, so that dot data can be generated quickly, and thus an image can be printed quickly. it can. Of course, as described above, a memory amount of 64 kbytes is required to store the decoding table, but it is not necessary to store the conversion table, the conversion table, and the order value matrix. Increase in memory is 28.7
k bytes.

加えて、コンピュータ100から画素群毎の多値化結果値を受け取った場合と、デジタ
ルカメラ120から画像データを受け取った場合とで、同じデコードテーブルを共用する
ことができるというメリットも得ることができる。この場合は、変換テーブルや、変換表
、および順序値マトリックスを記憶しておくためのメモリ量を節約することも可能となる
In addition, the same decode table can be shared when the multi-value quantization result value for each pixel group is received from the computer 100 and when the image data is received from the digital camera 120. . In this case, it is possible to save a memory amount for storing the conversion table, the conversion table, and the order value matrix.

また、カラープリンタ200内に、デジタルカメラ120から受け取った画像データを
変換するための各種テーブル(閾値テーブル、変換テーブル、変換表、および順序値マト
リックス)と、コンピュータ100から受け取った多値化結果値を変換するためのデコー
ドテーブルとを記憶しておく場合でも、これらテーブルを圧縮して記憶しておき、ドット
データを生成する際に参照するテーブルを解凍して使用することとしても良い。このよう
に各種のテーブルを圧縮した状態で記憶しておけば、デジタルカメラ120から画像デー
タを受け取った場合と、コンピュータ100から多値化結果値を受け取った場合とで、そ
れぞれ異なったテーブルを使い分ける場合でも、異なるテーブルを記憶しておくためにメ
モリが圧迫されることを回避することが可能となる。
Also, various tables (threshold table, conversion table, conversion table, and order value matrix) for converting the image data received from the digital camera 120 in the color printer 200, and the multi-value quantization result value received from the computer 100. Even when a decoding table for converting the image data is stored, these tables may be compressed and stored, and a table to be referred to when generating dot data may be decompressed and used. If various tables are stored in a compressed state in this way, different tables are used depending on whether image data is received from the digital camera 120 or multivalue quantization result values are received from the computer 100. Even in this case, it is possible to prevent the memory from being compressed because different tables are stored.

以上、各種の実施例について説明してきたが、本発明は上記すべての実施例に限られる
ものではなく、その要旨を逸脱しない範囲において種々の態様で実施することができる。
例えば、以上の実施例では、印刷用紙上にドットを形成して画像を印刷する場合について
説明したが、本発明の適用範囲は画像を印刷する場合に限られるものではない。例えば、
液晶表示画面上で輝点を適切な密度で分散させることにより、階調が連続的に変化する画
像を表現する液晶表示装置などにも、本発明を好適に適用することができる。
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 the liquid crystal display screen.

本実施例の画像出力装置としてのプリンタの概要を示した説明図である。It is explanatory drawing which showed the outline | summary of the printer as an image output device of a present Example. 本実施例のカラープリンタに画素群毎の多値化結果値を出力するコンピュータの構成を示す説明図である。It is explanatory drawing which shows the structure of the computer which outputs the multi-value quantization result value for every pixel group to the color printer of a present Example. 本実施例のカラープリンタの概略構成を示す説明図である。It is explanatory drawing which shows schematic structure of the color printer of a present Example. インク吐出用ヘッドにおけるインクジェットノズルの配列を示す説明図である。It is explanatory drawing which shows the arrangement | sequence of the inkjet nozzle in an ink discharge head. インク滴の吐出を制御することにより、大きさの異なるドットを形成する原理を示した説明図である。It is explanatory drawing which showed the principle which forms the dot from which a magnitude | size differs by controlling discharge of an ink drop. 本実施例のカラープリンタが画像を印刷するために行う画像印刷処理の流れを示すフローチャートである。3 is a flowchart illustrating a flow of image printing processing performed by the color printer of the present exemplary embodiment to print an image. 第1のドットデータ生成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a 1st dot data production | generation process. 画素群の分類番号を決定する方法を示した説明図である。It is explanatory drawing which showed the method of determining the classification number of a pixel group. 画素群階調値を多値化する際に参照される閾値テーブルを示した説明図である。It is explanatory drawing which showed the threshold value table referred when multi-value-izing a pixel group gradation value. 画素群の分類番号に応じて画素群階調値が異なる多値化結果値に変換される様子を概念的に示した説明図である。It is explanatory drawing which showed notionally that a pixel group gradation value is converted into the multi-value quantization result value according to the classification number of a pixel group. 画素群の多値化結果値を個数データに変換する際に参照される変換テーブルを概念的に示した説明図である。It is explanatory drawing which showed notionally the conversion table referred when converting the multi-value quantization result value of a pixel group into number data. 個数データと、大ドット、中ドット、小ドットの個数の組合せとの対応関係を示した説明図である。It is explanatory drawing which showed the correspondence of the number data and the combination of the number of large dots, medium dots, and small dots. 個数データと中間データとを対応付けた対応表を示す説明図である。It is explanatory drawing which shows the correspondence table which matched number data and intermediate data. 順序値マトリックスを例示した説明図である。It is explanatory drawing which illustrated the order value matrix. 中間データの中から順序値に対応する箇所のデータを読み出すことによりドット形成の有無を決定している様子を示した説明図である。It is explanatory drawing which showed a mode that the presence or absence of dot formation was determined by reading the data of the location corresponding to an order value from intermediate data. 順序値マトリックスに応じて異なるドットの配置が得られる様子を示す説明図である。It is explanatory drawing which shows a mode that a different dot arrangement | positioning is obtained according to an order value matrix. ディザマトリックスの一部を拡大して例示した説明図である。It is explanatory drawing which expanded and illustrated a part of dither matrix. ディザマトリックスを参照しながら各画素についてのドット形成の有無を判断している様子を概念的に示した説明図である。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 shows the content which the classification number for every pixel group means. 画素群の分類番号を算出する方法を示した説明図である。It is explanatory drawing which showed the method of calculating the classification number of a pixel group. 着目画素群の座標値の2進数表示から分類番号を求める方法を示した説明図である。It is explanatory drawing which showed the method of calculating | requiring a classification number from the binary number display of the coordinate value of a focused pixel group. ディザ法を発展させて画素毎に大ドット、中ドット、小ドットの形成の有無を決定可能としたハーフトーン処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the halftone process which developed the dither method and made it possible to determine the presence or absence of formation of a large dot, a medium dot, and a small dot for every pixel. 画像データの階調値を大中小各ドットについての密度データに変換する際に参照されるドット密度変換テーブルを概念的に示した説明図である。It is explanatory drawing which showed notionally the dot density conversion table referred when converting the gradation value of image data into the density data about each large / medium / small dot. 画素群内の各画素について大中小各ドットの形成有無を判断している様子を概念的に示した説明図である。It is explanatory drawing which showed notionally the mode that the presence or absence of formation of each large / medium / small dot was judged about each pixel in a pixel group. 閾値テーブルを設定する処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process which sets a threshold value table. 変換テーブルを設定する処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process which sets a conversion table. 順序値マトリックスを設定する方法について具体的に示した説明図である。It is explanatory drawing which showed concretely about the method of setting an order value matrix. 第2のドットデータ生成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a 2nd dot data production | generation process. 画像上での画素群の位置に基づいて分類番号を求める方法を示した説明図である。It is explanatory drawing which showed the method of calculating | requiring a classification number based on the position of the pixel group on an image. 画素群の座標値(i,j)から画素群のディザマトリックス中での位置を求める方法を具体的に示した説明図である。It is explanatory drawing which showed specifically the method of calculating | requiring the position in the dither matrix of a pixel group from the coordinate value (i, j) of a pixel group. 第2のドットデータ生成処理で参照されるデコードテーブルを概念的に示した説明図である。It is explanatory drawing which showed notionally the decoding table referred by the 2nd dot data generation process. デコードテーブルに設定されているドットデータのデータ構造を示した説明図である。It is explanatory drawing which showed the data structure of the dot data set to the decoding table. 前述した第1のドットデータ生成処理において多値化結果値から画素群内の各画素について大中小各ドットの形成有無を判断する処理の大まかな流れを概念的にまとめた説明図である。It is explanatory drawing which put together notionally the rough flow of the process which judges the formation existence of each large / medium / small dot about each pixel in a pixel group from the multi-value quantization result value in the 1st dot data generation process mentioned above. コンピュータ内で画素群階調値を多値化結果値に変換する際に参照されるエンコードテーブルを概念的に示した説明図である。It is explanatory drawing which showed notionally the encoding table referred when converting a pixel group gradation value into a multi-value quantization result value within a computer.

符号の説明Explanation of symbols

10…プリンタ、 20…デジタルカメラ、 30…コンピュータ、
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 ... printer, 20 ... digital camera, 30 ... computer,
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 (12)

画素毎にドット形成の有無を表したドットデータに基づいてドットを形成することによ
り、画像を出力する画像出力装置であって、
画素毎の階調値が規定された画像データを受け取って、該画像データを前記ドットデー
タに変換する第1のデータ変換部と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取って、該多値化結果値を前記ドットデータに変換する
第2のデータ変換部と、
前記第1のデータ変換部または前記第2のデータ変換部のいずれかによって生成された
前記ドットデータに基づいてドットを形成するドット形成手段と
を備え、
前記第1のデータ変換部は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する多値化手段と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する多値化
結果値変換手段と
を備えた変換部であり、
前記第2のデータ変換部は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成するドットデータ生成手段を備えた変換部である画像出力装置。
An image output device that outputs an image by forming dots based on dot data representing the presence or absence of dot formation for each pixel,
A first data converter that receives image data in which a gradation value for each pixel is defined, and converts the image data into the dot data;
For each pixel group in which a predetermined number of pixels are grouped together, a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received, and the multi-value quantization result value is received as the dot data A second data converter for converting into
Dot forming means for forming dots based on the dot data generated by either the first data converter or the second data converter;
The first data converter is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor Multi-value conversion means for multi-value the pixel group gradation value by comparing the tone value;
Multi-value conversion that converts the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group A conversion unit including a result value conversion unit,
The second data converter is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. An image output device, which is a conversion unit provided with dot data generation means for determining whether or not to form dots for each pixel in the pixel group from the values and generating the dot data.
請求項1記載の画像出力装置であって、
前記多値化結果値変換手段は、
前記画素群内に形成されるドットの個数を表す個数データと前記多値化結果値とが画
素群毎に関連付けられた変換テーブルを参照することにより、前記画素群毎に得られた多
値化結果値から該個数データを生成する個数データ生成手段と、
前記画素群内の各画素についてドットが形成される順番を画素群毎に記憶しておき、
前記画素群毎に得られた個数データと、該画素群内の各画素について記憶されている順番
とに基づいて、該画素群内の各画素についてのドット形成有無を決定するドット形成有無
決定手段と
を備えた手段である画像出力装置。
The image output apparatus according to claim 1,
The multi-value quantization result value conversion means is
Multi-value quantization obtained for each pixel group by referring to a conversion table in which the number data representing the number of dots formed in the pixel group and the multi-value quantization result value are associated with each pixel group Number data generating means for generating the number data from the result value;
The order in which dots are formed for each pixel in the pixel group is stored for each pixel group,
Dot formation presence / absence determining means for determining the presence / absence of dot formation for each pixel in the pixel group based on the number data obtained for each pixel group and the order stored for each pixel in the pixel group And an image output device.
請求項2記載の画像出力装置であって、
前記画素群に含まれる画素数をNとして、該画素群に形成されるドットの個数をMとし
たときに、ドットを形成することを意味するM個の連続するデータと、ドットを形成しな
いことを意味する(N−M)個の連続するデータとからなる中間データを、前記個数デー
タから生成する中間データ生成手段を備え、
前記ドット形成有無決定手段は、前記画素群の個数データを変換して得られた前記中間
データの中から、該画素群内の各画素に記憶された順番に対応する位置のデータを読み出
すことにより、該画素群毎にドット形成の有無を決定する手段である画像出力装置。
The image output device according to claim 2,
When the number of pixels included in the pixel group is N and the number of dots formed in the pixel group is M, M continuous data that means forming dots and no dots are formed. Intermediate data generating means for generating intermediate data consisting of (N−M) continuous data meaning the number data,
The dot formation presence / absence determining means reads out data at positions corresponding to the order stored in each pixel in the pixel group from the intermediate data obtained by converting the number data of the pixel group. An image output device as means for determining the presence or absence of dot formation for each pixel group.
請求項1記載の画像出力装置であって、
前記多値化結果値変換手段は、前記ドットデータ生成手段が前記多値化結果値から前記
ドットデータを生成する際に参照する前記対応関係を参照することによって、前記画素群
毎に得られた多値化結果値を該ドットデータに変換する手段である画像出力装置。
The image output apparatus according to claim 1,
The multi-value quantization result value conversion means is obtained for each pixel group by referring to the correspondence relationship that the dot data generation means refers to when generating the dot data from the multi-value quantization result value. An image output apparatus as means for converting a multi-value quantization result value into the dot data.
請求項1記載の画像出力装置であって、
前記画素群を前記画像中での位置に応じて複数種類に分類することにより、該各々の画
素群に分類番号を付与する分類番号付与手段を備え、
前記多値化手段は、前記分類番号毎に少なくとも1つの閾値を記憶しておき、前記画素
群の多値化結果値と、該画素群の分類番号に記憶されている該閾値とを比較することによ
り、該画素群階調値を多値化する手段であり、
前記多値化結果値変換手段は、前記多値化結果値と、該多値化結果値が得られた画素群
についての前記分類番号とに基づいて、該多値化結果値を前記ドットデータに変換する手
段であり、
前記ドットデータ生成手段は、前記多値化結果値と前記画素群内の各画素についてのド
ット形成の有無とが、前記分類番号毎に関連付けられた対応関係を参照することにより、
該多値化結果値から前記ドットデータを生成する手段である画像出力装置。
The image output apparatus according to claim 1,
Classifying means for assigning a classification number to each pixel group by classifying the pixel group into a plurality of types according to the position in the image,
The multi-value quantization means stores at least one threshold value for each classification number, and compares the multi-value quantization result value of the pixel group with the threshold value stored in the classification number of the pixel group. By this means, the pixel group gradation value is a multi-value means,
The multi-value quantization result value conversion means converts the multi-value quantization result value to the dot data based on the multi-value quantization result value and the classification number for the pixel group from which the multi-value quantization result value is obtained. Is a means to convert
The dot data generation means refers to the correspondence relationship in which the multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are associated with each classification number,
An image output apparatus as means for generating the dot data from the multi-value quantization result value.
請求項1記載の画像出力装置であって、
前記ドット形成手段は、単ドットあたりに表現可能な階調値の異なる複数種類のドット
を形成可能な手段であり、
前記多値化結果値変換手段は、前記画素群内の各画素について、前記複数種類のドット
についての形成有無を決定することにより、前記多値化結果値を前記ドットデータに変換
する手段であり、
前記ドットデータ生成手段は、前記多値化結果値と、前記画素群内の各画素での前記複
数種類のドットについての形成有無とが、該画素群毎に関連付けられた対応関係を参照す
ることにより、前記ドットデータを生成する手段である画像出力装置。
The image output apparatus according to claim 1,
The dot forming means is a means capable of forming a plurality of types of dots having different gradation values that can be expressed per single dot,
The multi-value quantization result value conversion means is means for converting the multi-value quantization result value into the dot data by determining whether or not to form the plurality of types of dots for each pixel in the pixel group. ,
The dot data generation means refers to a correspondence relationship in which the multi-value quantization result value and the presence / absence of formation of the plurality of types of dots in each pixel in the pixel group are associated with each pixel group. An image output device which is means for generating the dot data.
画像を表すデータに対して所定の画像処理を施すことにより、画素毎にドット形成の有
無を表したドットデータを生成して、画像出力装置に供給する画像処理装置であって、
画素毎の階調値が規定された画像データを受け取って、該画像データを前記ドットデー
タに変換する第1のデータ変換部と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取って、該多値化結果値を前記ドットデータに変換する
第2のデータ変換部と、
前記第1のデータ変換部または前記第2のデータ変換部のいずれかによって生成された
前記ドットデータを前記画像出力装置に供給するドットデータ供給手段と
を備え、
前記第1のデータ変換部は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する多値化手段と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する多値化
結果値変換手段と
を備えた変換部であり、
前記第2のデータ変換部は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成するドットデータ生成手段を備えた変換部である画像処理装置。
An image processing apparatus that generates dot data representing the presence or absence of dot formation for each pixel by applying predetermined image processing to data representing an image, and supplies the dot data to an image output apparatus,
A first data converter that receives image data in which a gradation value for each pixel is defined, and converts the image data into the dot data;
For each pixel group in which a predetermined number of pixels are grouped together, a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received, and the multi-value quantization result value is received as the dot data A second data converter for converting into
Dot data supply means for supplying the dot data generated by either the first data conversion unit or the second data conversion unit to the image output device,
The first data converter is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor Multi-value conversion means for multi-value the pixel group gradation value by comparing the tone value;
Multi-value conversion that converts the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group A conversion unit including a result value conversion unit,
The second data converter is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. An image processing apparatus, which is a conversion unit including dot data generation means for determining whether or not to form dots for each pixel in the pixel group from values and generating the dot data.
画素毎にドット形成の有無を表したドットデータに基づいてドットを形成することによ
り、画像を出力する画像出力方法であって、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する工程(1)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する工程(2)と、
前記工程(1)または前記工程(2)のいずれかによって生成された前記ドットデータ
に基づいてドットを形成する工程(3)と
を備え、
前記工程(1)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副工程(1−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副工程
(1−b)と
を備えた工程であり、
前記工程(2)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副工程(2−a)を備えた工程である画像出力方法。
An image output method for outputting an image by forming dots based on dot data representing the presence or absence of dot formation for each pixel,
When receiving image data in which a gradation value for each pixel is defined, the step (1) of converting the image data into the dot data;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are collected, the multi-value quantization result value is Converting to the dot data (2);
And (3) forming dots based on the dot data generated by either the step (1) or the step (2),
The step (1)
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-step (1-a) for multi-value the pixel group gradation value by comparing the tone value;
A sub-step of converting the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( 1-b) and
The step (2)
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. An image output method comprising a sub-step (2-a) for determining whether or not to form a dot for each pixel in the pixel group from the value and generating the dot data.
請求項8記載の画像出力方法であって、
副工程(1−b)は、
前記画素群内に形成されるドットの個数を表す個数データと前記多値化結果値とが画
素群毎に関連付けられた変換テーブルを参照することにより、前記画素群毎に得られた多
値化結果値から該個数データを生成する工程と、
前記画素群内の各画素についてドットが形成される順番を画素群毎に記憶しておき、
前記画素群毎に得られた個数データと、該画素群内の各画素について記憶されている順番
とに基づいて、該画素群内の各画素についてのドット形成有無を決定する工程と、
を備えた工程である画像出力方法。
The image output method according to claim 8, comprising:
Sub-step (1-b)
Multi-value quantization obtained for each pixel group by referring to a conversion table in which the number data representing the number of dots formed in the pixel group and the multi-value quantization result value are associated with each pixel group Generating the number data from the result value;
The order in which dots are formed for each pixel in the pixel group is stored for each pixel group,
Determining the presence or absence of dot formation for each pixel in the pixel group based on the number data obtained for each pixel group and the order stored for each pixel in the pixel group;
An image output method which is a process comprising:
画像を表すデータに対して所定の画像処理を施すことにより、画素毎にドット形成の有
無を表したドットデータを生成して、画像出力装置に供給する画像処理方法であって、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する工程(A)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する工程(B)と、
前記工程(A)または前記工程(B)のいずれかによって生成された前記ドットデータ
を前記画像出力装置に供給する工程(C)と
を備え、
前記工程(A)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副工程(A−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副工程
(A−b)と
を備えた工程であり、
前記工程(B)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副工程(B−a)を備えた工程である画像処理方法。
An image processing method for generating dot data representing the presence or absence of dot formation for each pixel by applying predetermined image processing to data representing an image, and supplying the dot data to an image output device,
When receiving image data in which a gradation value for each pixel is defined, the step (A) of converting the image data into the dot data;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are collected, the multi-value quantization result value is A step (B) of converting into the dot data;
And (C) supplying the dot data generated by either the step (A) or the step (B) to the image output device,
The step (A)
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-process (Aa) that multi-values the pixel group gradation value by comparing the tone value;
A sub-step of converting the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( A-b) and
The step (B)
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. An image processing method comprising a sub-step (Ba) for determining whether or not to form dots for each pixel in the pixel group from the values and generating the dot data.
画素毎にドット形成の有無を表したドットデータに基づいてドットを形成することによ
り、画像を出力する方法を、コンピュータで実現するためのプログラムであって、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する機能(1)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する機能(2)と、
前記機能(1)または前記機能(2)のいずれかによって生成された前記ドットデータ
に基づいてドットを形成する機能(3)と
をコンピュータを用いて実現するとともに、
前記機能(1)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副機能(1−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副機能
(1−b)と
を備えた機能であり、
前記機能(2)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副機能(2−a)を備えた機能であるプログラム。
A program for realizing a method of outputting an image by forming a dot on the basis of dot data representing the presence or absence of dot formation for each pixel by a computer,
A function (1) for converting the image data into the dot data when image data in which a gradation value for each pixel is defined is received;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are collected, the multi-value quantization result value is A function (2) for converting to the dot data;
A function (3) for forming dots based on the dot data generated by either the function (1) or the function (2) is realized using a computer,
The function (1) is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-function (1-a) that multi-values the pixel group gradation value by comparing the tone value;
A sub-function for converting the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( 1-b) and a function having
The function (2) is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. A program having a sub-function (2-a) for determining whether or not to form dots for each pixel in the pixel group from the values and generating the dot data.
画像を表すデータに対して所定の画像処理を施すことにより、画素毎にドット形成の有
無を表したドットデータを生成して画像出力装置に供給する方法を、コンピュータで実現
するためのプログラムであって、
画素毎の階調値が規定された画像データを受け取った場合には、該画像データを前記ド
ットデータに変換する機能(A)と、
複数の画素が所定個数ずつまとめられた画素群毎に、該画素群を代表する階調値たる画
素群階調値の多値化結果値を受け取った場合には、該多値化結果値を前記ドットデータに
変換する機能(B)と、
前記機能(A)または前記機能(B)のいずれかによって生成された前記ドットデータ
を前記画像出力装置に供給する機能(C)と
をコンピュータを用いて実現するとともに、
前記機能(A)は、
前記画像データを受け取ると、前記画素群にまとめられた各画素の階調値から前記画
素群階調値を決定して、該画素群毎に記憶されている少なくとも1つの閾値と該画素群階
調値とを比較することにより、該画素群階調値を多値化する副機能(A−a)と、
前記画素群毎に得られた多値化結果値に基づいて該画素群内の各画素についてドット
の形成有無を決定することにより、該多値化結果値を前記ドットデータに変換する副機能
(A−b)と
を備えた機能であり、
前記機能(B)は、
前記多値化結果値と前記画素群内の各画素についてのドット形成の有無とが、該画素
群毎に関連付けられた対応関係を参照することにより、前記画素群毎に受け取った多値化
結果値から該画素群内の各画素についてドットの形成有無を決定して、前記ドットデータ
を生成する副機能(B−a)を備えた機能であるプログラム。
A computer program for realizing a method of generating dot data representing the presence or absence of dot formation for each pixel and supplying it to an image output device by performing predetermined image processing on the data representing the image. And
A function (A) for converting the image data into the dot data when image data in which a gradation value for each pixel is defined is received;
When a multi-value quantization result value of a pixel group gradation value that is a gradation value representing the pixel group is received for each pixel group in which a predetermined number of pixels are grouped, the multi-value quantization result value is A function (B) for converting to the dot data;
A function (C) for supplying the dot data generated by either the function (A) or the function (B) to the image output device is realized using a computer,
The function (A) is
When the image data is received, the pixel group gradation value is determined from the gradation value of each pixel collected in the pixel group, and at least one threshold value stored in each pixel group and the pixel group floor A sub-function (Aa) that multi-values the pixel group gradation value by comparing the tone value;
A sub-function for converting the multi-value quantization result value into the dot data by determining the presence or absence of dot formation for each pixel in the pixel group based on the multi-value quantization result value obtained for each pixel group ( A-b) and
The function (B) is
The multi-value quantization result value and the presence or absence of dot formation for each pixel in the pixel group are referred to the correspondence relationship associated with each pixel group, and the multi-value quantization result received for each pixel group. A program having a sub-function (Ba) for determining whether or not to form dots for each pixel in the pixel group from the values and generating the dot data.
JP2005000444A 2005-01-05 2005-01-05 Image output device outputting image while performing image processing a plurality of pixels at a time Withdrawn JP2006191268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005000444A JP2006191268A (en) 2005-01-05 2005-01-05 Image output device outputting image while performing image processing a plurality of pixels at a time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005000444A JP2006191268A (en) 2005-01-05 2005-01-05 Image output device outputting image while performing image processing a plurality of pixels at a time

Publications (1)

Publication Number Publication Date
JP2006191268A true JP2006191268A (en) 2006-07-20

Family

ID=36797990

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005000444A Withdrawn JP2006191268A (en) 2005-01-05 2005-01-05 Image output device outputting image while performing image processing a plurality of pixels at a time

Country Status (1)

Country Link
JP (1) JP2006191268A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008023893A (en) * 2006-07-24 2008-02-07 Seiko Epson Corp Image processing apparatus for performing bidirectional printing and printing apparatus
JP2008092397A (en) * 2006-10-04 2008-04-17 Seiko Epson Corp Image processing apparatus, image processing method and printer
JP2008099188A (en) * 2006-10-16 2008-04-24 Seiko Epson Corp Image processor, image processing method, and printing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008023893A (en) * 2006-07-24 2008-02-07 Seiko Epson Corp Image processing apparatus for performing bidirectional printing and printing apparatus
JP4675296B2 (en) * 2006-07-24 2011-04-20 セイコーエプソン株式会社 Printing apparatus and printing method
JP2008092397A (en) * 2006-10-04 2008-04-17 Seiko Epson Corp Image processing apparatus, image processing method and printer
JP2008099188A (en) * 2006-10-16 2008-04-24 Seiko Epson Corp Image processor, image processing method, and printing device

Similar Documents

Publication Publication Date Title
JP4534963B2 (en) Image forming method, image forming apparatus, image forming system, printing method, printed matter generating method, and computer program for controlling image forming apparatus
JP4375235B2 (en) Image output system that outputs images while coding multiple pixels at a time
US7580156B2 (en) Image processing system, image processing device, dot data processing device, and method and program product therefor
JP4506652B2 (en) High quality halftone processing
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
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
JP4192640B2 (en) Image processing apparatus and image processing method for performing processing while detecting edge in block
US20060158691A1 (en) Image processing system, image processing device, image output device, and method and program product therefor
US7796303B2 (en) Image processing system, image processing device, dot data processing device, and method and program product therefor
JP4297033B2 (en) Image processing apparatus that performs multi-value conversion for each pixel
JP4375050B2 (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
JP4375071B2 (en) An image output system for outputting an image based on information on the number of dots formed in a predetermined area
JP2005224983A (en) Image output system for outputting image according to information on number of dots formed in prescribed area
JP2006229810A (en) Image output system for outputting image, while coding a plurality of pixels each
JP2006191268A (en) Image output device outputting image while performing image processing a plurality of pixels at a time
JP2004297451A (en) Image display system for displaying image based on information of number of dots to be formed in prescribed area
JP4225320B2 (en) Image output control system, image output apparatus, image processing apparatus, and methods thereof
JP2005138421A (en) Image output device for outputting image by image-processing compressed image data
JP2007245347A (en) High image-quality halftone processing
JP2006044185A (en) Apparatus, method and program for outputting image
JP2005111883A (en) Image display system for displaying image according to information of the number of dots formed in predetermined area

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080401