JP2000332995A5 - - Google Patents
Info
- Publication number
- JP2000332995A5 JP2000332995A5 JP11-146593A JP14659399A JP2000332995A5 JP 2000332995 A5 JP2000332995 A5 JP 2000332995A5 JP 14659399 A JP14659399 A JP 14659399A JP 2000332995 A5 JP2000332995 A5 JP 2000332995A5
- Authority
- JP
- Japan
- Prior art keywords
- image data
- code pattern
- code
- interest
- grayscale
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Description
【手続補正書】[Procedural Amendment Document]
【提出日】平成15年3月27日(2003.3.2
7)[Submission Date] March 27, 2003 (2003.3.2)
7)
【手続補正1】[Procedural Amendment 1]
【補正対象書類名】明細書[Document to be amended] Statement
【補正対象項目名】全文[Item to be corrected] Full text
【補正方法】変更[Correction Method] Change
【補正内容】[Correction Details]
【書類名】 明細書[Document Name] Statement
【発明の名称】 画像データ生成方法、装置および記録
媒体[Title of Invention] Image Data Generation Method , Apparatus , and Recording Medium
【特許請求の範囲】[Claims]
【請求項1】 第1の解像度の画像データから第1の解
像度より高い第2の解像度の画像データを生成する画像
データ生成方法であって、前記第1の画像データの注目
画素毎に、該画素の位置に対応した複数の閾値を用い
て、画素値を階調数に変換し、前記画素の位置および前
記変換された階調数に対応した所定の符号パターンを参
照することにより、前記第2の画像データを生成するこ
とを特徴とする画像データ生成方法。[Claim 1] An image data generation method for generating image data of a second resolution higher than the first resolution from image data of a first resolution, characterized in that for each pixel of interest in the first image data, the pixel value is converted to a number of grayscale levels using a plurality of thresholds corresponding to the position of the pixel, and the second image data is generated by referring to a predetermined code pattern corresponding to the position of the pixel and the converted number of grayscale levels.
【請求項2】 第1の解像度の画像データから第1の解
像度より高い第2の解像度の画像データを生成する画像
データ生成装置であって、前記第1の画像データの注目
画素毎に、該画素の位置に対応した複数の閾値を用い
て、画素値を階調数に変換する手段と、前記画素の位置
および前記変換された階調数に対応した所定の符号パタ
ーンを参照することにより、前記第2の画像データを生
成する手段とを備えたことを特徴とする画像データ生成
装置。[Claim 2] An image data generation device that generates image data of a second resolution higher than the first resolution from image data of a first resolution, comprising: means for converting a pixel value to a number of grayscale levels for each pixel of interest in the first image data using a plurality of thresholds corresponding to the position of the pixel; and means for generating the second image data by referring to a predetermined code pattern corresponding to the position of the pixel and the converted number of grayscale levels.
Device .
【請求項3】 前記階調数変換時に誤差拡散処理を適用
することを特徴とする請求項2記載の画像データ生成装
置。[Claim 3] The image data generation system according to claim 2 , characterized in that error diffusion processing is applied during the grayscale conversion.
Place .
【請求項4】 同一階調値における前記符号パターン
を、前記第1の画像データの画素位置に対応して配置し
たとき、該配置がドット分散型となることを特徴とする
請求項2記載の画像データ生成装置。[Claim 4] The image data generation device according to claim 2 , characterized in that when the code patterns at the same grayscale value are arranged in correspondence with the pixel positions of the first image data, the arrangement is of the dot-dispersed type .
【請求項5】 同一階調値における前記符号パターン
を、前記第1の画像データの画素位置に対応して配置し
たとき、該配置がブルーノイズ型となることを特徴とす
る請求項2記載の画像データ生成装置。[Claim 5] The image data generation device according to claim 2 , characterized in that when the code patterns at the same grayscale value are arranged in correspondence with the pixel positions of the first image data, the arrangement becomes a blue noise type .
【請求項6】 前記階調数変換をホスト側で行い、前記
階調数を画像出力装置に対して送信することを特徴とす
る請求項2記載の画像データ生成装置。[Claim 6] The grayscale conversion is performed on the host side and the grayscale number is transmitted to the image output device.
The image data generation apparatus according to claim 2 .
【請求項7】 前記階調数の送信がn進法で行われると
き、前記階調数をnのべき乗とすることを特徴とする請
求項6記載の画像データ生成装置。[Claim 7] The image data generation device according to claim 6 , characterized in that when the transmission of the number of grayscale levels is performed in base n, the number of grayscale levels is raised to a power of n.
【請求項8】 第1の解像度の画像データから第1の解
像度より高い第2の解像度の画像データを生成する画像
データ生成装置において、前記第1の画像データの注目
画素毎に、該画素の位置に対応した複数の閾値を用い
て、画素値を階調数に変換する手段と、前記画素の位置
および前記変換された階調数に対応した所定の第1の符
号パターンを参照することにより、前記第2の画像デー
タを生成する手段とを備えた画像データ生成装置であっ
て、前記注目画素に対応した符号パターンおよび所定個
数の前記第1の画像データに対応した符号パターンから
構成される所定形状の注目符号パターン群と、特定符号
パターン群とを比較し一致したとき、前記注目符号パタ
ーン群の所定の第2の符号パターンを、第3の符号パタ
ーンに変更することを特徴とする画像データ生成装置。[Claim 8] An image data generation device that generates image data of a second resolution higher than the first resolution from image data of a first resolution, comprising : means for converting a pixel value to a number of grayscale levels for each pixel of interest in the first image data using a plurality of thresholds corresponding to the position of the pixel; and means for generating the second image data by referring to a predetermined first code pattern corresponding to the position of the pixel and the converted number of grayscale levels, wherein a predetermined group of code patterns of interest of a predetermined shape, composed of a code pattern corresponding to the pixel of interest and a predetermined number of code patterns corresponding to the first image data, is compared with a specific group of code patterns, and when they match, a predetermined second code pattern in the group of code patterns of interest is changed to a third code pattern .
【請求項9】 前記階調数変換をホスト側で行い、前記
階調数を画像出力装置に対して送信し、該画像出力装置
は前記階調数に対応した符号パターンを参照することに
より前記第2の画像データを生成すると共に、前記第3
の符号パターンへの変更を行うことを特徴とする請求項
8記載の画像データ生成装置。[Claim 9] The host performs the grayscale conversion, transmits the grayscale to an image output device, and the image output device generates the second image data by referring to a code pattern corresponding to the grayscale, and the third
The characteristic is to change the code pattern.
Image data generation device as described in item 8 .
【請求項10】 前記変更の対象となる前記第3の符号
パターンは、前記所定の第1の符号パターンの何れとも
異なることを特徴とする請求項8記載の画像データ生成
装置。[Claim 10] The image data generation according to claim 8 , characterized in that the third code pattern subject to modification is different from any of the predetermined first code patterns.
Device .
【請求項11】 前記注目符号パターン群を複数用い
て、該複数の注目符号パターン群と特定符号パターン群
とを比較することを特徴とする請求項8記載の画像デー
タ生成装置。[Claim 11] The image data generation apparatus according to claim 8 , characterized in that a plurality of groups of note code patterns are used to compare the plurality of groups of note code patterns with a specific code pattern group.
【請求項12】 前記第1の画像データが複数の色成分
を有し、該色成分毎に、前記所定形状の注目符号パター
ン群と特定符号パターン群とを比較するとき、前記色成
分の内、少なくとも1つの色成分については、前記特定
符号パターン群の数を、他の色成分の特定符号パターン
群の数よりも少なくしたことを特徴とする請求項8記載
の画像データ生成装置。[Claim 12] The image data generation device according to claim 8, wherein the first image data has a plurality of color components, and when comparing the group of note code patterns of a predetermined shape with a specific code pattern group for each color component, the number of specific code pattern groups for at least one of the color components is less than the number of specific code pattern groups for the other color components.
【請求項13】 前記第1の画像データが複数の色成分
を有し、該色成分毎に、前記注目符号パターン群を複数
用いて、該複数の注目符号パターン群と特定符号パター
ン群とを比較するとき、前記色成分の内、少なくとも1
つの色成分については、前記注目符号パターン群の数
を、他の色成分の注目符号パターン群の数よりも少なく
したことを特徴とする請求項8記載の画像データ生成装
置。[Claim 13] The first image data has a plurality of color components, and when comparing the plurality of target code pattern groups with a specific code pattern group using a plurality of target code pattern groups for each color component, at least one of the color components
The image data generation device according to claim 8 , characterized in that the number of the aforementioned code pattern groups for one color component is less than the number of the aforementioned code pattern groups for the other color components.
Place .
【請求項14】 前記少なくとも1つの色成分は黄色で
あることを特徴とする請求項12または13記載の画像
データ生成装置。[Claim 14] The image data generation apparatus according to claim 12 or 13 , characterized in that at least one color component is yellow.
【請求項15】 第1の解像度の画像データから第1の
解像度より高い第2の解像度の画像データを生成する機
能をコンピュータに実現させるためのプログラムを記録
したコンピュータ読み取り可能な記録媒体であって、前
記第1の画像データの注目画素毎に、該画素の位置に対
応した複数の閾値を用いて、画素値を階調数に変換する
機能と、前記画素の位置および前記変換された階調数に
対応した所定の符号パターンを参照することにより、前
記第2の画像データを生成する機能をコンピュータに実
現させるためのプログラムを記録したコンピュータ読み
取り可能な記録媒体。[Claim 15] A computer-readable recording medium that stores a program for a computer to implement a function to generate image data of a second resolution higher than the first resolution from image data of a first resolution, wherein the program stores a program for a computer to implement a function to convert a pixel value into a number of grayscale levels for each pixel of interest in the first image data using a plurality of thresholds corresponding to the position of the pixel, and a function to generate the second image data by referring to a predetermined code pattern corresponding to the position of the pixel and the converted number of grayscale levels.
【請求項16】 前記階調数変換時に誤差拡散処理を適
用することを特徴とする請求項15記載の記録媒体。 [Claim 16] Error diffusion processing is appropriate when converting the number of grayscale levels.
The recording medium according to claim 15, characterized by being used in this manner.
【請求項17】 同一階調値における前記符号パターン
を、前記第1の画像データの画素位置に対応して配置し
たとき、該配置がドット分散型となることを特徴とする
請求項15記載の記録媒体。 [Claim 17] The code pattern at the same grayscale value
The first image data is arranged in accordance with the pixel positions of the first image data.
When this occurs, the arrangement is characterized by being of the dot-dispersed type.
The recording medium according to claim 15.
【請求項18】 同一階調値における前記符号パターン
を、前記第1の画像データの画素位置に対応して配置し
たとき、該配置がブルーノイズ型となることを特徴とす
る請求項15記載の記録媒体。 [Claim 18] The sign pattern at the same grayscale value
The first image data is arranged in accordance with the pixel positions of the first image data.
When this occurs, the arrangement is characterized by being of the blue noise type.
The recording medium according to claim 15.
【請求項19】 前記階調数変換をホスト側で行い、前
記階調数を画像出力装置に対して送信することを特徴と
する請求項15記載の記録媒体。 [Claim 19] The grayscale conversion is performed on the host side,
It is characterized by transmitting the number of grayscale levels to the image output device.
The recording medium according to claim 15.
【請求項20】 前記階調数の送信がn進法で行われる
とき、前記階調数をnのべき乗とすることを特徴とする
請求項19記載の記録媒体。 [Claim 20] The transmission of the number of grayscale levels is performed in base n.
In this case, the number of gradations is characterized by being a power of n.
The recording medium according to claim 19.
【発明の詳細な説明】[Detailed Description of the Invention]
【0001】[0001]
【発明の属する技術分野】本発明は、画像情報を、出力
装置用のデータとして中間調処理および解像度変換する
画像データ生成方法、装置および画像データ生成処理プ
ログラムを記録した記録媒体に関し、アプリケーション
プログラム、ディスプレイドライバ、プリンタドライバ
等のデバイスドライバに適用される技術である。[Technical Field to Which the Invention Pertains] The present invention relates to an image data generation method , apparatus , and recording medium that stores an image data generation processing program for performing halftone processing and resolution conversion on image information as data for an output device, and is an application technology to device drivers such as application programs, display drivers, and printer drivers.
【0002】[0002]
【従来の技術】コンピュータの普及により、テキスト、
グラフィックス等のベクトルデータや、自然画等のイメ
ージデータを含んだ複雑な文書が容易に作成できるよう
になった。このような文書を高品位でプリントできるよ
うに、プリンタの解像度も向上しているが、その結果、
プリンタへ送信すべきデータ量が増大し、処理時間や転
送時間の増大を招いている。[Traditional technology] With the spread of computers, text,
It has become easy to create complex documents containing vector data such as graphics, and image data such as natural images. Printer resolution has also improved to enable high-quality printing of such documents, but as a result,
The increasing amount of data that needs to be sent to the printer is leading to longer processing and transfer times.
【0003】上記したような文書を所定の解像度および
階調表現能力を有するプリンタを用いて出力する場合の
代表的な方法(以下、第1の方法)として、例えば特開
平5‐96792号公報に記載されているものがある。[0003] A typical method (hereinafter referred to as the first method) for outputting the above-described document using a printer having a predetermined resolution and grayscale expression capability is, for example, the one described in Japanese Patent Application Publication No. 5-96792.
【0004】この第1の方法では、プリンタドライバ内
で、ベクトルデータを所定解像度のビットマップデータ
としてラスター展開するとともに、自然画等のイメージ
データに対して所定解像度への解像度変換を行った後、
両者に対して所定階調数への階調数変換(中間調処理)
を施し、階調変換後(中間調処理後)のデータをプリン
タに対して送信するものである。従って、プリントスピ
ードを向上させるためには、ラスター展開、解像度変
換、および中間調処理の高速化が必要であり、またこれ
と同時に、プリンタへのデータ転送の高速化も必要であ
る。[0004] In this first method, within the printer driver, vector data is rasterized as bitmap data of a predetermined resolution, and image data such as natural images is converted to a predetermined resolution,
Tone conversion to a predetermined number of tones for both (intermediate tone processing)
This process involves applying raster unfolding, resolution conversion, and halftone processing, and then sending the resulting data to the printer. Therefore, to improve print speed, it is necessary to speed up raster unfolding, resolution conversion, and halftone processing, and simultaneously, to speed up data transfer to the printer.
【0005】[0005]
【発明が解決しようとする課題】そこで、ラスター展開
および中間調処理を高速化する方法が、「PPA Pr
inter Software Driver Des
ign」(HP Journal,June 199
7)に記載されている。[Problems to be solved by the invention] Therefore, a method for speeding up raster unfolding and halftone processing is "PPA Pr
inter Software Driver Des
ign” (HP Journal, June 199
It is described in 7).
【0006】この方法(以下、第2の方法)では、ラス
ター展開および中間調処理を高速化するため、ラスター
展開およびイメージデータの解像度変換をプリンタの解
像度よりも低い解像度で行い、中間調処理を施した後プ
リンタに送信し、プリンタのファームウエアを使って全
体の解像度変換(イメージデータ単体の解像度変換と区
別するため、これを以下“全体の”と呼ぶ)を行って、
上記低解像度をプリンタの解像度に変換して出力する
(なお、前掲した文献には、テキストをプリンタの1/
2の解像度でラスター展開し、ファームウエアを使って
テキストの解像度を倍に変換することが記載されてい
る)。[0006] In this method (hereinafter referred to as the second method), in order to speed up raster unfolding and halftone processing, raster unfolding and resolution conversion of image data are performed at a resolution lower than the printer's resolution, halftone processing is performed and then the data is sent to the printer, and the printer's firmware is used to perform overall resolution conversion (hereinafter referred to as "overall" to distinguish it from the resolution conversion of individual image data),
The above low resolution is converted to the printer's resolution and output (Note that the previously cited document states that the text should be converted to the printer's 1/
(The document describes rasterization at a resolution of 2 and then using firmware to double the resolution of the text.)
【0007】上記したように、ラスター展開、ビットマ
ップの解像度変換および中間調処理を低解像度で行え
ば、処理すべきデータ量が削減される結果、高速化が図
られる。しかし、中間調処理後のデータに解像度変換を
施した場合、解像度変換を行ってから中間調処理を施す
場合に比べて、明らかに画質が低下しやすい。[0007] As described above, if raster unfolding, bitmap resolution conversion, and halftone processing are performed at a low resolution, the amount of data to be processed is reduced, resulting in faster processing. However, when resolution conversion is applied to data after halftone processing, the image quality is clearly more likely to deteriorate compared to when resolution conversion is performed before halftone processing.
【0008】以上で説明した第1の方法、第2の方法を
簡単に比較すると、以下のような傾向となり、概略「第
1の方法は画質優先で、第2の方法は速度優先」と言え
る。[0008] A brief comparison of the first and second methods described above reveals the following trends, and can be broadly described as "the first method prioritizes image quality, while the second method prioritizes speed."
【0009】 [0009]
【0010】本発明は上記した事情を考慮してなされた
もので、本発明の目的は、ラスター展開とイメージの解
像度変換が従来の第1、第2の方法よりも速く、中間調
処理、転送データ量、画質については従来の第1、第2
の方法の中間となる、両者の長所を併せ持ち、中間調処
理と全体の解像度変換を同時に行う画像データ生成方
法、装置および記録媒体を提供することにある。[0010] The present invention has been made in consideration of the above circumstances, and the object of the present invention is that raster unfolding and image resolution conversion are faster than the conventional first and second methods, and that halftone processing, data transfer volume, and image quality are better than the conventional first and second methods.
The objective is to provide an image data generation method , apparatus , and recording medium that are intermediate between the two methods, combining the advantages of both, and performing halftone processing and overall resolution conversion simultaneously.
【0011】すなわち、 [0011] That is to say,
【0012】[0012]
【課題を解決するための手段】前記目的を達成するため
に、請求項1記載の発明では、第1の解像度の画像デー
タから第1の解像度より高い第2の解像度の画像データ
を生成する画像データ生成方法であって、前記第1の画
像データの注目画素毎に、該画素の位置に対応した複数
の閾値を用いて、画素値を階調数に変換し、前記画素の
位置および前記変換された階調数に対応した所定の符号
パターンを参照することにより、前記第2の画像データ
を生成することを特徴としている。[Means for Solving the Problem] In order to achieve the above objective, the invention described in claim 1 is an image data generation method for generating image data of a second resolution higher than the first resolution from image data of a first resolution, characterized in that for each pixel of interest in the first image data, the pixel value is converted to a number of grayscale levels using a plurality of thresholds corresponding to the position of the pixel, and the second image data is generated by referring to a predetermined code pattern corresponding to the position of the pixel and the converted number of grayscale levels.
【0013】請求項2記載の発明では、第1の解像度の
画像データから第1の解像度より高い第2の解像度の画
像データを生成する画像データ生成装置であって、前記
第1の画像データの注目画素毎に、該画素の位置に対応
した複数の閾値を用いて、画素値を階調数に変換する手
段と、前記画素の位置および前記変換された階調数に対
応した所定の符号パターンを参照することにより、前記
第2の画像データを生成する手段とを備えたことを特徴
としている。[0013] The invention described in claim 2 is an image data generation device that generates image data of a second resolution higher than the first resolution from image data of a first resolution, wherein for each pixel of interest in the first image data, the position of the pixel corresponds
Using multiple thresholds, the method of converting pixel values to the number of gray levels
The system is characterized by comprising steps and means for generating the second image data by referring to a predetermined code pattern corresponding to the position of the pixel and the converted number of grayscale levels.
【0014】請求項3記載の発明では、前記階調数変換
時に誤差拡散処理を適用することを特徴としている。[0014] The invention described in claim 3 is characterized in that error diffusion processing is applied when the number of grayscale levels is converted.
【0015】請求項4記載の発明では、同一階調値にお
ける前記符号パターンを、前記第1の画像データの画素
位置に対応して配置したとき、該配置がドット分散型と
なることを特徴としている。[0015] The invention described in claim 4 is characterized in that when the code patterns at the same grayscale value are arranged in correspondence with the pixel positions of the first image data, the arrangement becomes a dot-dispersed type.
【0016】請求項5記載の発明では、同一階調値にお
ける前記符号パターンを、前記第1の画像データの画素
位置に対応して配置したとき、該配置がブルーノイズ型
となることを特徴としている。[0016] The invention described in claim 5 is characterized in that when the code patterns at the same grayscale value are arranged in correspondence with the pixel positions of the first image data, the arrangement becomes a blue noise type.
【0017】請求項6記載の発明では、前記階調数変換
をホスト側で行い、前記階調数を画像出力装置に対して
送信することを特徴としている。[0017] The invention described in claim 6 is characterized in that the grayscale conversion is performed on the host side and the grayscale number is transmitted to the image output device.
【0018】請求項7記載の発明では、前記階調数の送
信がn進法で行われるとき、前記階調数をnのべき乗と
することを特徴としている。[0018] The invention described in claim 7 is characterized in that when the transmission of the number of grayscale levels is performed in base n, the number of grayscale levels is raised to a power of n.
【0019】請求項8記載の発明では、第1の解像度の
画像データから第1の解像度より高い第2の解像度の画
像データを生成する画像データ生成装置において、前記
第1の画像データの注目画素毎に、該画素の位置に対応
した複数の閾値を用いて、画素値を階調数に変換する手
段と、前記画素の位置および前記変換された階調数に対
応した所定の第1の符号パターンを参照することによ
り、前記第2の画像データを生成する手段とを備えた画
像データ生成装置であって、前記注目画素に対応した符
号パターンおよび所定個数の前記第1の画像データに対
応した符号パターンから構成される所定形状の注目符号
パターン群と、特定符号パターン群とを比較し一致した
とき、前記注目符号パターン群の所定の第2の符号パタ
ーンを、第3の符号パターンに変更することを特徴とし
ている。[0019] In the invention described in claim 8 , an image data generation device generates image data of a second resolution higher than the first resolution from image data of a first resolution, wherein for each pixel of interest in the first image data, the position of the pixel corresponds
Using multiple thresholds, the method of converting pixel values to the number of gray levels
An image data generation apparatus comprising a stage and means for generating the second image data by referring to a predetermined first code pattern corresponding to the position of the pixel and the converted number of grayscale levels, characterized in that when a predetermined group of code patterns of interest, which consists of a code pattern corresponding to the pixel of interest and a predetermined number of code patterns corresponding to the first image data, is compared with a specific code pattern group and matches, a predetermined second code pattern of the group of code patterns of interest is changed to a third code pattern.
【0020】請求項9記載の発明では、前記階調数変換
をホスト側で行い、前記階調数を画像出力装置に対して
送信し、該画像出力装置は前記階調数に対応した符号パ
ターンを参照することにより前記第2の画像データを生
成すると共に、前記第3の符号パターンへの変更を行う
ことを特徴としている。[0020] The invention described in claim 9 is characterized in that the grayscale number conversion is performed on the host side, the grayscale number is transmitted to the image output device, and the image output device generates the second image data by referring to the code pattern corresponding to the grayscale number and also changes it to the third code pattern.
【0021】請求項10記載の発明では、前記変更の対
象となる前記第3の符号パターンは、前記所定の第1の
符号パターンの何れとも異なることを特徴としている。[0021] The invention described in claim 10 is characterized in that the third code pattern to be modified is different from any of the predetermined first code patterns.
【0022】請求項11記載の発明では、前記注目符号
パターン群を複数用いて、該複数の注目符号パターン群
と特定符号パターン群とを比較することを特徴としてい
る。[0022] The invention described in claim 11 is characterized by using a plurality of the aforementioned groups of code patterns of interest and comparing the plurality of groups of code patterns of interest with a specific group of code patterns.
【0023】請求項12記載の発明では、前記第1の画
像データが複数の色成分を有し、該色成分毎に、前記所
定形状の注目符号パターン群と特定符号パターン群とを
比較するとき、前記色成分の内、少なくとも1つの色成
分については、前記特定符号パターン群の数を、他の色
成分の特定符号パターン群の数よりも少なくしたことを
特徴としている。[0023] The invention described in claim 12 is characterized in that the first image data has a plurality of color components, and when comparing the group of note code patterns of a predetermined shape with a specific code pattern group for each color component, the number of specific code pattern groups for at least one of the color components is less than the number of specific code pattern groups for the other color components.
【0024】請求項13記載の発明では、前記第1の画
像データが複数の色成分を有し、該色成分毎に、前記注
目符号パターン群を複数用いて、該複数の注目符号パタ
ーン群と特定符号パターン群とを比較するとき、前記色
成分の内、少なくとも1つの色成分については、前記注
目符号パターン群の数を、他の色成分の注目符号パター
ン群の数よりも少なくしたことを特徴としている。請求
項14記載の発明では、前記少なくとも1つの色成分は
黄色であることを特徴としている。請求項15記載の発
明では、第1の解像度の画像データから第1の解像度よ
り高い第2の解像度の画像データを生成する機能をコン
ピュータに実現させるためのプログラムを記録したコン
ピュータ読み取り可能な記録媒体であって、前記第1の
画像データの注目画素毎に、該画素の位置に対応した複
数の閾値を用いて、画素値を階調数に変換する機能と、
前記画素の位置および前記変換された階調数に対応した
所定の符号パターンを参照することにより、前記第2の
画像データを生成する機能をコンピュータに実現させる
ためのプログラムを記録したコンピュータ読み取り可能
な記録媒体であることを特徴としている。請求項16記
載の発明では、前記階調数変換時に誤差拡散処理を適用
することを特徴としている。請求項17記載の発明で
は、同一階調値における前記符号パターンを、前記第1
の画像データの画素位置に対応して配置したとき、該配
置がドット分散型となることを特徴としている。請求項
18記載の発明では、同一階調値における前記符号パタ
ーンを、前記第1の画像データの画素位置に対応して配
置したとき、該配置がブルーノイズ型となることを特徴
としている。請求項19記載の発明では、前記階調数変
換をホスト側で行い、前記階調数を画像出力装置に対し
て送信することを特徴としている。請求項20記載の発
明では、前記階調数の送信がn進法で行われるとき、前
記階調数をnのべき乗とすることを特徴としている。 [0024] The invention of claim 13 is characterized in that the first image data has a plurality of color components, and when comparing the plurality of target code pattern groups with a specific code pattern group using a plurality of target code pattern groups for each color component, the number of target code pattern groups for at least one of the color components is less than the number of target code pattern groups for the other color components. The invention of claim 14 is characterized in that the at least one color component is yellow. The invention of claim 15 is a computer-readable recording medium that stores a program for a computer to realize a function of generating image data with a second resolution higher than the first resolution from image data with a first resolution, wherein for each target pixel of the first image data, a plurality corresponding to the position of the pixel
A function that converts pixel values to grayscale levels using a numerical threshold,
The present invention is characterized by being a computer-readable recording medium that stores a program for enabling a computer to perform the function of generating the second image data by referring to a predetermined code pattern corresponding to the position of the pixel and the number of grayscale levels.
In the present invention, error diffusion processing is applied during the grayscale conversion.
The invention is characterized by the following:
The sign pattern at the same grayscale value is the first
When arranged in accordance with the pixel position of the image data, the arrangement
The arrangement is characterized by being dot-dispersed.
In the invention described in 18, the symbol pattern in the same grayscale value
The lines are arranged in accordance with the pixel positions of the first image data.
When placed, the arrangement is characterized by being of the blue noise type.
The invention described in claim 19 is described in which the number of grayscale levels changes
The conversion is performed on the host side, and the number of grayscale levels is sent to the image output device.
The method is characterized by transmitting by [method].
In the case of the transmission of the number of grayscale levels, when the transmission is performed in base n,
It is characterized by using a power of n for the number of tonal levels.
【0025】[0025]
【発明の実施の形態】以下、本発明の一実施例を図面を
用いて具体的に説明する。
(実施例1)図1は、本発明の実施例1の構成を示す。
図において、1はラスター展開または解像度変換した後
の画像データ、2は閾値が配列された閾値マトリック
ス、3は符号パターンが格納された符号パターン格納
部、4はプリントデータであり、画像データ1と閾値マ
トリックスは処理装置5内にあり、符号パターン格納部
3とプリントデータ4はプリンタ6内にある。また、本
発明の実施例1では、例えば解像度600dpi、階調
数2値のプリンタを出力装置として用いる。[Embodiments of the Invention] Hereinafter, an embodiment of the present invention will be specifically described with reference to the drawings. (Embodiment 1) Figure 1 shows the configuration of Embodiment 1 of the present invention.
In the figure, 1 is image data after raster unfolding or resolution conversion, 2 is a threshold matrix in which thresholds are arranged, 3 is a code pattern storage unit in which code patterns are stored, and 4 is print data. The image data 1 and the threshold matrix are located in the processing unit 5, while the code pattern storage unit 3 and print data 4 are located in the printer 6. In Embodiment 1 of the present invention, for example, a printer with a resolution of 600 dpi and a 2-level grayscale is used as the output device.
【0026】以下、本発明を説明する前に前述した従来
の第1、第2の方法について図を用いて説明する。図2
は、階調数変換(中間調処理)で使用する4×4の閾値
マトリクスを示す。マトリックスのデータの各画素は、
例えば0から15までの値(各画素が4ビットの多値)
をとる。[0026] Before describing the present invention, the conventional first and second methods described above will be explained with reference to a figure. Figure 2
This shows a 4x4 threshold matrix used for grayscale conversion (intertone processing). Each pixel of the matrix data is:
For example, values from 0 to 15 (multi-level values with 4 bits per pixel)
Take it.
【0027】図3(a)は、前記した第1の方法によっ
て、ベクトルデータを600dpiでラスター展開した
後のデータ、あるいはイメージデータを600dpiに
解像度変換した後のデータである。また、図4(a)
は、同様に前記した第2の方法によって、300dpi
でラスター展開または解像度変換した後のデータを示
す。なお、この例では、図3(a)は、図4(a)を公
知の最近傍法で2倍に解像度変換した場合と同じものに
なっている。[0027] Figure 3(a) shows the data obtained by rasterizing vector data at 600 dpi using the first method described above, or the data obtained by converting the resolution of image data to 600 dpi. Also, Figure 4(a)
Similarly, by the second method described above, 300 dpi
The data after raster unfolding or resolution conversion is shown. Note that in this example, Figure 3(a) is the same as Figure 4(a) when the resolution is doubled using a known nearest neighbor method.
【0028】ラスター展開(あるいは解像度変換)自体
の処理量は、概ね解像度の2乗に比例するので、第1の
方法のラスター展開(あるいは解像度変換)の処理量
は、第2の方法の処理量の4倍となる。[0028] The processing load of raster unfolding (or resolution conversion) itself is roughly proportional to the square of the resolution, so the processing load of raster unfolding (or resolution conversion) in the first method is four times that of the second method.
【0029】第1の方法においては、図3(a)のデー
タについて各画素値と、各画素位置に対応する図3
(b)(図2と同一のマトリックス)の閾値マトリクス
の閾値とを比較し、公知のディザ法によって2値化を行
う。この例の場合、閾値以上の値を有する画素の値を1
と出力するので、階調値として図3(c)を得るが、閾
値に対して計16回の比較演算が必要となる。該デー夕
に対して、圧縮等を行わない場合には、図3(d)に示
すデータがプリントすべきデータ(図3(c)と同一)
となるため、プリンタに対しては、16画素×2bit
=32bitのデータが転送されることになる。[0029] In the first method, for the data in Figure 3(a), each pixel value and the corresponding pixel position in Figure 3
(b) Compare the threshold of the threshold matrix (same matrix as in Figure 2) and perform binarization using a known dithering method. In this example, the values of pixels that have a value greater than or equal to the threshold are 1
The output is as shown, and Figure 3(c) is obtained as the grayscale value, but a total of 16 comparison operations are required against the threshold. If no compression is performed on this data, the data to be printed is shown in Figure 3(d) (same as Figure 3(c)).
Therefore, for the printer, 16 pixels × 2 bits
This means that 32 bits of data will be transferred.
【0030】同様に、第2の方法では、図4(a)のデ
ータに対して、図2の閾値マトリックスを作用させる場
合は、4×4のマトリックスの1/4のマトリックスが
順に使用され、この例では図4(b)のマトリックスに
よって2値化を行って、図4(c)の階調値を得る(図
4(a)のデータの右に隣接する2×2のデータ(図は
省略)に対しては、図2中で図4(b)のマトリックス
の右に隣接する2×2のマトリックス(閾値3、15、
11、7)が使用される)。[0030] Similarly, in the second method, when the threshold matrix in Figure 2 is applied to the data in Figure 4(a), 1/4 of the 4x4 matrix is used sequentially, and in this example, binarization is performed using the matrix in Figure 4(b) to obtain the grayscale values in Figure 4(c) (for the 2x2 data adjacent to the right of the data in Figure 4(a) (figure omitted), the 2x2 matrix adjacent to the right of the matrix in Figure 4(b) in Figure 2 (thresholds 3, 15,
11, 7) are used).
【0031】この第2の方法の場合、閾値に対して計4
回の比較演算しか行われないので、第1の方法に比べて
中間調処理に要する時間は少ない。また、データ圧縮等
を行わない場合には、プリンタに対して4画素×2bi
t=8bitのデータが転送されることになり、転送デ
ータ量も少ない。[0031] In this second method, a total of 4 with respect to the threshold
Since only one comparison operation is performed, the time required for intermediate processing is less compared to the first method. Also, if no data compression is performed, 4 pixels × 2 bits are used for the printer.
Since t = 8 bits of data will be transferred, the amount of data transferred will be small.
【0032】ただし、第2の方法においては、プリンタ
側のファームウエアで、図4(c)のデータ全体の解像
度を2倍にするため、プリントすべきデータは図4
(d)となる。なお、この例では、解像度変換法として
公知の最近傍法を用いる。[0032] However, in the second method, the printer's firmware doubles the resolution of the entire data in Figure 4(c), so the data to be printed is in Figure 4
(d) is obtained. In this example, the known nearest neighbor method is used as the resolution conversion method.
【0033】図5は、本実施例を説明する図であり、図
5(a)は本実施例の画像データ1であり、前述した第
2の方法と同様に、300dpiでラスター展開または
解像度変換を行った後のデータ(2×2画素)である。
また、本実施例の閾値マトリックス2は、図5(b)の
ように閾値が配列されている。そして、画像データ1
を、閾値マトリックス2によって0から4までの階調数
に変換する。[0033] Figure 5 is a diagram illustrating this embodiment, and Figure 5(a) is image data 1 of this embodiment, which is data (2x2 pixels) after raster unfolding or resolution conversion at 300 dpi, similar to the second method described above.
Furthermore, the threshold matrix 2 of this embodiment has thresholds arranged as shown in Figure 5(b). And image data 1
This is converted to a number of grayscale levels from 0 to 4 by the threshold matrix 2.
【0034】図5(b)は、要素が4個の配列の2×2
のマトリックスであり、配列を構成する4つの閾値は、
図2のマトリックスを2×2のサブマトリックス4つに
分解したときの各サブマトリックス内の閾値と同じであ
るが、閾値が値順にソートされている。[0034] Figure 5(b) shows a 2x2 array with 4 elements.
It is a matrix, and the four thresholds that make up the array are,
The threshold values are the same as those in each submatrix when the matrix in Figure 2 is decomposed into four 2x2 submatrices, but the threshold values are sorted in order of their value.
【0035】本実施例における階調数変換は、図5
(a)の1画素のデータと、その画素位置に対応する4
個の閾値とを比較して(つまり、図5(b)のソートさ
れた閾値を順に比較して)、閾値が画素データを越える
までの(比較回数−1)を階調値とする。すなわち、例
えば、画像データ(15)と、それの対応する閾値マト
リックスの閾値(1、5、9、13)とを比較し、画像
データ(7)と、それに対応する閾値マトリックスの閾
値(3、7、11、15)とを比較する。[0035] The grayscale conversion in this embodiment is shown in Figure 5
(a) The data of one pixel and the 4 corresponding to the pixel position
The grayscale value is defined as the number of comparisons minus one, obtained by comparing the thresholds with the corresponding thresholds (i.e., comparing the sorted thresholds in Figure 5(b) in order) until the threshold exceeds the pixel data. For example, image data (15) is compared with the thresholds (1, 5, 9, 13) of its corresponding threshold matrix, and image data (7) is compared with the thresholds (3, 7, 11, 15) of its corresponding threshold matrix.
【0036】この結果、図5(a)のデータに対応する
階調数として図5(c)が得られ、その比較回数は計1
1回となる。[0036] As a result, Figure 5(c) is obtained as the number of grayscale levels corresponding to the data in Figure 5(a), and the total number of comparisons is 1
It will be once.
【0037】また、本実施例においては、図5(c)に
示した階調値をプリンタ6に対して送信するが、そのデ
ータ量は、4画素×3bit(5階調)=12bitで
ある。[0037] In this embodiment, the grayscale values shown in Figure 5(c) are transmitted to the printer 6, and the amount of data is 4 pixels × 3 bits (5 grayscales) = 12 bits.
【0038】そして、本実施例においては、プリンタ6
側には、2×2の符号パターンである5つの配列を要素
とし、図5(a)の4つの画素の各位置に対応した2×
2の符号パターンマトリックス(図6)が符号パターン
格納部3に設けられている。[0038] In this embodiment, the printer 6
On the side, there are five arrays that form a 2x2 code pattern, corresponding to each position of the four pixels in Figure 5(a)
A code pattern matrix (Figure 6) is provided in the code pattern storage unit 3.
【0039】図6の符号パターンマトリックスの各要素
は、図2のマトリックスを2×2のサブマトリックス4
つに分解し、各サブマトリックスに2×2のデータ(1
画素16階調)を作用させたときに、とり得る2×2の
パターンを、階調数順にソートしたものである。符号パ
ターンは、ベクトル量子化におけるコードブックに相当
するものである。[0039] Each element of the code pattern matrix in Figure 6 is a 2x2 submatrix of the matrix in Figure 2.
It is broken down into two parts, and each submatrix contains 2x2 data (1
This is a sorted representation of the 2x2 patterns that can be created when applying 16 grayscale levels to a pixel, ordered by the number of grayscale levels. The code pattern corresponds to the codebook in vector quantization.
【0040】そして、図5(a)の値15の注目画素
(*印)に対しては、図6の中の太線内(*印)の5つ
の符号パターンが対応し、ファームウェア中で、注目画
素の階調値4に対応した二重線で囲まれた符号パターン
(1、1、1、1)が選択される。他の画素も同様に、
画素の位置と階調値に対応した符号パターンが選択さ
れ、最終的にプリントすべきデータ4として、図5
(d)が得られる。[0040] For the pixel of interest with a value of 15 (marked with an asterisk) in Figure 5(a), the five code patterns within the thick lines (marked with an asterisk) in Figure 6 correspond to it, and in the firmware, the code pattern enclosed by the double lines (1, 1, 1, 1) corresponding to the grayscale value of the pixel of interest, 4, is selected. The same applies to the other pixels.
A coding pattern corresponding to the pixel position and grayscale value is selected, and the final data to be printed is shown in Figure 5.
(d) is obtained.
【0041】本実施例では、第2の方法で図4(d)の
最終データを得るための全体の解像度変換に相当する処
理を、符号パターンの参照によって行うため、“全体の
解像度変換”にかかる処理は、第2の方法よりも高速で
はない。しかし、図4(d)、3(d)、5(d)を比
較すれば明らかなように、本実施例の方法による最終デ
ータ図5(d)は、第2の方法よりも高画質(例えば、
原データの階調性がよりよく保存されている)で、第1
の方法に匹敵しうるものである(本実施例では、簡単の
ため、図3と図4を最近傍法で解像度変換した関係にし
たが、両者の関係がそうでない場合には、本実施例の最
終デー夕は第2の方法よりは劣ることになる)。[0041] In this embodiment, the process equivalent to the overall resolution conversion to obtain the final data in Figure 4(d) using the second method is performed by referencing a code pattern, so the processing involved in the "overall resolution conversion" is not faster than that of the second method. However, as is clear from comparing Figures 4(d), 3(d), and 5(d), the final data Figure 5(d) obtained by the method of this embodiment has higher image quality than that of the second method (for example,
(The gradation of the original data is better preserved), 1
This method is comparable to the second method (in this embodiment, for simplicity, Figures 3 and 4 are shown as having a resolution-converted relationship using the nearest neighbor method, but if the relationship between the two is not as shown, the final data in this embodiment will be inferior to that of the second method).
【0042】以上の例において、3つの方法の処理量の
比較結果を簡単にまとめると、以下のようになる(中間
調処理の処理量は、閾値との比較回数で近似してい
る)。[0042] In the above example, the comparison results of the processing volume of the three methods can be briefly summarized as follows (the processing volume of the intermediate processing is approximated by the number of comparisons with the threshold).
【0043】
従って、本実施例は、第1の方法と第2の方法の両方の
長所を併せ持った方法であるということができる。[0043] Therefore, this embodiment can be said to be a method that combines the advantages of both the first method and the second method.
【0044】図7は、本発明の実施例1の処理フローチ
ャートである。x行×y列の画像データを、k^2(k
の2乗)個のソートされた閾値の配列を要素とするm行
×n列の閾値マトリックスで階調数変換して階調数を得
て(ステップ102)、k×kの符号パターンk^2+
1個の配列を要素とするm行×n列の符号パターンマト
リックスを参照して、kx行×ky列のプリントデータ
を得る(ステップ103)。マトリックスの右端、下端
に達したときは(ステップ106、110)、それぞれ
画像データをn+1画素、m+1画素ずらした位置から
同様に処理し、画像データの下端に至るまで(ステップ
109)同じ処理を繰り返す。[0044] Figure 7 is a processing flowchart of Embodiment 1 of the present invention. Image data of x rows × y columns is processed as k^2(k
The number of grayscale levels is obtained by performing a grayscale transformation using an m x n threshold matrix whose elements are an array of sorted thresholds (k^2) (step 102), and the code pattern k^2+
The process involves referencing an m x n code pattern matrix, each element of a single array, to obtain kx x ky print data (step 103). When the rightmost and bottommost ends of the matrix are reached (steps 106, 110), the image data is processed similarly from positions shifted by n+1 pixels and m+1 pixels, respectively, and the same process is repeated until the bottommost end of the image data is reached (step 109).
【0045】図中、D(i,j)は、画像データ中の
(行,列)=(i,j)に位置するデータであり、M
(p、q)は、閾値マトリックス中の(行,列)=
(p、q)に位置する閾値配列であり、t(i,i)
は、D(i,i)にM(p、q)を作用させたときに得
られる階調数であり,P(p、q,t(i、j))は、
D(i、j)に対して参照すべき、符号パターンマトリ
ックス中の1つの符号パターンである。[0045] In the figure, D(i,j) is the data located at (row, column) = (i,j) in the image data, and M
(p, q) is (row, column) in the threshold matrix =
The threshold array located at (p, q) is t(i, i)
is the number of gradations obtained when M(p, q) is applied to D(i, i), and P(p, q, t(i, j)) is
This is one of the code patterns in the code pattern matrix that should be referenced for D(i, j).
【0046】また、ソートされた閾値の配列を要素とす
るm行×n列の閾値マトリックスは、km行×kn列の
閾値マトリックスから図8の処理フローによって作成で
き、m行×n列の符号パターンマトリックスは、km行
×kn列の閾値マトリックスから、図9の処理フローに
よって作成できる。[0046] Furthermore, an m x n threshold matrix, whose elements are sorted threshold arrays, can be created from a km x kn threshold matrix by the processing flow shown in Figure 8, and an m x n code pattern matrix can be created from a km x kn threshold matrix by the processing flow shown in Figure 9.
【0047】なお、実施例1においては、原データの縦
横比を維持するため、符号パターンの大きさをk×kと
しているが、維持の必要がない場合には、縦横比が1で
ない符号パターンを作成すればよい。[0047] In Example 1, the size of the code pattern is set to k × k in order to maintain the aspect ratio of the original data. However, if it is not necessary to maintain the aspect ratio, a code pattern with an aspect ratio other than 1 can be created.
【0048】(実施例2)実施例1では、k^2個のソ
ートされた閾値の配列を用いてk^2+1階調への変換
を行った。通常、プリンタへのデータ転送は2進法で行
われるため、ここで階調数が2のべき乗になるように構
成すると、(転送データ/階調数)が最小となり転送効
率がよい。[0048] (Example 2) In Example 1, a sorted array of k^2 thresholds was used to convert to k^2+1 gradations. Normally, data transfer to a printer is done in binary, so configuring the number of gradations to be a power of 2 minimizes (transfer data / number of gradations) and improves transfer efficiency.
【0049】図10は、実施例2を構成する閾値マトリ
ックスであり、3個のソートされた閾値の配列を用いて
4階調(0から3)への変換を行えば、4画素分の階調
データは8bit(=4画素×2bit(4階調))で
済むため、(転送データ/階調数)を実施例1よりも小
さくすることができる.なお、図10の各サブマトリッ
クスは、図5(b)の各サブマトリックスの閾値配列の
中央2つの値を、該2つの値の平均値1つで置き換えた
ものである。[0049] Figure 10 shows the threshold matrix that constitutes Embodiment 2. By using an array of three sorted thresholds to perform the conversion to four grayscale levels (0 to 3), the grayscale data for four pixels only requires 8 bits (= 4 pixels × 2 bits (4 grayscale levels)), thus reducing the (transfer data / number of grayscale levels) compared to Embodiment 1. Note that each submatrix in Figure 10 is obtained by replacing the two central values of the threshold array of each submatrix in Figure 5(b) with the average value of those two values.
【0050】(実施例3)上記した実施例は、ディザ法
による中間調処理を第2の方法よりも高速に行うもので
あるが、公知の誤差拡散法にも適用可能である。図11
は、本発明を誤差拡散法に適用した場合の実施例3を説
明する図である。図11(a)は、実施例3で使用する
周知の誤差マトリックスであり、*印の注目画素(図5
(a)の画素値15)の階調数変換で生じた誤差(15
−13=2)を、図11(b)のように注目画素に隣接
する右および下の画素に半分ずつ加算し、図11(c)
に示すデータの注目画素(*印)に対して、さらに階調
数変換を行う。本実施例でも、図6と同様な符号パター
ンマトリックスが使用できる。図12は、実施例3の処
理フローを示し、図7の処理にさらに誤差を配分するス
テップ204が追加されている。[0050] (Example 3) The above-described example performs the dithering process for intermediate tone processing at a faster speed than the second method, but it can also be applied to known error diffusion methods. Figure 11
This figure illustrates Example 3 in which the present invention is applied to the error diffusion method. Figure 11(a) is a well-known error matrix used in Example 3, with the pixels of interest marked with an asterisk (Figure 5)
Error (15) in the conversion of the number of grayscale values of the pixel value 15 in (a)
Add -13=2) to the pixels adjacent to the pixel of interest to the right and below, respectively, as shown in Figure 11(b), and then to Figure 11(c).
Further grayscale conversion is performed on the pixels of interest (marked with *) in the data shown. In this embodiment as well, the same code pattern matrix as in Figure 6 can be used. Figure 12 shows the processing flow of Embodiment 3, in which a step 204 for further distributing errors is added to the processing in Figure 7.
【0051】(実施例4)実施例1は、図2のマトリッ
クスを基に符号パターンマトリックスを生成したが、図
13に示すような典型的なドット分散型の閾値マトリッ
クスを基に符号パターンマトリックスを生成すると、図
14のように、同一階調値における符号パターンの配列
自体もドット分散型となる。すなわち、図14におい
て、例えば階調値1に対応した4つの符号パターンを、
原画像データの画素位置に対応させて配置すると、4×
4のマトリックスができるが、これはドット分散型であ
る。なお、図2のマトリックスもドット分散型的な性質
を有する。[0051] (Example 4) In Example 1, a code pattern matrix was generated based on the matrix in Figure 2. However, if a code pattern matrix is generated based on a typical dot-dispersed threshold matrix as shown in Figure 13, the arrangement of code patterns at the same grayscale value will also be dot-dispersed, as shown in Figure 14. That is, in Figure 14, for example, four code patterns corresponding to grayscale value 1 are,
When positioned according to the pixel positions of the original image data, 4×
A matrix 4 is formed, which is dot-dispersed. Note that the matrix in Figure 2 also has dot-dispersed properties.
【0052】図14から明らかなように、符号パターン
マトリックスを構成する符号パターンの配列は全て同じ
となるから、図14の例の場合、プリンタ側で5種類の
符号パターンのみを保持することにより、符号パターン
マトリックスの容量を小さくできると同時に、マトリッ
クスの参照も高速となる。[0052] As is clear from Figure 14, the arrangement of code patterns that make up the code pattern matrix is all the same. Therefore, in the example of Figure 14, by having the printer store only five types of code patterns, the capacity of the code pattern matrix can be reduced, and at the same time, referencing the matrix can be done at high speed.
【0053】(実施例5)また、本発明では、図示しな
い公知のブルーノイズ型の閾値マトリックス(閾値の配
列がランダム)を基に符号パターンマトリックスを生成
することも可能である。この場合には、同一階調値にお
ける符号パターンの配列自体もブルーノイズ型となる。
そして、本実施例では、ディザ法と同様の処理速度で、
誤差拡散に匹敵し得る画質を得ることができる。[0053] (Example 5) In addition, in the present invention, it is also possible to generate a code pattern matrix based on a known blue noise type threshold matrix (where the arrangement of thresholds is random), which is not shown. In this case, the arrangement of code patterns at the same grayscale value is also of the blue noise type.
And in this embodiment, with a processing speed similar to that of the dithering method,
Image quality comparable to that achieved through error diffusion can be obtained.
【0054】なお、ブルーノイズ型の閾値マトリックス
に関しては、「Digital Halftoning
Using a Blue Noise Mas
k」,T.Mitsa and K.Parker,1
991 International Confere
nce on Acoustics,Speech,a
nd Signal Processing,Febr
uary and May1991(ブルーノイズマス
ク法の原理など)および「Modified Appr
oach to the Construction
of a Blue Noise Mask」by
M.Yaoand K.Parker,Journal
of Electronic Imaging,Vo
l.3,No.1,92‐97,January 19
94(ブルーノイズマスクの作成法等)を参照された
い。[0054] Regarding the blue noise type threshold matrix, "Digital Halftoning
Using a Blue Noise Mas
k”, T. Mitsa and K. Parker, 1
991 International Conference
nce on Acoustics, Speech, a
nd Signal Processing, Febr.
May 1991 (principles of the blue noise mask method, etc.) and "Modified Appr
Oach to the Construction
of a Blue Noise Mask” by
M. Yao and K. Parker, Journal
of Electronic Imaging,Vo
l. 3, No. 1,92-97,January 19
Please refer to section 94 (How to create a blue noise mask, etc.).
【0055】(実施例6)上記した実施例では、プリン
タ6側が符号パターンマトリックス3を保持していた
が、処理装置5(ホスト)側から符号パターンマトリッ
クス3をダウンロードするように構成してもよい。ま
た、階調数変換に使用する閾値マトリックスを切り替え
る場合には、符号パターンの変更を伴う。これらの場合
ホストが、階調データの送信に先立ち、符号パターンマ
トリックスをプリンタに送信すればよい。[0055] (Example 6) In the above-described embodiment, the printer 6 held the code pattern matrix 3, but it may also be configured to download the code pattern matrix 3 from the processing unit 5 (host). Also, when switching the threshold matrix used for grayscale conversion, a change in the code pattern is required. In these cases, the host can send the code pattern matrix to the printer prior to transmitting the grayscale data.
【0056】図15は、実施例6の処理フローチャート
である。プリントを開始する前に、ホスト5は符号パタ
ーンが送信済みでなく(ステップ301)、符号パター
ンに変更があるとき(ステップ302)、符号パターン
をプリンタ6に送信し(ステップ303)、その後、ホ
ストがプリンタに階調値を送信し(ステップ304)、
プリンタ6は送信された階調値に対応した符号パターン
を参照してプリントデータを出力する(ステップ30
5)。[0056] Figure 15 is a processing flowchart of Embodiment 6. Before starting printing, if the code pattern has not been sent (step 301) and there are changes to the code pattern (step 302), the host 5 sends the code pattern to the printer 6 (step 303), and then the host sends the grayscale values to the printer (step 304).
Printer 6 outputs print data by referring to the code pattern corresponding to the transmitted grayscale value (step 30)
5).
【0057】このように、本実施例では、階調数をプリ
ンタなどの画像出力装置に対して送信するので、転送デ
ータ量が削減でき、また、符号パターンをダウンロード
可能にしたので、符号パターンの変更に対応することが
できる。[0057] In this embodiment, since the number of grayscale levels is transmitted to an image output device such as a printer, the amount of data to be transferred can be reduced, and since the code pattern can be downloaded, it is possible to accommodate changes in the code pattern.
【0058】(実施例7)ところで、前述した第2の方
法は、例えば特開平2−112966号公報に示される
ようなビットパターンのテンプレートマッチングを行う
ことによって、ジャギーのスムージングを行うことが可
能である。しかし、ビットパターン同士でテンプレート
マッチングを行う場合には、処理量が多くなり、速度低
下を招きやすいという問題がある。[0058] (Example 7) The second method described above can perform jaggedness smoothing by performing template matching of bit patterns, for example, as shown in Japanese Patent Application Publication No. 2-112966. However, when performing template matching between bit patterns, the amount of processing increases, which tends to lead to a decrease in speed.
【0059】そこで、本実施例では、後述する符号パタ
ーンのテンプレートマッチングを行い、簡易な処理を行
うことによって、高速にジャギーのスムージングを行う
方法を提案する。[0059] In this embodiment, we propose a method for performing jagged edge smoothing at high speed by performing template matching of the code pattern described later and performing simple processing.
【0060】以下、本実施例について説明するが、本実
施例においても、実施例1と同様に出力装置として解像
度600dpi、階調数2値のプリンタを用いる。ま
た、想定する閾値マトリックスは図2と同様であり、図
14と同じ符号パターンマトリックスを使用する。ただ
し、本実施例では、図16に示すように、異なる符号パ
ターンにパターン番号(0、1、2、3a、3b、4)
を付与したものを用いる。また、原画像データとして
は、黒色のみのモノクロ画像を想定する。[0060] The following describes this embodiment, but in this embodiment as well, a printer with a resolution of 600 dpi and 2-level grayscale is used as the output device, similar to Embodiment 1. The assumed threshold matrix is the same as in Figure 2, and the same code pattern matrix as in Figure 14 is used. However, in this embodiment, as shown in Figure 16, different code patterns are assigned pattern numbers (0, 1, 2, 3a, 3b, 4)
We will use images with the added attribute. Furthermore, we assume that the original image data is a monochrome image consisting only of black.
【0061】さて、図17、18は、「文」という黒文
字のベクトルフォントを300dpiでラスター展開
し、実施例1の処理手順によって得られたビットパター
ン(符号パターン)を示す(なお、本来は1枚の図であ
るが、これを2つに分割し、図17は「文」の左半分で
あり、図18は「文」の右半分である)。グレーの部分
には符号パターン中の値1が、白い部分には符号パター
ン中の値0が対応していて、この例では濃い黒色の文字
の処理結果であることから、階調値としては0または4
のいずれかとなっている。[0061] Now, Figures 17 and 18 show the bit pattern (code pattern) obtained by rasterizing a vector font of the black characters "文" at 300 dpi using the processing procedure of Example 1 (Note that although it is originally one figure, it has been divided into two, with Figure 17 being the left half of "文" and Figure 18 being the right half of "文"). The gray parts correspond to the value 1 in the code pattern, and the white parts correspond to the value 0 in the code pattern. In this example, since it is the processing result of dark black characters, the grayscale value is 0 or 4.
It is one of the following:
【0062】図17の左上(a)には、300dpi、
600dpiの各画素のサイズが示されていて、(b)
には、600dpiの画素サイズに対応した2×2の符
号パターンの並び、およびパターン番号の並びが示され
ている。また、(b)中には、本実施例における、符号
パターンのサイズおよび符号パターン群のサイズが示さ
れている。[0062] In the upper left (a) of Figure 17, 300 dpi,
The size of each pixel at 600 dpi is shown, (b)
(b) shows the arrangement of 2x2 code patterns and the arrangement of pattern numbers corresponding to a pixel size of 600 dpi. In addition, (b) shows the size of the code pattern and the size of the code pattern group in this embodiment.
【0063】この例においては、注目符号パターンを含
む4つの符号パターンから成る正方形の注目符号パター
ン群を、6種類の正方形の特定符号パターン群(図1
9)と照合し、一致した場合には、注目符号パターン群
をそれぞれ図20に示す符号パターン群に変更する。図
20において黒色で示した部分は、符号パターン中の変
更された位置を示すが、図16から明らかなように、図
20の変更後の符号パターン(黒色を含む符号パター
ン)の内の3つは、図16には存在しない。つまり、図
20(e)の符号パターンは、図16のパターン番号1
として存在するが、図20(c)、(d)、(f)の符
号パターンは、図16のパターン中にはない。[0063] In this example, the square group of code patterns of interest consisting of four code patterns including the code pattern of interest is divided into six types of specific square code pattern groups (Figure 1
9) is compared with the code pattern group, and if they match, the code pattern group of interest is changed to the code pattern group shown in Figure 20. In Figure 20, the parts shown in black indicate the changed positions in the code pattern, but as is clear from Figure 16, three of the changed code patterns in Figure 20 (code patterns including black) do not exist in Figure 16. In other words, the code pattern in Figure 20(e) is the same as pattern number 1 in Figure 16.
Although they exist, the code patterns in Figures 20(c), (d), and (f) are not among the patterns in Figure 16.
【0064】従って、本実施例では、図21に示す3つ
の符号パターン(パターン番号1b、1c、1d)を追
加して使用する。また、図16から明らかなように、符
号パターンには重複が生じるので、予め重複を排除した
パターン番号を図16、図21に示すように定義する。
なお、符号パターン数の増加が好ましくない場合には、
符号パターンを追加しないという選択も可能である。[0064] Accordingly, in this embodiment, three additional code patterns (pattern numbers 1b, 1c, and 1d) shown in Figure 21 are used. Also, as is clear from Figure 16, there will be duplication in the code patterns, so the pattern numbers with duplication eliminated are defined in advance as shown in Figures 16 and 21.
Furthermore, if increasing the number of code patterns is undesirable,
It is also possible to choose not to add any code patterns.
【0065】ここで、図19(a)の注目符号パターン
群を例にとると、図19と図20の関係は以下の通りで
ある。図19(a)の特定符号パターン群は、第1象限
から左回りに0、4、0、4というパターン番号の順列
を形成する。そこで、注目符号パターン群が、第1象限
から左回りに0、4、0、4というパターン番号列を形
成した場合には、これを図20(a)に示す1d、4、
1b、4というパターン番号列(符号パターン群)に変
更する。[0065] Taking the group of code patterns of interest in Figure 19(a) as an example, the relationship between Figure 19 and Figure 20 is as follows. The specific group of code patterns in Figure 19(a) forms a permutation of pattern numbers 0, 4, 0, 4 counterclockwise from the first quadrant. Therefore, when the group of code patterns of interest forms a sequence of pattern numbers 0, 4, 0, 4 counterclockwise from the first quadrant, this is represented as 1d, 4, as shown in Figure 20(a).
The pattern number sequence (code pattern group) will be changed to 1b,4.
【0066】また、この例においては、1つの注目符号
パターン(図17(c)の*印)に対する注目符号パタ
ーン群(比較のためのウインドウ)のとり方として、図
17(c)に示すA,B,C,Dの4種類(太線A,二
重線B,点線C,三重線D)を採用し、注目符号パター
ン自体のとり方としては、図17(d)の*印に示す通
り、縦方向・横方向ともに1つ置きとしている(1つ置
きで十分だからである)。図17、18全体に配置され
た格子は、図17(d)の*印に対する、注目符号パタ
ーン群Aのとりかたと一致している。[0066] In this example, four types of groups of code patterns of interest (comparison windows) are adopted for each code pattern of interest (marked with an asterisk in Figure 17(c)): A, B, C, and D shown in Figure 17(c) (thick line A, double line B, dotted line C, and triple line D). The code patterns of interest themselves are arranged alternately in both the vertical and horizontal directions, as shown by the asterisks in Figure 17(d) (because alternating is sufficient). The grid arranged across Figures 17 and 18 corresponds to the arrangement of code pattern group A for the asterisks in Figure 17(d).
【0067】本実施例においては、1つの注目符号パタ
ーンに対し、注目符号パターン群(比較のためのウィン
ドウ)Aをとり、特定符号パターン群(図19)と一致
した場合には注目符号パターン群を図20に変更して、
さらに注目符号パターン群Bと比較し、といった処理を
繰り返す。[0067] In this embodiment, for one code pattern of interest, a group of code patterns of interest (a comparison window) A is taken, and if it matches a specific group of code patterns (Figure 19), the group of code patterns of interest is changed to Figure 20.
Furthermore, the process is repeated by comparing it with the group of code patterns B of interest.
【0068】なお、本実施例においては、注目符号パタ
ーン群Aにおける符号パターンの変更が、注目符号パタ
ーン群Bにおける比較・変更に影響を与えないため、1
つの注目符号パターンに対してA,B,C,Dととって
比較・変更した後、次の注目符号パターンに移るという
処理方法でも、全ての注目符号パターンに対してAをと
って比較し、全ての注目符号パターンに対してBをとっ
て比較し、という処理方法でも結果は同じである。[0068] In this embodiment, a change in the code pattern in the code pattern group A does not affect the comparison and change in the code pattern group B, therefore 1
Whether you take one code pattern of interest, assign it A, B, C, and D, compare and modify it, and then move on to the next code pattern of interest, or whether you take A for all code patterns of interest and compare it, and then take B for all code patterns of interest and compare it, the result is the same.
【0069】そこで、図22は、全ての注目符号パター
ンについて、注目符号パターン群(比較のためのウィン
ドウ)Aをとった場合の処理結果を示したものであり、
黒い部分が変更された符号パターンを示す。これによっ
て、ジャギーのスムージングがなされ、比較のためのウ
ィンドウが1つだけの場合でもある程度の効果があるこ
とが分かる。[0069] Therefore, Figure 22 shows the processing results when a group of code patterns of interest (a window for comparison) A is taken for all code patterns of interest.
The black areas indicate the modified code pattern. This smooths out the jagged edges, and it can be seen that it has some effect even when there is only one comparison window.
【0070】同様に、図23は、全ての注目符号パター
ンについて、注目符号パターン群(比較のためのウィン
ドウ)Bをとった場合の処理結果を示したものであり、
図17、18全体に配置された格子は、図17(d)の
*印に対する、注目符号パターン群Bのとりかたと一致
している。図中の11から25部分が新たに変更された
符号パターンを示す。[0070] Similarly, Figure 23 shows the processing results when the group of code patterns of interest (comparison window) B is taken for all code patterns of interest.
The grids arranged throughout Figures 17 and 18 correspond to the selection of the code pattern group B for the asterisks in Figure 17(d). Sections 11 to 25 in the figures show the newly modified code patterns.
【0071】同様に、注目符号パターン群(比較のため
のウインドウ)Cをとった処理結果が図24、注目符号
パターン群(比較のためのウインドウ)Dをとった処理
結果が図25図であり、それぞれ31から48の部分、
51から62の部分が新たに変更された符号パターンを
示す。比較のためのウィンドウを複数使用する分、スム
ージングの効果も大きくなっているのが明らかである。[0071] Similarly, Figure 24 shows the processing result when the group of code patterns of interest (comparison window) C is taken, and Figure 25 shows the processing result when the group of code patterns of interest (comparison window) D is taken, with portions 31 to 48 respectively.
Sections 51 through 62 show the newly modified code pattern. It is clear that the smoothing effect is greater due to the use of multiple comparison windows.
【0072】このように本実施例によれば、簡単かつわ
ずか6つの特定パターンの比較・検出という簡易な方法
によって、かなりのスムージング効果が発揮されること
がわかる(もちろん、スムージングによって弊害が生じ
る部分も存在するが、全体の効果からみればわずかなも
のである)。そして、簡易な方法であるので、高速にス
ムージングを行うことが可能になる。[0072] As shown above, this embodiment demonstrates that a considerable smoothing effect can be achieved through a simple method of comparing and detecting only six specific patterns (of course, there are some areas where smoothing causes problems, but these are minor compared to the overall effect). Furthermore, because it is a simple method, smoothing can be performed at high speed.
【0073】なお、原画像データの端部においては、注
目符号パターン群(比較のためのウィンドウ)を4つ全
てとることができない場合があるが、その場合はとり得
る注目パターン群のみ比較すればよい。[0073] In addition, at the edges of the original image data, it may not be possible to take all four groups of note patterns (windows for comparison). In such cases, it is sufficient to compare only the groups of note patterns that can be taken.
【0074】図26は、以上で説明した実施例7の処理
フローチャートである。まず、実施例1で説明した方法
によって、注目画素に対応する階調数を得る(ステップ
401)。上記した階調数変換をホスト側で行い、階調
数をホストからプリンタに送信する(ステップ40
2)。[0074] Figure 26 is a processing flowchart of the embodiment 7 described above. First, the number of grayscale levels corresponding to the pixel of interest is obtained using the method described in embodiment 1 (step 401). The above-mentioned grayscale level conversion is performed on the host side, and the number of grayscale levels is sent from the host to the printer (step 40
2).
【0075】以下の処理はプリンタによって行われる。
すなわち、階調数に対応した符号パターンマトリックス
(図16)を参照して、注目画素のパターン番号を得る
(ステップ403)。上記した処理を全ての注目画素に
ついて行う(ステップ404)。[0075] The following processes are performed by the printer.
Specifically, the pattern number of the pixel of interest is obtained by referring to the code pattern matrix corresponding to the number of grayscale levels (Figure 16) (step 403). The above process is performed for all pixels of interest (step 404).
【0076】注目符号パターンについて、A〜Dの全て
の注目符号パターン群と全ての特定符号パターン群(図
19)を比較し(ステップ405)、一致したとき(ス
テップ406)、注目符号パターン群中の所定符号パタ
ーン(パターン番号)を変更する(ステップ407)。[0076] For the code pattern of interest, all groups of code patterns of interest A to D are compared with all specific code pattern groups (Figure 19) (step 405). If they match (step 406), a predetermined code pattern (pattern number) in the code pattern of interest group is changed (step 407).
【0077】例えば、注目画素のパターン番号が0
(白)で、注目符号パターンが図19の(f)に一致し
たとき、注目画素のパターン番号0を、図20(f)に
変更し、つまりパターン番号1b(図21)に変更す
る。また、例えば、注目画素のパターン番号が4(黒)
で、注目符号パターンが図19の(d)に一致したと
き、注目符号パターン中のパターン番号0を、パターン
番号1d(図21)に変更する。上記した処理を全ての
注目符号パターンについて行う(ステップ408)。[0077] For example, if the pattern number of the pixel of interest is 0
(White) When the code pattern of interest matches (f) in Figure 19, the pattern number 0 of the pixel of interest is changed to Figure 20 (f), that is, the pattern number is changed to 1b (Figure 21). Also, for example, if the pattern number of the pixel of interest is 4 (black)
Then, when the code pattern of interest matches (d) in Figure 19, pattern number 0 in the code pattern of interest is changed to pattern number 1d (Figure 21). The above process is performed for all code patterns of interest (step 408).
【0078】注目画素のパターン番号(図16)と変更
されたパターン番号(図21)から、注目画素に対応す
る600dpiの最終画像データを得る(ステップ41
0)。[0078] From the pattern number of the pixel of interest (Figure 16) and the changed pattern number (Figure 21), the final 600 dpi image data corresponding to the pixel of interest is obtained (Step 41)
0).
【0079】(実施例8)上記した実施例では、黒色の
みのモノクロ画像を想定したが、カラー画像の場合には
公知のように、以上の処理を各画像成分毎に行えばよ
い。すなわち、300dpiでラスター展開または解像
度変換を行った後のデータを、公知の方法で各色成分、
例えばC(シアン),M(マゼンタ),Y(黄色),K
(黒)毎のプレーンに分離し、各プレーン毎に図26の
処理を行えばよい。[0079] (Example 8) In the above example, a monochrome image consisting only of black was assumed, but in the case of a color image, the above processing can be performed for each image component as is well known. That is, the data after raster unfolding or resolution conversion at 300 dpi is processed for each color component using a known method.
For example, C (cyan), M (magenta), Y (yellow), K
The image can be separated into individual (black) planes, and the process shown in Figure 26 can be performed on each plane.
【0080】ここで、例えば上記4プレーンの全てに関
して、6つの特定符号パターン群全て(図19)を用い
た比較を行っても良いが、スムージング効果よりも高速
性を求める場合、視認性の低い黄色については、特定符
号パターン群の数を減らしてもよい。すなわち、特定符
号パターン群のサブセットを使用する。例えば、黄色に
関しては、図19(a)、(b)に示した2つの特定符
号パターン群との比較のみに止める。この場合の処理フ
ローは、黄色のみに関して、図26における比較ステッ
プ405を「注目符号パターンについて全ての注目符号
パターン群と、特定符号パターン群のサブセットを比較
(パターン番号列同士を比較)」と置き換えればよい。[0080] Here, for example, a comparison could be made using all six specific code pattern groups (Figure 19) for all four planes mentioned above. However, if speed is more important than the smoothing effect, the number of specific code pattern groups may be reduced for the less visible yellow. That is, a subset of the specific code pattern groups can be used. For example, for yellow, the comparison can be limited to only the two specific code pattern groups shown in Figures 19(a) and (b). In this case, the processing flow can be changed by replacing the comparison step 405 in Figure 26 with "Compare all the code pattern groups of interest with a subset of the specific code pattern groups for the code pattern of interest (compare the pattern number sequences)" for yellow only.
【0081】あるいは、黄色に関しては、上記4つの注
目符号パターン群A,B,C,D(図17(c))を用
いた比較を行わずに、Aのみを用いた比較に止めても良
い。前述したように、比較のためのウィンドウが1つだ
けの場合でもスムージング効果があるからである。この
場合の処理フローは、黄色のみに関して、図26におけ
る比較ステップ405を「注目符号パターンについて、
注目符号パターン群Aと、全ての特定符号パターン群を
比較(パターン番号列同士を比較)」と置き換えればよ
い。[0081] Alternatively, with respect to yellow, the comparison may be limited to using only A, without performing a comparison using the four groups of code patterns of interest A, B, C, and D (Figure 17(c)). As mentioned above, a smoothing effect is achieved even with only one comparison window. In this case, the processing flow is as follows, with respect to yellow only, the comparison step 405 in Figure 26 is changed to "Regarding the code pattern of interest,
This can be replaced with "Compare the group of code patterns of interest A with all specific code pattern groups (compare the sequence of pattern numbers)."
【0082】上記した例では、視認性の低い黄色につい
て注目符号パターン群の数を少なくしたので、ユーザに
よって観察されるスムージング効果の低下を抑えながら
処理速度を向上させることができる。そして、処理速度
を最優先させるならば、黄色については特定符号パター
ン群との比較を行わないという選択も可能である。[0082] In the above example, the number of code pattern groups of interest was reduced for yellow, which has low visibility, so the processing speed can be improved while suppressing the decrease in the smoothing effect observed by the user. Furthermore, if processing speed is the top priority, it is also possible to choose not to compare yellow with a specific code pattern group.
【0083】なお、上記した実施例では文字への適用に
ついて示したが、本発明はこれに限らず、グラフィック
ス画像や自然画等にも適用可能である。[0083] In the above embodiment, the application to characters was shown, but the present invention is not limited to this and can also be applied to graphics images, natural images, etc.
【0084】(実施例9)本発明は上記した実施例に限
定されず、ソフトウェアによっても実現することができ
る。本発明をソフトウェアによって実現する場合には、
図27に示すように、CPU、メモリ、表示装置、ハー
ドディスク、キーボード、CD−ROMドライブ、スキ
ャナなどからなるコンピュータシステムを用意し、CD
−ROMなどのコンピュータ読み取り可能な記録媒体に
は、本発明の画像データ生成機能を実現するプログラム
などが記録されている。そして、本発明の画像データ生
成処理を実行させるときは、上記した記録媒体に記録さ
れたプログラムを読み出し、これをプリンタドライバと
してOSの一部に組み込むことによって本発明の処理機
能が実現される。また、処理対象となる原画像データは
例えばハードディスクに格納されていて、これに上記し
た処理が施され、原画像データよりも解像度の高い画像
データがプリンタなどに出力される。[0084] (Example 9) The present invention is not limited to the above-described embodiments and can also be implemented by software. When the present invention is implemented by software,
As shown in Figure 27, a computer system consisting of a CPU, memory, display device, hard disk, keyboard, CD-ROM drive, scanner, etc. is prepared, CD
-A computer-readable recording medium such as ROM contains a program that implements the image data generation function of the present invention. When executing the image data generation process of the present invention, the program recorded on the recording medium is read and incorporated into the OS as a printer driver, thereby realizing the processing function of the present invention. The original image data to be processed is stored, for example, on a hard disk, and the above-described processing is applied to it, resulting in image data with a higher resolution than the original image data being output to a printer or the like.
【0085】[0085]
【発明の効果】以上、説明したように、請求項1、2、
15記載の発明によれば、原画像データの注目画素に対
して、ソートされた閾値を用いて階調数変換を行い、符
号パターンを参照するので、原画像データよりも解像度
の高い画像データを高速に生成することができ、従来の
第2の方法よりも高画質な画像を得ることができる。[Effects of the Invention] As described above, claims 1 and 2,
According to the invention described in 15 , a grayscale conversion is performed on the pixels of interest in the original image data using sorted thresholds, and the code pattern is referenced. This makes it possible to generate image data with a higher resolution than the original image data at high speed, and to obtain images of higher quality than the conventional second method.
【0086】請求項3、16記載の発明によれば、階調
数変換時に誤差拡散処理を適用するので、高画質な画像
データを生成することができる。[0086] According to the invention described in claims 3 and 16 , since error diffusion processing is applied during grayscale conversion, high-quality image data can be generated.
【0087】請求項4、17記載の発明によれば、同一
階調値における符号パターンのドット配置がドット分散
型の配置をとるようにしたので、符号パターンの数を少
なくすることができる。[0087] According to the invention described in claims 4 and 17 , the dot arrangement of the code pattern at the same grayscale value is made to be a dot-dispersed type arrangement, so the number of code patterns can be reduced.
【0088】請求項5、18記載の発明によれば、同一
階調値における符号パターンのドット配置がブルーノイ
ズ型の配置をとるようにしたので、高速かつ誤差拡散処
理に匹敵する高画質な画像データを生成することができ
る。[0088] According to the invention described in claims 5 and 18 , the dot arrangement of the code pattern at the same grayscale value is made to take the form of a blue noise type arrangement, so that high-speed image data comparable to error diffusion processing can be generated.
【0089】請求項6、7、19、20記載の発明によ
れば、階調数の送信がn進法でなされる場合に、階調数
をnのべき乗としたので、階調数当たりの転送データ量
を最小にすることができる。[0089] According to the invention described in claims 6, 7, 19, and 20, when the number of grayscale levels is transmitted in base n, the number of grayscale levels is raised to a power of n, so the amount of data transferred per grayscale level can be minimized.
【0090】請求項8記載の発明によれば、テンプレー
トマッチングによって、注目符号パターン群の所定の第
2の符号パターンを、第3の符号パターンに変更するの
で、原画像データよりも解像度が高くかつスムージング
のかかった画像データを高速に生成することができる。[0090] According to the invention described in claim 8 , a predetermined second code pattern of the group of code patterns of interest is changed to a third code pattern by template matching, so that image data with higher resolution and smoothing than the original image data can be generated at high speed.
【0091】請求項9記載の発明によれば、階調数変換
をホストコンピュータ側で行い、階調数を画像出力装置
に対して送信し、画像出力装置が符号パターンを参照し
て原画像データよりも解像度の高い画像データを生成す
ると共に、第3の符号パターンへの変更を行うので、ホ
ストからプリンタへの転送データ量が削減でき、かつス
ムージングのかかった最終画像データを高速に生成する
ことができる。[0091] According to the invention described in claim 9 , the host computer performs the grayscale conversion, transmits the grayscale to the image output device, and the image output device refers to the code pattern to generate image data with a higher resolution than the original image data, and also changes to the third code pattern. As a result, the amount of data transferred from the host to the printer can be reduced, and the final image data with smoothing applied can be generated at high speed.
【0092】請求項10記載の発明によれば、変更の対
象となる第3の符号パターンが、画素に対応した符号パ
ターンのいずれとも異なるので、符号パターンが拡張さ
れる結果、高いスムージング効果を得ることができる。[0092] According to the invention of claim 10 , since the third code pattern to be modified is different from any of the code patterns corresponding to pixels, the code pattern is expanded, and as a result, a high smoothing effect can be obtained.
【0093】請求項11記載の発明によれば、注目符号
パターン群を複数用いるので、高いスムージング効果を
得ることができる。[0093] According to the invention described in claim 11 , since multiple groups of code patterns of interest are used, a high smoothing effect can be obtained.
【0094】請求項12記載の発明によれば、原画像デ
ータの色成分の少なくとも1つについて、特定符号パタ
ーン群の数を少なくしたので、スムージング効果への影
響を抑えながら処理速度を高めることができる。[0094] According to the invention described in claim 12 , the number of specific code pattern groups is reduced for at least one of the color components of the original image data, so that the processing speed can be increased while suppressing the effect on the smoothing effect.
【0095】請求項13記載の発明によれば、原画像デ
ータの色成分の少なくとも1つについて、注目符号パタ
ーン群の数を少なくしたので、スムージング効果への影
響を抑えながら、処理速度を高めることができる。[0095] According to the invention described in claim 13 , the number of code pattern groups of interest is reduced for at least one of the color components of the original image data, so that the processing speed can be increased while suppressing the effect on the smoothing effect.
【0096】請求項14記載の発明によれば、1つの色
成分を視認性の低い黄色としたので、ユーザによって観
察されるスムージング効果の低下を抑えながら、処理速
度を向上させることができる。[0096] According to the invention described in claim 14 , since one of the color components is yellow, which has low visibility, the processing speed can be improved while suppressing the reduction in the smoothing effect observed by the user.
【図面の簡単な説明】[Brief explanation of the drawing]
【図1】本発明の実施例1の構成を示す。[Figure 1] shows the configuration of Embodiment 1 of the present invention.
【図2】階調数変換(中間調処理)で使用する4×4の
閾値マトリクスを示す。[Figure 2] This shows the 4x4 threshold matrix used for grayscale conversion (intertone processing).
【図3】(a)〜(d)は、従来の第1の方法を説明す
る図である。Figures 3(a) to (d) illustrate the conventional first method.
【図4】(a)〜(d)は、従来の第2の方法を説明す
る図である。Figures 4(a) to (d) illustrate the conventional second method.
【図5】(a)〜(d)は、本実施例を説明する図であ
る。Figures 5(a) to (d) illustrate this embodiment.
【図6】符号パターンマトリックスを示す。[Figure 6] shows the code pattern matrix.
【図7】本発明の実施例1の処理フローチャートであ
る。[Figure 7] This is a flowchart of the process for Embodiment 1 of the present invention.
【図8】本発明の実施例1の閾値マトリックス作成の処
理フローチャートである。[Figure 8] This is a flowchart of the process for creating a threshold matrix in Example 1 of the present invention.
【図9】本発明の実施例1の符号パターンマトリックス
作成の処理フローチャートである。[Figure 9] This is a flowchart of the process for creating a code pattern matrix according to Embodiment 1 of the present invention.
【図10】本発明の実施例2を構成する閾値マトリック
スである。[Figure 10] This is a threshold matrix that constitutes Embodiment 2 of the present invention.
【図11】本発明を誤差拡散法に適用した場合の実施例
3を説明する図である。[Figure 11] This figure illustrates Example 3, in which the present invention is applied to the error diffusion method.
【図12】本発明の実施例3の処理フローチャートであ
る。[Figure 12] This is a flowchart of the process for Embodiment 3 of the present invention.
【図13】ドット分散型の閾値マトリックスを示す。[Figure 13] Shows a dot-dispersed threshold matrix.
【図14】本発明の実施例4の符号パターンマトリック
スを示す。[Figure 14] shows the code pattern matrix of Embodiment 4 of the present invention.
【図15】本発明の実施例6の処理フローチャートであ
る。[Figure 15] This is a flowchart of the process for Embodiment 6 of the present invention.
【図16】本発明の実施例7で使用する符号パターンマ
トリックスを示す。[Figure 16] shows the code pattern matrix used in Embodiment 7 of the present invention.
【図17】「文」という黒文字のベクトルフォントをラ
スター展開し、実施例1の処理手順によって得られた符
号パターンの左半分を示す。[Figure 17] The left half of the code pattern obtained by the processing procedure of Example 1 is shown after raster expansion of the black vector font of the character "文".
【図18】「文」の右半分を示す。[Figure 18] Shows the right half of the character "文".
【図19】(a)〜(f)は、特定符号パターン群を示
す。Figure 19 (a) to (f) show a specific set of code patterns.
【図20】(a)〜(f)は、変更後の符号パターン群
を示す。Figure 20 (a) to (f) shows the modified code patterns.
【図21】追加された符号パターンとパターン番号を示
す。[Figure 21] shows the added code patterns and pattern numbers.
【図22】図17、18の全ての注目符号パターンにつ
いて、比較のためのウィンドウAをとった場合の処理結
果を示す。[Figure 22] This shows the processing results when a comparison window A is applied to all of the code patterns of interest in Figures 17 and 18.
【図23】図17、18の全ての注目符号パターンにつ
いて、比較のためのウィンドウBをとった場合の処理結
果を示す。[Figure 23] This shows the processing results when a comparison window B is applied to all of the code patterns of interest in Figures 17 and 18.
【図24】図17、18の全ての注目符号パターンにつ
いて、比較のためのウィンドウCをとった場合の処理結
果を示す。[Figure 24] This shows the processing results when a comparison window C is taken for all of the code patterns of interest in Figures 17 and 18.
【図25】図17、18の全ての注目符号パターンにつ
いて、比較のためのウィンドウDをとった場合の処理結
果を示す。[Figure 25] This shows the processing results when a comparison window D is applied to all of the code patterns of interest in Figures 17 and 18.
【図26】本発明の実施例7の処理フローチャートであ
る。[Figure 26] This is a flowchart of the process for Embodiment 7 of the present invention.
【図27】本発明の実施例9の構成を示す。[Figure 27] shows the configuration of Embodiment 9 of the present invention.
【符号の説明】 1 画像データ 2 閾値マトリックス 3 符号パターン格納部 4 プリントデータ 5 処理装置 6 プリンタ[Explanation of Codes] 1. Image Data 2. Threshold Matrix 3. Code Pattern Storage Unit 4. Print Data 5. Processing Unit 6. Printer
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14659399A JP3688938B2 (en) | 1999-03-18 | 1999-05-26 | Image data generation method, apparatus and recording medium |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7332199 | 1999-03-18 | ||
| JP11-73321 | 1999-03-18 | ||
| JP14659399A JP3688938B2 (en) | 1999-03-18 | 1999-05-26 | Image data generation method, apparatus and recording medium |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JP2000332995A JP2000332995A (en) | 2000-11-30 |
| JP2000332995A5 true JP2000332995A5 (en) | 2003-07-04 |
| JP3688938B2 JP3688938B2 (en) | 2005-08-31 |
Family
ID=26414470
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14659399A Expired - Fee Related JP3688938B2 (en) | 1999-03-18 | 1999-05-26 | Image data generation method, apparatus and recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3688938B2 (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7251060B2 (en) | 2000-12-12 | 2007-07-31 | Ricoh Company, Ltd. | Image-processing device using quantization threshold values produced according to a dither threshold matrix and arranging dot-on pixels in a plural-pixel field according to the dither threshold matrix |
| US7830553B2 (en) | 2004-02-10 | 2010-11-09 | Seiko Epson Corporation | Image output system for outputting image based on information of number of dots to be formed in predetermined area |
| JP4375235B2 (en) | 2004-05-20 | 2009-12-02 | セイコーエプソン株式会社 | Image output system that outputs images while coding multiple pixels at a time |
| JP4812267B2 (en) * | 2004-07-30 | 2011-11-09 | ローランドディー.ジー.株式会社 | Image processing method, image processing apparatus, program, and ink-jet printer |
| JP5132496B2 (en) | 2008-02-06 | 2013-01-30 | キヤノン株式会社 | Image processing apparatus, image processing method, program thereof, and storage medium |
| US9704074B2 (en) * | 2015-01-21 | 2017-07-11 | Canon Kabushiki Kaisha | Image processing apparatus and method for quantizing first and second multi-valued data |
| JP6587552B2 (en) * | 2015-02-20 | 2019-10-09 | キヤノン株式会社 | Image processing apparatus and image processing method |
-
1999
- 1999-05-26 JP JP14659399A patent/JP3688938B2/en not_active Expired - Fee Related
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8649061B2 (en) | Laser print apparatus with dual halftones | |
| JP3744610B2 (en) | Image coding method | |
| JPH08228288A (en) | Method and apparatus for improved adaptive filtering and thresholding for reducing image graininess | |
| US5729625A (en) | Image processing method and apparatus which expand a pixel into multiple pixels, with a change in the number of gray levels | |
| WO1996024910A1 (en) | Enhancement of image resolution and contrast | |
| JP6029305B2 (en) | Image processing apparatus and control method thereof | |
| KR102307264B1 (en) | Image processing apparatus, image processing method, and storage medium | |
| JP3688938B2 (en) | Image data generation method, apparatus and recording medium | |
| JP3396992B2 (en) | Image processing method and apparatus | |
| JP2009071831A (en) | Image processing apparatus, image processing method, and image forming apparatus | |
| JP2004120133A (en) | Image processing method and image processing apparatus | |
| JP4341653B2 (en) | Image processing apparatus, image reading apparatus, image processing method, and image processing program | |
| US20070058203A1 (en) | System and method for generating low visibility multi-bit halftone | |
| US6956676B2 (en) | Methods and systems for providing halftone screens | |
| JP2009213077A (en) | Image processing apparatus and image processing method | |
| JP3743471B2 (en) | Printing system, printing apparatus and printing control apparatus | |
| US20020060812A1 (en) | Image processing method and image processing apparatus | |
| JP2007182077A (en) | Printer and image processing apparatus therefor | |
| JP4222187B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP2001103281A (en) | Image processing apparatus and image processing method | |
| JP2006067294A (en) | Image processing method and image processing apparatus | |
| US20070058200A1 (en) | System and method for generating multi-bit halftones using horizontal buildup | |
| JP2005157525A (en) | Image processing device, image processing method and image processing program | |
| JP2006005634A (en) | Image processing apparatus, image processing method, image processing program, and recording medium recording the program | |
| JP2005184044A (en) | Recording system and image processing method |