JP3476270B2 - Print data creation device - Google Patents

Print data creation device

Info

Publication number
JP3476270B2
JP3476270B2 JP05951995A JP5951995A JP3476270B2 JP 3476270 B2 JP3476270 B2 JP 3476270B2 JP 05951995 A JP05951995 A JP 05951995A JP 5951995 A JP5951995 A JP 5951995A JP 3476270 B2 JP3476270 B2 JP 3476270B2
Authority
JP
Japan
Prior art keywords
data
pixels
resolution
density pattern
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP05951995A
Other languages
Japanese (ja)
Other versions
JPH08255062A (en
Inventor
▲祥▼治 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP05951995A priority Critical patent/JP3476270B2/en
Publication of JPH08255062A publication Critical patent/JPH08255062A/en
Application granted granted Critical
Publication of JP3476270B2 publication Critical patent/JP3476270B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、印刷データ作成装置に
関する。この印刷データ作成装置とは、コンピュータシ
ステムにおいてモニタ装置に画像を表示するための画像
データを、ほぼ同等の画像を印刷出力させるためにプリ
ンタに入力される印刷データに変換する装置である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print data creating apparatus. The print data creation device is a device that converts image data for displaying an image on a monitor device in a computer system into print data that is input to a printer to print out substantially the same image.

【0002】[0002]

【従来の技術】コンピュータ及びディスプレイ(カラー
モニタ装置)を用いて商品(パッケージや車等)やポス
タ等のデザインを行うデザインシステムや、絵入り文書
の作成を行うデスクトップパブリッシングシステムにお
いては、オペレータがマウス等の入力装置を用いてディ
スプレイを見ながら画像データを作成したり、スキャナ
装置等によって画像データを入力する。そして、ディス
プレイを見ながら、画像の各部分への色の割り当て,割
り当てた色の調整・修正,等の画像処理を行う。そし
て、このようにして処理した画像を、カラープリンタに
よって印刷する。
2. Description of the Related Art In a design system for designing products (packages, cars, etc.) and posters using a computer and a display (color monitor device), and a desktop publishing system for creating pictorial documents, an operator uses a mouse or the like. Image data is created while looking at the display using the input device, or the image data is input by a scanner device or the like. Then, while observing the display, image processing such as color assignment to each part of the image, adjustment / correction of the assigned color, and the like is performed. Then, the image processed in this way is printed by a color printer.

【0003】また,電子カタログ,電子図鑑,等は、元
のアナログ画像をイメージスキャナなどでデジタル化
し、色の調整,サイズ変換,他の画像や文書との合成,
等の処理を施した後に、CD−ROM等に格納したもの
である。このような電子カタログ等に格納された画像デ
ータは、コンピュータシステムにおいて再生され、ディ
スプレイ上に表示されるとともに、カラープリンタによ
って印刷される。
Further, in electronic catalogs, electronic picture books, etc., original analog images are digitized by an image scanner or the like, and color adjustment, size conversion, composition with other images or documents,
It is stored in a CD-ROM or the like after being subjected to processing such as. The image data stored in such an electronic catalog or the like is reproduced in a computer system, displayed on a display, and printed by a color printer.

【0004】このようなコンピュータ上でのカラー画像
の利用においては、高精度で自由な画像の操作ができる
こと,使いやすいヒューマンインタフェース(コンピュ
ータと人間のインターフェイス)が用意されていること
等の他、処理した画像を高精度できれいに印刷できるこ
とが要望されている。
In the use of a color image on such a computer, it is possible to operate the image with high precision and freedom, a human interface (computer-human interface) that is easy to use, and other processing are performed. It is demanded that the printed image can be printed with high precision and high accuracy.

【0005】コンピュータでは、通常画素の集合として
カラー画像データを扱っている。これはビットマップと
呼ばれている。そして、このビットマップ中の各画素
は、夫々8ビットの強度(0〜255の範囲)で示され
たR(赤)G(緑)B(青)の三原色から構成されてい
る。このようなカラー画像データをディスプレイ上で表
示する際には、ディスプレイの画面中の各画素(RGB
三色の画素から構成される)を、対応するカラー画像デ
ータの画素におけるRGB3原色の強度に従って発光さ
せて、約16M色のフルカラー画像を得ている。
Computers usually handle color image data as a set of pixels. This is called a bitmap. Each pixel in this bitmap is composed of three primary colors of R (red), G (green), and B (blue) indicated by 8-bit intensities (range of 0 to 255). When displaying such color image data on the display, each pixel (RGB
(Composed of pixels of three colors) is caused to emit light in accordance with the intensities of the RGB three primary colors in the pixels of the corresponding color image data to obtain a full-color image of about 16M colors.

【0006】一方、このようなカラー画像をインクジェ
ットなどのカラープリンタで印刷する際には、下記に示
す各種の理由により、RGBの夫々が8ビットの強度で
示される画像データをそのまま使用することができな
い。そのため、このRGB8ビットの画像データを、2
値の強度(ドット)でインク用のY(黄色)M(マゼン
ダ)C(シアン)K(黒)が示される印刷用画像データ
に、変換しなければならない。この画像変換処理では、
ガンマ補正処理,色変換・黒発生処理,解像度変換処
理,2値化処理が、順番に実行される。以下、これら各
処理について、その理由を説明する。
On the other hand, when printing such a color image with a color printer such as an inkjet printer, it is possible to use the image data in which each of RGB is represented by 8-bit intensity as it is for various reasons described below. Can not. Therefore, this RGB 8-bit image data is converted into 2
It must be converted to printing image data in which Y (yellow) M (magenta) C (cyan) K (black) for ink is indicated by the intensity (dot) of the value. In this image conversion process,
The gamma correction process, the color conversion / black generation process, the resolution conversion process, and the binarization process are sequentially executed. The reason for each of these processes will be described below.

【0007】先ず、ガンマ補正処理について説明する。
データ強度に対するディスプレイの発光特性と、プリン
タへの入力データに対する印刷結果の反射特性とは異な
る。すなわち、例えば同じ大きさのデータを与えても、
ディスプレイで見える明るさより印刷結果の明るさ(反
射率)が小さくなり暗く見える。従って、この違い(ガ
ンマ特性)を補正すべく、ガンマ補正処理がなされるの
である。この際、同時に、画像データの白黒とプリンタ
での白黒を合わせる処理(ホワイトバランス処理)も行
われる。
First, the gamma correction process will be described.
The light emission characteristic of the display with respect to the data intensity and the reflection characteristic of the print result with respect to the input data to the printer are different. That is, even if data of the same size is given,
The brightness (reflectance) of the printed result is smaller than the brightness seen on the display and the image looks dark. Therefore, gamma correction processing is performed to correct this difference (gamma characteristic). At this time, at the same time, a process of matching the black and white of the image data with the black and white of the printer (white balance process) is also performed.

【0008】次に、色変換・黒発生処理について説明す
る。プリンタでは、カラーインクを混在させてカラー画
像を印刷するが、発色特性等の理由により、RGBに代
えて印刷用のYMC(黄,マゼンダ,シアン)のカラー
インクを使用している。これらは、夫々RGB(赤,
緑,青)の補色に当るので、RBGの各強度の補数を算
出することにより、YMCの夫々が8ビットの強度で表
される印刷用データを得ることができる。なお、黒色に
ついては、原理的にはYMCで表現できるはずである
が、重ね合わせでは真っ黒がでにくいこと,インク量が
多くなり不経済であるとともに水分量が多くなってしま
う等の理由により、個別に黒色(K)のインクを使用し
て表現する。即ち、YMCが夫々同強度で混ぜられると
理論上同強度の黒(K)になることから、YMCのうち
の最小強度のものと同じ強度の黒色(K)データを作る
とともに、この黒色と同じ強度を各YMCの色データか
ら減ずる補正を行う。このようにして、色変換・黒発生
処理を実行するのである。
Next, the color conversion / black generation processing will be described. The printer prints a color image by mixing color inks, but uses YMC (yellow, magenta, cyan) color inks for printing instead of RGB for reasons such as color development characteristics. These are RGB (red,
Since it corresponds to the complementary colors of green and blue), by calculating the complement of each intensity of RBG, it is possible to obtain the printing data in which each of YMC is represented by 8-bit intensity. In principle, YMC should be able to be used to express black, but due to the fact that it is difficult to get a pure black when superposed, and it is uneconomical due to the large amount of ink and the amount of water increases, etc. It is expressed individually using black (K) ink. That is, when YMCs are mixed with the same intensity, black (K) of theoretically the same intensity is obtained. Therefore, black (K) data of the same intensity as the minimum intensity of YMC is created and the same black as this black is produced. Correction is performed to reduce the intensity from the color data of each YMC. In this way, the color conversion / black generation processing is executed.

【0009】次に、解像度変換処理について説明する。
通常、ディスプレイに表示される画像は、解像度70〜
120[dpi(dots per inch)]程度
で表示される。これはディスプレイの画素ピッチ(0.
25〜0.35[mm])に合わせるためである。一方
プリンタの印刷の解像度はこれと異なる。例えば、最近
市場に出ているカラーインクジェットプリンタでは、1
80〜300〜720[dpi]といった解像度で印刷
することができる。従って、印刷の際、特に指定がない
限り、ディスプレイ上の画像サイズと印刷結果の画像サ
イズを合わせる必要が生じる。このために、画像の解像
度変換処理が必要になるのである。例えば、72[dp
i]の画像を360[dpi]で印刷する場合には、画
素数を縦横とも5倍に拡大する処理を行う。
Next, the resolution conversion processing will be described.
Normally, the image displayed on the display has a resolution of 70-
It is displayed at about 120 [dpi (dots per inch)]. This is the pixel pitch of the display (0.
This is for adjusting to 25 to 0.35 [mm]). On the other hand, the printing resolution of the printer is different from this. For example, one of the color inkjet printers on the market recently
It is possible to print at a resolution of 80 to 300 to 720 [dpi]. Therefore, at the time of printing, it is necessary to match the image size on the display with the image size of the print result unless otherwise specified. Therefore, image resolution conversion processing is required. For example, 72 [dp
When the image of [i] is printed at 360 [dpi], a process of enlarging the number of pixels by 5 times both vertically and horizontally is performed.

【0010】次に、2値化処理について説明する。上述
したように、計算機上のフルカラー画像データは、RG
B各々の強度が8bit(0〜255)で表される。一
方、プリンタは、ドットあり/なしの2値しか表せな
い。ドットサイズを可変にするとしてもせいぜい4値程
度しか表せない。従って、各色毎に、8bitの諧調デ
ータを1ビット(ないし2ビット)で表したデータに変
更する必要がある。この方法としては、濃度パターン法
(図8参照)や誤差拡散法(図9参照)が知られてい
る。この濃度パターン法とは、1画素のデータ(0〜2
55の強度を有する)をn×n画素のドットのパターン
(n×n+1通りの強度を有する)で置換えるものであ
る。図8は、n=2のドットパターンに置換える例を示
す。誤差拡散法とは、注目画素における実際のデータ
(0〜255の強度を有する)をドット(0又は255
の強度を有する)に置換えるとともに、この置換えによ
って生じた強度の誤差(実際の濃度データと置きかえら
れたドットデータとの差)を周囲に分散して、周辺全体
で擬似的に中間調を表すものである。
Next, the binarization process will be described. As described above, the full-color image data on the computer is RG
The intensity of each B is represented by 8 bits (0 to 255). On the other hand, the printer can only represent binary values with and without dots. Even if the dot size is made variable, at most about 4 values can be represented. Therefore, it is necessary to change the 8-bit gradation data into data represented by 1 bit (or 2 bits) for each color. As this method, a density pattern method (see FIG. 8) and an error diffusion method (see FIG. 9) are known. This density pattern method is one pixel data (0 to 2
(Having an intensity of 55) is replaced with a dot pattern of n × n pixels (having an intensity of n × n + 1 ways). FIG. 8 shows an example in which the dot pattern is replaced with n = 2. In the error diffusion method, actual data (having an intensity of 0 to 255) in a target pixel is converted into dots (0 or 255).
The intensity error (difference between the actual density data and the replaced dot data) caused by this substitution is dispersed in the surroundings to represent a pseudo halftone in the entire periphery. It is a thing.

【0011】[0011]

【発明が解決しようとする課題】濃度パターン法では、
変換を行った結果、画像のサイズは縦横ともn倍になる
ので、解像度変換をも同時に行った結果となる(図10
参照)。従って、処理を高速に行うことができる。しか
しながら、濃度パターン法による場合には、8ビット
(0〜255)の強度を有する1画素をn×n画素のパ
ターンで置換えるため、n×n+1通りの強度変化でし
か表すことができない。即ち、実際のデータの強度と2
値化後の強度との間の誤差は無視されてしまうので、元
の画像に比べて印刷結果の画像の画質が劣化してしま
う。
In the density pattern method,
As a result of the conversion, the size of the image becomes n times the vertical and horizontal sizes, so the result is that the resolution conversion is also performed at the same time (FIG.
reference). Therefore, the processing can be performed at high speed. However, in the case of the density pattern method, one pixel having an intensity of 8 bits (0 to 255) is replaced with a pattern of n × n pixels, and therefore, only n × n + 1 intensity changes can be represented. That is, the strength of the actual data and 2
Since the error between the intensity after the binarization is neglected, the image quality of the image of the print result is deteriorated as compared with the original image.

【0012】これに対して、誤差拡散法によれば、ドッ
トへの置換えによって生じる誤差を最終的に反映させる
ことができるので、元の画像データに比較的忠実な印刷
結果を得ることができる。しかしながら、変換を行って
も画像のサイズは変更されないので解像度変換を別途行
う必要がある。この場合、誤差拡散法による2値化は、
解像度変換を行った結果得られた画像データ中の個々の
画素に対して行われる。従って、印刷のための解像度変
換により画像の画素数が増えると、2値化処理対象の増
加によって処理時間の影響が大きくなり、オペレータの
待ち時間や計算機の使用時間が長くなってしまう。
On the other hand, according to the error diffusion method, since the error caused by the replacement with dots can be finally reflected, it is possible to obtain a print result relatively faithful to the original image data. However, since the size of the image is not changed even if the conversion is performed, it is necessary to perform the resolution conversion separately. In this case, binarization by the error diffusion method
It is performed for each pixel in the image data obtained as a result of the resolution conversion. Therefore, if the number of pixels of the image increases due to the resolution conversion for printing, the influence of the processing time increases due to the increase in the binarization target, and the waiting time of the operator and the usage time of the computer increase.

【0013】このように、従来の印刷データ作成手順に
おける2値化処理では、濃度パターン法を採るにしても
誤差拡散法を採るにしても一長一短であり、何らかのデ
メリットを伴っていた。これが従来における第1の問題
点である。
As described above, the binarization process in the conventional print data creating procedure has advantages and disadvantages regardless of whether the density pattern method or the error diffusion method is adopted, and there are some disadvantages. This is the first problem in the prior art.

【0014】なお、2値化処理として濃度パターン法を
採用する場合には、パターンの種類(中間濃度を表すた
めのパターンにおける明暗の位置)による画像品質の劣
化の問題がある。即ち、濃度パターン法では、パターン
のタイプとしてベイヤー型及びファッテニング型の何れ
かを用いる。
When the density pattern method is used as the binarization processing, there is a problem of deterioration of image quality due to the type of pattern (brightness / darkness position in the pattern for representing intermediate density). That is, in the density pattern method, either the Bayer type or the fattening type is used as the pattern type.

【0015】このベイヤー型とは、図15に示すよう
に、n×nのパターン内においてできるだけドットを分
散させつつ強度に応じてドットを増加させる型である。
ベイヤー型は、印刷のドット密度が低い場合にはきめ細
かく見えるが、ドットの縁延長が比較的長くなることか
ら、ドット密度が高い場合にはインクのにじみによって
中間階調におけるドットの明部がつぶれてしまう問題点
がある。
As shown in FIG. 15, the Bayer type is a type in which dots are dispersed as much as possible in an n × n pattern and the number of dots is increased according to strength.
The Bayer type looks fine when the dot density of the print is low, but the edge extension of the dot is relatively long.Therefore, when the dot density is high, the bright part of the dot in the middle gradation is crushed due to ink bleeding. There is a problem that ends up.

【0016】一方、また、ファッテニング型とは、図1
6に示すように、n×nのパターン内においてドットを
できるだけ集中させつつ強度に応じてドットを増加させ
る型である。ファッテニング型は、ドットの縁延長が比
較的短くなることから、印刷のドット密度が高い場合で
も階調の再現性が良いが、ドット密度が低い場合には、
画像の粗が目立ってしまう問題点がある。
On the other hand, the fatting type is shown in FIG.
As shown in FIG. 6, this is a type in which the dots are increased according to the intensity while the dots are concentrated as much as possible in the n × n pattern. The fattening type has a relatively short dot edge extension, so even if the printing dot density is high, gradation reproducibility is good, but if the dot density is low,
There is a problem that the coarseness of the image becomes noticeable.

【0017】このように、印刷の解像度によりそれぞれ
最適なパターンが異なっているが、従来はどちらかのパ
ターンを一律に選択して利用していたため、解像度を変
化させた場合には、最適な印刷画像が得られなかった。
これが従来における第2の問題点である。
As described above, the optimum patterns are different depending on the printing resolution, but in the past, since either pattern was uniformly selected and used, the optimum printing is performed when the resolution is changed. No image was obtained.
This is the second problem in the related art.

【0018】本発明の第1の課題は、上述した従来にお
ける第1の問題点を解決するため、2値化処理と解像度
変換処理を行う場合において、2値化後のデータと元の
画像データとの誤差を反映した元の画像に忠実な画質の
良い印刷データを、比較的短時間の処理で得ることがで
きる印刷データ作成装置を提供することである。
A first object of the present invention is to solve the above-mentioned first problem in the prior art, and in the case of performing the binarization processing and the resolution conversion processing, the data after binarization and the original image data. It is an object of the present invention to provide a print data creation apparatus that can obtain print data with high image quality that is faithful to the original image and that reflects the error between and in a relatively short time.

【0019】また、本発明の第2の課題は、上述した従
来における第2の問題点をも解決するため、解像度変換
処理後の解像度が変化しても画質劣化のない印刷用画像
データ得ることができる印刷データ作成装置を提供する
ことである。
A second object of the present invention is to solve the above-mentioned second problem in the conventional art. Therefore, it is possible to obtain image data for printing without deterioration in image quality even if the resolution after resolution conversion processing changes. It is to provide a print data creation device capable of performing the above.

【0020】[0020]

【課題を解決するための手段】本発明は前記各課題を解
決するため以下の手段を採った。即ち、本発明の第1の
態様は、上記第1の課題を解決するため、高速の濃度パ
ターン法と高画質の誤差拡散法を組合せ、解像度変換と
2値化を同時に行うように構成した。具体的には、図1
の原理図に示すように、複数ビットのデジタル値で強度
を示した画素を平面的に配置してなる画像データ(10
0)に基づいて、2値で示した画素を平面的に配置して
なる印刷データ(101)を作成する印刷データ作成装
置において、暗部又は明部を夫々割り当てた一定数の画
素を平面状に並べるとともに暗部を割り当てる画素数を
夫々変えて構成した複数の濃度パターンの何れかに前記
デジタル値の各値を対応させたテーブル(102)と、
前記画像データ(100)中の各画素の前記デジタル値
に基づき、前記テーブル(102)から対応する前記濃
度パターンを読出して前記印刷データ(101)中に書
込む変換手段(103)と、前記変換手段(103)に
よって前記印刷データ(101)中に書き込まれる前記
濃度パターンの強度と前記デジタル値の強度との誤差を
算出する誤差算出手段(104)と、この誤差算出手段
(104)によって算出された誤差を前記画像データ
(100)中における隣接する他の画素の前記デジタル
値に加算する誤差分配手段(105)とを備えたことを
特徴とする(請求項1に対応)。
The present invention employs the following means in order to solve the above-mentioned problems. That is, in order to solve the first problem, the first aspect of the present invention is configured such that the high speed density pattern method and the high image quality error diffusion method are combined to perform resolution conversion and binarization at the same time. Specifically, FIG.
As shown in the principle diagram of the image data (10), image data (10
In a print data creating apparatus for creating print data (101) in which pixels represented by binary values are two-dimensionally arranged based on 0), a fixed number of pixels to which a dark portion or a light portion is respectively assigned are made flat. A table (102) in which each value of the digital value is made to correspond to any of a plurality of density patterns which are arranged and the number of pixels to which a dark part is assigned is changed respectively;
Conversion means (103) for reading the corresponding density pattern from the table (102) and writing it in the print data (101) based on the digital value of each pixel in the image data (100); An error calculating unit (104) for calculating an error between the intensity of the density pattern and the intensity of the digital value written in the print data (101) by the unit (103), and the error calculating unit (104). The error distribution means (105) for adding the error to the digital value of another adjacent pixel in the image data (100) (corresponding to claim 1).

【0021】また、本発明の第2の態様は、上記第2の
課題を解決するため、解像度変換による解像度に応じ
て、濃度変換パターンの型を自動的に選択可能とするよ
うに構成した。具体的には、上述の第1の態様におい
て、前記テーブルは、その暗部の配置位置を夫々異にす
る複数型の濃度パターンを備えているとともに、その各
型毎に、前記暗部を割り当てる画素数を夫々変えて構成
した複数の濃度パターンに夫々前記デジタル値の各値を
対応させており、前記変換手段によって読み出される前
記濃度パターンの型を変更する濃度パターン型変更手段
を更に備えていることを特徴とする(請求項4に対
応)。
Further, in order to solve the above-mentioned second problem, the second aspect of the present invention is configured so that the density conversion pattern type can be automatically selected according to the resolution of the resolution conversion. Specifically, in the above-described first aspect, the table is provided with a plurality of types of density patterns in which the arrangement positions of the dark areas are different, and the number of pixels to which the dark areas are allocated for each type. Each of the digital values is made to correspond to each of a plurality of density patterns formed by changing the above, and a density pattern type changing means for changing the type of the density pattern read by the converting means is further provided. It is characterized (corresponding to claim 4).

【0022】以下、各部の構成用件について説明する。 (画像データ)画像データはモノクロ画像データであっ
ても良いし、カラー画像データであっても良い。このカ
ラー画像データとしてはRGBカラー画像データであっ
ても良いし、YMCカラー画像データであっても良い。
画像データをRGBカラー画像データとするとともに印
刷データをYMCカラー印刷データとする場合には、R
GBカラー画像を一旦YMCカラー画像に変換する必要
が生じる。また、YMCカラー画像データとする場合に
は、黒色を別途表現する黒画像データKを含むYMCK
カラー画像データとしても良い。
The requirements for the configuration of each part will be described below. (Image data) The image data may be monochrome image data or color image data. The color image data may be RGB color image data or YMC color image data.
If the image data is RGB color image data and the print data is YMC color print data, R
It is necessary to once convert the GB color image into the YMC color image. When YMC color image data is used, YMCK including black image data K that separately expresses black
It may be color image data.

【0023】デジタル値は、複数ビットであれば良いの
で、2ビット以上であれば良い。但し、本発明の効果が
如実に生じるのは3ビット以上の場合である。例えば、
RGB夫々8ビットとすれば、一般にフルカラーと呼ば
れる発色数を得ることができる。 (印刷データ)印刷データは、画像データがモノクロ画
像データである場合にはモノクロしかあり得ないが、画
像データがカラー画像データである場合にはモノクロ又
はカラー印刷データとすることができる。
Since the digital value may have a plurality of bits, it may have two or more bits. However, the effect of the present invention actually occurs in the case of 3 bits or more. For example,
If each of RGB has 8 bits, it is possible to obtain the number of colors that is generally called full color. (Print Data) The print data can be only monochrome when the image data is monochrome image data, but can be monochrome or color print data when the image data is color image data.

【0024】カラー印刷データとしては、RGBカラー
印刷データ,YMCカラー印刷データ,又はYMCKカ
ラー印刷データとすることができる。印刷データが入力
されるプリンタは、いかなる種類のものでも対応でき
る。例えば、インクジェットプリンタ,レーザプリン
タ,ドットインパクトプリンタ,感熱テーププリンタ,
等である。 (テーブル)濃度パターンは、縦横2ドット以上のサイ
ズで平面状に配置された複数の画素からなる。この濃度
パターンの画素数(サイズ)が多くなれば、高解像度に
対応した印刷データを作成することができるようにな
り、濃度パターンの画素数(サイズ)が少なくなれば低
解像度に対応した印刷データを作成することができるよ
うになる。
The color print data can be RGB color print data, YMC color print data, or YMCK color print data. The printer to which the print data is input can be of any type. For example, inkjet printer, laser printer, dot impact printer, thermal tape printer,
Etc. The (table) density pattern is composed of a plurality of pixels arranged in a plane with a size of 2 dots or more in the vertical and horizontal directions. If the number of pixels (size) of this density pattern increases, it becomes possible to create print data compatible with high resolution, and if the number of pixels (size) of the density pattern decreases, print data compatible with low resolution. Will be able to create.

【0025】従って、テーブル内に格納されている濃度
パターンのサイズは一つでも良いが、複数サイズ用意す
る様にすれば、プリンタ側の要求に合わせて、様々な解
像度の印刷データを作成することができる。複数サイズ
用意する場合には、その各サイズ毎に暗部を割り当てる
画素数を夫々変えて構成した複数の濃度パターンを用意
し、この各濃度パターンに夫々前記デジタル値の各値を
対応させる。また、変換手段によって読み出される濃度
パターンのサイズを変更する濃度パターンサイズ変更手
段を更に備えるように構成する(請求項2に対応)。こ
の場合、濃度パターンサイズ変更手段は、画像データの
解像度と印刷データに求められる解像度とに基づき、変
換手段によって読み出される濃度パターンのサイズを変
更するように構成しても良い(請求項3に対応)。
Therefore, the density pattern stored in the table may have only one size, but if a plurality of sizes are prepared, print data of various resolutions can be created in accordance with the request from the printer. You can In the case of preparing a plurality of sizes, a plurality of density patterns each having a different number of pixels to which a dark area is assigned are prepared for each size, and each density pattern is made to correspond to each value of the digital value. Further, the density pattern size changing means for changing the size of the density pattern read by the converting means is further provided (corresponding to claim 2). In this case, the density pattern size changing means may be configured to change the size of the density pattern read by the converting means based on the resolution of the image data and the resolution required for the print data (corresponding to claim 3). ).

【0026】なお、濃度パターンの縦横のドット数は、
同数であれば縦横比を同じに解像度変換させることがで
きるが、異なる数であれば縦横比を変えて解像度変換さ
せることができる。 (誤差分配手段)誤差分配手段は、誤差算出手段で算出
した誤差を、画像データ中における処理対象の画素に隣
接した他の画素に分配する。このとき、分配される画素
は単数であっても複数であっても良い。複数とする場
合、隣接する全ての画素に誤差の分配をすることも可能
であるかもしれないが、変換済みの画素を再変換させる
のは困難であるので、未変換の画素に誤差を分配するこ
とが望ましい。また、その場合、縦又は横に接する画素
への分配量を斜めに接する分配量よりも多くすれば、色
の重心のズレ量を小さく抑えることができる。
The number of dots in the vertical and horizontal directions of the density pattern is
If the numbers are the same, the resolution can be converted to the same aspect ratio, but if the numbers are different, the resolution can be converted by changing the aspect ratio. (Error Distribution Means) The error distribution means distributes the error calculated by the error calculation means to other pixels adjacent to the pixel to be processed in the image data. At this time, the number of pixels to be distributed may be singular or plural. If there are multiple pixels, it may be possible to distribute the error to all adjacent pixels, but it is difficult to reconvert the converted pixel, so distribute the error to the unconverted pixel. Is desirable. Further, in that case, if the distribution amount to the vertically or horizontally contacting pixels is larger than the distribution amount to the obliquely contacting pixels, the shift amount of the center of gravity of the color can be suppressed to be small.

【0027】[0027]

【作用】画像データ100の各画素のデジタル値は、順
番に取り出されて変換手段103に入力される。変換手
段103は、テーブル102を参照して、入力されたデ
ジタル値が示す強度に最も近い強度を有するものとして
予め対応付けられていた濃度パターンを読み出し、印刷
データ101中の対応位置に書き込む。この変換手段1
03による変換の際に、元のデジタル値の強度と印刷デ
ータ101に書き込まれた濃度パターンの強度との間に
誤差が生じると、この誤差は誤差算出手段104によっ
て算出される。算出された誤差は、誤差分配手段105
によって、画像データ100内における現在処理対象の
画素に隣接する他の画素のデジタル値に加算される。こ
の加算がなされた画素が変換手段103によって変換さ
れる際には、この誤差を反映した状態で濃度パターンへ
変換される。従って、誤差を反映した原画像に忠実な色
調再現が可能となる。また、濃度パターンは、複数画素
を縦横に並べたものなので、変換手段103によって変
換を行うと、必然的に解像度を拡大したことになる。し
かも、解像度拡大後の画素に対して誤差分散をする必要
がないので、計算量が少なくて済む。即ち、高速の濃度
パターン法と高画質の誤差拡散法を組合せることで、解
像度変換と2値化を同時に行うにも拘わらず、高速・高
画質の処理を実現することができる(請求項1の作
用)。
The digital value of each pixel of the image data 100 is sequentially taken out and input to the conversion means 103. The conversion unit 103 refers to the table 102, reads the density pattern that is associated in advance as having the intensity closest to the intensity indicated by the input digital value, and writes it in the corresponding position in the print data 101. This conversion means 1
When an error occurs between the intensity of the original digital value and the intensity of the density pattern written in the print data 101 during the conversion by 03, this error is calculated by the error calculating means 104. The calculated error is the error distribution means 105.
Is added to the digital value of another pixel adjacent to the pixel currently being processed in the image data 100. When the pixel to which this addition is performed is converted by the conversion means 103, it is converted into a density pattern while reflecting this error. Therefore, it is possible to reproduce the color tone faithfully to the original image that reflects the error. Further, since the density pattern is formed by arranging a plurality of pixels in the vertical and horizontal directions, when the conversion is performed by the conversion unit 103, the resolution is inevitably increased. Moreover, since it is not necessary to perform error distribution on the pixels after the resolution is increased, the amount of calculation can be reduced. That is, by combining the high-speed density pattern method and the high-quality error diffusion method, it is possible to realize the high-speed / high-quality processing despite the simultaneous resolution conversion and binarization. Action).

【0028】また、濃度パターンサイズ変更手段によ
り、変換手段よって読み出される濃度パターンのサイズ
を変更するようにすれば、解像度の切り替えが可能とな
る(請求項2の作用)。
If the density pattern size changing means changes the size of the density pattern read by the converting means, the resolution can be switched (the function of claim 2).

【0029】また、濃度パターンサイズ変更手段が、画
像データの解像度と印刷データに求められる解像度とに
基づき、変換手段よって読み出される濃度パターンのサ
イズを変更するようにすれば、求められる印刷データの
解像度に自動的に合わせた解像度切り替えを行うことが
できる(請求項3の作用)。
Further, if the density pattern size changing means changes the size of the density pattern read by the converting means based on the resolution of the image data and the resolution required for the print data, the required resolution of the print data is obtained. The resolution can be switched automatically in accordance with the above (operation of claim 3).

【0030】また、濃度パターン型変更手段により、変
換手段よって読み出される前記濃度パターンの型を変更
するようにすれば、パターンの型を印刷の解像度に応じ
て自動的に選択可能となるので、どんな画像に対しても
高品質の処理結果が得られるようになる(請求項4の作
用)。
If the density pattern type changing means changes the density pattern type read by the converting means, the pattern type can be automatically selected according to the printing resolution. A high-quality processing result can be obtained even for an image (operation of claim 4).

【0031】[0031]

【実施例】以下、本発明の実施例を、図面を参照して説
明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0032】[0032]

【実施例1】図2乃至図7は、本発明の第1実施例によ
る印刷データ作成装置が適用された画像処理システムを
示す。 <画像処理システムの全体構成>図2は、本第1実施例
における画像処理システムを示すブロック図である。図
2に示すように、この画像処理システムは、CPU(中
央処理装置)1,並びに、このCPU1に各々接続され
た入力装置2,メモリA3,メモリB4,メモリC5,
濃度パターン用ルックアップテーブル格納部6,プリン
タ7,及びディスプレイ8から構成されている。
First Embodiment FIGS. 2 to 7 show an image processing system to which a print data creating apparatus according to a first embodiment of the present invention is applied. <Overall Configuration of Image Processing System> FIG. 2 is a block diagram showing the image processing system in the first embodiment. As shown in FIG. 2, this image processing system includes a CPU (central processing unit) 1, and an input device 2, a memory A3, a memory B4, a memory C5, which are respectively connected to the CPU 1.
The density pattern lookup table storage unit 6, the printer 7, and the display 8 are provided.

【0033】入力装置2は、キーボード,マウス,ペン
入力装置,スキャナから構成され、各コマンドをCPU
1に入力するとともに、アナログ画像をデジタル画像デ
ータとしてCPU1に入力する装置である。
The input device 2 is composed of a keyboard, a mouse, a pen input device and a scanner, and sends each command to the CPU.
1 and an analog image as digital image data to the CPU 1.

【0034】ディスプレイ8は、CPU1から出力され
た画像データ(RGB各色を夫々8ビットの強さで示し
た画素の集合からなるビットマップデータ,以下、「8
ビットRGBデータ」と言う)に基づき、その表示画面
上の画素を発光させてフルカラー画像を表示する装置で
ある。
The display 8 displays the image data output from the CPU 1 (bitmap data consisting of a set of pixels each of which has an intensity of 8 bits for each color of RGB, hereinafter referred to as "8").
It is a device for displaying a full-color image by causing pixels on the display screen to emit light based on "bit RGB data".

【0035】プリンタ7は、CPU1から出力される印
刷データ(2値で示した画素を平面的に配置してなる印
刷データ)(YMCK毎に2値のドットで表したデー
タ,以下、「2値YMCKデータ」と言う)に基づき、
出力紙上に各色インク(黄色インク,マゼンダインク,
シアンインク,黒インク)をドット状に付着させてフル
カラー印刷を行う装置である。具体的には、カラーイン
クジェットプリンタである。
The printer 7 outputs print data output from the CPU 1 (print data obtained by arranging pixels represented by binary values in a plane) (data represented by binary dots for each YMCK, hereinafter referred to as "binary value"). "YMCK data")
Each color ink (yellow ink, magenta ink,
This is a device that performs full-color printing by depositing cyan ink and black ink) in a dot shape. Specifically, it is a color inkjet printer.

【0036】CPU1は、画像作成プログラムを実行す
ることにより画像データを作成してディスプレイ2に表
示させるとともに、印刷プログラム(プリンタドライ
バ)を実行することにより印刷用画像データをプリンタ
7に出力する装置である。CPU1は、これらプログラ
ムを実行することにより、図2に示した各種機能を生じ
る。即ち、入力装置2からの入力を受け付けるn値決定
部10,RGB−YMCK変換部12,及び画像データ
作成部15,ディスプレイ8に8ビットRGBデータを
出力する表示データ出力部16,n値決定部に繋がる濃
度パターン決定部11,RGB−YMCK変換部12と
濃度パターン決定部11に繋がる2値化部13,並び
に、2値化部13に繋がりプリンタ7に2値YMCKデ
ータを出力する印刷データ出力部14の機能部を生じ
る。以下に、これら各機能部10〜16,及び各メモリ
3〜5,及び濃度パターン用ルックアップテーブル6の
詳しい説明を行う。
The CPU 1 is a device that creates image data by executing the image creating program and displays it on the display 2, and outputs the printing image data to the printer 7 by running the print program (printer driver). is there. By executing these programs, the CPU 1 produces the various functions shown in FIG. That is, an n-value determination unit 10 that receives an input from the input device 2, an RGB-YMCK conversion unit 12, an image data creation unit 15, a display data output unit 16 that outputs 8-bit RGB data to the display 8, and an n-value determination unit. A density pattern determination unit 11, an RGB-YMCK conversion unit 12, a binarization unit 13 connected to the density pattern determination unit 11, and a print data output that is connected to the binarization unit 13 and outputs binary YMCK data to the printer 7. The functional part of the part 14 is generated. The functional units 10 to 16, the memories 3 to 5, and the density pattern lookup table 6 will be described in detail below.

【0037】画像データ作成部15は、入力装置2から
入力されたデジタル画像データを、8ビットRGBデー
タに変換してメモリA3に格納する。また、画像データ
作成部15は、メモリA3内に格納されている8ビット
RGBデータを読み出して、入力装置2からの画像処理
命令に従ってこの8ビットRGBデータを加工して、メ
モリA3に戻す。
The image data generator 15 converts the digital image data input from the input device 2 into 8-bit RGB data and stores it in the memory A3. Further, the image data creation unit 15 reads out the 8-bit RGB data stored in the memory A3, processes the 8-bit RGB data according to the image processing instruction from the input device 2, and returns the 8-bit RGB data to the memory A3.

【0038】メモリA3は、1画面の8ビットRGBデ
ータを、横x列,縦y行のテーブル形式で格納するメモ
リである。このテーブル中の各欄は、8ビットRGBデ
ータの各画素に対応し、この画素を構成するRGBの各
色毎の強度を8ビットのデジタル値(0〜255)にて
格納している。
The memory A3 is a memory for storing 8-bit RGB data of one screen in a table format of horizontal x columns and vertical y rows. Each column in this table corresponds to each pixel of 8-bit RGB data, and stores the intensity of each of the RGB colors forming this pixel as an 8-bit digital value (0 to 255).

【0039】表示データ出力部16は、画像データ作成
部15によって処理対象とされている画面についての8
ビットRGBデータをメモリA3から読み出し、これを
ディスプレイ8に向けて出力する。
The display data output unit 16 displays the screen for the screen to be processed by the image data creation unit 15.
The bit RGB data is read from the memory A3 and output to the display 8.

【0040】RGB−YMCK変換部12は、入力装置
2からの印刷開始コマンドに従って、メモリA3から8
ビットRGBデータを読み出して、γ補正をかけるとと
もに、Y000の各補色データに変換する。そして、
これら各補色データから黒信号Kを算出し、この黒信号
Kの強度を各補色データから減算することによって補正
後の色データYMCを算出する。このようにして、8ビ
ットRGBデータ中の各画素の色の強度をYMCKの各
色の強度に変換する。その結果、得られたデータは、Y
MCK各色を夫々8ビットの強さで示した画素の集合か
らなるビットマップデータ(以下、「8ビットYMCK
データ」と言う)となる。RGB−YMCK変換部12
は、この8ビットYMCKデータを、各色毎のビットマ
ップに分離して、メモリB4に格納する。
The RGB-YMCK conversion section 12 receives the print start command from the input device 2 and outputs the data from the memories A3 to A8.
The bit RGB data is read out, subjected to γ correction, and converted into each complementary color data of Y 0 M 0 C 0 . And
The black signal K is calculated from each of the complementary color data, and the intensity of the black signal K is subtracted from each of the complementary color data to calculate the corrected color data YMC. In this way, the intensity of the color of each pixel in the 8-bit RGB data is converted into the intensity of each color of YMCK. As a result, the obtained data is Y
Bit map data (hereinafter referred to as “8-bit YMCK”) that is a set of pixels in which each MCK color is represented by 8-bit strength.
"Data"). RGB-YMCK converter 12
Separates the 8-bit YMCK data into bitmaps for each color and stores them in the memory B4.

【0041】メモリB4では、各色毎に分離された8ビ
ットYMCKデータを、各色毎に用意されたテーブルY
〜Kに格納する。各テーブルY〜Kは横x列,縦y行か
らなる。その各欄は、8ビットYMCKデータの各画素
に対応し、この画素を構成する当該色の強度を8ビット
のデジタル値(0〜255)にて格納している。
In the memory B4, 8-bit YMCK data separated for each color is stored in a table Y prepared for each color.
Store in ~ K. Each of the tables Y to K has horizontal x columns and vertical y rows. Each column corresponds to each pixel of 8-bit YMCK data, and stores the intensity of the color forming the pixel as an 8-bit digital value (0 to 255).

【0042】一方、n値決定部10は、解像度変換値n
を決定する。この解像度変換値nは、8ビットRGBデ
ータを2値YMCKデータに変換する際に、元の8ビッ
トRGBデータの解像度(x×y)を2値YMCKデー
タ用の解像度(nx×ny)に上げるための値である。
n値決定部10は、入力装置2からの指示により、若し
くは、8ビットRGBデータの解像度(x×y)とプリ
ンタの印刷解像度に基づいて自動的に、解像度変換値n
を決定する。n値決定部10は、決定した解像度変換値
nを、濃度パターン決定部11に通知する。
On the other hand, the n-value determining section 10 determines the resolution conversion value n.
To decide. The resolution conversion value n increases the resolution (x × y) of the original 8-bit RGB data to the resolution (nx × ny) for the binary YMCK data when converting the 8-bit RGB data into the binary YMCK data. Is a value for.
The n-value determining unit 10 receives the instruction from the input device 2 or automatically based on the resolution (x × y) of 8-bit RGB data and the printing resolution of the printer, the resolution conversion value n.
To decide. The n-value determination unit 10 notifies the density pattern determination unit 11 of the determined resolution conversion value n.

【0043】濃度パターンサイズ変更手段及び濃度パタ
ーン型変更手段としての濃度パターン決定部11は、n
値決定部10から通知された解像度変換値nに基づい
て、8ビットRGBデータを2値YMCKデータに変換
する際に用いる濃度パターンを決定する。この濃度パタ
ーンは、濃度パターン用ルックアップテーブル格納部6
内に格納されており、各タイプ(ベイヤー型,ファッテ
ニング型)毎に、各n値に対応した複数サイズのパター
ン(n×n画素のパターン,n=2〜5)が用意されて
いる。即ち、濃度パターン決定部11は、解像度変換値
nが2であれば2×2画素の濃度パターンを決定し、n
値が3であれば3×3画素の濃度パターンを決定する。
The density pattern determining unit 11 as the density pattern size changing means and the density pattern type changing means is
Based on the resolution conversion value n notified from the value determination unit 10, a density pattern used when converting 8-bit RGB data into binary YMCK data is determined. This density pattern is stored in the look-up table storage unit 6 for density pattern.
A plurality of sizes of patterns (n × n pixel patterns, n = 2 to 5) corresponding to each n value are prepared for each type (Bayer type, fattening type). That is, the density pattern determination unit 11 determines a density pattern of 2 × 2 pixels when the resolution conversion value n is 2, and n
If the value is 3, a density pattern of 3 × 3 pixels is determined.

【0044】濃度パターンルックアップテーブル格納部
6は、これらの各タイプ毎の各n×n画素パターン毎
に、ルックアップテーブルを備えている。テーブルとし
ての各ルックアップテーブルには、各n×n画素パター
ンにドット(暗部)(0個〜n×n個)を夫々書き込ん
だn×n+1個の置換えパターンが、それに置換えられ
る8ビットのデータ値に関連付けられて格納されてい
る。例えば、図8は、ファッテニング型の2×2画素パ
ターン用のルックアップテーブルを示しており、データ
値0に対してドット0個のパターン0が対応付けられ、
データ値1〜85に対してドット1個のパターン1が対
応付けられ、データ値86〜170に対してドット2個
のパターン2が対応付けられ、データ値171〜254
に対してドット3個のパターン3が対応付けられ、デー
タ値255に対してドット4個のパターン4が対応付け
られている。
The density pattern look-up table storage unit 6 is provided with a look-up table for each n × n pixel pattern of each type. In each lookup table as a table, n × n + 1 replacement patterns in which dots (dark portions) (0 to n × n) are written in each n × n pixel pattern are replaced with 8-bit data. Stored in association with a value. For example, FIG. 8 shows a lookup table for a 2 × 2 pixel pattern of the fatting type, in which a pattern 0 of 0 dots is associated with a data value 0,
The data value 1 to 85 is associated with the pattern 1 of one dot, the data values 86 to 170 is associated with the pattern 2 of two dots, and the data values 171 to 254.
Is associated with the pattern 3 of three dots, and the data value 255 is associated with the pattern 4 of four dots.

【0045】なお、このデータ値0は強度0%に対応
し、データ値255は強度100%に対応している。同
様に、データ値64は強度25%に対応し、データ値1
28は強度50%に対応し、データ値192は強度75
%に対応している。データ値がこれらの値であれば、図
8のルックアップテーブルに従って、対応する置換えパ
ターンに置換えても誤差は生じないが、それ以外の値で
あれば、置換えに伴って実際の濃度との誤差が発生す
る。
The data value 0 corresponds to intensity 0%, and the data value 255 corresponds to intensity 100%. Similarly, data value 64 corresponds to a strength of 25% and data value 1
28 corresponds to 50% intensity, data value 192 is intensity 75
It corresponds to%. If the data values are these values, no error will occur even if the replacement pattern is replaced with the corresponding replacement pattern according to the look-up table of FIG. 8. However, if the data values are other than that, there is an error with the actual density due to the replacement. Occurs.

【0046】図2に戻り、変換手段,誤差算出手段,及
び誤差分配手段としての2値化部13は、RGB−YM
CK変換部12からの変換完了通知を受けて、メモリB
4内の各テーブルY〜K毎にそのデータを読み出す。2
値化部13は、各テーブルY〜Kを読み出す際に、各欄
(各画素)の8ビットデータを左上から右下に向かって
一つずつ読み出る(同じ行内では左から右に読み出し、
行の右端まで読み出した後は次の行の左端に移る。)。
そして、濃度パターン決定部11によって決定された
(タイプ及びサイズの)パターンに従って、濃度パター
ン用ルックアップテーブル格納部6中の何れかのルック
アップテーブルを参照し、読み出した8ビットのデータ
に対応する置換えパターンを決定する。2値化部13
は、決定した置換えパターンを、メモリC5内の対応す
る色のテーブル上に書き込む。この書込は、メモリB4
からの読み出しと同様に、左上から右下に向かって順番
に行う。なお、置換えパターンへの置換えに伴って上述
の誤差が発生した場合には、2値化部13は、誤差拡散
法による誤差分配計算を行い、計算の結果得られた各誤
差分配値を、メモリB内の元のテーブルY〜Kにおける
対応欄の値に夫々加算する。従って、これらの加算がな
された欄の値が読み出された場合には、この誤差配分値
を反映した置換えがなされることになる。以上の処理を
全ての色について夫々行うと、2値YMCKデータがメ
モリC5に書き込まれることになる。
Returning to FIG. 2, the conversion unit, the error calculation unit, and the binarization unit 13 as the error distribution unit are RGB-YM.
Upon receiving the conversion completion notification from the CK conversion unit 12, the memory B
The data is read for each of the tables Y to K in FIG. Two
When reading each of the tables Y to K, the binarization unit 13 reads the 8-bit data of each column (each pixel) from the upper left to the lower right one by one (read from left to right in the same row,
After reading to the right end of the line, move to the left end of the next line. ).
Then, according to the pattern (type and size) determined by the density pattern determination unit 11, one of the lookup tables in the density pattern lookup table storage unit 6 is referenced to correspond to the read 8-bit data. Determine the replacement pattern. Binarization unit 13
Writes the determined replacement pattern on the table of the corresponding color in the memory C5. This writing is for memory B4
Similarly to reading from, the reading is performed in order from the upper left to the lower right. If the above error occurs due to the replacement with the replacement pattern, the binarization unit 13 performs error distribution calculation by the error diffusion method, and stores each error distribution value obtained as a result of the calculation in the memory. The values are added to the corresponding column values in the original tables Y to K in B, respectively. Therefore, when the value in the column to which these additions are made is read, the replacement that reflects this error distribution value is made. When the above process is performed for all the colors, the binary YMCK data is written in the memory C5.

【0047】メモリC5は、各色毎に分離された2値Y
MCKデータを、各色毎に用意されたテーブルY〜Kに
格納する。各テーブルY〜Kは横nx列,縦ny行から
なる。その各欄は、2値YMCKデータの各画素に対応
し、この画素を構成する当該色の強度を2値(1ビッ
ト)のドット(0,1)にて格納している。
The memory C5 stores binary Y values separated for each color.
The MCK data is stored in the tables Y to K prepared for each color. Each of the tables Y to K consists of horizontal nx columns and vertical ny rows. Each of the columns corresponds to each pixel of the binary YMCK data, and the intensity of the color forming the pixel is stored as a binary (1 bit) dot (0, 1).

【0048】印刷データ出力部14は、2値化部13か
らの2値化完了通知を受けて、メモリC5内の各テーブ
ルY〜K毎にそのデータを読み出して、プリンタ7に向
けて出力する。なお、プリンタ7内では、この各色毎の
2値YMCKデータを一旦バッファに書込み、各色毎に
用意されたインクジェット駆動部に転送する。<印刷デ
ータ作成処理>次に、CPU1内のn値決定部10,濃
度パターン決定部11,RGB−YMCK変換部12,
2値化部13において実行される印刷データ作成処理の
内容を説明する。この印刷データ作成処理は、メモリA
3内に格納されている8ビットRGBデータを2値YM
CKデータに変換するための処理である。
Upon receipt of the binarization completion notification from the binarization unit 13, the print data output unit 14 reads out the data for each of the tables Y to K in the memory C5 and outputs the data to the printer 7. . In the printer 7, the binary YMCK data for each color is once written in the buffer and transferred to the inkjet drive unit prepared for each color. <Print Data Creation Process> Next, the n-value determination unit 10, the density pattern determination unit 11, the RGB-YMCK conversion unit 12 in the CPU 1,
The contents of the print data creation process executed by the binarization unit 13 will be described. This print data creation process is performed in the memory A
8-bit RGB data stored in 3 is converted to binary YM
This is a process for converting into CK data.

【0049】図3は、この印刷データ作成処理のメイン
ルーチンを示すフローチャートである。このメインルー
チンは、入力装置からの印刷開始コマンドを受信するこ
とによりスタートする。
FIG. 3 is a flow chart showing the main routine of this print data creation processing. This main routine starts by receiving a print start command from the input device.

【0050】スタート後最初のステップS001におい
ては、解像度変換値nの決定及び濃度パターンの決定を
行う。図4のフローチャートは、ステップS001にお
いて実行されるサブルーチンを示す。このサブルーチン
に入って最初のステップS101では、入力装置2から
のn値指定入力を待ち、n値決定部10が解像度変換値
nを決定する。次のステップS102では、濃度パター
ン決定部11が、ステップS101にて決定された解像
度変換値nに基づいて、対応する濃度パターン(n×n
画素のパターン)を決定する(濃度パターンサイズ変更
手段に対応)。即ち、濃度パターン用ルックアップテー
ブル6内に格納された各ルックアップテーブルのなかか
ら、2値化部13において参照すべきルックアップテー
ブルを特定する。ステップS102が完了すると、この
サブルーチンを終了して、元のメインルーチンに処理を
戻す。
In the first step S001 after the start, the resolution conversion value n and the density pattern are determined. The flowchart of FIG. 4 shows a subroutine executed in step S001. In the first step S101 after entering this subroutine, an n-value designation input from the input device 2 is awaited, and the n-value determination unit 10 determines the resolution conversion value n. In the next step S102, the density pattern determination unit 11 determines the corresponding density pattern (n × n) based on the resolution conversion value n determined in step S101.
Pixel pattern) is determined (corresponding to the density pattern size changing means). That is, the look-up table to be referred to in the binarization unit 13 is specified from among the look-up tables stored in the density pattern look-up table 6. When step S102 is completed, this subroutine is terminated and the process is returned to the original main routine.

【0051】メインルーチンにおいては、次のステップ
S002において、RGB−YMCK変換部12がRG
B−YMCK変換を実行する。図5のフローチャート
は、ステップS002において実行されるサブルーチン
を示す。
In the main routine, in the next step S002, the RGB-YMCK conversion unit 12 makes the RG
Perform B-YMCK conversion. The flowchart of FIG. 5 shows a subroutine executed in step S002.

【0052】このサブルーチンに入って最初のステップ
S201では、メモリA3から処理対象画像の8ビット
RGBデータを読み出す。次のステップS202では、
読み出した8ビットRGBデータに対してγ補正を施
す。即ち、8ビットRGBデータを構成する各画素の各
色データに対して、夫々下記(1)式を実行する。
In the first step S201 after entering this subroutine, the 8-bit RGB data of the image to be processed is read from the memory A3. In the next step S202,
Γ correction is applied to the read 8-bit RGB data. That is, the following equation (1) is executed for each color data of each pixel forming the 8-bit RGB data.

【0053】[0053]

【数1】 D’=Dmax・(D/Dmax)g …(1) 但し、D’は補正後のデータであり、Dmaxは8ビット
RGBデータ中の各色データにおけるデータ最大値であ
り、Dは元のデータであり、gはγ係数である。
## EQU00001 ## D '= Dmax.multidot. (D / Dmax) g (1) where D'is the corrected data, Dmax is the maximum data value in each color data in the 8-bit RGB data, and D is It is the original data and g is the γ coefficient.

【0054】次のステップS203では、8ビットRG
Bデータの各画素毎に、RGBの各強度に基づいて、各
補色データ(Yo[黄色],Mo[マゼンダ],Co[シ
アン])の強度を算出する。具体的には、下記式(2)
〜(4)を実行する。
In the next step S203, 8-bit RG
For each pixel of the B data, the intensity of each complementary color data (Yo [yellow], Mo [magenta], Co [cyan]) is calculated based on each intensity of RGB. Specifically, the following formula (2)
Execute (4).

【0055】[0055]

【数2】 Yo=255−B …(2)[Equation 2]       Yo = 255-B (2)

【数3】 Mo=255−G …(3)[Equation 3]       Mo = 255-G (3)

【数4】 Mo=255−R …(4) 次のステップS204では、ステップS203で得られ
た各補色データ(Yo,Mo,Co)に基づいて、黒デー
タ(K)を発生させる。具体的には、下記式(5)によ
る演算を行う。
## EQU00004 ## Mo = 255-R (4) In the next step S204, black data (K) is generated based on the complementary color data (Yo, Mo, Co) obtained in step S203. Specifically, the calculation by the following equation (5) is performed.

【0056】[0056]

【数5】 K=Min(Yo,Mo,Co) …(5) この演算は、各補色データ(Yo,Mo,Co)のうち最
小のもののデータ値を黒色データ(K)のデータ値とす
るという意味である。
## EQU00005 ## K = Min (Yo, Mo, Co) (5) In this operation, the minimum data value of the complementary color data (Yo, Mo, Co) is set as the data value of the black data (K). It means that.

【0057】次のステップS205では、ステップS2
04で得られた黒データ(K)に基づいて、ステップS
203で得られた各補色データ(Yo,Mo,Co)の下
色除去処理を行う。具体的には、下記式(6)〜(8)
を実行する。
In the next step S205, step S2
Based on the black data (K) obtained in 04, step S
The under color removal processing of each complementary color data (Yo, Mo, Co) obtained in 203 is performed. Specifically, the following formulas (6) to (8)
To execute.

【0058】[0058]

【数6】 Y=Yo−K …(6)[Equation 6]       Y = Yo-K (6)

【数7】 M=Mo−K …(7)[Equation 7]       M = Mo-K (7)

【数8】 C=Co−K …(8) ステップS205が完了すると、このサブルーチンを終
了して、元のメインルーチンに処理を戻す。
## EQU00008 ## C = Co-K (8) When step S205 is completed, this subroutine is terminated and the process is returned to the original main routine.

【0059】メインルーチンにおける次のステップS0
03では、RGB−YMCK変換部12が、ステップS
204及びS205によって得られた8ビットYMCK
データをメモリB4へ格納する。即ち、8ビットYMC
Kデータを、各色毎に、メモリB4内の各テーブルY〜
Kへ書き込む。
Next step S0 in the main routine
In 03, the RGB-YMCK conversion unit 12 performs the step S
8-bit YMCK obtained by 204 and S205
The data is stored in the memory B4. That is, 8-bit YMC
K data is stored for each color in each table Y to Y in the memory B4.
Write to K.

【0060】続くステップS004〜007では、2値
化処理部13が、各色毎の2値化処理を実行する。即
ち、ステップS004においてY(黄色)についての2
値化処理を行い、これが完了するとステップS005に
おいてM(マゼンダ)についての2値化処理を行い、こ
れが完了するとステップS006においてC(シアン)
についての2値化処理を行い、これが完了するとステッ
プS007においてK(黒)についての2値化処理を行
う。ステップS004〜S007の各2値化処理におい
ては、夫々、各色の8ビットデータに対して、図6に示
す2値化処理サブルーチン実行する。
In subsequent steps S004 to 007, the binarization processing unit 13 executes the binarization processing for each color. That is, in step S004, 2 for Y (yellow)
The binarization process is performed, and when this is completed, the binarization process for M (magenta) is performed in step S005, and when this is completed, C (cyan) in step S006.
Is performed, and when this is completed, the binarization process for K (black) is performed in step S007. In each of the binarization processes of steps S004 to S007, the binarization process subroutine shown in FIG. 6 is executed for each 8-bit data of each color.

【0061】図6のサブルーチンに入って最初のステッ
プS301では、処理対処の色に対応するメモリB4内
のテーブルから画素(8ビットの強度データ)一つ取り
出す。
In the first step S301 after entering the subroutine of FIG. 6, one pixel (8-bit intensity data) is taken out from the table in the memory B4 corresponding to the color to be processed.

【0062】次のステップS302では、ステップS3
01にて取り出した画素の強度データ値に基づき、ステ
ップS102にて決定したルックアップテーブルを参照
して、この強度データ値に対する何れかの置換えパター
ンを決定する。
In the next step S302, step S3
Based on the intensity data value of the pixel extracted in 01, the lookup table determined in step S102 is referred to, and any replacement pattern for this intensity data value is determined.

【0063】次のステップS303では、ステップS3
02において決定した置換えパターンを、メモリC5内
の対応する色のテーブルに書き込む(変換手段に対
応)。なお、このテーブル内において書き換えパターン
を書き込む位置は、既に述べた通り、元の画素データの
メモリB4内の位置に従う。
In the next step S303, step S3
The replacement pattern determined in 02 is written in the corresponding color table in the memory C5 (corresponding to the conversion means). The position where the rewrite pattern is written in this table follows the position in the memory B4 of the original pixel data, as already described.

【0064】次のステップS304では、誤差計算を行
う。即ち、元の強度データ値と置換えパターンに対応す
る強度値との誤差を、下記式(9)に従って算出する
(誤差算出手段に対応)。
In the next step S304, error calculation is performed. That is, the error between the original intensity data value and the intensity value corresponding to the replacement pattern is calculated according to the following equation (9) (corresponding to the error calculating means).

【0065】[0065]

【数9】 d'(l,m)=d(l,m)−P(k) …(9) 但し、d(l,m)は、当該画素(xl[l列目],y
m[m行目])の強度データ値である。P(k)はステ
ップS302にて置換えた置換えパターンの平均強度で
ある。即ち、図8の例では、パターン0の平均強度は0
であり、パターン1の平均強度は64であり、パターン
2の平均強度は128であり、パターン3の平均強度は
192であり、パターン4の平均強度は255である。
d'(l,m)は置換えに伴う誤差であり正負両極性を
とりうる。
## EQU00009 ## d '(l, m) = d (l, m) -P (k) (9) where d (l, m) is the pixel (xl [first column], y
m [m-th line]) intensity data value. P (k) is the average intensity of the replacement pattern replaced in step S302. That is, in the example of FIG. 8, the average intensity of pattern 0 is 0.
The average intensity of pattern 1 is 64, the average intensity of pattern 2 is 128, the average intensity of pattern 3 is 192, and the average intensity of pattern 4 is 255.
d '(l, m) is an error associated with the replacement and can have both positive and negative polarities.

【0066】次のステップS305では、ステップS3
04にて求めた誤差d'(l,m)に基づき、誤差分配
処理を行う(誤差分配手段に対応)。図7は、このステ
ップS305において実行される誤差分配処理サブルー
チンである。
In the next step S305, step S3
Error distribution processing is performed based on the error d ′ (l, m) obtained in 04 (corresponding to error distribution means). FIG. 7 shows an error distribution processing subroutine executed in step S305.

【0067】この図7のサブルーチンに入って最初のス
テップS401では、図9に示す画素(xl+1,ym:
右隣の画素)に対する誤差分配の計算を行う。即ち、メ
モリB4内の対応する色テーブルから、画素(xl+1,
ym)のデータ値d(l+1,m)を取り出し、下記式
(10)の計算を実行する。
In the first step S401 after entering the subroutine of FIG. 7, the pixel (xl + 1, ym:
The error distribution for the pixel on the right is calculated. That is, from the corresponding color table in the memory B4, the pixel (xl + 1,
The data value d (l + 1, m) of ym) is taken out and the calculation of the following formula (10) is executed.

【0068】[0068]

【数10】 d(l+1,m)=d(l+1,m)+d'(l,m)×7/16 …(10) 次のステップS402では、図9に示す画素(xl-1,
ym+1:左下の画素)に対する誤差分配の計算を行う。
即ち、メモリB4内の対応する色テーブルから、画素
(xl-1,ym+1)のデータ値d(l-1,m+1)を取り
出し、下記式(11)の計算を実行する。
D (l + 1, m) = d (l + 1, m) + d ′ (l, m) × 7/16 (10) In the next step S402, the pixel (xl- 1,
ym + 1: lower left pixel) is calculated.
That is, the data value d (l-1, m + 1) of the pixel (xl-1, ym + 1) is taken out from the corresponding color table in the memory B4, and the calculation of the following formula (11) is executed.

【0069】[0069]

【数11】 d(l-1,m+1)=d(l-1,m+1)+d'(l,m)×3/16…(11) 次のステップS403では、図9に示す画素(xl,y
m+1:真下の画素)に対する誤差分配の計算を行う。即
ち、メモリB4内の対応する色テーブルから、画素(x
l,ym+1)のデータ値d(l,m+1)を取り出し、下
記式(12)の計算を実行する。
[Mathematical formula-see original document] d (l-1, m + 1) = d (l-1, m + 1) + d '(l, m) * 3/16 ... (11) In the next step S403, the process shown in FIG. 9 is performed. Pixel (xl, y
m + 1: the pixel directly below) is calculated. That is, from the corresponding color table in the memory B4, the pixel (x
The data value d (l, m + 1) of l, ym + 1) is taken out and the calculation of the following formula (12) is executed.

【0070】[0070]

【数12】 d(l,m+1)=d(l,m+1)+d'(l,m)×5/16 …(12) 次のステップS404では、図9に示す画素(xl+1,
ym+1:右下の画素)に対する誤差分配の計算を行う。
即ち、メモリB4内の対応する色テーブルから、画素
(xl+1,ym+1)のデータ値d(l+1,m+1)を取り
出し、下記式(13)の計算を実行する。
D (l, m + 1) = d (l, m + 1) + d ′ (l, m) × 5/16 (12) In the next step S404, the pixel (xl + shown in FIG. 1,
ym + 1: lower right pixel) is calculated.
That is, the data value d (l + 1, m + 1) of the pixel (xl + 1, ym + 1) is taken out from the corresponding color table in the memory B4, and the calculation of the following formula (13) is executed.

【0071】[0071]

【数13】 d(l+1,m+1)=d(l+1,m+1)+d'(l,m)×1/16…(13) 次のステップS405では、ステップS401〜S40
4の結果得られた誤差分配後の各画素データ値を、夫
々、メモリB4内の対応する色テーブルの対応欄に戻
す。ステップS405が完了すると、このサブルーチン
を終了し、図6のルーチンに処理を戻す。
D (l + 1, m + 1) = d (l + 1, m + 1) + d ′ (l, m) × 1/16 (13) In the next step S405, steps S401 to S40.
Each pixel data value after error distribution obtained as a result of No. 4 is returned to the corresponding column of the corresponding color table in the memory B4. When step S405 is completed, this subroutine is ended and the process is returned to the routine of FIG.

【0072】図6のルーチンでは、次のステップS30
6において、メモリB4内の対応する色のテーブル内に
未処理の画素が残っているかどうかをチェックする。そ
して、未だ画素が残っている場合には、ステップS30
7において処理対象を次の画素に移して、ステップS3
01〜S305の処理を実行する。そして、ステップS
306にて画素が終了したと判断された時には、このサ
ブルーチンを終了し、メインルーチンの元の処理位置に
戻す。
In the routine of FIG. 6, the next step S30
At 6, it is checked if there are any unprocessed pixels remaining in the corresponding color table in memory B4. If there are still pixels, step S30
In step 7, the processing target is moved to the next pixel, and step S3
The processing of 01 to S305 is executed. And step S
When it is determined in 306 that the pixel is finished, this subroutine is finished and the processing position is returned to the original processing position of the main routine.

【0073】以上に説明した2値化処理を、図3のメイ
ンルーチンにおけるステップS004〜S007にて各
色(YMCK)について完了すると、このメインルーチ
ンが終了し、メモリC5内に2値YMCKデータが得ら
れる。 <実施例の作用>本第1実施例によれば、印刷データ作
成処理を実行することにより、2値化と解像度変換を同
時に行うことができる。即ち、図8の例に示すような2
×2画素のパターンによって2値変換する場合には、図
10に示すように、元の画像の解像度を縦横各2倍に拡
大することができる。しかも、従来の単なる濃度パター
ン法による2値化と異なり、本第1実施例では、2値化
に伴って生じる誤差を誤差拡散法と同様にして他の画素
に拡散することができるので、誤差を反映し、元のデー
タに忠実に階調再現した印刷結果を得ることができる。
When the binarization process described above is completed for each color (YMCK) in steps S004 to S007 in the main routine of FIG. 3, this main routine ends and binary YMCK data is obtained in the memory C5. To be <Operation of Embodiment> According to the first embodiment, the binarization and the resolution conversion can be performed at the same time by executing the print data creating process. That is, 2 as shown in the example of FIG.
When binary conversion is performed with a pattern of × 2 pixels, the resolution of the original image can be doubled vertically and horizontally as shown in FIG. Moreover, unlike the conventional binarization by the simple density pattern method, in the first embodiment, the error caused by the binarization can be diffused to other pixels in the same manner as the error diffusion method. It is possible to obtain a print result in which the gradation is faithfully reproduced with respect to the original data.

【0074】この場合、従来の単なる誤差拡散法と異な
り、誤差の算出は元のデータと2値化結果との比較で行
い、解像度変換前の元のデータに誤差を配分させる。そ
のため、2値化と同時に解像度変換を行いながら、誤差
配分計算は、元のデータの画素について行えば足りる。
即ち、解像度変換後の各画素毎に誤差配分計算を行う必
要がない。従って、2値化の計算と別に解像度変換の計
算を行わねばならないとともに、解像度変換後の各画素
に対して誤差配分計算を行わねばならない従来の誤差拡
散法よりも、処理時間が格段に短くなる。
In this case, unlike the conventional simple error diffusion method, the error is calculated by comparing the original data with the binarized result, and the error is distributed to the original data before resolution conversion. Therefore, the error distribution calculation only needs to be performed for the pixels of the original data while performing the resolution conversion at the same time as the binarization.
That is, it is not necessary to calculate the error distribution for each pixel after the resolution conversion. Therefore, in addition to the binarization calculation, the resolution conversion must be calculated, and the processing time is much shorter than that of the conventional error diffusion method in which the error distribution calculation must be performed for each pixel after the resolution conversion. .

【0075】なお、従来の誤差拡散法でも誤差配分後に
解像度変換を行うことが考えられるが、この解像度変換
は、誤差配分がなされたドットを単純に拡大するものと
なってしまうので、画質が却って悪く(粗く)なり、現
実的ではない。これに対して、本実施例によれば、この
ような画質の劣化が生じることなく、少ない計算量で元
のデータに忠実な印刷データを作成することができる。
Although it is conceivable that resolution conversion is performed after error distribution even in the conventional error diffusion method, this resolution conversion simply enlarges the dots to which the error is distributed, so that the image quality is rather contradictory. It gets worse (rougher) and unrealistic. On the other hand, according to the present embodiment, it is possible to create print data that is faithful to the original data with a small amount of calculation without causing such image quality deterioration.

【0076】以下に、本第1実施例と従来例との印刷結
果の比較例を示す。この比較例では、コンピュータとし
てワークステーション(Sun4/2)を用い、8ビッ
トRGB画像データとして色(単色)濃度が漸次変化す
る799×533画素の自然画像を用い、プリンタとし
てカラーインクジェットプリンタを利用した。
The following is a comparative example of the printing results between the first embodiment and the conventional example. In this comparative example, a workstation (Sun4 / 2) was used as a computer, a natural image of 799 × 533 pixels with gradually changing color (monochromatic) density was used as 8-bit RGB image data, and a color inkjet printer was used as a printer. .

【0077】図11(a)は、元の画像データを本第1
実施例によって解像度拡大しつつ2値化した印刷結果の
一部である。この印刷データを含めて画像全体のデータ
を得るために、約25秒の処理時間が掛かっている。図
11(b)は、元の画像データを単純拡大した後に従来
の誤差拡散法を実施した印刷結果の一部(図11(a)
に対応する箇所)である。この印刷データを含めて画像
全体のデータを得るために、約40秒の処理時間が掛か
っている。図11(c)は、元の画像データを従来の濃
度パターン法によって解像度拡大しつつ2値化した印刷
結果の一部(図11(a)に対応する箇所)である。こ
の印刷データを含めて画像全体のデータを得るために、
約20秒の処理時間が掛かっている。
FIG. 11A shows the original image data as the first image.
It is a part of the print result binarized while the resolution is enlarged according to the embodiment. It takes about 25 seconds to obtain the entire image data including the print data. FIG. 11B is a part of the print result obtained by performing the conventional error diffusion method after simply enlarging the original image data (FIG. 11A).
Corresponding to)). It takes about 40 seconds to obtain the data of the entire image including the print data. FIG. 11C is a part of the print result (the portion corresponding to FIG. 11A) obtained by binarizing the original image data while enlarging the resolution by the conventional density pattern method. To obtain the data of the entire image including this print data,
It takes about 20 seconds.

【0078】この比較例から明らかなように、本実施例
によれば、処理時間が高速でありながら、印刷結果は元
の画像データと同じく滑らかに濃度変化し、忠実な階調
再現をしている。しかも、単なる誤差拡散を実行した場
合のような縞模様は現れない。これに対して、単純拡大
した後に従来の誤差拡散法を実施した場合には、階調再
現性は良いものの微妙な縞模様が発生するとともに、処
理時間が低速になってしまう。また、従来の濃度パター
ン法を実施した場合には、処理時間は高速であるもの
の、濃度が不連続に変化するようになってしまうので階
調再現性が非常に悪い。これにより、処理時間と階調再
現性の両面から総合して、本実施例の方法が最も優れて
いることが理解できる。
As is apparent from this comparative example, according to the present embodiment, the print result changes in density as smoothly as the original image data while faithfully reproducing the gradation while the processing time is high. There is. In addition, the striped pattern that would appear when mere error diffusion is executed does not appear. On the other hand, when the conventional error diffusion method is performed after simple enlargement, gradation reproducibility is good but delicate striped patterns are generated, and the processing time becomes slow. Further, when the conventional density pattern method is carried out, the processing time is fast, but the density changes discontinuously, so the gradation reproducibility is very poor. From this, it can be understood that the method of the present embodiment is the best in terms of both processing time and gradation reproducibility.

【0079】[0079]

【実施例2】本発明の第2実施例は、印刷解像度と元の
画像データ(8ビットRGBデータ)の解像度とから、
n値決定部10において解像度変換値nを自動的に算出
することを特徴としている。その他の構成及び処理内容
については、第1実施例のものと同じであるので、その
説明を省略する。 <印刷データ作成処理>図12は、本第2実施例におい
て、図3のステップS001で実行される解像度変換値
n・濃度パターン決定サブルーチンの内容を示すフロー
チャートである。
Second Embodiment A second embodiment of the present invention is based on the print resolution and the resolution of original image data (8-bit RGB data).
The n-value determining unit 10 is characterized in that the resolution conversion value n is automatically calculated. The rest of the configuration and processing contents are the same as those of the first embodiment, so description thereof will be omitted. <Print Data Creation Process> FIG. 12 is a flowchart showing the contents of the resolution conversion value n / density pattern determination subroutine executed in step S001 of FIG. 3 in the second embodiment.

【0080】図12のサブルーチンに入って最初のステ
ップS501では、プリンタの印刷解像度[dpi:do
ts per inch]の導出を行う。印刷解像度は、通常プリ
ンタ用のドライバソフトウエアに組み込んであるので、
そこから読み出す。プリンタ用のドライバソフトウエア
に印刷解像度が組み込んでない場合には、入力装置2を
介して入力されるオペレータの指示を読み込む。
In the first step S501 after entering the subroutine of FIG. 12, the print resolution of the printer [dpi: do
[ts per inch] is derived. Since the print resolution is usually built into the driver software for the printer,
Read from there. When the print resolution is not incorporated in the driver software for the printer, the operator's instruction input via the input device 2 is read.

【0081】次のステップS502では、元の画像デー
タ(8ビットRGBデータ)の解像度についての情報が
あるか否かをチェックする。元の画像データの解像度情
報は、通常、画像のヘッダファイル等に含まれているの
で、このヘッダファイル等を調べる。元の画像データの
解像度についての情報がある場合には、ステップS50
4において、この解像度[dpi:dots per inch]を
抽出する。
In the next step S502, it is checked whether or not there is information about the resolution of the original image data (8-bit RGB data). The resolution information of the original image data is usually included in the header file of the image, so the header file is checked. If there is information about the resolution of the original image data, step S50.
In 4, the resolution [dpi: dots per inch] is extracted.

【0082】これに対して、元の画像データの解像度に
ついての情報がない場合には、ステップS503におい
て、画像サイズ(x×y cm)とx 方向の画素数 (r)
とを読み出す。これら画像サイズや画素数も、画像のヘ
ッダファイルなどに含まれている場合が多い。そして、
ステップS504において、下記式(14)を実行し
て、元の画像データの解像度[dpi:dots per inc
h]を求める。
On the other hand, when there is no information about the resolution of the original image data, the image size (x × y cm) and the number of pixels in the x direction (r) are determined in step S503.
And read out. The image size and the number of pixels are often included in the header file of the image. And
In step S504, the following equation (14) is executed to obtain the resolution [dpi: dots per inc] of the original image data.
h].

【0083】[0083]

【数14】 もと画像データの解像度[dpi]=(r×2.54)/x …(14) ステップS504の次に実行されるステップS505で
は、ステップS501にて導出した印刷解像度とステッ
プS504にて導出した元の画像の解像度とから、解像
度変換値nを導出する。具体的には、下記式(15)を
実行する。
[Formula 14] Original image data resolution [dpi] = (r × 2.54) / x (14) In step S505 executed after step S504, the print resolution derived in step S501 and step S504 are executed. The resolution conversion value n is derived from the derived resolution of the original image. Specifically, the following equation (15) is executed.

【0084】[0084]

【数15】 n=プリンタ印刷解像度/もと画像の解像度 …(15) 次のステップS506では、濃度パターン決定部11
が、ステップS505にて導出された解像度変換値nに
基づいて、対応する濃度パターン(n×n画素のパター
ン)を決定する。即ち、濃度パターン用ルックアップテ
ーブル6内に格納された各ルックアップテーブルのなか
から、2値化部13において参照すべきルックアップテ
ーブルを特定する。ステップS506が完了すると、こ
のサブルーチンを終了して、図3のメインルーチンに処
理を戻す。 <実施例の作用>本第2実施例によれば、第1実施例に
よる作用を全て実現することができるとともに、自動的
に解像度変換値nを求めることができる。そして、2値
化部13における置換えに利用する濃度パターン(n×
n画素のパターン)を、適切に得ることができる。濃度
パターンは予めnが2〜5程度の複数種類のパターンを
用意しておけば良い。
N = printer print resolution / original image resolution (15) In the next step S506, the density pattern determination unit 11
Determines the corresponding density pattern (n × n pixel pattern) based on the resolution conversion value n derived in step S505. That is, the look-up table to be referred to in the binarization unit 13 is specified from among the look-up tables stored in the density pattern look-up table 6. When step S506 is completed, this subroutine is ended and the process is returned to the main routine of FIG. <Operation of Embodiment> According to the second embodiment, all the operations of the first embodiment can be realized, and the resolution conversion value n can be automatically obtained. Then, the density pattern (n ×
A pattern of n pixels) can be appropriately obtained. It is only necessary to prepare a plurality of types of density patterns in advance, where n is about 2 to 5.

【0085】[0085]

【実施例3】本発明の第3実施例は、印刷解像度と元の
画像データ(8ビットRGBデータ)の解像度とから算
出した解像度変換値nが整数にならなかった場合に、元
の画像の画素を間引くことによって、整数の解像度変換
値nを適用できるように調整することを特徴としてい
る。その他の構成及び処理内容については、第1実施例
のものと同じであるので、その説明を省略する。 <印刷データ作成処理>図13は、本第3実施例におい
て、図3のステップS001で実行される解像度変換値
n・濃度パターン決定サブルーチンの内容を示すフロー
チャートである。
Third Embodiment In the third embodiment of the present invention, when the resolution conversion value n calculated from the print resolution and the resolution of the original image data (8-bit RGB data) is not an integer, the original image The feature is that adjustment is performed so that an integer resolution conversion value n can be applied by thinning out pixels. The rest of the configuration and processing contents are the same as those of the first embodiment, so description thereof will be omitted. <Print Data Creation Processing> FIG. 13 is a flowchart showing the contents of the resolution conversion value n / density pattern determination subroutine executed in step S001 of FIG. 3 in the third embodiment.

【0086】図13のサブルーチンに入って最初のステ
ップS601では、プリンタの印刷解像度[dpi:do
ts per inch]の導出を行う。印刷解像度は、通常プリ
ンタ用のドライバソフトウエアに組み込んであるので、
そこから読み出す。プリンタ用のドライバソフトウエア
に印刷解像度が組み込んでない場合には、入力装置2を
介して入力されるオペレータの指示を読み込む。
In the first step S601 after entering the subroutine of FIG. 13, the print resolution [dpi: do of the printer is displayed.
[ts per inch] is derived. Since the print resolution is usually built into the driver software for the printer,
Read from there. When the print resolution is not incorporated in the driver software for the printer, the operator's instruction input via the input device 2 is read.

【0087】次のステップS602では、元の画像デー
タ(8ビットRGBデータ)の解像度についての情報が
あるか否かをチェックする。元の画像データの解像度情
報は、通常、画像のヘッダファイル等に含まれているの
で、このヘッダファイル等を調べる。元の画像データの
解像度についての情報がある場合には、ステップS50
4において、この解像度[dpi:dots per inch]を
抽出する。
In the next step S602, it is checked whether or not there is information about the resolution of the original image data (8-bit RGB data). The resolution information of the original image data is usually included in the header file of the image, so the header file is checked. If there is information about the resolution of the original image data, step S50.
In 4, the resolution [dpi: dots per inch] is extracted.

【0088】これに対して、元の画像データの解像度に
ついての情報がない場合には、ステップS603におい
て、画像サイズ(x×y cm)とx方向の画素数 (r)
とを読み出す。これら画像サイズや画素数も、画像のヘ
ッダファイルなどに含まれている場合が多い。そして、
ステップS604において、上記式(14)を実行し
て、元の画像データの解像度[dpi:dots per inc
h]を求める。
On the other hand, when there is no information about the resolution of the original image data, the image size (x × y cm) and the number of pixels in the x direction (r) are determined in step S603.
And read out. The image size and the number of pixels are often included in the header file of the image. And
In step S604, the above equation (14) is executed to obtain the resolution [dpi: dots per inc] of the original image data.
h].

【0089】ステップS604の次に実行されるステッ
プS605では、ステップS601にて導出した印刷解
像度とステップS604にて導出した元の画像の解像度
とから、解像度変換値nを導出する。具体的には、上記
式(15)を実行する。
In step S605 executed after step S604, a resolution conversion value n is derived from the print resolution derived in step S601 and the original image resolution derived in step S604. Specifically, the above equation (15) is executed.

【0090】次のステップS606では、ステップS6
05にて算出した解像度変換値nが整数であるか否かを
チェックする。そして、整数であれば、このn値をその
まま用いることができるので、処理をステップS613
にジャンプさせる。
In the next step S606, step S6
It is checked whether the resolution conversion value n calculated in 05 is an integer. Then, if it is an integer, this n value can be used as it is, and therefore the processing is performed in step S613.
To jump to.

【0091】ステップS606にて解像度変換値nが整
数でないと判定した場合には、次のステップS607に
おいて、ステップS605にて算出した解像度変換値n
の小数点以下が0.5以上であるか否かをチェックす
る。そして、小数点以下が0.5以上である場合にはス
テップS609にて小数点以下を切り上げ、小数点以下
が0.5未満である場合にはステップS608にて小数
点以下を切り捨てる。
When it is determined in step S606 that the resolution conversion value n is not an integer, the resolution conversion value n calculated in step S605 is calculated in step S607.
Check whether the number after the decimal point of is greater than or equal to 0.5. Then, if the number below the decimal point is 0.5 or more, the number below the decimal point is rounded up in step S609, and if the number below the decimal point is less than 0.5, the number below the decimal point is rounded down.

【0092】次のステップS610では、下記式(1
6)を実行して、解像度補正値(o)を算出する。
In the next step S610, the following equation (1
6) is executed to calculate the resolution correction value (o).

【数16】 解像度補正値(o)=元の画像の解像度−印刷解像度/n …(16) 解像度補正値(o)は正負両極性をとることができる。
即ち、ステップS609の切り上げが実行された場合に
は解像度補正値(o)が正となり、ステップS608の
切り捨てが実行された場合には解像度補正値(o)が負
となる。
## EQU16 ## Resolution correction value (o) = resolution of original image-print resolution / n (16) The resolution correction value (o) can have both positive and negative polarities.
That is, the resolution correction value (o) becomes positive when the rounding up in step S609 is executed, and becomes negative when the rounding up is executed in step S608.

【0093】次のステップS611では、ステップS6
10にて算出した解像度補正値(o)を、画像サイズの
値(x,y)に夫々乗算して、ox,oyを算出する。
次のステップS612では、元の画像から、ox列分の
画素,及びoy行分の画素を削除する。なお、ox,o
yの極性が負である場合には、元の画像に、ox列分の
ダミーの画素,及びoy行分のダミーの画素を付加する
ことになる。このようにして元の画像を補正し終わる
と、処理をステップS613に進める。
In the next step S611, step S6
The resolution correction value (o) calculated in 10 is multiplied by the image size value (x, y) to calculate ox, oy.
In the next step S612, pixels for ox columns and pixels for oy rows are deleted from the original image. In addition, ox, o
When the polarity of y is negative, dummy pixels for ox columns and dummy pixels for oy rows are added to the original image. When the correction of the original image is completed in this way, the process proceeds to step S613.

【0094】次のステップS613では、濃度パターン
決定部11が、ステップS605にて導出された解像度
変換値n,若しくは、ステップS608又はステップS
609にて補正された解像度変換値nに基づいて、対応
する濃度パターン(n×n画素のパターン)を決定す
る。即ち、濃度パターン用ルックアップテーブル6内に
格納された各ルックアップテーブルのなかから、2値化
部13において参照すべきルックアップテーブルを特定
する。ステップS613が完了すると、このサブルーチ
ンを終了して、元のメインルーチンに処理を戻す。 <実施例の作用>本第3実施例によれば、第1実施例及
び第2実施例による作用を全て実現することができると
ともに、解像度変換値nが整数として算出できない場合
でも、元の画像の画素数を修正することによって、整数
の解像度変換値nを使用して2値化を行うことができ
る。
In the next step S613, the density pattern determination unit 11 determines the resolution conversion value n derived in step S605, or step S608 or step S608.
Based on the resolution conversion value n corrected in 609, a corresponding density pattern (n × n pixel pattern) is determined. That is, the look-up table to be referred to in the binarization unit 13 is specified from among the look-up tables stored in the density pattern look-up table 6. When step S613 is completed, this subroutine is terminated and the process is returned to the original main routine. <Operation of Embodiment> According to the third embodiment, all the operations of the first and second embodiments can be realized, and even if the resolution conversion value n cannot be calculated as an integer, the original image can be obtained. By modifying the number of pixels of, the binarization can be performed using the integer resolution conversion value n.

【0095】[0095]

【実施例4】本発明の第4実施例は、印刷解像度の高低
に従って、ステップS302のパターン置換えに際して
用いる濃度パターンのタイプを、ベイヤー型,又はファ
ッテニング型に切り替えることを特徴とする。その他の
構成及び処理内容については、第1実施例のものと同じ
であるので、その説明を省略する。 <印刷データ作成処理>図14は、本第4実施例におい
て、図3のステップS001で実行される解像度変換値
n・濃度パターン決定サブルーチンの内容を示すフロー
チャートである。
Fourth Embodiment A fourth embodiment of the present invention is characterized in that the density pattern type used in the pattern replacement in step S302 is switched to the Bayer type or the fattening type according to the print resolution. The rest of the configuration and processing contents are the same as those of the first embodiment, so description thereof will be omitted. <Print Data Creation Process> FIG. 14 is a flow chart showing the contents of the resolution conversion value n / density pattern determination subroutine executed in step S001 of FIG. 3 in the fourth embodiment.

【0096】図14のサブルーチンに入って最初のステ
ップS701では、プリンタの印刷解像度[dpi:do
ts per inch]の導出を行う。印刷解像度は、通常プリ
ンタ用のドライバソフトウエアに組み込んであるので、
そこから読み出す。プリンタ用のドライバソフトウエア
に印刷解像度が組み込んでない場合には、入力装置2を
介して入力されるオペレータの指示を読み込む。
In the first step S701 after entering the subroutine of FIG. 14, the print resolution [dpi: do of the printer is displayed.
[ts per inch] is derived. Since the print resolution is usually built into the driver software for the printer,
Read from there. When the print resolution is not incorporated in the driver software for the printer, the operator's instruction input via the input device 2 is read.

【0097】次のステップS702では、元の画像デー
タ(8ビットRGBデータ)の解像度についての情報が
あるか否かをチェックする。元の画像データの解像度情
報は、通常、画像のヘッダファイル等に含まれているの
で、このヘッダファイル等を調べる。元の画像データの
解像度についての情報がある場合には、ステップS70
4において、この解像度[dpi:dots per inch]を
抽出する。
In the next step S702, it is checked whether or not there is information about the resolution of the original image data (8-bit RGB data). The resolution information of the original image data is usually included in the header file of the image, so the header file is checked. If there is information about the resolution of the original image data, step S70.
In 4, the resolution [dpi: dots per inch] is extracted.

【0098】これに対して、元の画像データの解像度に
ついての情報がない場合には、ステップS703におい
て、画像サイズ(x×y cm)とx方向の画素数 (r)
とを読み出す。これら画像サイズや画素数も、画像のヘ
ッダファイルなどに含まれている場合が多い。そして、
ステップS704において、上記式(14)を実行し
て、元の画像データの解像度[dpi:dots per inc
h]を求める。
On the other hand, if there is no information about the resolution of the original image data, the image size (x × y cm) and the number of pixels in the x direction (r) are determined in step S703.
And read out. The image size and the number of pixels are often included in the header file of the image. And
In step S704, the above equation (14) is executed to obtain the resolution [dpi: dots per inc of the original image data.
h].

【0099】ステップS704の次に実行されるステッ
プS705では、ステップS501にて導出した印刷解
像度とステップS704にて導出した元の画像の解像度
とから、解像度変換値nを導出する。具体的には、上記
式(15)を実行する。
In step S705 executed after step S704, the resolution conversion value n is derived from the print resolution derived in step S501 and the resolution of the original image derived in step S704. Specifically, the above equation (15) is executed.

【0100】次のステップS706では、印刷解像度が
180[dpi]であるか360[dpi]であるかを
チェックする。そして、180[dpi]である場合に
は、ステップS707に処理を進め、360[dpi]
である場合には、ステップS708に処理を進める(濃
度パターン型変更手段に対応)。
In the next step S706, it is checked whether the print resolution is 180 [dpi] or 360 [dpi]. If it is 180 [dpi], the process proceeds to step S707 and 360 [dpi].
If so, the process proceeds to step S708 (corresponding to the density pattern type changing unit).

【0101】ステップS707では、濃度パターン決定
部11が、ステップS302のパターン置換えに際して
用いる濃度パターンのタイプとして、低解像度に適した
ベイヤー型を選択する。そして、ステップS705にて
導出された解像度変換値nに基づいて、対応する濃度パ
ターン(n×n画素のパターン)を決定する。即ち、濃
度パターン用ルックアップテーブル6内に格納されたベ
イヤー型用の各ルックアップテーブルのなかから、2値
化部13において参照すべきルックアップテーブルを特
定する。図15は、ベイヤー型の3×3画素のパターン
を示している。ステップS707が完了すると、このサ
ブルーチンを終了して、図3のメインルーチンに処理を
戻す。
In step S707, the density pattern determination unit 11 selects the Bayer type suitable for low resolution as the type of density pattern used for the pattern replacement in step S302. Then, based on the resolution conversion value n derived in step S705, the corresponding density pattern (n × n pixel pattern) is determined. That is, the look-up table to be referenced by the binarization unit 13 is specified from among the Bayer look-up tables stored in the density pattern look-up table 6. FIG. 15 shows a Bayer type 3 × 3 pixel pattern. When step S707 is completed, this subroutine is ended and the process is returned to the main routine of FIG.

【0102】ステップS708では、濃度パターン決定
部11が、ステップS302のパターン置換えに際して
用いる濃度パターンのタイプとして、高解像度に適した
ファッテニング型を選択する。そして、ステップS70
5にて導出された解像度変換値nに基づいて、対応する
濃度パターン(n×n画素のパターン)を決定する。即
ち、濃度パターン用ルックアップテーブル6内に格納さ
れたファッテニング型用の各ルックアップテーブルのな
かから、2値化部13において参照すべきルックアップ
テーブルを特定する。図16は、ファッテニング型の3
×3画素のパターンを示している。ステップS708が
完了すると、このサブルーチンを終了して、図3のメイ
ンルーチンに処理を戻す。 <実施例の作用>本第4実施例によれば、第1実施例及
び第2実施例による作用を全て実現することができると
ともに、解像度の高低に応じて、最適な濃度パターンの
型を自動的に選択して2値化することができる。
In step S708, the density pattern determination unit 11 selects a fatting type suitable for high resolution as the type of density pattern used for pattern replacement in step S302. Then, step S70
Based on the resolution conversion value n derived in 5, the corresponding density pattern (n × n pixel pattern) is determined. That is, the look-up table to be referenced by the binarization unit 13 is specified from among the fattening type look-up tables stored in the density pattern look-up table 6. FIG. 16 shows a fatting type 3
A pattern of × 3 pixels is shown. When step S708 is completed, this subroutine is ended and the process is returned to the main routine of FIG. <Operation of Embodiment> According to the fourth embodiment, all the operations of the first embodiment and the second embodiment can be realized, and the optimum density pattern type is automatically determined according to the level of resolution. Can be selectively selected and binarized.

【0103】プリンタ解像度の指示は以下の理由によ
る。例えば360[dpi]で高画質の印刷をするのが
標準設定であっても、試し印刷であったり早く印刷結果
を得たい場合には、180[dpi]で印刷する。これ
により高速の印刷が行える。この指示はオペレータが行
う。
The instruction of the printer resolution is based on the following reasons. For example, even if high-quality printing at 360 [dpi] is the standard setting, printing is performed at 180 [dpi] for trial printing or when a quick print result is desired. This enables high-speed printing. This instruction is given by the operator.

【0104】そして、この指示をもとに利用するパター
ンの種類が決定される。ベイヤー型は印刷のドット密度
が低いとき(180[dpi])に選択され、ファッテ
ニング型は印刷のドット密度が高いとき(360[dp
i])に選択される。
Then, the type of pattern to be used is determined based on this instruction. The Bayer type is selected when the printing dot density is low (180 [dpi]), and the fattening type is selected when the printing dot density is high (360 [dp]).
i]).

【0105】以上の結果、印刷の解像度に応じて最適な
パターンが選択されるのである。従って、解像度が高解
像度から低解像度へ,又はその逆へ変化しても、印刷結
果の画質が劣化することがない。
As a result, the optimum pattern is selected according to the printing resolution. Therefore, even if the resolution changes from high resolution to low resolution or vice versa, the image quality of the print result does not deteriorate.

【0106】なお、濃度パターンは、予め複数タイプの
濃度パターン(ベイヤー型とファッテニング型など)各
々について、nを2〜5程度のパターンを用意してお
く。上述した各実施例において、図5のステップS20
2にて実行されるγ補正は、式(1)によって計算する
ことに代えて、ルックアップテーブルから読み出すよう
にしても良い。
As the density pattern, n patterns of about 2 to 5 are prepared in advance for each of a plurality of types of density patterns (Bayer type, fattening type, etc.). In each of the embodiments described above, step S20 of FIG.
The γ correction executed in 2 may be read from the lookup table instead of being calculated by the equation (1).

【0107】また、上述した各実施例において、図5の
ステップS203〜ステップS205の代わりに、下記
式(17)に示すマトリックス演算によって、YMCK
データを求めるようにしても良い。
Further, in each of the embodiments described above, YMCK is calculated by the matrix calculation shown in the following equation (17) instead of steps S203 to S205 of FIG.
Data may be obtained.

【0108】[0108]

【数17】 [Equation 17]

【0109】この各計数A0〜D2は、実験的に求めた値
である。
Each of the counts A0 to D2 is a value experimentally obtained.

【0110】[0110]

【発明の効果】以上説明した通り、本発明の第1の態様
によれば、2値化処理と解像度変換処理を行う場合にお
いて、2値化後のデータと元の画像データとの誤差を反
映した元の画像に忠実な画質の良い印刷データを、比較
的短時間の処理で得ることができる。
As described above, according to the first aspect of the present invention, when the binarization process and the resolution conversion process are performed, the error between the binarized data and the original image data is reflected. It is possible to obtain print data with high image quality that is faithful to the original image that has been processed in a relatively short time.

【0111】また、本発明の第2の態様によれば、解像
度変換処理後の解像度が変化しても、濃度パターンの型
が選択可能なので、画質劣化のない印刷用画像データ得
ることができる。
Further, according to the second aspect of the present invention, since the density pattern type can be selected even if the resolution after the resolution conversion processing changes, it is possible to obtain printing image data without image quality deterioration.

【図面の簡単な説明】[Brief description of drawings]

【図1】 本発明の原理図FIG. 1 is a principle diagram of the present invention.

【図2】 本発明の第1実施例が適応された画像処理シ
ステムのブロック図
FIG. 2 is a block diagram of an image processing system to which the first embodiment of the present invention is applied.

【図3】 図2の画像処理システムにおいて実行される
印刷データ作成処理の内容を示すフローチャート
FIG. 3 is a flowchart showing the content of print data creation processing executed in the image processing system of FIG.

【図4】 図3のステップS001にて実行されるn値
・濃度パターン決定サブルーチンの内容を示すフローチ
ャート
FIG. 4 is a flowchart showing the contents of an n-value / density pattern determination subroutine executed in step S001 of FIG.

【図5】 図3のステップS002にて実行されるRG
B−YMCK変換サブルーチンの内容を示すフローチャ
ート
5 is an RG executed in step S002 of FIG.
Flowchart showing the contents of the B-YMCK conversion subroutine

【図6】 図3のステップS004〜S007にて夫々
実行される2値化サブルーチンの内容を示すフローチャ
ート
FIG. 6 is a flowchart showing the contents of a binarization subroutine executed in steps S004 to S007 of FIG.

【図7】 図6のステップS305にて実行される誤差
分配サブルーチンの内容を示すフローチャート
FIG. 7 is a flowchart showing the contents of an error distribution subroutine executed in step S305 of FIG.

【図8】 図2の濃度パターン用ルックアップテーブル
格納部6に格納された2×2画素の濃度パターン用ルッ
クアップテーブルの内容説明図
8 is an explanatory diagram of the contents of a density pattern lookup table of 2 × 2 pixels stored in a density pattern lookup table storage unit 6 of FIG.

【図9】 図7の処理の説明図9 is an explanatory diagram of the processing of FIG. 7.

【図10】 本発明の第1実施例による解像度変換作用
の説明図
FIG. 10 is an explanatory diagram of a resolution conversion operation according to the first embodiment of the present invention.

【図11】 本発明の第1実施例と従来例との比較例を
示す図
FIG. 11 is a diagram showing a comparative example of the first embodiment of the present invention and a conventional example.

【図12】 本発明の第2実施例において、図3のステ
ップS001にて実行されるn値・濃度パターン決定サ
ブルーチンの内容を示すフローチャート
FIG. 12 is a flowchart showing the contents of an n-value / density pattern determination subroutine executed in step S001 of FIG. 3 in the second embodiment of the present invention.

【図13】 本発明の第3実施例において、図3のステ
ップS001にて実行されるn値・濃度パターン決定サ
ブルーチンの内容を示すフローチャート
13 is a flowchart showing the contents of an n-value / density pattern determination subroutine executed in step S001 of FIG. 3 in the third embodiment of the present invention.

【図14】 本発明の第4実施例において、図3のステ
ップS001にて実行されるn値・濃度パターン決定サ
ブルーチンの内容を示すフローチャート
FIG. 14 is a flowchart showing the contents of an n-value / density pattern determination subroutine executed in step S001 of FIG. 3 in the fourth embodiment of the present invention.

【図15】 3×3画素からなるベイヤー型の濃度パタ
ーンの説明図
FIG. 15 is an explanatory diagram of a Bayer type density pattern composed of 3 × 3 pixels.

【図16】 3×3画素からなるファッテニング型の濃
度パターンの説明図
FIG. 16 is an explanatory diagram of a fatting type density pattern composed of 3 × 3 pixels.

【符号の説明】[Explanation of symbols]

1 CPU 2 入力装置 3 メモリA 4 メモリB 5 メモリC 6 濃度パターン用ルックアップテーブル格納部 7 プリンタ 10 n値決定部 11 濃度パターン決定部 12 RGB−YMCK変換部 13 2値化部 1 CPU 2 input devices 3 memory A 4 memory B 5 memory C 6 Look-up table storage for density pattern 7 printer 10 n value determination unit 11 Density pattern determination unit 12 RGB-YMCK converter 13 Binarization unit

フロントページの続き (56)参考文献 特開 平2−122764(JP,A) 特開 平6−164903(JP,A) 特開 平6−62253(JP,A) 特開 平7−38767(JP,A) 特開 平6−284292(JP,A) 実開 昭63−93136(JP,U) (58)調査した分野(Int.Cl.7,DB名) G06F 3/12 B41J 2/52 H04N 1/387 101 H04N 1/60 Continuation of front page (56) Reference JP-A-2-122764 (JP, A) JP-A-6-164903 (JP, A) JP-A-6-62253 (JP, A) JP-A-7-38767 (JP , A) JP-A-6-284292 (JP, A) Actual development Sho 63-93136 (JP, U) (58) Fields investigated (Int.Cl. 7 , DB name) G06F 3/12 B41J 2/52 H04N 1/387 101 H04N 1/60

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数ビットのデジタル値で色強度を示した
画素を平面的に配置してなる画像データに基づいて、2
値で示した画素を平面的に配置してなる印刷データを作
成する印刷データ作成装置において、 暗部又は明部を夫々割り当てた一定数の画素を平面状に
並べるとともに暗部を割り当てる画素数を夫々変えて構
成した複数の濃度パターンの何れかに、前記デジタル値
の各値を対応させたテーブルと、 前記画像データ中の各画素の前記デジタル値に基づき、
前記テーブルから対応する前記濃度パターンを読出して
前記印刷データ中に書込む変換手段と、 前記変換手段によって前記印刷データ中に書き込まれる
前記濃度パターンの強度と前記デジタル値の強度との誤
差を算出する誤差算出手段と、 この誤差算出手段によって算出された誤差を前記画像デ
ータ中における隣接する他の画素の前記デジタル値に加
算する誤差分配手段とを備え 前記変換手段は、前記誤差が加算された前記他の画素の
デジタル値に基づき、前記テーブルから対応する前記濃
度パターンを読出して前記印刷データ中に書込む ことを
特徴とする印刷データ作成装置。
1. Based on image data obtained by arranging pixels showing a color intensity with a digital value of a plurality of bits in a plane.
In a print data creation apparatus that creates print data in which pixels indicated by values are arranged in a plane, a fixed number of pixels to which dark areas or bright areas are respectively allocated are arranged in a plane and the number of pixels to which dark areas are allocated is changed. A table in which each value of the digital value is made to correspond to any of a plurality of density patterns configured as follows, based on the digital value of each pixel in the image data,
A conversion unit that reads out the corresponding density pattern from the table and writes it in the print data, and calculates an error between the intensity of the density pattern written in the print data by the conversion unit and the intensity of the digital value. comprising an error calculating unit, and an error distribution means for adding error calculated by the error calculating means to said digital values of other pixels adjacent in the said image data, said conversion means, wherein the error is added Of the other pixels
Based on the digital value, the corresponding concentration from the table
A print data creating apparatus, which reads a degree pattern and writes it in the print data.
【請求項2】前記テーブルは、その構成画素数を夫々異
にした複数サイズの濃度パターンを備えているととも
に、その各サイズ毎に、前記暗部を割り当てる画素数を
夫々変えて構成した複数の濃度パターンに夫々前記デジ
タル値の各値を対応させており、前記変換手段よって読
み出される前記濃度パターンのサイズを変更する濃度パ
ターンサイズ変更手段を更に備えていることを特徴とす
る請求項1記載の印刷データ作成装置。
2. The table is provided with density patterns of a plurality of sizes having different numbers of constituent pixels, and a plurality of densities formed by changing the number of pixels to which the dark area is allocated for each size. 2. The printing according to claim 1, further comprising density pattern size changing means for changing the size of the density pattern read by the converting means by associating each value of the digital value with a pattern. Data creation device.
【請求項3】前記濃度パターンサイズ変更手段は、前記
画像データの解像度と前記印刷データに求められる解像
度とに基づき、前記変換手段よって読み出される前記濃
度パターンのサイズを変更することを特徴とする請求項
2記載の印刷データ作成装置。
3. The density pattern size changing means changes the size of the density pattern read by the converting means based on the resolution of the image data and the resolution required for the print data. Item 2. The print data creation device according to item 2.
【請求項4】前記テーブルは、その暗部の配置位置を夫
々異にする複数型の濃度パターンを備えているととも
に、その各型毎に、前記暗部を割り当てる画素数を夫々
変えて構成した複数の濃度パターンに夫々前記デジタル
値の各値を対応させており、前記変換手段よって読み出
される前記濃度パターンの型を変更する濃度パターン型
変更手段を更に備えていることを特徴とする請求項1記
載の印刷データ作成装置。
4. The table is provided with a plurality of types of density patterns in which the positions of the dark portions are different from each other, and a plurality of pixels are formed by changing the number of pixels to which the dark portions are allocated for each type. 2. The density pattern type changing means for changing the type of the density pattern read by the converting means by associating each value of the digital value with a density pattern, respectively. Print data creation device.
JP05951995A 1995-03-17 1995-03-17 Print data creation device Expired - Fee Related JP3476270B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05951995A JP3476270B2 (en) 1995-03-17 1995-03-17 Print data creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05951995A JP3476270B2 (en) 1995-03-17 1995-03-17 Print data creation device

Publications (2)

Publication Number Publication Date
JPH08255062A JPH08255062A (en) 1996-10-01
JP3476270B2 true JP3476270B2 (en) 2003-12-10

Family

ID=13115604

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05951995A Expired - Fee Related JP3476270B2 (en) 1995-03-17 1995-03-17 Print data creation device

Country Status (1)

Country Link
JP (1) JP3476270B2 (en)

Also Published As

Publication number Publication date
JPH08255062A (en) 1996-10-01

Similar Documents

Publication Publication Date Title
US6215561B1 (en) Image processing apparatus and image processing method
US5615312A (en) Color management system having business graphics rendering mode
US6880915B2 (en) Printing system, printing method, and medium storing control program for the printing system
JP4771538B2 (en) Color conversion table generation method, color conversion table, and color conversion table generation apparatus
US5949427A (en) Color image processing apparatus and method and color image output apparatus each using a color matching/processing method based on the color imput
US6421140B1 (en) Color space conversion with simplified interpolation
JPH10224629A (en) Method and device for operating picture presentation mechanism
JPH11313213A (en) Information processing system, information processing method and medium
JP2009154365A (en) Image processing apparatus, image processing method, image processing program and recording medium
EP1222615B1 (en) System and method for multi-level processing with level limiting
US7315402B2 (en) Image forming apparatus and method for selecting an optimal image space frequency for an output image
CN101346238B (en) Image processing apparatus, printer, and image processing method
JP3476270B2 (en) Print data creation device
US6574010B1 (en) Image processing apparatus and method
US7061645B2 (en) Non-segmentation, individual pixel-by-pixel-based image rendering system
JPH10191090A (en) Apparatus and method for manufacturing color conversion table, and recording medium
JP2003230020A (en) Image processor, printer, and image processing method
JP2010147841A (en) Image processing apparatus, method and program
JP3994280B2 (en) Red-eye correction device, red-eye correction method, and red-eye correction program
JPH11129547A (en) Method for processing image information and information recording medium
JP7005796B2 (en) Image forming device, its control method, and program
JP4492642B2 (en) Red-eye correction device, red-eye correction method, and red-eye correction program
JP2005295131A (en) Apparatus, method, and program for processing image
JP4097111B2 (en) Image forming method and apparatus
JPH0414372A (en) Picture processing unit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030909

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

Free format text: PAYMENT UNTIL: 20080926

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080926

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090926

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090926

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100926

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100926

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110926

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120926

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120926

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130926

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees