JP2000138831A - Image processing method and device thereof - Google Patents

Image processing method and device thereof

Info

Publication number
JP2000138831A
JP2000138831A JP10312563A JP31256398A JP2000138831A JP 2000138831 A JP2000138831 A JP 2000138831A JP 10312563 A JP10312563 A JP 10312563A JP 31256398 A JP31256398 A JP 31256398A JP 2000138831 A JP2000138831 A JP 2000138831A
Authority
JP
Japan
Prior art keywords
image
dither
matrix
value
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP10312563A
Other languages
Japanese (ja)
Inventor
Hitoshi Hayama
均 羽山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP10312563A priority Critical patent/JP2000138831A/en
Priority to US09/431,634 priority patent/US6731407B1/en
Publication of JP2000138831A publication Critical patent/JP2000138831A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To conduct dither processing, while saving the capacity of a memory and shortening the processing time by applying an AND operation to objects that are corresponding elements of each matrix and a dither mask, so as to provide the output of the AND operation, that is valid only when the values of both the elements are valid. SOLUTION: A tape printer 1 consists of a printer main body 2, a keyboard 3 fitted to a front of the printer main body 2, a tape cartridge 5 that contains a tape T, and an ink cartridge that contains 4 color inks. Then the tape printer 1 generates an element image expressed in a binary matrix, where a value denoting validity is assigned to an element main body image, and a value denoting invalidity is assigned to an element background image. Then an AND operation is applied to objects that correspond to elements of each matrix and a dither mask as to each matrix of a same size as that of a dither mask of an element image so as to provide the output of the AND operation that is valid, only when the values of both the elements are valid.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ディザ法による疑
似階調処理を行う画像処理方法およびその装置に関す
る。
[0001] 1. Field of the Invention [0002] The present invention relates to an image processing method for performing pseudo gradation processing by a dither method and an apparatus therefor.

【0002】[0002]

【従来の技術】例えばワークステーションやパソコン
(パソコン等)およびワープロ(ワープロソフト搭載の
パソコンを含む)等において、表示装置(各種ディスプ
レイ等)や印刷装置(各種プリンタ等)などに画像を出
力する場合、その装置の仕様によっては、原画像をその
まま出力できない場合がある。例えば256階調の階調
値をマトリクス要素とするマトリクスデータ(以下単に
「マトリクス」)で表現された画像、すなわち、各画素
毎にn値(この場合n=256)の階調値情報を有する
画像(階調画像)を、より少ない(限定された)階調値
の画像しか扱えない装置に出力するためには、その階調
値に適合した画像(疑似階調画像)に変換する必要があ
る。そして、この画像変換(圧縮)処理、すなわち疑似
階調処理の方法(手法)の1つとして、いわゆるディザ
法がある。
2. Description of the Related Art When outputting images to display devices (various displays, etc.) and printing devices (various printers, etc.) in, for example, workstations, personal computers (personal computers, etc.) and word processors (including personal computers equipped with word processing software). Depending on the specifications of the device, the original image may not be output as it is. For example, an image represented by matrix data (hereinafter simply referred to as “matrix”) having 256 gradation values as matrix elements, that is, each pixel has n value (n = 256 in this case) gradation value information In order to output an image (gradation image) to an apparatus that can handle only an image with a smaller (limited) gradation value, it is necessary to convert the image (pseudo gradation image) to an image (pseudo gradation image) suitable for the gradation value. is there. As one of the methods (techniques) of the image conversion (compression) processing, that is, the pseudo gradation processing, there is a so-called dither method.

【0003】このディザ法は、原画像の階調画像の各画
素の階調値に雑音を加えた後に2値化(2値ディザ法)
または限定された多値化(多値ディザ法)を行う手法で
あり、1つの領域内を平均化しまとめて1つの陰影や色
として認識する人間の目の特性を利用したものである。
例えば2値ディザ法では、階調画像の各画素の階調値に
合わせて2値(例えば1と0)の配分を変化させて(例
えば階調値に合わせて所定の規則でマトリクス内の
「1」を間引きして)、中間階調(例えば1と0を黒と
白としたときの灰色)を表現する。代表的な2値ディザ
法として、組織的ディザ法がある。
In the dither method, noise is added to the gradation value of each pixel of a gradation image of an original image and then binarized (binary dither method).
Alternatively, this is a method of performing limited multi-valued (multi-valued dither method), which utilizes the characteristics of the human eye that averages and collects one area as one shadow or color.
For example, in the binary dither method, the distribution of binary values (for example, 1 and 0) is changed in accordance with the gradation value of each pixel of the gradation image (for example, ""1" is thinned out) to express an intermediate gradation (for example, gray when 1 and 0 are black and white). A typical binary dither method is an organized dither method.

【0004】組織的ディザ法では、原画像の階調画像の
各画素のn値(nは3以上の整数)の階調値のしきい値
をm値(mはn≧m≧2となる整数)で規定してマトリ
クス要素として配列したディザマトリクスを予め用意
し、原画像の階調画像(のマトリクス)をディザマトリ
クスのサイズのマトリクスに分割し、分割した各マトリ
クス毎にそのマトリクス要素の階調値とそれに対応する
ディザマトリクスのしきい値とを比較演算して、しきい
値が示す条件を満たすか否かを判別し、その判別結果に
従って2値のうちのいずれかを割り付けることにより、
2値のマトリクスで表現された疑似階調画像を作成す
る。例えば条件を満たすときは有効を示す値(例えば
1)、条件を満たさないときは無効を示す値(例えば
0)を割り付けて、2値(1および0)のマトリクスで
表現された疑似階調画像を作成する。
In the systematic dither method, the threshold value of the n-value (n is an integer of 3 or more) of each pixel of the gradation image of the original image is set to the m-value (m is n ≧ m ≧ 2). A dither matrix defined as an integer element and arranged as a matrix element is prepared in advance, the (gradation of) the gradation image of the original image is divided into matrices of the size of the dither matrix, and the matrix element is divided into matrices for each divided matrix. By comparing the tonal value with the threshold value of the corresponding dither matrix to determine whether the condition indicated by the threshold value is satisfied, and assigning one of the two values according to the determination result,
A pseudo gradation image represented by a binary matrix is created. For example, when a condition is satisfied, a value indicating validity (for example, 1) is assigned, and when the condition is not satisfied, a value indicating invalidity (for example, 0) is assigned. Create

【0005】なお、階調値としきい値の規定の仕方によ
り、例えばしきい値以上の階調値、しきい値を超える階
調値、しきい値以下の階調値、またはしきい値未満の階
調値などを、しきい値が示す条件を満たす階調値と規定
することができるが、以下では、階調値=しきい値のと
きには条件を満たすもの(すなわちしきい値以上または
しきい値以下を条件とする)を例に挙げて説明する(も
ちろん、階調値=しきい値のときには条件を満たさない
ものとしても、同様の原理で処理できる)。
[0005] Depending on how the gradation value and the threshold value are defined, for example, a gradation value above the threshold value, a gradation value exceeding the threshold value, a gradation value below the threshold value, or a value less than the threshold value. Can be defined as a gradation value that satisfies the condition indicated by the threshold value. In the following, when the gradation value = threshold value, the condition that satisfies the condition (that is, the gradation value equal to or more than the threshold value) is satisfied. (Conditions equal to or less than the threshold value) will be described as an example (of course, when the gradation value = threshold value, even if the condition is not satisfied, processing can be performed on the same principle).

【0006】多値ディザ法は、画像変換(圧縮)後の画
像、すなわち疑似階調画像が、2値のマトリクスで表現
された画像(2値画像)ではなく、3値以上の多階調値
のマトリクスで表現された画像(多値画像)となるディ
ザ法ではあるが、2値ディザ法と同様に処理できる。例
えば原画像の階調画像の各画素の階調値が0〜255の
256値で表現されているとき、0〜64、64〜
128、128〜192、および、192〜255
の4段階に分割し、各段階に対するディザマトリクスを
用意して、各段階に対して上述の組織的ディザ法を適用
すれば良い。例えば上記の結果の2値を0および1、
の結果の2値を1および2、の結果の2値を2およ
び3、の結果の2値を3および4と規定して、各段階
に対して組織的ディザ法を適用すれば、結果として0〜
4の5値の疑似階調画像を作成できる。もちろん、この
多値(例えば5値)の疑似階調画像に対しさらに2値デ
ィザ法を用いて、最終的に2値の疑似階調画像を得るこ
ともできる。
In the multi-value dither method, an image after image conversion (compression), that is, a pseudo-tone image is not an image represented by a binary matrix (binary image), but a multi-tone value of three or more values. Is a dither method that results in an image (multi-valued image) represented by the following matrix, but can be processed in the same manner as the binary dither method. For example, when the gradation value of each pixel of the gradation image of the original image is represented by 256 values of 0 to 255, 0 to 64, 64 to 64
128, 128-192 and 192-255
, A dither matrix for each stage is prepared, and the above-described systematic dither method may be applied to each stage. For example, the two values of the above result are 0 and 1,
If the binary values of the results of 1 and 2 are defined as 1 and 2, the binary values of the results of 2 and 3 are defined as 3 and 4, and the systematic dither method is applied to each stage, the result is as follows. 0 to
It is possible to create a quaternary gradation image of 4 values. Of course, it is also possible to finally obtain a binary pseudo gradation image by further using a binary dither method on the multi-valued (for example, 5-valued) pseudo gradation image.

【0007】上述のディザ法による疑似階調処理(ディ
ザリング:以下「ディザ処理」)は、モノクロ画像(濃
淡の階調値を有する階調画像)ばかりでなく、カラー画
像に対しても適用できる。すなわち、カラー3原色等の
基本色の各階調値に関するディザ処理(カラーディザ処
理)を行えば良い。例えば疑似階調画像をディスプレイ
等に出力する表示画像として作成する場合には、R(レ
ッド)、G(グリーン)およびB(ブルー)の3原色の
RGB各色の階調値に関するディザ処理を行い、印刷の
ための印刷画像として作成する場合には、C(シア
ン)、M(マゼンタ)、Y(イエロー)の3原色のCM
Y各色の階調値に関するディザ処理、またはさらにK
(ブラック)を加えたCMYKの4基本色の階調値に関
するディザ処理を行えば良い。
The above-described pseudo gradation processing (dithering: hereinafter referred to as "dither processing") by the dither method can be applied not only to monochrome images (gradation images having gradation values of light and shade) but also to color images. . That is, dither processing (color dither processing) for each gradation value of the basic colors such as the three primary colors may be performed. For example, when creating a pseudo-gradation image as a display image to be output to a display or the like, dither processing is performed on the gradation values of the three primary colors RGB of R (red), G (green), and B (blue), To create a print image for printing, CMs of three primary colors of C (cyan), M (magenta), and Y (yellow)
Dither processing for gradation values of each Y color, or K
Dither processing may be performed on the gradation values of the four basic colors of CMYK to which (black) has been added.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上述の
ディザ処理では、3値以上のn値(例えば256値)の
階調値をマトリクス要素とするマトリクスで表現された
階調画像、すなわち、各画素毎にn値(この場合n=2
56)の階調値情報を有する階調画像を、画像処理の対
象とするので、大きなメモリ容量を必要とする。また、
多値ディザ法による疑似階調処理(多値ディザ処理)で
は、ディザ処理結果としても多値(例えば5値)の疑似
階調画像のためのメモリ容量を必要とする。また、ディ
ザマトリクスとの比較演算を基本的な処理とするので、
膨大な処理時間を必要とする。特にカラーディザ処理で
は、各基本色毎に処理されるので、メモリ容量や処理時
間の問題が顕著となる。
However, in the above-described dither processing, a gradation image represented by a matrix having three or more n-value (for example, 256) gradation values as matrix elements, that is, each pixel N value (n = 2 in this case)
Since a gradation image having the gradation value information of 56) is subjected to image processing, a large memory capacity is required. Also,
In the pseudo gradation process (multi-value dither process) by the multi-value dither method, a memory capacity for a multi-valued (for example, 5-valued) pseudo-gradation image is required as a dither processing result. Also, since the comparison operation with the dither matrix is a basic process,
Requires enormous processing time. In particular, in the color dither processing, since the processing is performed for each basic color, the problems of memory capacity and processing time become significant.

【0009】ところで、例えばワープロ等において、文
字、数字、記号、図形等を含むキャラクタ等(以下、
「文字」で代表する)を入力し、各文字を要素とする文
字列等を表示したり印刷したりする場合、色指定等の最
小単位は文字である。また、反転文字の場合や背景色を
設定可能な場合等では、文字の背景側への色指定等もで
きる。また、この場合、表示画像や印刷画像として作成
される文字列の画像を全体画像とすると、その文字列に
含まれる各文字の画像はその全体画像の要素画像とな
る。
By the way, in a word processor or the like, for example, characters including letters, numbers, symbols, figures, etc.
When a character string (represented by “character”) is input and a character string or the like having each character as an element is displayed or printed, the minimum unit such as color designation is a character. In the case of a reversed character or a case where the background color can be set, the color of the character on the background side can be specified. In this case, if an image of a character string created as a display image or a print image is an entire image, an image of each character included in the character string is an element image of the entire image.

【0010】この場合、各要素画像について、要素画像
の本体となる文字の形状の画像を要素本体画像、その背
景の画像を要素背景画像とすると、表示画像や印刷画像
上、各要素画像の画素のうちの要素本体画像の画素とそ
の背景になる要素背景画像の画素とは、視認により判別
可能であり、これに対応して、データ処理上も、要素画
像を表現するマトリクスのマトリクス要素のうち、要素
本体画像の画素に対応するマトリクス要素と、要素背景
画像の画素に対応するマトリクス要素とは、区分可能で
ある。また、この場合、要素本体画像と要素背景画像に
は個別の階調値が設定され、要素本体画像の全画素は同
一階調値となり、それとは別の階調値で要素背景画像の
全画素も同一階調値となる。なお、上述の反転文字等の
場合、文字の背景側を要素本体画像、文字側を要素背景
画像と見ることもできる。
In this case, for each element image, if the image of the character shape which is the body of the element image is the element body image and the background image is the element background image, the pixel of each element image is displayed on the display image or print image. The pixels of the element body image and the pixels of the element background image serving as the background can be distinguished by visual recognition, and correspondingly, in data processing, of the matrix elements of the matrix representing the element image, The matrix element corresponding to the pixel of the element body image and the matrix element corresponding to the pixel of the element background image can be distinguished. Also, in this case, individual tone values are set for the element body image and the element background image, all pixels of the element body image have the same tone value, and all the pixels of the element background image have a different tone value. Also have the same gradation value. In the case of the above-described inverted characters, the background side of the character can be regarded as the element body image, and the character side can be regarded as the element background image.

【0011】また、いわゆる文字入力装置としてのワー
プロ等ばかりでなく、任意の線図や絵柄等を描画入力で
きる描画入力装置(描画(デザイン)ソフトを搭載した
パソコン等を含む)でも同様の画像が作成される。すな
わち、例えば全体画像のうちの任意の1の線図や絵柄に
その濃淡や色を指定した場合も、その任意の1の線図や
絵柄の画像は要素画像であり、その本体となる線図や絵
柄の形状の画像は要素本体画像に相当し、その背景にな
る要素背景画像とは区分可能であり、少なくとも要素本
体画像の全画素が同一階調値となる。また、いかに複雑
な描画画像も、少なくとも要素本体画像の全画素が同一
階調値の要素画像を合成した合成画像(全体画像)と見
て、各要素画像に分解でき、各要素画像を見れば、その
要素画像の要素本体画像とそれ以外の要素背景画像に分
解でき、要素本体画像と要素背景画像とは区分可能であ
り、少なくとも要素本体画像の全画素が同一階調値とな
る。なお、感覚的には背景側と見られる画像も、見方を
変えれば、本体側となる。
In addition to a word processor or the like as a so-called character input device, a similar image can be obtained by a drawing input device (including a personal computer equipped with drawing (design) software) capable of drawing and inputting an arbitrary diagram or picture. Created. That is, for example, even when the density and color are specified for an arbitrary diagram or pattern in the whole image, the image of the arbitrary diagram or pattern is an element image, and An image in the shape of a picture or a pattern is equivalent to an element main body image, and can be distinguished from an element background image as the background, and at least all pixels of the element main body image have the same gradation value. Also, any complicated drawing image can be decomposed into each element image, assuming that at least all the pixels of the element body image are element images having the same gradation value as the composite image (whole image). The element body image of the element image can be decomposed into an element body image and another element background image, and the element body image and the element background image can be distinguished, and at least all the pixels of the element body image have the same gradation value. It should be noted that the image that is sensuously viewed as the background side is also the main body side if the viewpoint is changed.

【0012】本発明は、要素画像の本体となる要素本体
画像の画素とその背景になる要素背景画像の画素とが区
分可能でかつ少なくとも要素本体画像の全画素が同一階
調値の要素画像を、少なくとも1つ有する全体画像を対
象として、メモリ容量の節約と処理時間の短縮を図りつ
つ、ディザ処理を行うことができる画像処理方法および
その装置を提供することを目的とする。
According to the present invention, a pixel of an element body image as a body of an element image and a pixel of an element background image as a background thereof can be distinguished, and at least all the pixels of the element body image have the same gradation value. It is an object of the present invention to provide an image processing method and apparatus capable of performing dither processing while reducing the memory capacity and shortening the processing time for an entire image having at least one image.

【0013】[0013]

【課題を解決するための手段】本発明の請求項1の画像
処理方法は、画素のn値(nは3以上の整数)の階調値
のしきい値をm値(mはn≧m≧2となる整数)で規定
してマトリクス要素として配列したディザマトリクスに
基づいて、ディザ処理を行う画像処理方法であって、1
つ以上の要素画像を有する全体画像の要素画像のうち、
要素画像の本体となる要素本体画像の画素とその背景に
なる要素背景画像の画素とを区分可能な少なくとも1つ
の要素画像について、前記要素本体画像の全画素に、所
定の2値のうちの有効を示す値を割り付け、前記要素背
景画像の全画素に、前記所定の2値のうちの無効を示す
値を割り付けることにより、前記所定の2値のマトリク
スで表現された要素形状画像を作成して記憶する要素形
状画像作成工程と、前記少なくとも1つの要素画像につ
いて、前記要素本体画像の全画素に同一の指定階調値と
して、前記n値のうちの1つの階調値を記憶する指定階
調値記憶工程と、前記ディザマトリクスと同一サイズの
前記所定の2値のマトリクスで表現され、前記ディザマ
トリクスの各しきい値のうちの前記指定階調値が条件を
満たすしきい値に対応するマトリクス要素に、前記所定
の2値のうちの有効を示す値を割り付け、条件を満たさ
ないしきい値に対応するマトリクス要素に、前記所定の
2値のうちの無効を示す値を割り付けたディザマスクを
記憶するディザマスク記憶工程と、前記要素形状画像の
前記ディザマスクと同一サイズのマトリクス毎に、各マ
トリクスと前記ディザマスクとの対応するマトリクス要
素同士を対象として、双方が有効を示す値のときのみ有
効を示す値とする論理積演算を行うことにより、その論
理積演算の結果として、前記要素形状画像と同一サイズ
の前記所定の2値のマトリクスで表現された要素ディザ
画像を作成する要素ディザ画像作成工程と、を備えたこ
とを特徴とする。
According to a first aspect of the present invention, there is provided an image processing method comprising the steps of: setting a threshold value of a gradation value of an n value (n is an integer of 3 or more) of a pixel to an m value (m is n ≧ m); An image processing method for performing a dither process based on a dither matrix defined as a matrix element defined by an integer that satisfies ≧ 2).
Of the element images of the whole image having one or more element images,
For at least one element image capable of distinguishing pixels of the element body image serving as the body of the element image and pixels of the element background image serving as the background, all the pixels of the element body image have an effective value of a predetermined binary value. By assigning a value indicating invalidity among the predetermined binary values to all pixels of the element background image, thereby creating an element shape image represented by the predetermined binary matrix. An element shape image creation step of storing, and a designated gradation value for storing at least one of the n values as the same designated gradation value for all the pixels of the element body image for the at least one element image A value storing step, a threshold value expressed by the predetermined binary matrix having the same size as the dither matrix, and the specified gradation value of each threshold value of the dither matrix satisfying a condition. A dither in which a value indicating validity of the predetermined two values is allocated to a corresponding matrix element, and a value indicating invalidity of the predetermined two values is allocated to a matrix element corresponding to a threshold value that does not satisfy a condition. A dither mask storing step of storing a mask, and for each matrix having the same size as the dither mask of the element shape image, for each matrix element corresponding to each matrix and the dither mask, a value indicating that both are valid An element for creating an element dither image expressed by the predetermined binary matrix having the same size as the element shape image by performing an AND operation with a value indicating valid only when And a dither image creating step.

【0014】本発明の請求項22の画像処理装置は、画
素のn値(nは3以上の整数)の階調値のしきい値をm
値(mはn≧m≧2となる整数)で規定してマトリクス
要素として配列したディザマトリクスに基づいて、ディ
ザ処理を行う画像処理装置であって、1つ以上の要素画
像を有する全体画像の要素画像のうち、要素画像の本体
となる要素本体画像の画素とその背景になる要素背景画
像の画素とを区分可能な少なくとも1つの要素画像につ
いて、前記要素本体画像の全画素に、所定の2値のうち
の有効を示す値を割り付け、前記要素背景画像の全画素
に、前記所定の2値のうちの無効を示す値を割り付ける
ことにより、前記所定の2値のマトリクスで表現された
要素形状画像を作成して記憶する要素形状画像作成手段
と、前記少なくとも1つの要素画像について、前記要素
本体画像の全画素に同一の指定階調値として、前記n値
のうちの1つの階調値を記憶する指定階調値記憶手段
と、前記ディザマトリクスと同一サイズの前記所定の2
値のマトリクスで表現され、前記ディザマトリクスの各
しきい値のうちの前記指定階調値が条件を満たすしきい
値に対応するマトリクス要素に、前記所定の2値のうち
の有効を示す値を割り付け、条件を満たさないしきい値
に対応するマトリクス要素に、前記所定の2値のうちの
無効を示す値を割り付けたディザマスクを記憶するディ
ザマスク記憶手段と、前記要素形状画像の前記ディザマ
スクと同一サイズのマトリクス毎に、各マトリクスと前
記ディザマスクとの対応するマトリクス要素同士を対象
として、双方が有効を示す値のときのみ有効を示す値と
する論理積演算を行うことにより、その論理積演算の結
果として、前記要素形状画像と同一サイズの前記所定の
2値のマトリクスで表現された要素ディザ画像を作成す
る要素ディザ画像作成手段と、を備えたことを特徴とす
る。
In the image processing apparatus according to a twenty-second aspect of the present invention, a threshold value of a gradation value of an n value (n is an integer of 3 or more) of a pixel is set to m.
An image processing apparatus that performs dither processing based on a dither matrix that is defined as a value (m is an integer that satisfies n ≧ m ≧ 2) and is arranged as a matrix element. Of the element images, for at least one element image capable of distinguishing the pixels of the element body image serving as the body of the element image and the pixels of the element background image serving as the background, a predetermined 2 By assigning a value indicating validity among the values and assigning a value indicating invalidity among the predetermined binary values to all the pixels of the element background image, the element shape represented by the predetermined binary matrix An element shape image generating means for generating and storing an image; and for the at least one element image, one of the n values as the same designated gradation value for all pixels of the element body image. A designated gradation value storage means for storing a value of the predetermined said dither matrix and the same size 2
A matrix element that is expressed by a matrix of values and that corresponds to a threshold value that satisfies a condition where the designated gradation value of each threshold value of the dither matrix satisfies a condition is a value indicating the validity of the predetermined two values. Allocation, a dither mask storing means for storing a dither mask in which a value indicating invalidity of the predetermined two values is allocated to a matrix element corresponding to a threshold value which does not satisfy the condition, and a dither mask of the element shape image. For each matrix of the same size, a logical product operation is performed on the corresponding matrix elements of each matrix and the dither mask, and a logical product operation is performed with a value indicating valid only when both values are valid. An element dither image for creating an element dither image represented by the predetermined binary matrix having the same size as the element shape image as a result of the calculation; And forming means, characterized by comprising a.

【0015】この画像処理方法およびその装置では、全
体画像の要素画像のうち、本体となる要素本体画像の画
素とその背景になる要素背景画像の画素とを区分可能な
少なくとも1つの要素画像について、要素本体画像の全
画素に、所定の2値のうちの有効を示す値を割り付け、
要素背景画像の全画素に、所定の2値のうちの無効を示
す値を割り付けることにより、所定の2値のマトリクス
で表現された要素形状画像を作成する。すなわち、要素
本体画像に有効を示す値、要素背景画像に無効を示す値
を割り付けた2値マトリクスで表現された要素形状画像
を作成する。また、その一方で、要素本体画像の全画素
に同一の指定階調値として、n値のうちの1つの階調値
を記憶する。
In the image processing method and the image processing apparatus, at least one of the element images of the whole image, which can distinguish the pixels of the element body image as the main body and the pixels of the element background image as the background, All pixels of the element body image are assigned a value indicating validity of predetermined two values,
By assigning a value indicating invalidity among predetermined binary values to all pixels of the element background image, an element shape image represented by a predetermined binary matrix is created. That is, an element shape image expressed by a binary matrix in which a value indicating validity is assigned to the element body image and a value indicating invalidity is assigned to the element background image is created. On the other hand, one of the n values is stored as the same designated gradation value for all pixels of the element body image.

【0016】この場合、指定階調値を各画素の情報と別
に記憶しても、各画素の情報としては2値のいずれかを
有すれば(記憶すれば)よいので、各画素単位で(各画
素毎に)n値(n≧3)の階調値情報を有するよりメモ
リ容量は少なくて済む。なお、この場合、各画素毎にn
値の階調値情報を有する画像(階調画像)に基づいて、
上記の要素形状画像を作成しつつ指定階調値を抽出して
も良いし、最初から要素形状画像の作成と指定階調値の
指定とを個別に行っても良い。パソコン等で作成された
階調画像に基づく場合などには、前者に該当する方法を
採用し、ワープロ等において、文字等をテキスト入力し
て、その文字毎に階調値を指定(濃淡指定、色指定等)
して要素画像とする場合などには、後者に該当する方法
を採用すれば良い。
In this case, even if the designated gradation value is stored separately from the information of each pixel, the information of each pixel only needs to have one of two values (if it is stored). The memory capacity is smaller than having n value (n ≧ 3) gradation value information for each pixel. Note that, in this case, n
Based on the image (gradation image) having the gradation value information of the value,
The specified tone value may be extracted while creating the element shape image, or the creation of the element shape image and the designation of the specified tone value may be individually performed from the beginning. For example, when the image is based on a gradation image created by a personal computer, the method corresponding to the former is adopted. In a word processor or the like, a character or the like is input as text, and a gradation value is designated for each character (shading, Color specification etc.)
For example, when the element image is used as the element image, a method corresponding to the latter may be adopted.

【0017】また、この画像処理方法およびその装置で
は、ディザマトリクスと同一サイズの所定の2値のマト
リクスで表現されたディザマスクを記憶する。すなわ
ち、ディザマトリクスの各しきい値のうちの指定階調値
が条件を満たすしきい値に対応するマトリクス要素に、
所定の2値のうちの有効を示す値を割り付け、条件を満
たさないしきい値に対応するマトリクス要素に、所定の
2値のうちの無効を示す値を割り付けたマトリクスをデ
ィザマスクとして記憶する。
In the image processing method and the image processing apparatus, a dither mask represented by a predetermined binary matrix having the same size as the dither matrix is stored. That is, a matrix element corresponding to a threshold value where a designated gradation value of each threshold value of the dither matrix satisfies a condition,
A value indicating validity among predetermined two values is allocated, and a matrix in which a value indicating invalidity among predetermined two values is allocated to a matrix element corresponding to a threshold value that does not satisfy a condition is stored as a dither mask.

【0018】この場合のディザマスクは、ディザマトリ
クスと同一サイズの所定の階調画像に上述のディザマト
リクスに基づく2値ディザ処理を行った結果の疑似階調
画像(のマトリクス)と一致する。すなわち、ディザマ
トリクスと同一サイズの階調画像が各画素毎にn値の階
調値情報を有し、かつ、その全画素の階調値情報が上記
の指定階調値を示しているときに、その階調画像の各画
素の階調値を上記のディザマトリクスの各しきい値と比
較して比較結果を2値化した場合の、演算結果のマトリ
クスと一致する。なお、この場合、考え得る指定階調値
のそれぞれについてのディザマスクを予め記憶しておい
ても良いし、指定階調値が判明した後に、ディザマトリ
クスとの比較演算により新たに作成して記憶しても良
い。前者の場合、演算時間が省略できるので、画像処理
全体の処理時間短縮が図れる。一方、後者の場合、ディ
ザマスク記憶用のメモリ容量を節約でき、また、ディザ
マトリクスのサイズの比較演算なので、その処理時間も
比較的短くて済む。
In this case, the dither mask coincides with (a matrix of) a pseudo-tone image obtained by performing a binary dither process based on the above-described dither matrix on a predetermined tone image having the same size as the dither matrix. That is, when the gradation image of the same size as the dither matrix has n-value gradation value information for each pixel, and the gradation value information of all the pixels indicates the above specified gradation value. The gradation value of each pixel of the gradation image is compared with each threshold value of the dither matrix, and the result of the comparison is binarized with the matrix of the calculation result. In this case, a dither mask for each conceivable designated gradation value may be stored in advance, or after the designated gradation value is found, a new dither matrix is created and stored by a comparison operation with a dither matrix. You may. In the former case, since the calculation time can be omitted, the processing time of the entire image processing can be reduced. On the other hand, in the latter case, the memory capacity for storing the dither mask can be saved, and the processing time can be relatively short because the size of the dither matrix is compared.

【0019】また、この画像処理方法およびその装置で
は、要素形状画像のディザマスクと同一サイズのマトリ
クス毎に、各マトリクスとディザマスクとの対応するマ
トリクス要素同士を対象として、双方が有効を示す値の
ときのみ有効を示す値とする論理積演算を行うことによ
り、その論理積演算の結果として、要素形状画像と同一
サイズの所定の2値のマトリクスで表現された要素ディ
ザ画像を作成する。
Further, in the image processing method and the image processing apparatus, for each matrix having the same size as the dither mask of the element shape image, a value indicating that both of the matrix and the dither mask correspond to each other is valid. By performing an AND operation with a value indicating validity only in the case of, an element dither image represented by a predetermined binary matrix having the same size as the element shape image is created as a result of the AND operation.

【0020】すなわち、従来なら、要素画像のディザマ
トリクスと同一サイズのマトリクス毎に、各マトリクス
の各画素の階調値とそれに対応するディザマトリクスの
しきい値とを比較して疑似階調画像を得るが、この画像
処理方法およびその装置では、単に論理積演算でよいの
で、処理速度の向上(処理時間の短縮)が図れる。ま
た、その論理積演算の入力(ディザマスク、要素形状画
像を表現するマトリクス)も出力(要素ディザ画像のマ
トリクス)も2値マトリクスなので、メモリ容量を節約
できる。もちろん、全体画像の一部の要素画像ばかりで
なく、全体画像に対しても同様の処理が可能な場合、す
なわち全要素画像について要素本体画像と要素背景画像
とが区分可能な場合、全体画像に適用することにより、
さらにメモリ容量の節約および処理時間の短縮が図れ
る。
That is, conventionally, for each matrix having the same size as the dither matrix of the elemental image, the tone value of each pixel of each matrix is compared with the threshold value of the corresponding dither matrix to form the pseudo tone image. However, in this image processing method and its apparatus, since a logical AND operation is sufficient, the processing speed can be improved (the processing time can be shortened). In addition, since both the input (dither mask, matrix representing element shape image) and the output (matrix of element dither image) of the AND operation are binary matrices, memory capacity can be saved. Of course, when the same processing is possible not only for a part of the whole image but also for the whole image, that is, when the element body image and the element background image can be distinguished for all the element images, By applying
Further, the memory capacity can be saved and the processing time can be reduced.

【0021】また、従来の場合、元のn値の指定階調値
を各画素の階調値情報として有するため、多値(例えば
前述の5値)の疑似階調画像にしたとしても、n値の指
定階調値の情報を失ってしまい、さらに2値化すると、
疑似階調画像の多値の情報さえも失ってしまう。最初か
ら2値ディザ処理を行う場合も同様であり、2値化によ
りn値の情報を失ってしまう。すなわち、設定(指定)
した階調値を表示画面等で再確認するためには、元の階
調画像を記憶しておく必要があり、余分なメモリ容量が
必要となる。また、要素本体画像の画素に同一の階調値
が指定されていても、それを一括で確認することはでき
ず、階調画像の全画素の階調値を表示または印刷して、
各画素毎にて視認する必要がある。これに対し、上述の
方法およびその装置では、要素本体画像の画素に同一の
階調値が指定されている場合、要素本体画像に対する指
定階調値を各画素の情報とは別に記憶しているので、メ
モリ容量を節約しつつ、そのまま数値(階調値)により
一括で確認できる。
Further, in the conventional case, since the original designated gradation value of the n value is included as the gradation value information of each pixel, even if a multi-valued (for example, the above-mentioned five-valued) pseudo gradation image is used, n If the information of the designated gradation value of the value is lost and further binarized,
Even the multi-valued information of the pseudo gradation image is lost. The same applies to the case where binary dither processing is performed from the beginning, and n-value information is lost due to binarization. That is, setting (specifying)
In order to reconfirm the obtained gradation value on a display screen or the like, it is necessary to store the original gradation image, and an extra memory capacity is required. Also, even if the same gradation value is specified for the pixels of the element body image, it cannot be checked at once, and the gradation values of all the pixels of the gradation image are displayed or printed,
It is necessary to visually recognize each pixel. On the other hand, in the method and the apparatus described above, when the same gradation value is specified for the pixel of the element main body image, the specified gradation value for the element main body image is stored separately from the information of each pixel. Therefore, it is possible to collectively check numerical values (grayscale values) as they are while saving memory capacity.

【0022】したがって、この画像処理方法およびその
装置では、要素画像の本体となる要素本体画像の画素と
その背景になる要素背景画像の画素とが区分可能でかつ
少なくとも要素本体画像の全画素が同一階調値の要素画
像を、少なくとも1つ有する全体画像を対象として、メ
モリ容量の節約と処理時間の短縮を図りつつ、ディザ処
理を行うことができる。
Therefore, in the image processing method and the image processing apparatus, the pixels of the element body image serving as the body of the element image and the pixels of the element background image serving as the background can be distinguished, and at least all the pixels of the element body image are the same. Dither processing can be performed on the entire image having at least one element image of the gradation value while saving the memory capacity and shortening the processing time.

【0023】なお、上述の文字をテキスト入力して、そ
の文字毎に階調値を指定(濃淡指定、色指定等)して要
素画像とする場合などの他、文字の背景側の階調値を指
定(濃淡指定、色指定等)できる場合には、文字の背景
側を要素本体画像として扱うことにより、文字の背景側
の要素ディザ画像を作成できる。これは反転文字等の場
合に適している他、その応用として、文字側を要素本体
画像としたときの要素ディザ画像と文字の背景側を要素
本体画像としたときの要素ディザ画像とを組み合わせて
(重ね合わせて)、双方にディザ処理を行った要素ディ
ザ画像を得ることもできる。
It is to be noted that the above-described characters are input as text, and gradation values are designated for each character (shading designation, color designation, etc.) to form an elemental image. Can be specified (shading specification, color specification, etc.), by treating the background side of the character as the element body image, an element dither image on the background side of the character can be created. This is suitable for inverted characters, etc., and as an application, it is possible to combine an element dither image when the character side is used as the element body image and an element dither image when the background side of the character is used as the element body image. (Overlapping), it is also possible to obtain an element dither image that has been subjected to dither processing on both sides.

【0024】また、いかに複雑な描画画像も、少なくと
も要素本体画像の全画素が同一階調値の要素画像を合成
した合成画像(全体画像)と見て、各要素画像に分解で
き、各要素画像の要素本体画像とそれ以外の要素背景画
像に分解でき、要素本体画像と要素背景画像とは区分可
能なので、各要素画像に対応する要素ディザ画像を作成
して、それらを組み合わせる(対応するマトリクス要素
を重ね合わせる)ことにより、複雑な描画画像にディザ
処理を行った要素ディザ画像をも得ることができる。
[0024] Further, even a complicated drawing image can be decomposed into each element image by regarding at least all the pixels of the element body image as a composite image (whole image) obtained by synthesizing element images having the same gradation value. Can be decomposed into the element body image and the other element background image, and the element body image and the element background image can be distinguished. Therefore, element dither images corresponding to each element image are created and combined (corresponding matrix element ) Can also obtain an element dither image obtained by dithering a complicated drawing image.

【0025】同様に、元の画像がカラー画像の場合にも
適用でき、この場合、例えばRGBまたはCMYの3原
色の各色の階調値、あるいは後者にKを加えたCMYK
の4色の各色の階調値のそれぞれについて、上述の処理
により各要素ディザ画像を求めて組み合わせれば良い。
また、この場合、例えばCMY各色の要素ディザ画像を
求めてから、それらの各要素ディザ画像の全てに共通し
て有効を示す値の画素(マトリクス要素)を抽出するこ
とにより、Kの要素ディザ画像を得ることもできる。
Similarly, the present invention can be applied to a case where the original image is a color image. In this case, for example, the gradation values of each of the three primary colors of RGB or CMY, or CMYK obtained by adding K to the latter.
For each of the gradation values of the four colors, the element dither images may be obtained by the above-described processing and combined.
In this case, for example, the element dither image of each color of CMY is obtained, and then a pixel (matrix element) having a value indicating the validity common to all the element dither images is extracted, thereby obtaining the element dither image of K. You can also get

【0026】請求項1の画像処理方法において、前記所
定の2値は、1および0であることが好ましい。
In the image processing method of the first aspect, it is preferable that the predetermined binary value is 1 and 0.

【0027】請求項22の画像処理装置において、前記
所定の2値は、1および0であることが好ましい。
[0027] In the image processing apparatus according to claim 22, it is preferable that the predetermined binary value is 1 and 0.

【0028】この画像処理方法およびその装置では、所
定の2値が1および0なので、2進数1桁の1ビットで
各画素を表現でき、メモリ容量が少なくて済む他、上述
した論理積演算が1画素当たり1つのAND素子または
それに相当するプログラムによるAND演算処理で済
み、ディザマスク相当のサイズのマトリクスやそれを複
数配置したさらに大きなマトリクスを対象として、マト
リクス単位での演算も容易なので、さらに処理時間の短
縮が図れる。
In this image processing method and apparatus, since the predetermined binary value is 1 and 0, each pixel can be represented by one bit of a binary digit, and the memory capacity can be reduced. Only one AND element per pixel or an AND operation by a program corresponding to the AND element is required, and a matrix having a size equivalent to a dither mask or a larger matrix having a plurality of such arrangements can be easily processed in a matrix unit. Time can be reduced.

【0029】請求項1または2の画像処理方法におい
て、前記少なくとも1つの要素画像がモノクロ画像であ
る場合、その濃淡を示す階調値を前記指定階調値として
記憶することが好ましい。
In the image processing method according to the first or second aspect, when the at least one elemental image is a monochrome image, it is preferable that a gradation value indicating the density of the image is stored as the designated gradation value.

【0030】請求項22または23の画像処理装置にお
いて、前記少なくとも1つの要素画像がモノクロ画像で
ある場合、その濃淡を示す階調値を前記指定階調値とし
て記憶することが好ましい。
In the image processing apparatus according to the present invention, when the at least one elemental image is a monochrome image, it is preferable to store a gradation value indicating the density of the image as the designated gradation value.

【0031】この画像処理方法およびその装置では、要
素画像がモノクロ画像である場合、その濃淡を示す階調
値を指定階調値として記憶するので、モノクロの要素画
像の濃淡に関するディザ処理に適用できる。
In this image processing method and apparatus, when the elementary image is a monochrome image, the gradation value indicating the gradation is stored as the designated gradation value, so that it can be applied to the dither processing relating to the gradation of the monochrome elementary image. .

【0032】請求項1ないし3のいずれかの画像処理方
法において、前記少なくとも1つの要素画像がカラー画
像である場合、前記指定階調値記憶工程では、カラー3
原色の各色についての原色階調値を、それぞれ前記指定
階調値の1種として記憶し、前記ディザマスク記憶工程
では、前記原色階調値のうちの少なくとも相互に値が異
なるものに対応する原色ディザマスクを、それぞれ前記
ディザマスクの1種として記憶し、前記要素ディザ画像
作成工程では、前記原色ディザマスクを使用した前記論
理積演算を行うことにより、各原色ディザマスクに対応
する原色要素ディザ画像を、それぞれ前記要素ディザ画
像の1種として作成することが好ましい。
In the image processing method according to any one of claims 1 to 3, when the at least one elemental image is a color image, the designated gradation value storing step includes the step of storing a color 3 image.
A primary color tone value for each of the primary colors is stored as one of the designated tone values, and in the dither mask storing step, the primary colors corresponding to at least the primary color tone values having different values from each other A dither mask is stored as one type of the dither mask, and in the element dither image creating step, the logical product operation using the primary color dither mask is performed, so that the primary color element dither image corresponding to each primary color dither mask is obtained. Is preferably created as one type of the element dither image.

【0033】請求項22ないし24のいずれかの画像処
理装置において、前記少なくとも1つの要素画像がカラ
ー画像である場合、前記指定階調値記憶手段は、カラー
3原色の各色についての原色階調値を、それぞれ前記指
定階調値の1種として記憶し、前記ディザマスク記憶手
段は、前記原色階調値のうちの少なくとも相互に値が異
なるものに対応する原色ディザマスクを、それぞれ前記
ディザマスクの1種として記憶し、前記要素ディザ画像
作成手段は、前記原色ディザマスクを使用した前記論理
積演算を行うことにより、各原色ディザマスクに対応す
る原色要素ディザ画像を、それぞれ前記要素ディザ画像
の1種として作成することが好ましい。
In the image processing apparatus according to any one of claims 22 to 24, when the at least one element image is a color image, the designated gradation value storage means stores the primary color gradation value for each of the three primary colors. Is stored as one of the designated gradation values, and the dither mask storage means stores primary color dither masks corresponding to at least ones of the primary color gradation values having different values, respectively, of the dither masks. The element dither image creation means stores the primary color element dither image corresponding to each primary color dither mask by performing the logical product operation using the primary color dither mask. Preferably, it is made as a seed.

【0034】この画像処理方法およびその装置では、要
素画像がカラー画像である場合、カラー3原色の各色に
ついての原色階調値を、それぞれ指定階調値の1種とし
て記憶し、原色階調値のうちの少なくとも相互に値が異
なるものに対応する原色ディザマスクを、それぞれディ
ザマスクの1種として記憶し、原色ディザマスクに対応
する原色要素ディザ画像を、それぞれ要素ディザ画像の
1種として作成する。すなわち、3原色の原色階調値の
全てが同一の値のときには、少なくとも1個、2原色に
ついて同一の値のときには、少なくとも2個、それぞれ
別のときには、少なくとも3個の原色要素ディザ画像を
作成する。この場合、3原色について同一のときに1個
の原色要素ディザ画像を3原色用に重複利用し、2原色
について同一のときにその2原色について重複利用する
ことも含め、3原色についての原色要素ディザ画像が得
られるので、この画像処理方法およびその装置は、カラ
ーの要素画像の3原色の原色階調値に関するディザ処理
に適用できる。
In this image processing method and apparatus, when the element image is a color image, the primary color gradation values for each of the three primary colors are stored as one of the designated gradation values, and the primary color gradation values are stored. Are stored as one type of dither mask, and a primary color element dither image corresponding to the primary color dither mask is created as one type of element dither image. . In other words, at least one primary color element dither image is generated when the primary color tone values of the three primary colors are all the same, and at least two primary color element dither images are generated when the two primary colors have the same value. I do. In this case, one primary color element dither image is used repeatedly for three primary colors when the three primary colors are the same, and the primary color element dither image for the three primary colors is used when the two primary colors are the same. Since a dither image is obtained, this image processing method and apparatus can be applied to dither processing relating to the primary color tone values of three primary colors of a color element image.

【0035】なお、この場合、考え得る原色階調値のそ
れぞれについての原色ディザマスクを予めディザマスク
として記憶しておいても良いし、原色階調値が判明した
後に、ディザマトリクスとの比較演算により新たに作成
して記憶しても良い。また、考え得る指定階調値に対応
するディザマスクが予め記憶されている場合には、原色
階調値が判明した後に、それらから選択して改めて原色
ディザマスクとして記憶しても良い。
In this case, the primary color dither mask for each conceivable primary color tone value may be stored in advance as a dither mask, or after the primary color tone value is determined, a comparison operation with the dither matrix is performed. May be newly created and stored. If a dither mask corresponding to a conceivable designated gradation value is stored in advance, the primary color gradation value may be determined and then selected and stored as a primary color dither mask again.

【0036】請求項4の画像処理方法において、前記少
なくとも1つの要素画像がカラー画像である場合、作成
された前記原色要素ディザ画像の全てに共通して前記有
効を示す値のマトリクス要素のみに前記有効を示す値を
割り付けた混色要素ディザ画像を、前記要素ディザ画像
の新たな1種として作成する混色要素ディザ画像作成工
程をさらに備えたことが好ましい。
In the image processing method according to claim 4, when the at least one elemental image is a color image, only the matrix element having a value indicating the validity is common to all of the created primary color element dither images. It is preferable that the method further includes a mixed color element dither image creating step of creating a mixed color element dither image to which a value indicating validity is assigned as a new kind of the element dither image.

【0037】請求項25の画像処理装置において、前記
少なくとも1つの要素画像がカラー画像である場合、作
成された前記原色要素ディザ画像の全てに共通して前記
有効を示す値のマトリクス要素のみに前記有効を示す値
を割り付けた混色要素ディザ画像を、前記要素ディザ画
像の新たな1種として作成する混色要素ディザ画像作成
手段をさらに備えたことが好ましい。
26. The image processing apparatus according to claim 25, wherein, when said at least one element image is a color image, said at least one element image is said to be only valid in said matrix element having a value indicating validity common to all of said primary color element dither images. It is preferable that the image processing apparatus further includes a mixed-color element dither image creating unit that creates a mixed-color element dither image to which a value indicating validity is assigned as a new kind of the element dither image.

【0038】この画像処理方法およびその装置では、要
素画像がカラー画像である場合、作成された原色要素デ
ィザ画像の全てに共通して有効を示す値のマトリクス要
素のみに有効を示す値を割り付けた混色要素ディザ画像
を、要素ディザ画像の新たな1種として作成する。この
場合、3原色についての原色要素ディザ画像に加え、そ
れらの混色についての混色要素ディザ画像を得ることが
できる。
In this image processing method and apparatus, when an element image is a color image, a value indicating validity is assigned only to a matrix element having a value indicating validity common to all of the created primary color element dither images. A mixed-color element dither image is created as a new kind of element dither image. In this case, in addition to the primary color element dither images for the three primary colors, a mixed color element dither image for the mixed colors can be obtained.

【0039】請求項5の画像処理方法において、前記混
色要素ディザ画像は、作成された前記原色要素ディザ画
像の対応するマトリクス要素同士を対象として、全てが
前記有効を示す値のときのみ有効を示す値とする論理積
演算の結果として作成されることが好ましい。
In the image processing method according to claim 5, the mixed-color element dither image indicates valid only when all of the corresponding matrix elements of the created primary-color element dither image are values indicating the validity. It is preferably created as a result of an AND operation with a value.

【0040】請求項26の画像処理装置において、前記
混色要素ディザ画像は、作成された前記原色要素ディザ
画像の対応するマトリクス要素同士を対象として、全て
が前記有効を示す値のときのみ有効を示す値とする論理
積演算の結果として作成されることが好ましい。
27. The image processing apparatus according to claim 26, wherein the mixed-color element dither image is valid only when all of the matrix elements corresponding to the created primary color element dither image are values indicating the validity. It is preferably created as a result of an AND operation with a value.

【0041】この画像処理方法およびその装置では、混
色要素ディザ画像は、作成された原色要素ディザ画像の
対応するマトリクス要素同士を対象として、全てが有効
を示す値のときのみ有効を示す値とする論理積演算の結
果として作成される。すなわち、この場合、比較的単純
な論理積演算を行うだけで、混色要素ディザ画像を作成
できる。
In this image processing method and apparatus, the mixed-color element dither image is a value indicating valid only when all of the corresponding matrix elements of the created primary color element dither image are valid. Created as the result of a logical AND operation. That is, in this case, a mixed-color element dither image can be created only by performing a relatively simple logical product operation.

【0042】請求項5または6の画像処理方法におい
て、作成された前記原色要素ディザ画像の前記有効を示
す値のマトリクス要素のうち、前記混色要素ディザ画像
の前記有効を示す値のマトリクス要素に対応するマトリ
クス要素の値を、前記無効を示す値に変換する混色有効
マトリクス要素削除工程をさらに備えたことが好まし
い。
7. The image processing method according to claim 5, wherein among the matrix elements of the value indicating the validity of the created primary color element dither image, the matrix elements of the value indicating the validity of the mixed color element dither image correspond to the matrix element of the validity value. It is preferable that the method further includes a color mixing effective matrix element deleting step of converting a value of the matrix element to be converted into a value indicating the invalidity.

【0043】請求項26または27の画像処理装置にお
いて、作成された前記原色要素ディザ画像の前記有効を
示す値のマトリクス要素のうち、前記混色要素ディザ画
像の前記有効を示す値のマトリクス要素に対応するマト
リクス要素の値を、前記無効を示す値に変換する混色有
効マトリクス要素削除手段をさらに備えたことが好まし
い。
28. The image processing apparatus according to claim 26, wherein a matrix element of the value indicating the validity of the mixed color element dither image corresponds to a matrix element of the value indicating the validity of the created primary color element dither image. It is preferable that the image processing apparatus further includes a mixed color effective matrix element deleting unit that converts a value of the matrix element to be converted into a value indicating the invalidity.

【0044】この画像処理方法およびその装置では、作
成された原色要素ディザ画像の有効を示す値のマトリク
ス要素のうち、混色要素ディザ画像の有効を示す値のマ
トリクス要素に対応するマトリクス要素の値を、無効を
示す値に変換するための混色有効マトリクス要素削除処
理を行う。これにより、3原色についての原色要素ディ
ザ画像の有効を示す値のマトリクス要素のうち、混色要
素ディザ画像の有効を示す値と重複して有効を示すマト
リクス要素の有効をキャンセルできる。
According to the image processing method and the image processing apparatus, of the matrix elements indicating the validity of the created primary color element dither image, the values of the matrix elements corresponding to the matrix elements indicating the validity of the mixed color element dither image are determined. , Performs a mixed color effective matrix element deletion process for converting into a value indicating invalidity. This makes it possible to cancel the validity of the matrix element that indicates the validity of the mixed color element dither image in the matrix element of the value indicating the validity of the primary color element dither image for the three primary colors.

【0045】3原色についての原色要素ディザ画像およ
びそれらの混色についての混色要素ディザ画像を組み合
わせた(重ね合わせた)場合、混色要素ディザ画像の有
効を示す値のマトリクス要素に対応するマトリクス要素
は、3原色と混色の4個の要素ディザ画像について有効
を示す値が重複することになり、3原色についての原色
要素ディザ画像による混色と、混色要素ディザ画像の混
色とが重複するが、この画像処理方法およびその装置で
は、上記のキャンセルによりこの重複を回避できる。ま
た、例えばCMYKの4色の場合、一般に、C(シア
ン)、M(マゼンタ)、Y(イエロー)を実際に混色し
たK(ブラック)より、K(ブラック)を単独で印刷等
した方がきれいなブラックが得られるので、上記のよう
に、3原色についての原色要素ディザ画像側の有効を示
す値の方をキャンセルすることにより、4色によるきれ
いな画像が得られる。
When the primary color element dither images for the three primary colors and the mixed color element dither images for the mixed colors are combined (overlaid), the matrix element corresponding to the matrix element of the value indicating the validity of the mixed color element dither image is: The values indicating the validity of the four element dither images of the three primary colors and the mixed color overlap, and the mixed color of the three primary colors by the primary color element dither image and the mixed color of the mixed color element dither image overlap. In the method and its apparatus, this cancellation can avoid this duplication. Further, for example, in the case of four colors of CMYK, it is generally clearer to print K (black) alone than K (black) in which C (cyan), M (magenta), and Y (yellow) are actually mixed. Since black is obtained, a clear image of four colors can be obtained by canceling the value indicating the validity on the primary color element dither image side for the three primary colors as described above.

【0046】請求項7の画像処理方法において、混色有
効マトリクス要素削除工程は、前記混色要素ディザ画像
を対象として、前記有効を示す値と前記無効を示す値と
を反転させる論理反転演算を行うことにより、混色反転
要素ディザ画像を作成する混色反転要素ディザ画像作成
工程と、前記原色要素ディザ画像の各原色要素ディザ画
像と前記混色反転要素ディザ画像との対応するマトリク
ス要素同士を対象として、双方が前記有効を示す値のと
きのみ有効を示す値とする論理積演算の結果として作成
された要素ディザ画像を、新たな各原色要素ディザ画像
とする新原色要素ディザ画像作成工程と、を有すること
が好ましい。
In the image processing method according to claim 7, in the mixed color effective matrix element deleting step, a logical inversion operation for inverting the value indicating validity and the value indicating invalidity is performed on the mixed color element dither image. Thus, a mixed-color inversion element dither image creating step of creating a mixed-color inversion element dither image, and corresponding primary and secondary color element dither images of the primary-color element dither image and corresponding matrix elements of the mixed-color inversion element dither image are both targeted. An element dither image created as a result of an AND operation with a value indicating validity only when the value indicates validity, and a new primary color element dither image creating step as new primary color element dither images. preferable.

【0047】請求項28の画像処理装置において、混色
有効マトリクス要素削除手段は、前記混色要素ディザ画
像を対象として、前記有効を示す値と前記無効を示す値
とを反転させる論理反転演算を行うことにより、混色反
転要素ディザ画像を作成する混色反転要素ディザ画像作
成手段と、前記原色要素ディザ画像の各原色要素ディザ
画像と前記混色反転要素ディザ画像との対応するマトリ
クス要素同士を対象として、双方が前記有効を示す値の
ときのみ有効を示す値とする論理積演算の結果として作
成された要素ディザ画像を、新たな各原色要素ディザ画
像とする新原色要素ディザ画像作成手段と、を有するこ
とが好ましい。
The image processing apparatus according to claim 28, wherein the mixed color effective matrix element deleting means performs a logical inversion operation for inverting the value indicating validity and the value indicating invalidity with respect to the mixed color element dither image. Thus, a mixed-color inversion element dither image creating means for creating a mixed-color inversion element dither image, and a target matrix element corresponding to each primary color element dither image of the primary color element dither image and the mixed color inversion element dither image. Element dither images created as a result of a logical AND operation with a value indicating validity only when the value indicates validity, and a new primary color element dither image creating unit as each new primary color element dither image. preferable.

【0048】この画像処理方法およびその装置では、混
色要素ディザ画像を対象として、有効を示す値と無効を
示す値とを反転させる論理反転演算を行うことにより、
混色反転要素ディザ画像を作成し、原色要素ディザ画像
の各原色要素ディザ画像と混色反転要素ディザ画像との
対応するマトリクス要素同士を対象として、双方が有効
を示す値のときのみ有効を示す値とする論理積演算の結
果として作成された要素ディザ画像を、新たな各原色要
素ディザ画像とする。すなわち、この場合、比較的単純
な論理反転演算や論理積演算を行うだけで、3原色につ
いての原色要素ディザ画像の有効を示す値のマトリクス
要素のうち、混色要素ディザ画像の有効を示す値と重複
して有効を示すマトリクス要素の有効をキャンセルでき
る。
In the image processing method and the image processing apparatus, a logical inversion operation for inverting a value indicating validity and a value indicating invalidity is performed on the mixed color element dither image.
Create a mixed-color inversion element dither image, target the corresponding matrix elements of each primary-color element dither image and the mixed-color inversion element dither image of the primary color element dither image, and set a value indicating valid only when both values are valid. The element dither image created as a result of the logical product operation performed is a new primary color element dither image. In other words, in this case, a value indicating the validity of the mixed color element dither image among the matrix elements of the values indicating the validity of the primary color element dither image for the three primary colors can be obtained by simply performing a relatively simple logical inversion or logical multiplication operation. It is possible to cancel the validity of the matrix element which indicates validity redundantly.

【0049】請求項1ないし3のいずれかの画像処理方
法において、前記少なくとも1つの要素画像がカラー画
像である場合、前記指定階調値記憶工程では、カラー3
原色の各色についての原色階調値を、それぞれ前記指定
階調値の1種として記憶し、前記ディザマスク記憶工程
は、前記原色階調値のうちの少なくとも相互に値が異な
るものに対応する仮原色ディザマスクを、それぞれ前記
ディザマスクの一種として記憶する仮原色ディザマスク
記憶工程と、前記仮原色ディザマスクの全てに共通して
前記有効を示す値のマトリクス要素のみに前記有効を示
す値を割り付けた混色ディザマスクを記憶する混色ディ
ザマスク記憶工程と、前記仮原色ディザマスクのそれぞ
れについて、各仮原色ディザマスクの前記有効を示す値
のマトリクス要素のうち、前記混色ディザマスクの前記
有効を示す値のマトリクス要素に対応するマトリクス要
素の値を、前記無効を示す値に変換して、各原色ディザ
マスクとして記憶する原色ディザマスク記憶工程と、を
有し、前記要素ディザ画像作成工程では、前記混色ディ
ザマスクおよび前記各原色ディザマスクを使用した前記
論理積演算を行うことにより、前記混色ディザマスクお
よび前記各原色ディザマスクに対応する混色要素ディザ
画像および各原色要素ディザ画像を、それぞれ前記要素
ディザ画像の1種として作成することが好ましい。
In the image processing method according to any one of claims 1 to 3, when the at least one element image is a color image, the designated gradation value storing step includes the step of storing a color 3 image.
The primary color tone values for each of the primary colors are stored as one of the designated tone values, and the dither mask storage step includes a step of temporarily storing at least one of the primary color tone values having different values. A temporary primary color dither mask storing step of storing each primary color dither mask as a kind of the dither mask, and assigning the validity value only to the matrix element of the validity value common to all of the temporary primary color dither masks A mixed color dither mask storing step of storing the mixed color dither mask, and for each of the temporary primary color dither masks, a value indicating the validity of the mixed color dither mask among matrix elements of values indicating the validity of each temporary primary color dither mask. The value of the matrix element corresponding to the matrix element is converted into a value indicating the invalidity and stored as each primary color dither mask. And a primary color dither mask storing step, wherein in the element dither image creating step, the logical product operation using the mixed color dither mask and each of the primary color dither masks is performed to obtain the mixed color dither mask and each of the primary colors. It is preferable that a mixed-color element dither image and each primary color element dither image corresponding to a dither mask are created as one type of the element dither image.

【0050】請求項22ないし24のいずれかの画像処
理装置において、前記少なくとも1つの要素画像がカラ
ー画像である場合、前記指定階調値記憶手段は、カラー
3原色の各色についての原色階調値を、それぞれ前記指
定階調値の1種として記憶し、前記ディザマスク記憶手
段は、前記原色階調値のうちの少なくとも相互に値が異
なるものに対応する仮原色ディザマスクを、それぞれ前
記ディザマスクの一種として記憶する仮原色ディザマス
ク記憶手段と、前記仮原色ディザマスクの全てに共通し
て前記有効を示す値のマトリクス要素のみに前記有効を
示す値を割り付けた混色ディザマスクを記憶する混色デ
ィザマスク記憶手段と、前記仮原色ディザマスクのそれ
ぞれについて、各仮原色ディザマスクの前記有効を示す
値のマトリクス要素のうち、前記混色ディザマスクの前
記有効を示す値のマトリクス要素に対応するマトリクス
要素の値を、前記無効を示す値に変換して、各原色ディ
ザマスクとして記憶する原色ディザマスク記憶手段と、
を有し、前記要素ディザ画像作成手段は、前記混色ディ
ザマスクおよび前記各原色ディザマスクを使用した前記
論理積演算を行うことにより、前記混色ディザマスクお
よび前記各原色ディザマスクに対応する混色要素ディザ
画像および各原色要素ディザ画像を、それぞれ前記要素
ディザ画像の1種として作成することが好ましい。
In the image processing apparatus according to any one of claims 22 to 24, when the at least one element image is a color image, the designated gradation value storage means stores the primary color gradation value for each of the three primary colors. Are respectively stored as one type of the designated gradation value, and the dither mask storage means stores the temporary primary color dither mask corresponding to at least one of the primary color gradation values having different values. A temporary primary color dither mask storage means for storing as a kind of the above, and a mixed color dither mask for storing a mixed color dither mask in which the value indicating the validity is assigned only to the matrix element of the value indicating the validity in common to all of the temporary primary color dither masks Mask storage means, and for each of the temporary primary color dither masks, a matrix of values indicating the validity of each temporary primary color dither mask. Of the value of the matrix element corresponding to the matrix elements of the value indicating the valid of the mixed color dither mask, it converted to a value indicating the invalid, and primary dither mask storage means for storing as a respective primary color dither mask,
The element dither image creating means performs the AND operation using the mixed color dither mask and each of the primary color dither masks, so that the mixed color element dither corresponding to the mixed color dither mask and each of the primary color dither masks is performed. Preferably, the image and each primary color element dither image are created as one type of the element dither image.

【0051】この画像処理方法およびその装置では、要
素画像がカラー画像である場合、原色階調値のうちの少
なくとも相互に値が異なるものに対応する仮原色ディザ
マスクを、それぞれディザマスクの一種として記憶し、
仮原色ディザマスクの全てに共通して有効を示す値のマ
トリクス要素のみに有効を示す値を割り付けた混色ディ
ザマスクを記憶し、仮原色ディザマスクのそれぞれにつ
いて、各仮原色ディザマスクの有効を示す値のマトリク
ス要素のうち、混色ディザマスクの有効を示す値のマト
リクス要素に対応するマトリクス要素の値を、無効を示
す値に変換して、各原色ディザマスクとして記憶し、混
色ディザマスクおよび各原色ディザマスクを使用した論
理積演算を行うことにより、混色ディザマスクおよび各
原色ディザマスクに対応する混色要素ディザ画像および
各原色要素ディザ画像を、それぞれ要素ディザ画像の1
種として作成する。
In this image processing method and apparatus, when the element image is a color image, the temporary primary color dither mask corresponding to at least one of the primary color tone values having different values is used as a type of dither mask. Remember,
Stores a mixed-color dither mask in which a value indicating validity is assigned only to a matrix element of a value indicating validity common to all of the temporary primary color dither masks, and indicates the validity of each temporary primary color dither mask for each of the temporary primary color dither masks Of the value matrix elements, the value of the matrix element corresponding to the value matrix element indicating the validity of the mixed color dither mask is converted into a value indicating invalidity, stored as each primary color dither mask, and the mixed color dither mask and each primary color are stored. By performing a logical product operation using the dither mask, the mixed color element dither image and each primary color element dither image corresponding to the mixed color dither mask and each primary color dither mask are respectively replaced by one of the element dither images.
Create as a seed.

【0052】この場合、請求項4または25と同様に、
3原色の原色階調値の全てが同一の値のときには、少な
くとも1個、2原色について同一の値のときには、少な
くとも2個、それぞれ別のときには、少なくとも3個の
原色要素ディザ画像を作成する。すなわち、重複利用す
ることも含め、3原色についての原色要素ディザ画像が
得られるので、カラーの要素画像の3原色の原色階調値
に関するディザ処理に適用できる。なお、この場合も、
考え得る原色階調値のそれぞれについての仮原色ディザ
マスクを予めディザマスクとして記憶しておいても良い
し、原色階調値が判明した後に、ディザマトリクスとの
比較演算により新たに作成して記憶しても良いし、考え
得る指定階調値に対応するディザマスクが予め記憶され
ている場合には、原色階調値が判明した後に、それらか
ら選択して改めて原色ディザマスクとして記憶しても良
い。
In this case, similar to claim 4 or 25,
At least one primary color element dither image is created when the primary color tone values of the three primary colors are the same value, at least two primary color element dither images when the two primary colors have the same value, and at least three primary color element dither images when they are different. That is, since the primary color element dither images for the three primary colors are obtained including the overlapping use, the present invention can be applied to the dither processing for the primary color gradation values of the three primary colors of the color element image. In this case,
The temporary primary color dither mask for each conceivable primary color tone value may be stored in advance as a dither mask, or after the primary color tone value is determined, it is newly created and stored by a comparison operation with a dither matrix. Alternatively, if a dither mask corresponding to a conceivable designated tone value is stored in advance, after the primary color tone values are determined, they may be selected from them and stored again as the primary color dither mask. good.

【0053】また、この画像処理方法およびその装置で
は、仮原色ディザマスクの全てに共通して有効を示す値
のマトリクス要素のみに有効を示す値を割り付けた混色
ディザマスクを使用して論理積演算を行うことにより、
混色ディザマスクに対応する混色要素ディザ画像を作成
するので、上記の3原色についての原色要素ディザ画像
に加え、3原色の混色についての混色要素ディザ画像を
得ることができる。すなわち、混色に関するディザ処理
も為される。また、この場合、原色ディザマスクは、仮
原色ディザマスクの有効を示す値のマトリクス要素のう
ち、混色ディザマスクの有効を示す値のマトリクス要素
に対応するマトリクス要素の値を、無効を示す値に変換
したもの、すなわち、混色ディザマスクの有効を示す値
と重複して有効を示すマトリクス要素の有効をキャンセ
ルしたものとなっている。このため、各原色ディザマス
クを使用して作成された各原色要素ディザ画像は、請求
項7または28と同様に、混色要素ディザ画像の有効を
示す値と重複して有効を示すマトリクス要素の有効をキ
ャンセルしたものとなり、例えばCMYK等の4色を基
本色とする場合にも、きれいな画像が得られる画像処理
を行うことができる。
In the image processing method and the image processing apparatus, a logical multiplication operation is performed using a mixed-color dither mask in which a value indicating validity is assigned only to a matrix element of a value indicating validity in common to all of the temporary primary color dither masks. By doing
Since the mixed-color element dither image corresponding to the mixed-color dither mask is created, a mixed-color element dither image for the three primary colors can be obtained in addition to the primary color element dither image for the three primary colors. That is, the dither processing for the color mixture is also performed. Further, in this case, the primary color dither mask changes the value of the matrix element corresponding to the matrix element indicating the validity of the mixed color dither mask to the value indicating invalidity among the matrix elements indicating the validity of the temporary primary color dither mask. The converted value, that is, the value indicating the validity of the mixed color dither mask is overlapped with the validity of the matrix element indicating the validity is canceled. For this reason, each primary color element dither image created using each primary color dither mask is the same as in claim 7 or 28, in which the validity of the matrix element indicating validity overlaps with the value indicating validity of the mixed color element dither image. Is canceled. For example, even when four colors such as CMYK are used as basic colors, image processing that can obtain a clear image can be performed.

【0054】請求項9の画像処理方法において、前記仮
原色ディザマスクの全てが同一のディザマトリクスに基
づくものである場合、前記仮原色ディザマスクのうちの
前記有効を示す値のマトリクス要素が最も少ない仮原色
ディザマスクを、前記混色ディザマスクとして記憶する
ことが好ましい。
In the image processing method of the ninth aspect, when all of the temporary primary color dither masks are based on the same dither matrix, the matrix element of the value indicating the validity in the temporary primary color dither mask is the least. Preferably, a temporary primary color dither mask is stored as the mixed color dither mask.

【0055】請求項30の画像処理装置において、前記
仮原色ディザマスクの全てが同一のディザマトリクスに
基づくものである場合、前記仮原色ディザマスクのうち
の前記有効を示す値のマトリクス要素が最も少ない仮原
色ディザマスクを、前記混色ディザマスクとして記憶す
ることが好ましい。
In the image processing apparatus according to the present invention, when all of the temporary primary color dither masks are based on the same dither matrix, the temporary primary color dither mask has the least number of matrix elements of the value indicating the validity. Preferably, a temporary primary color dither mask is stored as the mixed color dither mask.

【0056】この画像処理方法およびその装置では、仮
原色ディザマスクの全てが同一のディザマトリクスに基
づくものである場合、仮原色ディザマスクのうちの有効
を示す値のマトリクス要素が最も少ない仮原色ディザマ
スクを、混色ディザマスクとして記憶する。ここで、仮
原色ディザマスクの全てが同一のディザマトリクスに基
づくものである場合、有効を示す値のマトリクス要素が
最も少ない仮原色ディザマスクの有効を示す値のマトリ
クス要素に対応するのは、他の仮原色ディザマスクにお
いても有効を示す値のマトリクス要素である。すなわ
ち、この場合、仮原色ディザマスクが3原色に対応して
何種類(1〜3種)あっても、有効を示す値のマトリク
ス要素が最も少ない仮原色ディザマスクの有効を示す値
のマトリクス要素が、仮原色ディザマスクの全てに共通
して有効を示す値のマトリクス要素となる。このため、
この有効を示す値のマトリクス要素が最も少ない仮原色
ディザマスクは、3原色の混色についての混色ディザマ
スクとして使用できる。なお、相互に異なる値を有する
ディザマトリクスに基づいてカラー3原色の各原色階調
値に対応する仮原色ディザマスクを規定することもでき
るが、この場合には、例えば後述の論理積演算による方
法を用いれば良い。
In the image processing method and the image processing apparatus, when all of the temporary primary color dither masks are based on the same dither matrix, the temporary primary color dither mask has the least number of matrix elements having valid values. The mask is stored as a mixed color dither mask. Here, when all of the temporary primary color dither masks are based on the same dither matrix, the matrix elements of the value indicating the validity of the temporary primary color dither mask corresponding to the matrix elements of the value indicating the validity of the least are the other elements. Is a matrix element of a value indicating validity in the temporary primary color dither mask. That is, in this case, no matter how many types (1 to 3 types) of temporary primary color dither masks correspond to the three primary colors, the matrix element of the value indicating the validity of the temporary primary color dither mask has the least number of matrix elements indicating the validity. Is a matrix element of a value indicating validity common to all of the temporary primary color dither masks. For this reason,
The temporary primary color dither mask having the least effective matrix element can be used as a mixed color dither mask for mixed color of three primary colors. It should be noted that a temporary primary color dither mask corresponding to each primary color tone value of the three primary colors can be defined based on a dither matrix having mutually different values. In this case, for example, a method using a logical product operation described later is used. May be used.

【0057】請求項10の画像処理方法において、前記
混色ディザマスクは、前記カラー3原色の各原色階調値
のうち、条件を満たす前記ディザマトリクスのしきい値
の数が最も少ない原色階調値を選択することにより、選
択された原色階調値に対応する仮原色ディザマスクとし
て得られることが好ましい。
11. The image processing method according to claim 10, wherein said mixed color dither mask is a primary color tone value having the smallest number of threshold values of said dither matrix satisfying a condition among primary color tone values of said three primary colors. Is preferably obtained as a temporary primary color dither mask corresponding to the selected primary color tone value.

【0058】請求項31の画像処理装置において、前記
混色ディザマスクは、前記カラー3原色の各原色階調値
のうち、条件を満たす前記ディザマトリクスのしきい値
の数が最も少ない原色階調値を選択することにより、選
択された原色階調値に対応する仮原色ディザマスクとし
て得られることが好ましい。
32. The image processing apparatus according to claim 31, wherein the mixed color dither mask is a primary color tone value having the smallest number of threshold values of the dither matrix satisfying a condition among the primary color tone values of the three primary colors. Is preferably obtained as a temporary primary color dither mask corresponding to the selected primary color tone value.

【0059】この画像処理方法およびその装置では、混
色ディザマスクは、カラー3原色の各原色階調値のう
ち、条件を満たすディザマトリクスのしきい値の数が最
も少ない原色階調値を選択することにより、選択された
原色階調値に対応する仮原色ディザマスクとして得られ
る。すなわち、原色階調値を選択することにより、仮原
色ディザマスクのうちの有効を示す値のマトリクス要素
が最も少ない仮原色ディザマスクを選択でき、これによ
り、混色ディザマスクを容易に得られる。
In this image processing method and apparatus, the mixed color dither mask selects the primary color tone value of the dither matrix that satisfies the condition among the primary color tone values of the three primary colors. Thereby, a temporary primary color dither mask corresponding to the selected primary color tone value is obtained. In other words, by selecting the primary color tone values, it is possible to select a temporary primary color dither mask which has the least number of matrix elements indicating validity among the temporary primary color dither masks, thereby easily obtaining a mixed color dither mask.

【0060】請求項11の画像処理方法において、前記
各原色階調値がディザマトリクスの各しきい値以上のと
きにそのしきい値の条件を満たし、そのしきい値に対応
するディザマスクのマトリクス要素が有効を示す値とな
る場合に、前記混色ディザマスクを得るための原色階調
値の選択では、最小値の原色階調値が選択されることが
好ましい。
12. The image processing method according to claim 11, wherein the condition of the threshold value is satisfied when each of the primary color tone values is equal to or more than each threshold value of the dither matrix, and the matrix of the dither mask corresponding to the threshold value is satisfied. When the element has a value indicating validity, it is preferable that the selection of the primary color gradation value for obtaining the mixed color dither mask selects the minimum primary color gradation value.

【0061】請求項32の画像処理装置において、前記
各原色階調値がディザマトリクスの各しきい値以上のと
きにそのしきい値の条件を満たし、そのしきい値に対応
するディザマスクのマトリクス要素が有効を示す値とな
る場合に、前記混色ディザマスクを得るための原色階調
値の選択では、最小値の原色階調値が選択されることが
好ましい。
The image processing apparatus according to claim 32, wherein the condition of the threshold value is satisfied when each of the primary color tone values is equal to or greater than each threshold value of the dither matrix, and the matrix of the dither mask corresponding to the threshold value is satisfied. When the element has a value indicating validity, it is preferable that the selection of the primary color gradation value for obtaining the mixed color dither mask selects the minimum primary color gradation value.

【0062】この画像処理方法およびその装置では、各
原色階調値がディザマトリクスの各しきい値以上のとき
にそのしきい値の条件を満たし、そのしきい値に対応す
るディザマスクのマトリクス要素が有効を示す値となる
場合に、混色ディザマスクを得るための原色階調値の選
択では、最小値の原色階調値が選択される。この場合、
最小値の原色階調値を選択するだけで、有効を示す値の
マトリクス要素が最も少ない仮原色ディザマスクを選択
でき、これにより、混色ディザマスクを容易に得られ
る。
In this image processing method and apparatus, when each primary color gradation value is equal to or greater than each threshold value of the dither matrix, the condition of the threshold value is satisfied, and the matrix element of the dither mask corresponding to the threshold value is satisfied. Is the value indicating validity, in selecting the primary color tone value for obtaining the mixed color dither mask, the minimum primary color tone value is selected. in this case,
Only by selecting the minimum primary color gradation value, a temporary primary color dither mask having the least number of matrix elements indicating validity can be selected, thereby easily obtaining a mixed color dither mask.

【0063】請求項11の画像処理方法において、前記
各原色階調値がディザマトリクスの各しきい値以下のと
きにそのしきい値の条件を満たし、そのしきい値に対応
するディザマスクのマトリクス要素が有効を示す値とな
る場合に、前記混色ディザマスクを得るための原色階調
値の選択では、最大値の原色階調値が選択されることが
好ましい。
13. The image processing method according to claim 11, wherein the condition of the threshold is satisfied when each of the primary color gradation values is equal to or less than each threshold of the dither matrix, and the matrix of the dither mask corresponding to the threshold is satisfied. When the element has a value indicating validity, it is preferable that the selection of the primary color gradation value for obtaining the mixed color dither mask selects the maximum primary color gradation value.

【0064】請求項32の画像処理装置において、前記
各原色階調値がディザマトリクスの各しきい値以下のと
きにそのしきい値の条件を満たし、そのしきい値に対応
するディザマスクのマトリクス要素が有効を示す値とな
る場合に、前記混色ディザマスクを得るための原色階調
値の選択では、最大値の原色階調値が選択されることが
好ましい。
The image processing apparatus according to claim 32, wherein when each of said primary color tone values is equal to or less than each threshold value of a dither matrix, a condition of said threshold value is satisfied, and a matrix of a dither mask corresponding to said threshold value is satisfied. When the element has a value indicating validity, it is preferable that the selection of the primary color gradation value for obtaining the mixed color dither mask selects the maximum primary color gradation value.

【0065】この画像処理方法およびその装置では、各
原色階調値がディザマトリクスの各しきい値以下のとき
にそのしきい値の条件を満たし、そのしきい値に対応す
るディザマスクのマトリクス要素が有効を示す値となる
場合に、混色ディザマスクを得るための原色階調値の選
択では、最大値の原色階調値が選択される。この場合、
最大値の原色階調値を選択するだけで、有効を示す値の
マトリクス要素が最も少ない仮原色ディザマスクを選択
でき、これにより、混色ディザマスクを容易に得られ
る。
In the image processing method and the image processing apparatus, when each primary color gradation value is equal to or less than each threshold value of the dither matrix, the condition of the threshold value is satisfied, and the matrix element of the dither mask corresponding to the threshold value is satisfied. Is a value indicating validity, in selecting a primary color gradation value for obtaining a mixed color dither mask, the maximum primary color gradation value is selected. in this case,
By simply selecting the maximum primary color gradation value, a temporary primary color dither mask having the least number of matrix elements indicating validity can be selected, thereby easily obtaining a mixed color dither mask.

【0066】請求項9の画像処理方法において、前記混
色ディザマスクは、前記仮原色ディザマスクの対応する
マトリクス要素同士を対象として、全てが前記有効を示
す値のときのみ有効を示す値とする論理積演算の結果と
して作成されることが好ましい。
10. The image processing method according to claim 9, wherein said mixed color dither mask is a value indicating validity only when all of said matrix elements of said temporary primary color dither mask are values indicating validity. It is preferably created as a result of a product operation.

【0067】請求項30の画像処理装置において、前記
混色ディザマスクは、前記仮原色ディザマスクの対応す
るマトリクス要素同士を対象として、全てが前記有効を
示す値のときのみ有効を示す値とする論理積演算の結果
として作成されることが好ましい。
31. The image processing apparatus according to claim 30, wherein the mixed color dither mask is a value indicating validity only when all of the matrix elements corresponding to the temporary primary color dither mask indicate the validity. It is preferably created as a result of a product operation.

【0068】この画像処理方法およびその装置では、混
色ディザマスクは、仮原色ディザマスクの対応するマト
リクス要素同士を対象として、全てが有効を示す値のと
きのみ有効を示す値とする論理積演算の結果として作成
される。すなわち、仮原色ディザマスクが、相互に異な
るディザマトリクスに基づくか同一のディザマトリクス
に基づくかに拘わらず、マトリクス要素同士の論理積演
算を行うことにより、仮原色ディザマスクの全てに共通
して有効を示す値のマトリクス要素を直接求めて、混色
ディザマスクとすることができる。
In the image processing method and the image processing apparatus, the mixed color dither mask is a logical AND operation of the matrix elements corresponding to the temporary primary color dither mask, in which only all the valid values are valid values. Created as a result. That is, regardless of whether the temporary primary color dither masks are based on different dither matrices or the same dither matrix, by performing a logical AND operation between the matrix elements, it is effective for all the temporary primary color dither masks. Can be directly obtained to obtain a mixed color dither mask.

【0069】請求項9ないし14のいずれかの画像処理
方法において、前記各原色ディザマスクは、前記混色デ
ィザマスクを対象として前記有効を示す値と前記無効を
示す値とを反転させる論理反転演算の結果として作成さ
れる混色反転ディザマスクと、各仮原色ディザマスク
と、の対応するマトリクス要素同士を対象として、双方
が前記有効を示す値のときのみ有効を示す値とする論理
積演算の結果として作成されることが好ましい。
The image processing method according to any one of claims 9 to 14, wherein each of the primary color dither masks is a logical inversion operation for inverting a value indicating the validity and a value indicating the invalidity for the mixed color dither mask. As a result of a logical product operation that takes values corresponding to the matrix elements corresponding to the resulting mixed color inversion dither mask and the respective temporary primary color dither masks as valid only when both values are valid. Preferably it is created.

【0070】請求項30ないし35のいずれかの画像処
理装置において、前記各原色ディザマスクは、前記混色
ディザマスクを対象として前記有効を示す値と前記無効
を示す値とを反転させる論理反転演算の結果として作成
される混色反転ディザマスクと、各仮原色ディザマスク
と、の対応するマトリクス要素同士を対象として、双方
が前記有効を示す値のときのみ有効を示す値とする論理
積演算の結果として作成されることが好ましい。
37. The image processing apparatus according to claim 30, wherein each of the primary color dither masks is a logical inversion operation for inverting the value indicating the validity and the value indicating the invalidity for the mixed color dither mask. As a result of a logical product operation that takes values corresponding to the matrix elements corresponding to the resulting mixed color inversion dither mask and the respective temporary primary color dither masks as valid only when both values are valid. Preferably it is created.

【0071】この画像処理方法およびその装置では、各
原色ディザマスクは、混色ディザマスクを対象として有
効を示す値と無効を示す値とを反転させる論理反転演算
の結果として作成される混色反転ディザマスクと、各仮
原色ディザマスクとの対応するマトリクス要素同士を対
象として、双方が有効を示す値のときのみ有効を示す値
とする論理積演算の結果として作成される。すなわち、
この場合、比較的単純な論理反転演算や論理積演算を行
うだけで、仮原色ディザマスクの有効を示す値のマトリ
クス要素のうち、混色ディザマスクの有効を示す値と重
複して有効を示すマトリクス要素の有効をキャンセルし
た原色ディザマスクを作成できる。
In this image processing method and apparatus, each primary color dither mask is a mixed color inverted dither mask created as a result of a logical inversion operation for inverting a valid value and an invalid value for the mixed color dither mask. And a matrix element corresponding to each of the temporary primary color dither masks, and is created as a result of a logical AND operation in which values are only valid when both are valid values. That is,
In this case, the matrix indicating the validity of the mixed color dither mask among the matrix elements of the value indicating the validity of the temporary primary color dither mask can be obtained by simply performing a relatively simple logical inversion or logical multiplication operation. You can create a primary color dither mask that cancels element validity.

【0072】請求項4ないし15のいずれかの画像処理
方法において、前記カラー3原色は、シアン、マゼンタ
およびイエローの3色であることが好ましい。
In the image processing method of any one of claims 4 to 15, it is preferable that the three primary colors are three colors of cyan, magenta and yellow.

【0073】請求項25ないし36のいずれかの画像処
理装置において、前記カラー3原色は、シアン、マゼン
タおよびイエローの3色であることが好ましい。
In the image processing apparatus of any one of claims 25 to 36, it is preferable that the three primary colors are three colors of cyan, magenta and yellow.

【0074】この画像処理方法およびその装置では、カ
ラー3原色は、C(シアン)、M(マゼンタ)およびY
(イエロー)の3色なので、いわゆる減法混色により色
(カラー)を表現できる。この場合、各種のXYプロッ
タやプリンタ等における印刷など、反射光によってカラ
ー表現する場合に適している。また、この場合、CMY
の3色の混合色(混色)はK(ブラック)となる。ま
た、この場合、さらにK(ブラック)を含むCMYKの
4色を基本色とすることが好ましい。
In this image processing method and apparatus, the three primary colors are C (cyan), M (magenta), and Y.
Since the three colors (yellow) are used, colors can be expressed by so-called subtractive color mixing. In this case, it is suitable for a case where color expression is performed by reflected light, such as printing on various XY plotters and printers. In this case, CMY
The mixed color (mixed color) of the three colors is K (black). Further, in this case, it is preferable that four basic colors of CMYK including K (black) be used as basic colors.

【0075】請求項1ないし16のいずれかの画像処理
方法において、前記要素ディザ画像は、印刷対象物に印
刷するための印刷画像として作成されることが好まし
い。
In the image processing method according to any one of the first to sixteenth aspects, it is preferable that the element dither image is created as a print image for printing on a print target.

【0076】請求項22ないし37のいずれかの画像処
理装置において、前記要素ディザ画像は、印刷対象物に
印刷するための印刷画像として作成されることが好まし
い。
In the image processing apparatus according to any one of claims 22 to 37, it is preferable that the element dither image is created as a print image for printing on a print target.

【0077】この画像処理方法およびその装置では、要
素ディザ画像が、印刷対象物に印刷するための印刷画像
として作成されるので、印刷画像を作成するための画像
処理方法およびその装置として、印刷装置等に適用でき
In this image processing method and apparatus, the element dither image is created as a print image to be printed on a print object. Therefore, the image processing method for creating a print image and the apparatus include a printing apparatus. Applicable to etc.

【0078】請求項17の画像処理方法において、前記
要素ディザ画像の前記有効を示す値のマトリクス要素
は、前記印刷対象物に対してインクジェットヘッドから
インクを吐出すべき画素に対応していることが好まし
い。
The image processing method according to claim 17, wherein the matrix element of the value indicating the validity of the element dither image corresponds to a pixel to which ink is to be ejected from the ink jet head to the printing object. preferable.

【0079】請求項38の画像処理装置において、前記
要素ディザ画像の前記有効を示す値のマトリクス要素
は、前記印刷対象物に対してインクジェットヘッドから
インクを吐出すべき画素に対応していることが好まし
い。
The image processing apparatus according to claim 38, wherein the matrix element of the value indicating the validity of the element dither image corresponds to a pixel to which ink is to be ejected from an ink jet head to the printing object. preferable.

【0080】この画像処理方法およびその装置では、要
素ディザ画像の有効を示す値のマトリクス要素は、印刷
対象物に対してインクジェットヘッドからインクを吐出
すべき画素に対応しているので、インクジェット方式の
印刷装置に適用するのに適している。
In the image processing method and the image processing apparatus, since the matrix element of the value indicating the validity of the element dither image corresponds to the pixel where the ink is to be ejected from the ink jet head to the print target, Suitable for application to printing devices.

【0081】請求項17または18の画像処理方法にお
いて、前記印刷対象物がテープであることが好ましい。
In the image processing method according to claim 17 or 18, it is preferable that the printing target is a tape.

【0082】請求項38または39の画像処理装置にお
いて、前記印刷対象物がテープであることが好ましい。
In the image processing apparatus according to claim 38 or 39, it is preferable that the printing object is a tape.

【0083】この画像処理方法およびその装置では、印
刷画像として作成された要素ディザ画像を印刷する印刷
対象物がテープなので、テープ印刷装置に適用できる。
In the image processing method and the image processing apparatus, since the printing object on which the element dither image created as the print image is printed is a tape, it can be applied to a tape printing apparatus.

【0084】請求項4の画像処理方法において、前記カ
ラー3原色は、レッド、グリーンおよびブルーの3色で
あることが好ましい。
[0084] In the image processing method of the fourth aspect, it is preferable that the three primary colors are three colors of red, green and blue.

【0085】請求項25の画像処理装置において、前記
カラー3原色は、レッド、グリーンおよびブルーの3色
であることが好ましい。
[0085] In the image processing apparatus according to claim 25, the three primary colors are preferably three colors of red, green and blue.

【0086】この画像処理方法およびその装置では、カ
ラー3原色は、R(レッド)、G(グリーン)およびB
(ブルー)の3色なので、いわゆる加法混色により色
(カラー)を表現できる。この場合、CRT、プラズ
マ、液晶等のディスプレイのように、それ自体が発光に
よってカラー表現する場合に適している。また、この場
合、RGBの3色の混合色(混色)は白となる。
In this image processing method and apparatus, the three primary colors are R (red), G (green) and B
Since the three colors (blue) are used, colors can be expressed by so-called additive color mixing. In this case, such as a display such as a CRT, a plasma, a liquid crystal, etc., it is suitable for a case in which a color display is performed by itself. In this case, the mixed color (mixed color) of the three colors RGB is white.

【0087】請求項1ないし4のいずれかの画像処理方
法において、前記要素ディザ画像が、表示画面に表示す
るための表示画像として作成されることが好ましい。
In the image processing method according to any one of claims 1 to 4, it is preferable that the element dither image is created as a display image to be displayed on a display screen.

【0088】請求項22ないし25のいずれかの画像処
理装置において、前記要素ディザ画像が、表示画面に表
示するための表示画像として作成されることが好まし
い。
[0088] In the image processing apparatus of any one of claims 22 to 25, it is preferable that the element dither image is created as a display image to be displayed on a display screen.

【0089】この画像処理方法およびその装置では、要
素ディザ画像が、表示画面に表示するための表示画像と
して作成されるので、表示画像を作成するための画像処
理方法およびその装置として、表示装置等に適用でき
る。
In this image processing method and its apparatus, the element dither image is created as a display image to be displayed on a display screen. Therefore, the image processing method and its apparatus for creating a display image include a display device and the like. Applicable to

【0090】[0090]

【発明の実施の形態】以下、本発明の一実施形態に係る
画像処理方法およびその装置を適用したテープ印刷装置
について、添付図面を参照しながら詳細に説明する。ま
ず、図1はテープ印刷装置の外観斜視図であり、図2
は、その制御系のブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An image processing method according to an embodiment of the present invention and a tape printing apparatus to which the apparatus is applied will be described in detail with reference to the accompanying drawings. First, FIG. 1 is an external perspective view of a tape printing apparatus, and FIG.
Is a block diagram of the control system.

【0091】このテープ印刷装置1は、キー入力した所
望の文字などに基づいて作成した印刷画像を、印刷テー
プT1にインクジェット方式でカラー印刷すると共に、
この印刷テープT1の印刷部分を切断してラベルを作成
するものである。また、印刷テープT1に加えラミネー
トテープT2(図3および図4参照)を搭載すること
で、この印刷テープT1の印刷部分にラミネートテープ
T2を貼着し、この状態で印刷テープT1およびラミネ
ートテープT2を切断してラミネート済みのラベルを作
成することもできる。以下、印刷テープT1のみのタイ
プ、またはそれにラミネートテープT2を加えたタイプ
の、両タイプのテープを代表するときは、「テープT」
という。
The tape printing apparatus 1 prints a print image created based on desired characters or the like input by a key on a print tape T1 in an ink-jet manner,
The label is created by cutting the printed portion of the printing tape T1. Further, by mounting a laminating tape T2 (see FIGS. 3 and 4) in addition to the printing tape T1, the laminating tape T2 is adhered to the printed portion of the printing tape T1, and in this state, the printing tape T1 and the laminating tape T2 Can be cut to create a laminated label. Hereinafter, "Tape T" will be used to represent both types of tapes, of the type with only the printing tape T1 or the type with the laminating tape T2 added thereto.
That.

【0092】印刷テープT1は、基材テープと基材テー
プの裏面に塗着した粘着層と粘着層に貼着した剥離紙テ
ープとで構成され、基材テープは、紙やコート層を有す
る紙、あるいはコート層を有するフィルム等のインクを
十分吸収できる素材で構成される。粘着層は、ラベルと
しての印刷テープをファイルなどの貼付対象物に貼り付
けるためのものであり、また剥離紙テープは、この粘着
層にゴミなどが付着するのを防止するためのものであ
る。
The printing tape T1 is composed of a base tape, an adhesive layer applied to the back surface of the base tape, and a release paper tape attached to the adhesive layer. The base tape is paper or paper having a coat layer, Alternatively, it is made of a material that can sufficiently absorb ink, such as a film having a coat layer. The adhesive layer is for attaching a printing tape as a label to an object to be attached such as a file, and the release paper tape is for preventing dust or the like from adhering to the adhesive layer.

【0093】一方、ラミネートテープT2は、基材テー
プと基材テープの裏面に塗着した粘着層とで構成され、
基材テープは、16〜38μm厚程度の透明なフィルム
などで構成される。また、印刷テープT1とほぼ同一幅
に形成され、側端を揃え重ねるようにして貼着される。
実際には、印刷テープT1に対しラミネートテープT2
がわずかに(0.3mm程度)狭幅に形成され、貼着の際
のラミネートテープT2の微小な横ずれを吸収できるよ
うになっている。
On the other hand, the laminate tape T2 is composed of a base tape and an adhesive layer applied to the back surface of the base tape,
The base tape is composed of a transparent film having a thickness of about 16 to 38 μm. Further, it is formed to have substantially the same width as the printing tape T1, and is adhered so that the side edges are aligned and overlapped.
Actually, the printing tape T1 is laminated with the laminating tape T2.
Are formed to have a slightly narrow width (about 0.3 mm) so that a slight lateral displacement of the laminate tape T2 at the time of sticking can be absorbed.

【0094】これら各種のテープTには、テープ幅4.
5mm〜96mm程度の各種(10種類程度)のものが用意
されている。それぞれテープカートリッジ5に収容され
た状態で提供され、テープ幅に応じて幅方向24ドット
〜1024ドット程度の解像度の印刷画像が印刷され
る。なお、これらのテープTには、材質の異なるもの
や、地色が白色以外のものなども用意されており、将来
採用されるものも含めれば、少なくとも数十種類のもの
が使用可能となっている。また、テープカートリッジ5
には、印刷テープT1およびラミネートテープT2を搭
載可能なタイプのもの(図4参照)と、印刷テープT1
のみ搭載可能なタイプがあり、それぞれ幅が異なる
「大」、「中」、「小」の3種類のものが用意されてい
る。
These various tapes T have a tape width of 4.
Various types (about 10 types) of about 5 mm to 96 mm are prepared. Each of them is provided in a state of being housed in the tape cartridge 5, and print images having a resolution of about 24 dots to 1024 dots in the width direction are printed according to the tape width. In addition, these tapes T are also prepared with materials having different materials and materials having a ground color other than white. At least several tens of types can be used including those used in the future. I have. In addition, the tape cartridge 5
Include a type capable of mounting a print tape T1 and a laminate tape T2 (see FIG. 4);
There is a type that can be mounted only, and three types of “large”, “medium”, and “small” having different widths are prepared.

【0095】図1に示すように、テープ印刷装置1は、
装置本体2と、装置本体2の前部に取り付けたキーボー
ド3と、テープT(印刷テープT1+ラミネートテープ
T2:図3参照)を収容したテープカートリッジ5と、
4色のインクを充填したインクカートリッジ8(図3参
照)とで構成されており、テープカートリッジ5および
インクカートリッジ8は、装置本体2に対し着脱自在に
装着されている。装置本体2は、装置ケース23により
その外殻が形成され、装置ケース23の上部には、テー
プカートリッジ5およびインクカートリッジ8を着脱す
るための開閉蓋21が広く設けられている。また、装置
ケース23の側面には、テープTを外部に排出するスリ
ット状のテープ排出口22が形成されている。
As shown in FIG. 1, the tape printer 1
An apparatus main body 2, a keyboard 3 attached to a front portion of the apparatus main body 2, a tape cartridge 5 containing a tape T (printing tape T1 + laminate tape T2: see FIG. 3),
The tape cartridge 5 and the ink cartridge 8 are detachably mounted on the apparatus main body 2. The ink cartridge 8 is filled with ink of four colors (see FIG. 3). The outer shell of the apparatus main body 2 is formed by an apparatus case 23, and an opening / closing lid 21 for attaching and detaching the tape cartridge 5 and the ink cartridge 8 is widely provided at an upper portion of the apparatus case 23. A slit-shaped tape discharge port 22 for discharging the tape T to the outside is formed on a side surface of the device case 23.

【0096】キーボード3は、装置本体2に対し起倒自
在に取り付けられており、テープ印刷装置1を使用する
場合には、キーボード3を引き倒した状態にし、これを
携帯する場合には、キーボード3を引き起こした状態に
する。また、開閉蓋21の右前部には、装置本体2に内
蔵したディスプレイ4に対応して、小窓25が形成され
ている。このキーボード3とディスプレイ4について
は、さらに後述する。
The keyboard 3 is attached to the apparatus main body 2 so that it can be turned upside down. When the tape printer 1 is used, the keyboard 3 is pulled down. 3 is caused. Further, a small window 25 is formed at the right front of the opening / closing lid 21 in correspondence with the display 4 built in the apparatus main body 2. The keyboard 3 and the display 4 will be further described later.

【0097】また、図2に示すように、テープ印刷装置
1は、基本的な構成として、キーボード3やディスプレ
イ4を有してユーザとのインタフェースを行う操作部1
1、インクジェット方式の印刷ヘッド7によりテープカ
ートリッジ5のテープT(印刷テープT1)に印刷を行
う印刷部12、印刷後のテープTの切断を行う切断部1
3、各種センサを有して各種検出を行う検出部14、各
種ドライバを有して各部回路を駆動する駆動部270、
電源部290、および、テープ印刷装置1内の各部を制
御する制御部200を備えている。
As shown in FIG. 2, the tape printer 1 has, as a basic configuration, an operation unit 1 having a keyboard 3 and a display 4 to interface with a user.
1. A printing unit 12 that prints on a tape T (printing tape T1) of a tape cartridge 5 by an inkjet print head 7, and a cutting unit 1 that cuts the tape T after printing.
3. a detection unit 14 having various sensors to perform various detections; a driving unit 270 having various drivers to drive each unit circuit;
A power supply unit 290 and a control unit 200 that controls each unit in the tape printer 1 are provided.

【0098】このため、装置ケース23の内部には、印
刷部12、切断部13、検出部14などの他、図外の回
路基板が収納されている。この回路基板には、電源部2
90の他、駆動部270や制御部200の各回路などが
搭載されている。電源部290の電源ユニットEUは、
ACアダプタ接続口24や外部から着脱可能なニッカド
電池等の電池Eに接続され、テープ印刷装置1内の各部
に電力を供給する。
For this reason, a circuit board (not shown) is housed in the apparatus case 23 in addition to the printing section 12, the cutting section 13, the detecting section 14, and the like. This circuit board includes a power supply unit 2
90, other circuits such as a drive unit 270 and a control unit 200 are mounted. The power supply unit EU of the power supply unit 290 includes:
The tape printer 1 is connected to the AC adapter connection port 24 and a battery E such as a nickel-cadmium battery that is detachable from the outside, and supplies power to each unit in the tape printer 1.

【0099】図3はテープ印刷装置の装置本体の断面図
である。図2および図3に示すように、印刷部12は、
両端を図外のフレームに支持されたキャリッジガイド軸
31と、キャリッジガイド軸31にスライド自在に取り
付けられたキャリッジ32と、正逆走行することでキャ
リッジ32を左右方向(テープTの幅方向)に往復動さ
せる図外のタイミングベルトと、タイミングベルトを正
逆走行させるキャリッジモータ(CRモータ)122
と、送り従動ローラ42および送り駆動ローラ43を上
下に配設して成る送りローラ41と、ラミ従動ローラ4
5およびラミ駆動ローラ46を上下に配設して成るラミ
ネートローラ44と、送り駆動ローラ43およびラミ駆
動ローラ46を図外の減速歯車列を介して回転駆動させ
るテープ送りモータ(TFモータ)121と、印刷ヘッ
ド7のインクノズルを塞ぐとともに、必要に応じてポン
プモータ123によりクリーニング処理等を行うヘッド
キャップ機構(図示せず)と、テープカートリッジ5を
セットするイジェクト機構124とを備えている。
FIG. 3 is a sectional view of the apparatus main body of the tape printing apparatus. As shown in FIGS. 2 and 3, the printing unit 12
A carriage guide shaft 31 whose both ends are supported by a frame (not shown), a carriage 32 slidably attached to the carriage guide shaft 31, and a forward / reverse running to move the carriage 32 in the left-right direction (width direction of the tape T). A timing belt (not shown) that reciprocates and a carriage motor (CR motor) 122 that causes the timing belt to travel forward and backward.
A feed roller 41 in which a feed driven roller 42 and a feed drive roller 43 are vertically arranged;
5, a laminating roller 44 having a laminating drive roller 46 arranged vertically, a tape feed motor (TF motor) 121 for rotatingly driving the feed driving roller 43 and the lami driving roller 46 via a reduction gear train (not shown). A head cap mechanism (not shown) for closing the ink nozzles of the print head 7 and performing a cleaning process or the like by a pump motor 123 as needed, and an eject mechanism 124 for setting the tape cartridge 5.

【0100】また、キャリッジ32には、その下部にテ
ープTに印刷を行う印刷ヘッド7が、上部にインクを供
給するためのインクカートリッジ8を装着するカートリ
ッジホルダ34が、それぞれ一体に取り付けられてい
る。この場合、印刷ヘッド7は下向きに取り付けられ、
またインクカートリッジ8はカートリッジホルダ34に
下向きに装着される。インクカートリッジ8が装着され
ると、インクカートリッジ8の各色のインクタンク8a
が印刷ヘッド7に連通し、インクの供給が可能になる。
なお、インクタンク8aには、それぞれC(シアン)、
M(マゼンタ)、Y(イエロー)、K(黒:ブラック)
の各色のインクが充填されている。
The carriage 32 is integrally provided with a print head 7 for printing on the tape T at a lower portion thereof and a cartridge holder 34 for mounting an ink cartridge 8 for supplying ink at an upper portion thereof. . In this case, the print head 7 is mounted downward,
The ink cartridge 8 is mounted on the cartridge holder 34 downward. When the ink cartridge 8 is mounted, the ink tank 8a of each color of the ink cartridge 8 is set.
Communicates with the print head 7, and ink can be supplied.
The ink tank 8a has C (cyan),
M (magenta), Y (yellow), K (black: black)
Ink of each color is filled.

【0101】また、キャリッジ32には図外の遮光板が
突設しており、フォトインタラプタなどから成るホーム
位置センサ142に臨むと、印刷ヘッド7がホーム位置
(図示せず)にあることを検出して、ゼロ点補正等の位
置補正を行うようになっている。このホーム位置は、印
刷ヘッド7の待機位置であるとともに、印刷のための基
準位置となっており、この基準位置からCRモータ12
2を所定のステップ数だけ回転させることにより、キャ
リッジ32をテープTの印刷範囲の幅方向の各位置に精
度良く移動させ、これと同期して印刷ヘッド7を駆動す
ることにより、テープTの表面に所望の印刷が行われ
る。
The carriage 32 is provided with a light shielding plate (not shown) protruding therefrom. When the carriage 32 faces a home position sensor 142 such as a photo interrupter, it detects that the print head 7 is at the home position (not shown). Then, position correction such as zero point correction is performed. The home position is a standby position for the print head 7 and a reference position for printing.
By rotating the print head 2 by a predetermined number of steps, the carriage 32 is accurately moved to each position in the width direction of the print range of the tape T, and the print head 7 is driven in synchronization with the carriage 32, whereby the surface of the tape T The desired printing is performed.

【0102】また、テープカートリッジ5には、ビット
パターン等による識別情報を示す識別プレート115が
設けられていて(図4参照)、キャリッジ32に搭載し
たテープ識別センサ141が識別プレート115に臨む
ことで、テープカートリッジ5、印刷テープT1および
ラミネートテープT2の種別や、個々の印刷テープT1
に対する印刷開始位置が、検出されるようになってい
る。以下、これらの検出信号を「テープ識別信号」とい
う。
The tape cartridge 5 is provided with an identification plate 115 indicating identification information based on a bit pattern or the like (see FIG. 4). The tape identification sensor 141 mounted on the carriage 32 faces the identification plate 115. , Tape cartridge 5, type of printing tape T1 and laminating tape T2, and individual printing tape T1
, The print start position is detected. Hereinafter, these detection signals are referred to as “tape identification signals”.

【0103】送り駆動ローラ43は装置本体2に設けら
れ、送り従動ローラ42はテープカートリッジ5に設け
られている。装置本体2にテープカートリッジ5を装着
すると、送り従動ローラ42が送り駆動ローラ43との
間に印刷テープT1を挟み込むようにして、これを押圧
する。そして、この状態でTFモータ121を回転させ
ることにより、送り従動ローラ42と送り駆動ローラ4
3との間に挟み込まれた印刷テープT1が先方に送られ
る。
The feed drive roller 43 is provided on the apparatus main body 2, and the feed driven roller 42 is provided on the tape cartridge 5. When the tape cartridge 5 is mounted on the apparatus main body 2, the feed driven roller 42 presses the print tape T1 so as to sandwich the print tape T1 between the feed drive roller 43 and the feed driven roller 42. By rotating the TF motor 121 in this state, the feed driven roller 42 and the feed drive roller 4
3 is sent to the other side.

【0104】ラミ駆動ローラ46は装置本体2に設けら
れ、ラミ従動ローラ45はテープカートリッジ5に設け
られている。装置本体2にテープカートリッジ5を装着
すると、ラミ従動ローラ45がラミ駆動ローラ46との
間に印刷テープT1およびラミネートテープT2を挟み
込むようにして、これらを押圧する。そして。この状態
でTFモータ121が回転することにより、ラミ従動ロ
ーラ45とラミ駆動ローラ46との間に挟み込まれた印
刷テープT1とラミネートテープT2とが、貼着しなが
ら先方に送られる。
The lami driving roller 46 is provided on the apparatus main body 2, and the lami driven roller 45 is provided on the tape cartridge 5. When the tape cartridge 5 is mounted on the apparatus main body 2, the lami driven roller 45 presses the printing tape T <b> 1 and the laminating tape T <b> 2 so as to sandwich the printing tape T <b> 1 and the laminating tape T <b> 2 between them. And. When the TF motor 121 rotates in this state, the printing tape T1 and the laminating tape T2 sandwiched between the lami driven roller 45 and the lami driving roller 46 are sent to the front while being adhered.

【0105】切断部13は、カッタ51とそれを切断動
作させるカッタモータ131とを備えている。印刷が完
了後には、テープT(印刷テープT1+ラミネートテー
プT2)は、TFモータ121によって所定距離だけス
テップ送りされてから停止するので、この停止と同時
に、カッタモータ131が駆動され、テープTの切断が
行われる。なお、テープ印刷装置1では、このカッタ5
1の切断動作を手動でも行えるように、カットキー34
0を設け、モード設定によって、自動/手動を切り替え
られるようにしている。
The cutting section 13 includes a cutter 51 and a cutter motor 131 for cutting the cutter 51. After the printing is completed, the tape T (printing tape T1 + laminate tape T2) is stopped after being stepped by a predetermined distance by the TF motor 121. At the same time, the cutter motor 131 is driven to cut the tape T. Is performed. In the tape printer 1, the cutter 5
Cut key 34 so that cutting operation 1 can be performed manually.
0 is provided so that the mode can be switched between automatic and manual.

【0106】図2に示すように、検出部14は、上述の
テープ識別センサ141、ホーム位置センサ142とを
備えている。前述のように、テープ識別センサ141
は、テープカートリッジ5やテープTの種別および印刷
開始位置を検出し、ホーム位置センサ142は、印刷ヘ
ッド7がホーム位置に達したことを検出し、それぞれの
検出信号(テープ識別信号、位置検出信号)を制御部2
00に入力する。なお、実状に合わせて、テープ印刷装
置1の各部に電力を供給する電源部290の電源ユニッ
トEUに接続されてその電位変動を検出する電圧セン
サ、周囲温度センサ、ヘッド表面温度センサ等の他のセ
ンサを設けることもできるし、一部を省略した構成とす
ることもできる。
As shown in FIG. 2, the detection unit 14 includes the above-described tape identification sensor 141 and home position sensor 142. As described above, the tape identification sensor 141
Detects the type of the tape cartridge 5 and the tape T and the print start position, and the home position sensor 142 detects that the print head 7 has reached the home position, and detects the respective detection signals (tape identification signal, position detection signal ) To control unit 2
Enter 00. In addition, according to the actual situation, other components such as a voltage sensor, an ambient temperature sensor, and a head surface temperature sensor that are connected to the power supply unit EU of the power supply unit 290 that supplies power to each unit of the tape printing apparatus 1 and detect a potential change thereof are provided. A sensor may be provided, or a configuration in which a part is omitted may be employed.

【0107】駆動部270は、ディスプレイドライバ2
71と、ヘッドドライバ272と、モータドライバ27
3とを備えている。ディスプレイドライバ271は、制
御部200から出力される制御信号に基づき、その指示
に従って、操作部11のディスプレイ4を駆動する。同
様に、ヘッドドライバ272は、制御部200の指示に
従って、印刷部12の印刷ヘッド7を駆動する。また、
モータドライバ273は、印刷部12のTFモータ12
1を駆動するTFモータドライバ273aと、CRモー
タ122を駆動するCRモータドライバ273bと、ポ
ンプモータ123を駆動するポンプモータドライバ27
3cと、切断部13のカッタモータ131を駆動するカ
ッタモータドライバ273dとを有し、同様に、制御部
200の指示に従って、各モータを駆動する。
The driving section 270 is provided for the display driver 2
71, a head driver 272, and a motor driver 27
3 is provided. The display driver 271 drives the display 4 of the operation unit 11 according to an instruction based on a control signal output from the control unit 200. Similarly, the head driver 272 drives the print head 7 of the printing unit 12 according to an instruction from the control unit 200. Also,
The motor driver 273 is a TF motor 12 of the printing unit 12.
1, a TF motor driver 273a for driving the CR motor 122, a CR motor driver 273b for driving the CR motor 122, and a pump motor driver 27 for driving the pump motor 123.
3c, and a cutter motor driver 273d for driving the cutter motor 131 of the cutting unit 13. Similarly, each motor is driven according to an instruction from the control unit 200.

【0108】操作部11は、キーボード3とディスプレ
イ4とを備えている。ディスプレイ4は、横方向(X方
向)約6cm×縦方向(Y方向)4cmの長方形の形状の内
側に、96ドット×64ドットの表示画像データを表示
可能な表示画面41を有し、ユーザがキーボード3から
データを入力して、文字(前述のようにキャラクタの意
味で使用)を配置した文字列画像やそれを含む印刷画像
を表現するマトリクスデータを作成・編集したり、その
結果等を視認したり、キーボード3から各種指令・選択
指示等を入力したりする際などに用いられる。
The operation section 11 has a keyboard 3 and a display 4. The display 4 has a display screen 41 capable of displaying 96 dots × 64 dots of display image data inside a rectangular shape of about 6 cm in the horizontal direction (X direction) × 4 cm in the vertical direction (Y direction). Data is input from the keyboard 3 to create and edit a character string image in which characters (used in the meaning of the character as described above) are arranged or matrix data representing a print image including the character string image, and visually check the result and the like. Or when inputting various commands, selection instructions, etc. from the keyboard 3.

【0109】キーボード3には、(いずれも図示しな
い)アルファベットキー群311、記号キー群312、
数字キー群313、平仮名や片仮名等の仮名キー群31
4、および外字を呼び出して選択するための外字キー群
315等を含む文字キー群31の他、各種の動作モード
などを指定するための機能キー群32などが配列されて
いる。
The keyboard 3 includes an alphabet key group 311 (not shown), a symbol key group 312,
Numeric key group 313, kana key group 31 such as hiragana and katakana
4 and a character key group 31 including an external character key group 315 for calling and selecting an external character, and a function key group 32 for designating various operation modes and the like.

【0110】機能キー群32には、(いずれも図示しな
い)電源キー320、印刷動作を指示するための印刷キ
ー321、文字サイズや装飾の種類など各種モード等や
各種フォーム等を切り換えるための選択画面を表示させ
るフォームキー322、その各種選択画面における各種
モード等の選択指示やテキスト入力時のデータ確定・改
行等のための選択キー323、印刷画像データの印刷色
やその中間色(混色)を指定するための色指定キー32
4、文字色や背景色を設定するための色設定キー32
5、並びに、それぞれ上(「↑」)、下(「↓」)、左
(「←」)、右(「→」)方向へのカーソル移動や表示
画面41の表示範囲を移動させるための4個のカーソル
キー330(330U、330D、330L、330
R:以下、「カーソル「↑」キー330U」等という)
が含まれる。
The function key group 32 includes a power key 320 (neither is shown), a print key 321 for instructing a printing operation, and a selection for switching between various modes such as character size and decoration type and various forms. A form key 322 for displaying a screen, a selection key for various modes on the various selection screens, a selection key 323 for data confirmation and line feed at the time of text input, and designation of a print color of print image data and an intermediate color (mixed color) thereof Color specification key 32
4. Color setting key 32 for setting text color and background color
5 and 4 for moving the cursor upward (“上”), downward (“↓”), left (“←”), right (“→”), and moving the display range of the display screen 41, respectively. Cursor keys 330 (330U, 330D, 330L, 330
R: hereinafter referred to as “cursor“ ↑ ”key 330U” etc.)
Is included.

【0111】機能キー群32には、さらに、各種指示を
取り消すための取消キー326、各キーの役割を変更し
たり、描画登録画像データの修正等に用いられるシフト
キー327、テキスト入力画面や選択画面と印刷画像デ
ータの表示画面(イメージ画面)とを相互に切り換える
ためのイメージキー328、印刷画像データとイメージ
画面に表示する表示画像データとの大きさの比率を変更
するための比率変更(ズーム)キー329、並びに、テ
ープTを手動でカットするためのカットキー340が含
まれる。
The function keys 32 further include a cancel key 326 for canceling various instructions, a shift key 327 used to change the role of each key, and to modify drawing registration image data, a text input screen and a selection screen. Key 328 for switching between a print image data and a display screen (image screen) of print image data, and a ratio change (zoom) for changing the size ratio between the print image data and the display image data displayed on the image screen A key 329 and a cut key 340 for manually cutting the tape T are included.

【0112】なお、当然ながら、一般的なキーボードと
同様に、これらのキー入力は、各キー入力毎に個別にキ
ーを設けて入力しても良いし、シフトキー327等と組
み合わせてより少ない数のキーを用いて入力しても良
い。ここでは、理解を容易にするために上記の分だけキ
ーがあるものとして説明する。
Naturally, similarly to a general keyboard, these key inputs may be input by providing individual keys for each key input, or may be performed in combination with a shift key 327 or the like to reduce the number of keys. You may input using a key. Here, in order to facilitate understanding, it is assumed that there are keys corresponding to the above.

【0113】図2に示すように、キーボード3は、上述
のような種々の指令およびデータを制御部200に入力
する。
As shown in FIG. 2, the keyboard 3 inputs various commands and data as described above to the control unit 200.

【0114】制御部200は、CPU210、ROM2
20、キャラクタジェネレータROM(CG−ROM)
230、RAM240、周辺制御回路(P−CON)2
50を備え、互いに内部バス260により接続されてい
る。
The control unit 200 includes a CPU 210, a ROM 2
20, character generator ROM (CG-ROM)
230, RAM 240, peripheral control circuit (P-CON) 2
50, and are connected to each other by an internal bus 260.

【0115】ROM220は、CPU210で処理する
制御プログラムを記憶する制御プログラム領域221の
他、仮名漢字変換テーブル(辞書)、色変換テーブル、
文字修飾テーブル、ディザマトリクス、所定の基本的な
(規定)ディザマスクなどを含む制御データを記憶する
制御データ領域222を有している。CG−ROM23
0は、テープ印刷装置1に用意されている文字等のフォ
ントデータを記憶していて、文字等を特定するコードデ
ータが与えられたときに、対応するフォントデータを出
力する。
The ROM 220 includes a control program area 221 for storing a control program to be processed by the CPU 210, a kana-kanji conversion table (dictionary), a color conversion table,
It has a control data area 222 for storing control data including a character modification table, a dither matrix, a predetermined basic (defined) dither mask, and the like. CG-ROM23
0 stores font data of characters and the like prepared in the tape printing apparatus 1 and outputs corresponding font data when code data for specifying the characters and the like is given.

【0116】RAM240は、電源キー320の操作に
より電源がオフにされても、記憶したデータを保持して
おくようにバックアップされていて、各種レジスタ群2
41、ユーザがキーボード3から入力した文字等のテキ
ストデータを記憶するテキストデータ領域242、表示
画面41の表示画像データを記憶する表示画像データ領
域243、印刷画像データを記憶する印刷画像データ領
域244、描画登録画像データを記憶する描画登録画像
データ領域245、処理中または処理結果のディザマス
クを記憶するディザマスク領域246、印刷色等の色パ
レット情報を記憶する色パレットデータ領域247、文
字展開バッファ(フォント色バッファ)、色変換バッフ
ァ、基本色別配置バッファ、印刷バッファなどの各種バ
ッファ領域248などの領域を有し、制御処理のための
作業領域として使用される。
The RAM 240 is backed up so as to retain the stored data even when the power is turned off by operating the power key 320.
41, a text data area 242 for storing text data such as characters input by the user from the keyboard 3, a display image data area 243 for storing display image data of the display screen 41, a print image data area 244 for storing print image data, A drawing registration image data area 245 for storing drawing registration image data, a dither mask area 246 for storing a dither mask during or after processing, a color pallet data area 247 for storing color pallet information such as print colors, and a character development buffer ( It has various buffer areas 248 such as a font color buffer, a color conversion buffer, an arrangement buffer for each basic color, and a print buffer, and is used as a work area for control processing.

【0117】P−CON250には、CPU21の機能
を補うとともに各種周辺回路とのインタフェース信号を
取り扱うための論理回路が、ゲートアレイやカスタムL
SIなどにより構成されて組み込まれている。例えば、
種々の計時を行うタイマ(TIM)251などもP−C
ON250内の機能として組み込まれている。このた
め、P−CON250は、検出部14の各種センサやキ
ーボード3と接続され、検出部14からの各種検出信号
およびキーボード3からの各種指令や入力データなどを
そのままあるいは加工して内部バス260に取り込むと
ともに、CPU210と連動して、CPU210等から
内部バス260に出力されたデータや制御信号を、その
ままあるいは加工して駆動部270に出力する。
The P-CON 250 includes a logic circuit for supplementing the function of the CPU 21 and handling interface signals with various peripheral circuits, such as a gate array and a custom L-type.
It is configured and incorporated by SI or the like. For example,
The timer (TIM) 251 that performs various timings is also a PC
It is incorporated as a function in ON250. Therefore, the P-CON 250 is connected to the various sensors of the detection unit 14 and the keyboard 3, and receives or processes various detection signals from the detection unit 14 and various commands and input data from the keyboard 3 to the internal bus 260. The data and control signals output from the CPU 210 and the like to the internal bus 260 are output to the drive unit 270 as they are or processed in cooperation with the CPU 210.

【0118】そして、CPU210は、上記の構成によ
り、ROM220内の制御プログラムに従って、P−C
ON250を介してテープ印刷装置1内の各部から各種
信号・データ等を入力し、CG−ROM230からのフ
ォントデータ、RAM240内の各種データ等を処理
し、P−CON250を介してテープ印刷装置1内の各
部に各種信号・データ等を出力することにより、印刷の
位置制御、表示画面41の表示制御等を行うとともに、
印刷ヘッド7を制御して所定の印刷条件でテープTに印
刷するなど、テープ印刷装置1全体を制御している。
Then, with the above-described configuration, the CPU 210 executes the PC in accordance with the control program in the ROM 220.
Various signals, data, and the like are input from each unit in the tape printer 1 via the ON 250, font data from the CG-ROM 230, various data in the RAM 240, etc. are processed, and the tape printer 1 via the P-CON 250 is processed. By outputting various signals, data, and the like to each part of the printer, printing position control, display control of the display screen 41, and the like are performed.
The entire tape printing apparatus 1 is controlled, for example, by controlling the print head 7 to print on the tape T under predetermined printing conditions.

【0119】次に、テープ印刷装置1の制御全体の処理
フローについて、図5を参照して説明する。電源キー3
20を押すこと(電源オン)により処理が開始すると、
同図に示すように、まず、テープ印刷装置1を、前回の
電源オフ時の状態に戻すために、退避していた各制御フ
ラグを復旧するなどの初期設定を行い(S1)、次に、
前回の表示画面を初期画面として表示する(S2)。
Next, the processing flow of the entire control of the tape printer 1 will be described with reference to FIG. Power key 3
When the process starts by pressing 20 (power on),
As shown in the figure, first, in order to return the tape printer 1 to the state at the time of the previous power-off, initial settings such as restoring the saved control flags are performed (S1).
The previous display screen is displayed as an initial screen (S2).

【0120】図5のその後の処理、すなわちキー入力か
否かの判断分岐(S3)および各種割込処理(S4)
は、概念的に示した処理である。実際には、テープ印刷
装置1では、初期画面表示(S2)が終了すると、キー
入力割込を許可し、キー入力割込が発生するまでは、そ
のままの状態を維持し(S3:No)、何らかのキー入
力割込が発生すると(S3:Yes)、それぞれの割込
処理に移行して(S4)、その割込処理が終了すると、
再度、その状態を維持する(S3:No)。
[0120] Subsequent processing in FIG. 5, that is, determination whether or not a key input has been made (S3) and various interrupt processing (S4).
Is a conceptual process. Actually, in the tape printer 1, when the initial screen display (S2) ends, the key input interrupt is permitted, and the state is maintained until a key input interrupt occurs (S3: No). When any key input interrupt occurs (S3: Yes), the process shifts to each interrupt process (S4), and when the interrupt process ends,
The state is maintained again (S3: No).

【0121】上述のように、テープ印刷装置1では、主
な処理を割込処理により行うので、印刷対象となる印刷
画像データができていれば、ユーザが任意の時点で印刷
キー321を押すことにより、印刷処理割込が発生し
て、印刷処理が起動され、その印刷画像データによる印
刷ができる。すなわち、印刷に至るまでの操作手順は、
ユーザが任意に選択できる。
As described above, in the tape printing apparatus 1, the main processing is performed by the interrupt processing. Therefore, if the print image data to be printed is prepared, the user can press the print key 321 at any time. As a result, a print processing interrupt occurs, the print processing is started, and printing can be performed using the print image data. That is, the operation procedure up to printing is
The user can arbitrarily select.

【0122】次に、テープ印刷装置1において採用して
いる画像作成・印刷処理、特にディザ処理について説明
する。まず、その原理を以下に説明する。
Next, an image creation / printing process, particularly a dithering process, employed in the tape printer 1 will be described. First, the principle will be described below.

【0123】例えば256階調の階調値をマトリクス要
素とするマトリクスデータ(以下「マトリクス」)で表
現された画像、すなわち、各画素毎にn値(この場合n
=256)の階調値情報を有する画像(階調画像)を、
より少ない(限定された)階調値の画像しか扱えない装
置に出力するためには、その階調値に適合した画像(疑
似階調画像)に変換する必要がある。そして、この画像
変換(圧縮)処理、すなわち疑似階調処理の方法(手
法)の1つとして、いわゆるディザ法がある。
For example, an image represented by matrix data (hereinafter referred to as "matrix") having 256 gradation values as matrix elements, that is, n values for each pixel (in this case, n
= 256) having the gradation value information (gradation image)
In order to output to an apparatus that can handle only an image with a smaller (limited) gradation value, it is necessary to convert the image into an image (pseudo gradation image) suitable for the gradation value. As one of the methods (techniques) of the image conversion (compression) processing, that is, the pseudo gradation processing, there is a so-called dither method.

【0124】このディザ法は、原画像の階調画像の各画
素の階調値に雑音を加えた後に2値化(2値ディザ法)
または限定された多値化(多値ディザ法)を行う手法で
あり、1つの領域内を平均化しまとめて1つの陰影や色
として認識する人間の目の特性を利用したものである。
例えば2値ディザ法では、階調画像の各画素の階調値に
合わせて2値(例えば1と0)の配分を変化させて(例
えば階調値に合わせて所定の規則でマトリクス内の
「1」を間引きして)、中間階調(例えば1と0を黒と
白としたときの灰色)を表現する。代表的な2値ディザ
法として、組織的ディザ法がある。
In this dither method, noise is added to the gradation value of each pixel in the gradation image of the original image, and then binarized (binary dither method).
Alternatively, this is a method of performing limited multi-valued (multi-valued dither method), which utilizes the characteristics of the human eye that averages and collects one area as one shadow or color.
For example, in the binary dither method, the distribution of binary values (for example, 1 and 0) is changed in accordance with the gradation value of each pixel of the gradation image (for example, ""1" is thinned out) to express an intermediate gradation (for example, gray when 1 and 0 are black and white). A typical binary dither method is an organized dither method.

【0125】組織的ディザ法では、原画像の階調画像の
各画素のn値(nは3以上の整数)の階調値のしきい値
をm値(mはn≧m≧2となる整数)で規定してマトリ
クス要素として配列したディザマトリクスを予め用意
し、原画像の階調画像(のマトリクス)をディザマトリ
クスのサイズのマトリクスに分割し、分割した各マトリ
クス毎にそのマトリクス要素の階調値とそれに対応する
ディザマトリクスのしきい値とを比較演算して、しきい
値が示す条件を満たすか否かを判別し、その判別結果に
従って2値のうちのいずれかを割り付けることにより、
2値のマトリクスで表現された疑似階調画像を作成す
る。例えば条件を満たすときは有効を示す値(例えば
1)、条件を満たさないときは無効を示す値(例えば
0)を割り付けて、2値(1および0)のマトリクスで
表現された疑似階調画像を作成する。
In the systematic dither method, the threshold value of the n-value (n is an integer of 3 or more) of each pixel of the gradation image of the original image is set to the m-value (m is n ≧ m ≧ 2). A dither matrix defined as an integer element and arranged as a matrix element is prepared in advance, the (gradation of) the gradation image of the original image is divided into matrices of the size of the dither matrix, and the matrix element is divided into matrices for each divided matrix. By comparing the tonal value and the threshold value of the corresponding dither matrix to determine whether or not the condition indicated by the threshold value is satisfied, and assigning one of the two values according to the determination result,
A pseudo gradation image represented by a binary matrix is created. For example, when a condition is satisfied, a value indicating validity (for example, 1) is assigned, and when the condition is not satisfied, a value indicating invalidity (for example, 0) is assigned. Create

【0126】なお、階調値としきい値の規定の仕方によ
り、例えばしきい値以上の階調値、しきい値を超える階
調値、しきい値以下の階調値、またはしきい値未満の階
調値などを、しきい値が示す条件を満たす階調値と規定
することができるが、以下では、階調値がしきい値以上
(階調値≧しきい値)のときに条件を満たすものを例に
挙げて説明する。もちろん、他の規定の仕方の場合も同
様の原理で処理できる。また、2値ディザ法として上述
の組織的ディザ法を用いるものとし、この2値ディザ法
による疑似階調処理(2値ディザ処理)について主に説
明する。
Depending on how the gradation value and the threshold value are defined, for example, a gradation value above the threshold value, a gradation value exceeding the threshold value, a gradation value below the threshold value, or below the threshold value. Can be defined as a gradation value that satisfies the condition indicated by the threshold value. In the following, the condition is satisfied when the gradation value is equal to or more than the threshold value (gradation value ≧ threshold value). An example that satisfies is described below. Of course, other prescribed methods can be processed according to the same principle. Further, the above-mentioned systematic dither method is used as the binary dither method, and the pseudo gradation processing (binary dither processing) by the binary dither method will be mainly described.

【0127】例えば、0〜15の16階調の階調値をマ
トリクス要素とするマトリクスで表現された画像、すな
わち各画素毎に16階調の階調値情報を有する画像(原
画像の階調画像)を2階調の階調値しか扱えない装置に
出力するために、16階調の階調画像を2階調の疑似階
調画像に変換(圧縮)する処理(2値ディザ処理)を行
う場合、まず、図6(a)に示すように、例えば4×4
のマトリクス要素を配列したディザマトリクスDD16
を用意する。すなわち、原画像の階調画像の各画素のn
値(ここでは、n=16)の階調値のしきい値をm値
(mはn≧m≧2となる整数:ここでは、1〜15の1
5値)で規定して4×4のマトリクス要素として配列し
たディザマトリクスDD16を予め用意する。
For example, an image represented by a matrix having 16 gradation values of 0 to 15 as matrix elements, that is, an image having 16 gradation value information for each pixel (gradation of the original image) Image) is converted (compressed) from a 16-gradation image to a 2-gradation pseudo-gradation image (binary dither processing) in order to output the image to a device that can handle only 2 gradation values. When performing this, first, for example, as shown in FIG.
Dither matrix DD16 in which the matrix elements of
Prepare That is, n of each pixel of the gradation image of the original image
The threshold value of the gradation value of the value (here, n = 16) is set to the m value (m is an integer satisfying n ≧ m ≧ 2: here, 1 of 1 to 15)
A dither matrix DD16 defined as (5 values) and arranged as 4 × 4 matrix elements is prepared in advance.

【0128】次に、原画像の階調画像を表現したマトリ
クスをディザマトリクスDD16のサイズ、すなわち4
×4のサイズのマトリクスに分割し、分割した各マトリ
クス毎にそのマトリクス要素の階調値とそれに対応する
ディザマトリクスのしきい値とを比較演算して、しきい
値が示す条件(ここでは、階調値≧しきい値)を満たす
か否かを判別し、その判別結果に従って2値のうちのい
ずれかを割り付けることにより、2値のマトリクスで表
現された疑似階調画像を作成する。
Next, the matrix expressing the gradation image of the original image is represented by the size of the dither matrix DD16,
The matrix is divided into matrices of size × 4, and for each of the divided matrices, the gradation value of the matrix element is compared with the threshold value of the corresponding dither matrix, and the condition indicated by the threshold value (here, It is determined whether or not the gradation value satisfies (gradation value ≧ threshold value), and one of the two values is assigned according to the result of the determination, thereby generating a pseudo-tone image represented by a binary matrix.

【0129】例えば原画像の階調画像を表現したマトリ
クス(以下「入力マトリクス」)を4×4のサイズに分
割したマトリクスのうちの1つ(以下「分割入力マトリ
クス」)が同図(b)に示す分割入力マトリクスIG4
であるとき、この分割入力マトリクスIG4のマトリク
ス要素の階調値は全て「4」なので、ディザマトリクス
DD16の「1」〜「4」のしきい値が示す条件のみを
満足する。
For example, one of the matrices obtained by dividing a matrix (hereinafter referred to as an “input matrix”) representing a gradation image of an original image into a 4 × 4 size (hereinafter referred to as a “divided input matrix”) is shown in FIG. Divided input matrix IG4 shown in
, The tone values of the matrix elements of the divided input matrix IG4 are all “4”, so that only the conditions indicated by the threshold values “1” to “4” of the dither matrix DD16 are satisfied.

【0130】この場合、ディザマトリクスDD16のマ
トリクス要素のうち、条件が満たされないマトリクス要
素を「0」、条件が満たされたマトリクス要素をそのし
きい値により表現すると(以下、このように表現したマ
トリクスを「成立しきい値マトリクス」という)、同図
(c)の成立しきい値マトリクスAG4のようになる。
また、この場合、条件を満たすときは有効を示す値(こ
こでは「1」)、条件を満たさないときは無効を示す値
(ここでは「0」)を割り付けて、2値(「1」および
「0」)のマトリクスで表現すると、同図(d)のマト
リクスBG4のようになる。
In this case, of the matrix elements of the dither matrix DD16, the matrix elements that do not satisfy the condition are represented by “0”, and the matrix elements that satisfy the condition are represented by the threshold (hereinafter, the matrix represented as above). Is referred to as an “established threshold matrix”), as shown in an established threshold matrix AG4 in FIG.
In this case, when the condition is satisfied, a value indicating validity (here, “1”) is assigned, and when the condition is not satisfied, a value indicating invalidity (here, “0”) is assigned, and two values (“1” and “1”) are assigned. When expressed by a matrix of “0”), it becomes like a matrix BG4 of FIG.

【0131】このマトリクスBG4は、2値ディザ処理
により作成する目的の疑似階調画像を表現するマトリク
ス(以下「出力マトリクス」)を4×4のサイズに分割
したマトリクスのうちの1つであり(以下この種のマト
リクスを「分割出力マトリクス」という)、分割入力マ
トリクスIG4に対する2値ディザ処理結果のマトリク
スである。そして、この分割出力マトリクスBG4で表
現された画像は、「1」を黒、「0」を白としたとき
に、同図(e)の分割画像PG4となる。
The matrix BG4 is one of matrices obtained by dividing a matrix (hereinafter referred to as an "output matrix") representing a target pseudo-tone image created by binary dither processing into a 4 × 4 size. Hereinafter, this type of matrix is referred to as a “split output matrix”), which is a matrix of the binary dither processing result for the split input matrix IG4. Then, the image represented by the divided output matrix BG4 becomes the divided image PG4 in FIG. 3E when "1" is black and "0" is white.

【0132】この分割画像PG4は、目的の疑似階調画
像を4×4(例えば4ドット×4ドット)に分割した画
像の1つであり、「0」〜「15」の16階調の階調値
情報を有する階調画像のうち、「4」の階調値を有する
一部(分割入力マトリクスIG4で表現された4ドット
×4ドットの画像)を擬似的に2値の画像に変換した画
像である。
The divided image PG4 is one of images obtained by dividing the target pseudo gradation image into 4 × 4 (for example, 4 dots × 4 dots), and has 16 gradations of “0” to “15”. Of the gradation image having the tone value information, a part having a gradation value of “4” (an image of 4 dots × 4 dots represented by the divided input matrix IG4) was pseudo-converted into a binary image. It is an image.

【0133】同様にして、「0」〜「15」の16階調
の階調値情報を有する階調画像を表現した入力マトリク
スのうち、全て「8」の階調値を有する一部を4×4の
マトリクスで表現した分割入力マトリクスIG8に対し
て2値ディザ処理を行うと、同図に示すように、そのと
きの成立しきい値マトリクスAG8、分割出力マトリク
スBG8、分割画像PG8のようになる。全て「0」の
階調値を有する一部を4×4のマトリクスで表現した分
割入力マトリクスIG0、全て「12」の階調値を有す
る一部を4×4のマトリクスで表現した分割入力マトリ
クスIG12、および、全て「15」の階調値を有する
一部を4×4のマトリクスで表現した分割入力マトリク
スIG15に対しても同様にして、成立しきい値マトリ
クスAG0、AG12およびAG15、分割出力マトリ
クスBG0、BG12およびBG15、分割画像PG
0、PG12およびPG15が得られる。
Similarly, of input matrices expressing gradation images having gradation value information of 16 gradations of “0” to “15”, a part having gradation values of “8” is replaced with 4 parts. When the binary dither processing is performed on the divided input matrix IG8 expressed by the × 4 matrix, as shown in the drawing, as shown in the drawing, the established threshold matrix AG8, the divided output matrix BG8, and the divided image PG8 are obtained. Become. A divided input matrix IG0 in which a part having all the gradation values of “0” is represented by a 4 × 4 matrix, and a divided input matrix in which a part having all the gradation values of “12” is represented by a 4 × 4 matrix Similarly, for the IG12 and the divided input matrix IG15 in which a part having all the gradation values of “15” are expressed by a 4 × 4 matrix, the threshold threshold matrices AG0, AG12 and AG15, and the divided outputs Matrices BG0, BG12 and BG15, divided image PG
0, PG12 and PG15 are obtained.

【0134】上述の場合、4×4のマトリクスで示され
た階調値が全て同一の階調値であったが、4×4のマト
リクスで示された階調値に種々の階調値が含まれていて
も、成立しきい値マトリクスが得られるので、同様に処
理できる。また、多値ディザ処理では、画像変換(圧
縮)後の画像、すなわち疑似階調画像が、2値のマトリ
クスで表現された画像(2値画像)ではなく、3値以上
の多階調値のマトリクスで表現された画像(多値画像)
とするが、2値ディザ処理と同様に処理できる。
In the above case, the gradation values shown in the 4 × 4 matrix are all the same, but various gradation values are included in the gradation values shown in the 4 × 4 matrix. Even if it is included, the same threshold value matrix is obtained, so that the same processing can be performed. In the multi-value dither processing, an image after image conversion (compression), that is, a pseudo-tone image is not an image represented by a binary matrix (binary image), but a ternary or higher-order multi-tone value. Image represented by matrix (multi-valued image)
However, processing can be performed in the same manner as the binary dither processing.

【0135】例えば、0〜63の64階調の階調画像
(を表現した入力マトリクス)に多値ディザ処理を行っ
てその結果として多値の疑似階調画像(を表現した出力
マトリクス)を得るためには、図7(a)および(b)
に示すように、上記のディザマトリクスDD16と同様
のものを階調値の範囲によって複数個(ここでは4個)
用意しておき、それぞれ、0〜16の階調値に対して
ディザマトリクスDD64(1)、16〜32の階調
値に対してディザマトリクスDD64(2)、32〜
48の階調値に対してディザマトリクスDD64
(3)、48〜63の階調値に対してディザマトリク
スDD64(4)を適用する。また、上記の結果の2
値を、条件不成立(階調値<しきい値)のときには0、
および条件成立(階調値≧しきい値)のときには1と
し、同様にの結果の2値を1(不成立)および2(成
立)、の結果の2値を2(不成立)および3(成
立)、の結果の2値を3(不成立)および4(成立)
と規定する。
For example, multi-value dither processing is performed on a 64-gradation image (input matrix expressing 64 gradations) from 0 to 63, and as a result, a multi-value pseudo gradation image (output matrix expressing) is obtained. 7 (a) and (b)
As shown in the figure, a plurality of the same dither matrices DD16 (four in this case) are selected according to the range of the gradation value.
The dither matrices DD64 (1) for the gradation values of 0 to 16 and the dither matrices DD64 (2), 32 to 32 for the gradation values of 16 to 32, respectively, are prepared.
A dither matrix DD64 for 48 tone values
(3) The dither matrix DD64 (4) is applied to the gradation values of 48 to 63. In addition, 2 of the above result
The value is set to 0 when the condition is not satisfied (gradation value <threshold value),
When the condition is satisfied (gradation value ≧ threshold value), it is set to 1, and the two values of the same result are 1 (unsatisfied) and 2 (satisfied), and the two values of the result are 2 (unsatisfied) and 3 (satisfied). , 3 (not satisfied) and 4 (qualified)
It is prescribed.

【0136】ここで、同図(d)に示す分割入力マトリ
クスIGrを考える。この場合、分割入力マトリクスI
Grの左下の4つのマトリクス要素(同図(c)のマト
リクスIGr(1)参照)が示す階調値は0〜16の
階調値の範囲なので、ディザマトリクスDD64(1)
を適用して、階調値「7」としきい値「4」(≧:成
立:結果「1」)、階調値「9」としきい値「11」
(<:不成立:結果「0」)、階調値「10」としきい
値「13」(<:不成立:結果「0」)、階調値「8」
としきい値「7」(≧:成立:結果「1」)のそれぞれ
の比較を行うことにより、その比較結果として、同図
(d)に示す分割出力マトリクスEGrの左下の4つの
マトリクス要素の値を得られる。
Here, consider the divided input matrix IGr shown in FIG. In this case, the divided input matrix I
Since the gradation values indicated by the four lower left matrix elements of Gr (see the matrix IGr (1) in FIG. 3C) are in the range of gradation values of 0 to 16, the dither matrix DD64 (1)
Is applied, the gradation value “7” and the threshold value “4” (≧: established: result “1”), the gradation value “9” and the threshold value “11”
(<: Not established: result “0”), gradation value “10” and threshold value “13” (<: not established: result “0”), gradation value “8”
Is compared with the threshold value “7” (≧: established: result “1”). As a result of the comparison, the values of the four lower left matrix elements of the divided output matrix EGr shown in FIG. Can be obtained.

【0137】同様に、分割入力マトリクスIGrの右上
の4つのマトリクス要素(同図(c)のマトリクスIG
r(2)参照)が示す階調値は16〜32の階調値の
範囲なので、ディザマトリクスDD64(2)を適用し
て、階調値「26」としきい値「19」(≧:成立:結
果「2」)、階調値「24」としきい値「30」(<:
不成立:結果「1」)、階調値「23」としきい値「2
8」(<:不成立:結果「1」)、階調値「25」とし
きい値「23」(≧:成立:結果「2」)のそれぞれの
比較を行うことにより、その比較結果として、分割出力
マトリクスEGrの右上の4つのマトリクス要素の値が
得られる。なお、階調値が「16」のときは、上記のデ
ィザマトリクスDD64(1)およびディザマトリクス
DD64(2)のいずれを適用しても結果は同じ
(「1」)になる。
Similarly, the upper right four matrix elements of the divided input matrix IGr (the matrix IG in FIG.
Since the tone value indicated by r (2) is in the range of 16 to 32, the dither matrix DD64 (2) is applied, and the tone value “26” and the threshold value “19” (≧: established) : Result “2”, gradation value “24” and threshold value “30” (<:
Unsatisfied: result “1”), gradation value “23” and threshold value “2”
8 ”(<: not established: result“ 1 ”), the gradation value“ 25 ”and the threshold value“ 23 ”(≧: established: result“ 2 ”) are compared, and the comparison result is divided. The values of the four upper right matrix elements of the output matrix EGr are obtained. When the gradation value is “16”, the result is the same (“1”) regardless of whether any of the above dither matrix DD64 (1) and dither matrix DD64 (2) is applied.

【0138】同様に、分割入力マトリクスIGrの右下
の4つのマトリクス要素(同図(c)のマトリクスIG
r(3)参照)が示す階調値は32〜48の階調値の
範囲なので、ディザマトリクスDD64(3)を適用
し、分割入力マトリクスIGrの左上の4つのマトリク
ス要素(同図(c)のマトリクスIGr(4)参照)が
示す階調値は48〜63の階調値の範囲なので、ディ
ザマトリクスDD64(4)を適用して、それぞれの比
較を行うことにより、その比較結果として、分割出力マ
トリクスEGrの右下の4つおよび左上の4つのマトリ
クス要素の値が得られる。なお、階調値が「32」のと
きは、上記のディザマトリクスDD64(2)およびデ
ィザマトリクスDD64(3)のいずれを適用しても結
果は同じ(「2」)になり、階調値が「48」のとき
は、上記のディザマトリクスDD64(3)およびディ
ザマトリクスDD64(4)のいずれを適用しても結果
は同じ(「3」)になる。
Similarly, the lower right four matrix elements of the divided input matrix IGr (the matrix IG in FIG.
Since the gradation value indicated by r (3) is in the range of the gradation value of 32 to 48, the dither matrix DD64 (3) is applied, and four matrix elements at the upper left of the divided input matrix IGr (FIG. The matrix IGr (4) has a grayscale value in the range of 48 to 63. Therefore, the dither matrix DD64 (4) is applied, and the respective comparisons are performed. The values of the four lower right and upper left matrix elements of the output matrix EGr are obtained. When the tone value is “32”, the result is the same (“2”) regardless of the application of any of the above dither matrix DD64 (2) and dither matrix DD64 (3), and the tone value is In the case of “48”, the result is the same (“3”) regardless of whether the dither matrix DD64 (3) or the dither matrix DD64 (4) is applied.

【0139】上述の分割出力マトリクスEGrは、多値
(ここでは5値)ディザ処理により作成する疑似階調画
像を表現する出力マトリクスを4×4のサイズに分割し
たマトリクスのうちの1つに相当し、分割入力マトリク
スIGrに対する多値ディザ処理結果のマトリクスであ
る。すなわち、0〜63の64階調の階調画像(を表現
した入力マトリクス)に多値ディザ処理を行った結果の
多値の疑似階調画像(を表現した出力マトリクス)の一
部である。なお、多値(例えば5値)の疑似階調画像に
対しさらに2値ディザ法を用いて、最終的に2値の疑似
階調画像を得ることもできる。すなわち、上述の分割出
力マトリクスEGrのように多値(5値)で表現された
マトリクスに対して、さらに2値ディザ処理を行えばよ
い。
The above-described divided output matrix EGr corresponds to one of matrices obtained by dividing an output matrix representing a pseudo gradation image created by multi-value (here, quinary) dither processing into 4 × 4 size. Then, it is a matrix of a multi-value dither processing result for the divided input matrix IGr. That is, it is a part of a multi-valued pseudo-gradation image (an output matrix that represents a multi-valued image) as a result of performing a multi-value dither process on a 64-tone gradation image (an input matrix that represents a 0 to 63). Note that a binary pseudo-gradation image can be finally obtained by further using a binary dither method for a multi-valued (for example, 5-valued) pseudo-gradation image. That is, binary dither processing may be further performed on a matrix represented by multiple values (five values) as in the above-described divided output matrix EGr.

【0140】この場合、同図(e)に示すように、例え
ば2×2のディザマトリクスDD5を用意し、例えば分
割出力マトリクスEGrをディザマトリクスDD5と同
一サイズの2×2のマトリクスに分割し、2×2の対応
する各マトリクス要素同士を比較して、条件が成立(階
調値≧しきい値)するか不成立(階調値<しきい値)か
を判別し、成立したときを1、不成立のときを0とする
ことにより、比較結果として、同図(d)の2値の分割
出力マトリクスBGrが得られる。また、この場合の対
応する分割画像は、同図の分割画像PGrのようにな
る。
In this case, as shown in FIG. 14E, for example, a 2 × 2 dither matrix DD5 is prepared. For example, the divided output matrix EGr is divided into a 2 × 2 matrix having the same size as the dither matrix DD5. 2 × 2 corresponding matrix elements are compared with each other to determine whether a condition is satisfied (gradation value ≧ threshold value) or not (gradation value <threshold value). By setting 0 when the condition is not satisfied, a binary divided output matrix BGr shown in FIG. The corresponding divided image in this case is like the divided image PGr in FIG.

【0141】また、上述の場合、64階調の階調画像を
多値(5値)の疑似階調画像に変換し、さらにそれを2
値の疑似階調画像に変換したが、0〜63の64値でし
きい値を規定して例えば8×8のマトリクス要素として
配列したディザマトリクスを用意して、64階調から直
接2階調にすることもできる。すなわち、「64階調→
5階調→2階調」のディザ処理の代わりに「64階調→
2階調」のディザ処理を行うこともできる。
In the above case, the 64-gradation image is converted into a multi-valued (5-valued) pseudo gradation image, which is further converted to a 2-valued gradation image.
The image was converted to a pseudo-tone image of the value, but a threshold value was defined by 64 values from 0 to 63, and a dither matrix arranged as, for example, an 8 × 8 matrix element was prepared. You can also That is, “64 gradations →
Instead of the dither processing of “5 gradations → 2 gradations”, “64 gradations →
It is also possible to perform dither processing of "two gradations".

【0142】また同様に、0〜255の256階調の階
調画像を対象として、例えば0〜64、64〜12
8、128〜192、および、192〜255の4
段階に分割し、各段階に対するディザマトリクスを用意
し、例えば上記の結果の2値を0および1、の結果
の2値を1および2、の結果の2値を2および3、
の結果の2値を3および4と規定して、各段階に対して
2値ディザ処理を行えば(各段階に対して組織的ディザ
法を適用すれば)、結果として0〜4の5値の疑似階調
画像を作成できる。もちろん、この多値(例えば5値)
の疑似階調画像に対しさらに2値ディザ法を用いて、最
終的に2値の疑似階調画像を得ることもできる。
Similarly, for a gradation image of 256 gradations of 0 to 255, for example, 0 to 64, 64 to 12
8, 128-192 and 192-255-4
A dither matrix is prepared for each stage, and for example, the binary of the above result is 0 and 1, the binary of the result is 1 and 2, the binary of the result is 2 and 3,
Is defined as 3 and 4, and binary dither processing is performed for each stage (when the systematic dither method is applied to each stage). Can be created. Of course, this multi-level (for example, 5-level)
Further, a binary pseudo gradation image can be finally obtained by using the binary dither method for the pseudo gradation image of.

【0143】上述のディザ処理は、モノクロ画像(濃淡
の階調値を有する階調画像)ばかりでなく、カラー画像
に対しても適用できる。すなわち、カラー3原色等の基
本色の各階調値に関するディザ処理(カラーディザ処
理)を行えば良い。例えば疑似階調画像をディスプレイ
等に出力する表示画像として作成する場合には、R(レ
ッド)、G(グリーン)およびB(ブルー)の3原色の
RGB各色の階調値に関するディザ処理を行い、印刷の
ための印刷画像として作成する場合には、C(シア
ン)、M(マゼンタ)、Y(イエロー)の3原色のCM
Y各色の階調値に関するディザ処理、またはさらにK
(ブラック)を加えたCMYKの4基本色の階調値に関
するディザ処理を行えば良い。
The above-described dither processing can be applied not only to a monochrome image (a gradation image having gradation values of light and shade) but also to a color image. That is, dither processing (color dither processing) for each gradation value of the basic colors such as the three primary colors may be performed. For example, when creating a pseudo-gradation image as a display image to be output to a display or the like, dither processing is performed on the gradation values of the three primary colors RGB of R (red), G (green), and B (blue), To create a print image for printing, CMs of three primary colors of C (cyan), M (magenta), and Y (yellow)
Dither processing for gradation values of each Y color, or K
Dither processing may be performed on the gradation values of the four basic colors of CMYK to which (black) has been added.

【0144】例えばパソコン等で作成した多階調(例え
ば256階調)の階調画像を、カラーではあっても各色
2階調の画像しか扱えない印刷装置(プリンタ等)に出
力する場合、3原色のCMY各色の階調値に関するディ
ザ処理、またはさらにK(ブラック)を加えたCMYK
の4基本色の階調値に関するディザ処理を行うことにな
る。サーマル方式等においても同様であるが、ここでは
テープ印刷装置1に合わせていわゆるインクジェット方
式のプリンタを想定すると、この場合の処理は、例えば
図31に示すようになる。
For example, when a multi-tone image (for example, 256 tones) created by a personal computer or the like is output to a printing device (such as a printer) that can handle only two-tone images of each color even if it is a color image, 3 Dither processing for gradation values of CMY primary colors or CMYK to which K (black) is further added
The dither processing for the gradation values of the four basic colors is performed. The same applies to the thermal method and the like, but here, assuming a so-called ink jet printer in accordance with the tape printer 1, the processing in this case is as shown in FIG. 31, for example.

【0145】同図に示すように、従来のこの種の画像作
成・印刷処理(S90)では、まず、パソコン上で画像
(階調画像)を作成し(S91)、印刷キー等により印
刷を指定すると(S92)、次に、その作成された階調
画像(を表現する入力マトリクス)をCMY各色に分解
した階調画像(を表現する入力マトリクス)を抽出して
(S93)、各色別に作業領域内に保存し(S94)、
ディザマトリクスとの比較演算によるディザ処理を行っ
てから(S95)、3色の同一ポイント抽出によりK
(黒:ブラック)データを作成し(S96)、色別にイ
ンクを出力して(S97)、処理(S90)を終了する
(S98)。なお、パソコンに接続されたディスプレイ
等の表示装置に出力する場合、例えば上記の処理(S9
0)において、CMYをRGBに変更して(S93、S
94)、印刷指定(S92)、Kデータ作成(S96)
およびインク出力(S97)を省略した処理となる。
As shown in the figure, in this kind of conventional image creation / printing processing (S90), first, an image (gradation image) is created on a personal computer (S91), and printing is designated by a print key or the like. Then (S92), the created tone image (input matrix for expressing) is then separated into CMY colors to extract a tone image (input matrix for expressing) (S93), and a work area for each color is extracted. (S94),
After performing dither processing by comparison operation with the dither matrix (S95), K is extracted by extracting the same point of three colors.
(Black: black) data is created (S96), ink is output for each color (S97), and the process (S90) ends (S98). When outputting to a display device such as a display connected to a personal computer, for example, the above processing (S9
0), CMY is changed to RGB (S93, S93
94), print designation (S92), K data creation (S96)
And the process omitting the ink output (S97).

【0146】ところで、例えばワープロ等において、文
字、数字、記号、図形等を含むキャラクタ等(以下、
「文字」で代表する)を入力し、各文字を要素とする文
字列等を表示したり印刷したりする場合、色指定等の最
小単位は文字である。また、反転文字の場合や背景色を
設定可能な場合等では、文字の背景側への色指定等もで
きる。また、この場合、表示画像や印刷画像として作成
される文字列の画像を全体画像とすると、その文字列に
含まれる各文字の画像はその全体画像の要素画像とな
る。
By the way, for example, in a word processor or the like, characters including letters, numbers, symbols, figures, etc.
When a character string (represented by “character”) is input and a character string or the like having each character as an element is displayed or printed, the minimum unit such as color designation is a character. In the case of a reversed character or a case where the background color can be set, the color of the character on the background side can be specified. In this case, if an image of a character string created as a display image or a print image is an entire image, an image of each character included in the character string is an element image of the entire image.

【0147】この場合、各要素画像について、要素画像
の本体となる文字の形状の画像を要素本体画像、その背
景の画像を要素背景画像とすると、表示画像や印刷画像
上、各要素画像の画素のうちの要素本体画像の画素とそ
の背景になる要素背景画像の画素とは、視認により判別
可能であり、これに対応して、データ処理上も、要素画
像を表現するマトリクスのマトリクス要素のうち、要素
本体画像の画素に対応するマトリクス要素と、要素背景
画像の画素に対応するマトリクス要素とは、区分可能で
ある。また、この場合、要素本体画像と要素背景画像に
は個別の階調値が設定され、要素本体画像の全画素は同
一階調値となり、それとは別の階調値で要素背景画像の
全画素も同一階調値となる。なお、上述の反転文字等の
場合、文字の背景側を要素本体画像、文字側を要素背景
画像と見ることもできる。
In this case, for each element image, if the image of the character shape that is the main body of the element image is the element body image and the background image is the element background image, the pixel of each element image is displayed on the display image or print image. The pixels of the element body image and the pixels of the element background image serving as the background can be visually discriminated, and correspondingly, in data processing, of the matrix elements of the matrix representing the element image, The matrix element corresponding to the pixel of the element body image and the matrix element corresponding to the pixel of the element background image can be distinguished. Also, in this case, individual tone values are set for the element body image and the element background image, all pixels of the element body image have the same tone value, and all the pixels of the element background image have a different tone value. Also have the same gradation value. In the case of the above-described inverted characters, the background side of the character can be regarded as the element body image, and the character side can be regarded as the element background image.

【0148】また、いわゆる文字入力装置としてのワー
プロ等ばかりでなく、任意の線図や絵柄等を描画入力で
きる描画入力装置(描画(デザイン)ソフトを搭載した
パソコン等を含む)でも同様の画像が作成される。すな
わち、例えば全体画像のうちの任意の1の線図や絵柄に
その濃淡や色を指定した場合も、その任意の1の線図や
絵柄の画像は要素画像であり、その本体となる線図や絵
柄の形状の画像は要素本体画像に相当し、その背景にな
る要素背景画像とは区分可能であり、少なくとも要素本
体画像の全画素が同一階調値となる。また、いかに複雑
な描画画像も、少なくとも要素本体画像の全画素が同一
階調値の要素画像を合成した合成画像(全体画像)と見
て、各要素画像に分解でき、各要素画像を見れば、その
要素画像の要素本体画像とそれ以外の要素背景画像に分
解でき、要素本体画像と要素背景画像とは区分可能であ
り、少なくとも要素本体画像の全画素が同一階調値とな
る。なお、感覚的には背景側と見られる画像も、見方を
変えれば、本体側となる。
In addition to a word processor or the like as a so-called character input device, a similar image can be obtained by a drawing input device (including a personal computer equipped with drawing (design) software) capable of drawing and inputting an arbitrary diagram or picture. Created. That is, for example, even when the density and color are specified for an arbitrary diagram or pattern in the whole image, the image of the arbitrary diagram or pattern is an element image, and An image in the shape of a picture or a pattern is equivalent to an element main body image, and can be distinguished from an element background image as the background, and at least all pixels of the element main body image have the same gradation value. Also, any complicated drawing image can be decomposed into each element image, assuming that at least all the pixels of the element body image are element images having the same gradation value as the composite image (whole image). The element body image of the element image can be decomposed into an element body image and another element background image, and the element body image and the element background image can be distinguished, and at least all the pixels of the element body image have the same gradation value. It should be noted that the image that is sensuously viewed as the background side is also the main body side if the viewpoint is changed.

【0149】そこで、要素画像の本体となる要素本体画
像の画素とその背景になる要素背景画像の画素とが区分
可能で、かつ少なくとも要素本体画像の全画素が同一階
調値の要素画像を、少なくとも1つ有する全体画像を対
象として、ディザ処理を行う場合について、以下に説明
する。まず、上述したディザ処理(2値ディザ処理や多
値ディザ処理)をそのまま適用した場合について説明す
る。
Therefore, an element image in which the pixels of the element body image serving as the body of the element image and the pixels of the element background image serving as the background can be distinguished, and at least all the pixels of the element body image have the same gradation value, A case in which dither processing is performed on the entire image having at least one image will be described below. First, a case where the above-described dither processing (binary dither processing or multi-value dither processing) is applied as it is will be described.

【0150】例えば、要素本体画像の全画素が0〜63
の64階調のうちの階調値「55」で同一階調値の場合
に、要素画像を表現した入力マトリクスを4×4のマト
リクスに分割した分割入力マトリクスの1つとして、そ
のうちの要素本体画像の輪郭内に対応する分割入力マト
リクスを考える。この場合、図8(a)に示すように、
階調値が全て「55」の4×4の分割入力マトリクスI
G55のようになる。これに対して、図7で前述の多値
(5値)ディザ処理を行うと、図8(a)の多値の分割
出力マトリクスEG55が得られ、さらに図7(e)の
ディザマトリクスDD5に基づいて2値ディザ処理を行
うと、2値の分割出力マトリクスBG55が得られ、対
応する分割画像PG55が得られる。
For example, if all pixels of the element body image are 0 to 63
In the case where the gradation value is “55” of the 64 gradations and the gradation value is the same, one of the divided input matrices obtained by dividing the input matrix expressing the element image into a 4 × 4 matrix is used as an element main body. Consider a divided input matrix corresponding to the inside of the contour of the image. In this case, as shown in FIG.
4 × 4 divided input matrix I with all gradation values “55”
It looks like G55. On the other hand, when the above-described multi-valued (5-valued) dither processing is performed in FIG. 7, a multi-valued divided output matrix EG55 in FIG. 8A is obtained, and further, the dither matrix DD5 in FIG. When the binary dither processing is performed based on the binary divided output matrix BG55, a corresponding divided image PG55 is obtained.

【0151】同様に、要素本体画像の全画素が同一階調
値「35」の場合の要素本体画像の輪郭内の4×4の分
割入力マトリクスを考えると、図9(a)に示すよう
に、階調値が全て「35」の4×4の分割入力マトリク
スIG35のようになり、多値(5値)ディザ処理を行
うと、多値の分割出力マトリクスEG35が得られ、さ
らに2値ディザ処理を行うと、2値の分割出力マトリク
スBG35が得られ、対応する分割画像PG35が得ら
れる。
Similarly, considering a 4 × 4 divided input matrix within the contour of the element body image when all pixels of the element body image have the same gradation value “35”, as shown in FIG. When the multi-valued (5-valued) dither processing is performed as in a 4 × 4 divided input matrix IG35 in which all gradation values are “35”, a multi-valued divided output matrix EG35 is obtained. When the processing is performed, a binary divided output matrix BG35 is obtained, and a corresponding divided image PG35 is obtained.

【0152】一方、要素本体画像の全画素が同一階調値
「35」の場合の要素本体画像の輪郭線Lの一部を含む
4×4の分割入力マトリクスを考えると、図10(a)
に示すように、階調値が全て「35」の要素本体画像の
輪郭線L内のマトリクス要素と、輪郭線L外、すなわち
階調値x(ここでは理解しやすいようにx=0とする)
の要素背景画像のマトリクス要素を含む4×4の分割入
力マトリクスIG35Sのようになり、図7で前述の多
値(5値)ディザ処理を行うと、輪郭線Lの一部を含む
多値の分割出力マトリクスEG35Sが得られ、さらに
図7(e)のディザマトリクスDD5に基づいて2値デ
ィザ処理を行うと、2値の分割出力マトリクスBG35
Sが得られ、対応する分割画像PG35Sが得られる。
On the other hand, considering a 4 × 4 divided input matrix including a part of the contour line L of the element body image when all pixels of the element body image have the same gradation value “35”, FIG.
As shown in the figure, the matrix elements inside the contour line L of the element body image whose gradation values are all “35” and the outside of the contour line L, that is, the gradation value x (x = 0 here for easy understanding) )
A multi-valued (quinary) dither process described above with reference to FIG. 7, which is a 4 × 4 divided input matrix IG35S including the matrix elements of the element background image of FIG. When the divided output matrix EG35S is obtained and the binary dither processing is performed based on the dither matrix DD5 in FIG. 7E, the binary divided output matrix BG35 is obtained.
S is obtained, and the corresponding divided image PG35S is obtained.

【0153】しかしながら、上述のディザ処理では、3
値以上のn値(上述の例では64値)の階調値をマトリ
クス要素とするマトリクスで表現された階調画像、すな
わち、各画素毎にn値(この場合n=64)の階調値情
報を有する階調画像を、画像処理の対象とするので、大
きなメモリ容量を必要とする。もちろん、前述の256
階調の場合にはなおさらである。また、多値ディザ処理
では、ディザ処理結果としても多値(例えば5値)の疑
似階調画像のためのメモリ容量を必要とする。また、デ
ィザマトリクスとの比較演算を基本的な処理とするの
で、膨大な処理時間を必要とする。特にカラーディザ処
理では、各基本色毎に処理されるので、メモリ容量や処
理時間の問題が顕著となる。
However, in the above-described dither processing, 3
A gray-scale image represented by a matrix having n-valued (64-valued in the above example) gradation values as matrix elements, ie, n-valued (n = 64 in this case) gradation values for each pixel Since a gradation image having information is subjected to image processing, a large memory capacity is required. Of course, the aforementioned 256
This is especially true in the case of gradation. In addition, the multi-value dither processing requires a memory capacity for a multi-valued (for example, 5-valued) pseudo gradation image as a dither processing result. Further, since the comparison operation with the dither matrix is a basic process, an enormous processing time is required. In particular, in the color dither processing, since the processing is performed for each basic color, the problems of memory capacity and processing time become significant.

【0154】そこで、テープ印刷装置1では、要素画像
の本体となる要素本体画像の画素とその背景になる要素
背景画像の画素とが区分可能でかつ少なくとも要素本体
画像の全画素が同一階調値の要素画像を、少なくとも1
つ有する全体画像を対象として、メモリ容量の節約と処
理時間の短縮を図りつつ、ディザ処理を行うことができ
る画像処理方法を採用している。以下、この点について
詳述する。
Therefore, in the tape printing apparatus 1, the pixels of the element body image as the body of the element image and the pixels of the element background image as the background can be distinguished, and at least all the pixels of the element body image have the same gradation value. Element image of at least one
An image processing method capable of performing dither processing while reducing the memory capacity and shortening the processing time is adopted for the entire image having one image. Hereinafter, this point will be described in detail.

【0155】具体的には、テープ印刷装置1では、全体
画像の要素画像のうち、本体となる要素本体画像の画素
とその背景になる要素背景画像の画素とを区分可能な少
なくとも1つの要素画像について、要素本体画像の全画
素に、所定の2値のうちの有効を示す値を割り付け、要
素背景画像の全画素に、所定の2値のうちの無効を示す
値を割り付けることにより、所定の2値のマトリクスで
表現された要素形状画像を作成する。すなわち、要素本
体画像に有効を示す値(例えば1)、要素背景画像に無
効を示す値(例えば0)を割り付けた2値マトリクスで
表現された要素形状画像を作成する。
Specifically, in the tape printing apparatus 1, at least one element image capable of distinguishing a pixel of an element main image serving as a main body and a pixel of an element background image serving as a background in the element image of the whole image. By assigning a value indicating validity of predetermined binary values to all pixels of the element body image and allocating a value indicating invalidity of predetermined binary values to all pixels of the element background image, An element shape image represented by a binary matrix is created. That is, an element shape image expressed by a binary matrix in which a value (for example, 1) indicating validity is assigned to the element body image and a value (for example, 0) indicating invalidity is assigned to the element background image is created.

【0156】例えば図8(a)の分割入力マトリクスI
G55や図9(a)の分割入力マトリクスIG35は、
前述のように、要素本体画像の輪郭内、すなわち要素本
体画像の画素を表現するマトリクス要素のみで構成され
ているので、要素形状画像を表現するマトリクス(以下
「要素形状画像マトリクス」)のうちの分割入力マトリ
クスIG55、IG35に対応するマトリクス(以下
「分割要素形状画像マトリクス」)IS55、IS35
は、各図(b)に示すように、全て有効を示す値の
「1」を割り付けられたマトリクス要素のみで構成され
る。
For example, the divided input matrix I shown in FIG.
G55 and the divided input matrix IG35 of FIG.
As described above, since only the matrix elements that represent the pixels within the outline of the element main body image, that is, the pixels of the element main body image, are used, the matrix of the element shape image (hereinafter, “element shape image matrix”) Matrices corresponding to the divided input matrices IG55 and IG35 (hereinafter referred to as "divided element shape image matrices") IS55 and IS35
Is composed of only matrix elements to which a value “1” indicating all valid is assigned as shown in FIG.

【0157】また、図10(a)の分割入力マトリクス
IG35Sは、前述のように、要素本体画像の輪郭線L
の一部を含み、階調値が全て「35」の要素本体画像の
輪郭線L内のマトリクス要素と、輪郭線L外の階調値x
の要素背景画像のマトリクス要素を含んで構成されてい
るので、対応する分割要素形状画像マトリクスIS35
Sでは、同図(b)に示すように、要素本体画像の画素
に相当するマトリクス要素に有効を示す「1」が割り付
けられ、要素背景画像の画素に相当するマトリクス要素
に無効を示す「0」が割り付けられている。
As described above, the divided input matrix IG35S shown in FIG.
And a matrix element within the contour line L of the element body image whose gradation values are all “35”, and a gradation value x outside the contour line L
, The corresponding divided element shape image matrix IS35
In S, “1” indicating validity is assigned to a matrix element corresponding to a pixel of the element body image, and “0” indicating invalidity is assigned to a matrix element corresponding to a pixel of the element background image, as shown in FIG. Is assigned.

【0158】また、上述の図8〜図10の例の場合、要
素形状画像を作成する一方で、各図(c)に示すよう
に、要素本体画像の全画素に同一の指定階調値として、
n値(ここではn=64)のうちの1つの階調値を記憶
する。すなわち、図8の例では指定階調値KP55=階
調値「55」、図9および図10の例では指定階調値K
P35=階調値「35」を記憶する。これらの場合、指
定階調値を各画素の情報と別に記憶しても、各画素の情
報としては2値のいずれかを有すれば(記憶すれば)よ
いので、各画素単位で(各画素毎に)n値(n≧3:こ
こではn=64)の階調値情報を有するよりメモリ容量
は少なくて済む。
Further, in the case of the above-described examples of FIGS. 8 to 10, while the element shape image is created, as shown in FIG. ,
One gradation value of n values (here, n = 64) is stored. That is, in the example of FIG. 8, the designated gradation value KP55 = the gradation value “55”, and in the examples of FIGS. 9 and 10, the designated gradation value KP55.
P35 = store the gradation value “35”. In these cases, even if the designated gradation value is stored separately from the information of each pixel, it is sufficient if the information of each pixel has one of two values (if it is stored), so that each pixel unit (each pixel) The memory capacity can be reduced as compared with the case of having n value (n ≧ 3: n = 64 in this case) gradation value information.

【0159】例えば0〜63の値、すなわち64階調の
うちの1つを表現するためには、6ビットが必要なの
で、上記の4×4のマトリクスのマトリクス要素毎に6
ビットの情報を有するだけでも、単純に最低限6ビット
×16=96ビットのメモリ容量を必要とする。これに
対して、64階調のうちの1つの指定階調値をそのまま
1つの数値として記憶するのであれば、単純に4×4+
6=22ビットで良い。また、前者の場合、要素画像が
例えば8×8のマトリクスで表現されるだけでも4倍
(6ビット×64)、16×16のマトリクスならさら
にその4倍(6ビット×256)のメモリ容量が必要と
なるが、後者の場合、同一階調値の要素本体画像の指定
階調値である限り、要素本体画像のサイズに拘わらず、
指定階調値は1つだけ(上記の場合単純に6ビット)記
憶しておけば良いので、サイズが大きくなるほど、その
差は顕著になる。
For example, to represent a value of 0 to 63, that is, one of 64 gradations, 6 bits are required.
Even having bit information simply requires a memory capacity of at least 6 bits × 16 = 96 bits. On the other hand, if one designated gradation value of the 64 gradations is stored as one numerical value as it is, simply 4 × 4 +
6 = 22 bits. In the former case, even if the element image is simply represented by an 8 × 8 matrix, for example, the memory capacity is four times (6 bits × 64). It is necessary, but in the latter case, as long as the designated gradation value of the element body image having the same gradation value, regardless of the size of the element body image,
Since only one designated gradation value (simply 6 bits in the above case) needs to be stored, the difference becomes remarkable as the size increases.

【0160】なお、この場合、各画素毎にn値(上記の
場合n=64)の階調値情報を有する画像(階調画像)
に基づいて、上記の要素形状画像を作成しつつ指定階調
値を抽出しても良いし、最初から要素形状画像の作成と
指定階調値の指定とを個別に行っても良い。前述のパソ
コン等で作成された階調画像に基づく場合などには、前
者に該当する方法を採用し、ワープロ等において、文字
等をテキスト入力して、その文字毎に階調値を指定(濃
淡指定、色指定等)して要素画像とする場合などには、
後者に該当する方法を採用すれば良い。
In this case, an image (gradation image) having n-value (n = 64 in the above case) gradation value information for each pixel
The specified gradation value may be extracted while creating the element shape image, or the creation of the element shape image and the designation of the specified gradation value may be individually performed from the beginning. In the case of the above-described method based on a gradation image created by a personal computer or the like, the former method is adopted, and a character or the like is input as text in a word processor and the gradation value is designated for each character (shading). Specification, color specification, etc.)
What is necessary is just to employ | adopt the method corresponding to the latter.

【0161】また、このテープ印刷装置1では、ディザ
マトリクスと同一サイズの所定の2値のマトリクスで表
現されたディザマスクを記憶する。すなわち、ディザマ
トリクスの各しきい値のうちの指定階調値が条件を満た
すしきい値に対応するマトリクス要素に、所定の2値の
うちの有効を示す値を割り付け、条件を満たさないしき
い値に対応するマトリクス要素に、所定の2値のうちの
無効を示す値を割り付けたマトリクスをディザマスクと
して記憶する。
The tape printer 1 stores a dither mask expressed by a predetermined binary matrix having the same size as the dither matrix. That is, a value indicating the validity of predetermined two values is assigned to a matrix element corresponding to a threshold whose designated gradation value among the thresholds of the dither matrix satisfies the condition, and the threshold that does not satisfy the condition is assigned. Is stored as a dither mask in which a matrix element corresponding to is assigned a value indicating invalidity among predetermined two values.

【0162】この場合のディザマスクは、ディザマトリ
クスと同一サイズの所定の階調画像に上述のディザマト
リクスに基づく2値ディザ処理を行った結果の疑似階調
画像(のマトリクス)と一致する。すなわち、ディザマ
トリクスと同一サイズの階調画像が各画素毎にn値の階
調値情報を有し、かつ、その全画素の階調値情報が上記
の指定階調値を示しているときに、その階調画像の各画
素の階調値を上記のディザマトリクスの各しきい値と比
較して比較結果を2値化した場合の、演算結果のマトリ
クスと一致する。
In this case, the dither mask coincides with (a matrix of) a pseudo gradation image obtained by performing a binary dithering process based on the above dither matrix on a predetermined gradation image having the same size as the dither matrix. That is, when the gradation image of the same size as the dither matrix has n-value gradation value information for each pixel, and the gradation value information of all the pixels indicates the above specified gradation value. The gradation value of each pixel of the gradation image is compared with each threshold value of the dither matrix, and the result of the comparison is binarized with the matrix of the calculation result.

【0163】例えば図8の例の場合、指定階調値KP5
5=階調値「55」なので、図7(a)に示すディザマ
トリクスDD64(4)を適用して多値(5値)ディザ
処理を行い、さらに同図(e)のディザマトリクスDD
5を適用して2値ディザ処理を行えば、図8(a)の2
値の分割出力マトリクスBG55となるが、ここでは、
この分割出力マトリクスBG55と同一の値のマトリク
スをディザマスクDD64(55)として記憶する。図
9の例でも同様であり、指定階調値KP35=階調値
「35」なので、図7(a)に示すディザマトリクスD
D64(3)を適用して多値(5値)ディザ処理を行
い、さらに同図(e)のディザマトリクスDD5を適用
して2値ディザ処理を行えば、図9(a)の2値の分割
出力マトリクスBG35となるが、ここでは、この分割
出力マトリクスBG35と同一の値のマトリクスをディ
ザマスクDD64(35)として記憶する。
For example, in the case of FIG. 8, the designated gradation value KP5
Since 5 = gradation value “55”, multi-valued (5-valued) dither processing is performed by applying the dither matrix DD64 (4) shown in FIG. 7A, and the dither matrix DD shown in FIG.
5 is applied to perform the binary dither processing,
A value divided output matrix BG55 is obtained.
A matrix having the same value as the divided output matrix BG55 is stored as the dither mask DD64 (55). The same applies to the example of FIG. 9 where the designated gradation value KP35 = the gradation value “35”, so that the dither matrix D shown in FIG.
If D64 (3) is applied to perform a multi-valued (5-valued) dither process, and furthermore, a dither matrix DD5 shown in FIG. The divided output matrix BG35 is used. Here, a matrix having the same value as the divided output matrix BG35 is stored as the dither mask DD64 (35).

【0164】なお、この場合、考え得る指定階調値のそ
れぞれについてのディザマスクを予め記憶しておいても
良いし、指定階調値が判明した後に、ディザマトリクス
との比較演算により新たに作成して記憶しても良い。前
者の場合、例えば指定階調値として有り得るのは、0〜
63の64通りなので、例えばディザマスクDM64
(0)〜DM64(63)のように、各指定階調値0〜
63に対するディザマスクとして記憶しておけば、使用
するときに読み出せば良いだけなので、演算時間が省略
でき、画像処理全体の処理時間短縮が図れる。
In this case, a dither mask for each conceivable designated gradation value may be stored in advance, or after the designated gradation value is determined, a new dither matrix is created by comparison with a dither matrix. You may memorize. In the former case, for example, the specified gradation value can be 0 to 0.
Since there are 64 patterns of 63, for example, dither mask DM64
(0) to DM64 (63), each designated gradation value 0 to 0
If it is stored as a dither mask for 63, it is only necessary to read it out when it is used, so that the calculation time can be omitted and the processing time of the entire image processing can be shortened.

【0165】一方、後者の場合、例えば図8の場合に、
指定階調値「55」が判明した後に、それに適用される
図7(a)のディザマトリクスDD64(4)や同図
(e)のディザマトリクスDD5を適用し、図8(a)
の分割出力マトリクスBG35と同様に、比較演算によ
り新たにディザマトリクスDD64(55)として作成
して記憶することになる。しかし、この場合、上述のデ
ィザマスクDM64(0)〜DM64(63)のよう
に、考え得る指定階調値0〜63の64通りについて記
憶する必要がないので、ディザマスク記憶用のメモリ容
量を節約でき、また、ディザマトリクスのサイズの比較
演算なので、その処理時間も比較的短くて済む。
On the other hand, in the latter case, for example, in the case of FIG.
After the designated gradation value “55” is found, the dither matrix DD64 (4) shown in FIG. 7A or the dither matrix DD5 shown in FIG.
As in the case of the divided output matrix BG35, a new dither matrix DD64 (55) is created by comparison operation and stored. However, in this case, unlike the above-described dither masks DM64 (0) to DM64 (63), there is no need to store 64 possible designated gradation values 0 to 63, so that the memory capacity for dither mask storage is reduced. Since the operation can be saved and the dither matrix size is compared, the processing time can be relatively short.

【0166】また、このテープ印刷装置1では、要素形
状画像のディザマスクと同一サイズのマトリクス毎に、
各マトリクスとディザマスクとの対応するマトリクス要
素同士を対象として、双方が有効を示す値のときのみ有
効を示す値とする論理積演算を行うことにより、その論
理積演算の結果として、要素形状画像と同一サイズの所
定の2値のマトリクスで表現された要素ディザ画像を作
成する。
Further, in the tape printing apparatus 1, for each matrix having the same size as the dither mask of the element shape image,
By performing a logical product operation on each matrix element corresponding to each matrix and the dither mask as a value indicating valid only when both values are valid, an element shape image is obtained as a result of the logical product operation. To create an element dither image represented by a predetermined binary matrix of the same size as.

【0167】図8〜図10で上述の例の場合、要素形状
画像を表現するマトリクス(以下「要素形状画像マトリ
クス」)のうち、ディザマスクと同一サイズのマトリク
ス、すなわち4×4の分割マトリクス(以下「分割要素
形状画像マトリクス」)IS55、IS35、IS35
Sについてのみ、説明しているので、「ディザマスクと
同一サイズのマトリクス毎に」については後述するもの
とし、ここでは、論理積演算についてのみ説明する。
In the case of the example described above with reference to FIGS. 8 to 10, the matrix having the same size as the dither mask, that is, a 4 × 4 division matrix (hereinafter, referred to as an “element shape image matrix”) among the matrix expressing the element shape image Hereinafter, “divided element shape image matrix”) IS55, IS35, IS35
Since only S is described, “for each matrix of the same size as the dither mask” will be described later, and here, only the logical product operation will be described.

【0168】図8および図9の例では、前述のように、
分割要素形状画像マトリクスIS55、IS35が、各
図(b)に示すように、全て有効を示す値の「1」を割
り付けられたマトリクス要素のみで構成されているの
で、ディザマスクDD64(55)やDD64(35)
と論理積演算を行っても、ディザマスクDD64(5
5)やDD64(35)と同一の値の演算結果のマトリ
クスとなる。すなわち、演算結果の要素ディザ画像を表
現する出力マトリクス(以下「要素ディザ画像マトリク
ス」)のうちの分割要素形状画像マトリクスIS55、
IS35に対応する分割出力マトリクス(以下「分割要
素ディザ画像マトリクス」)は、図8および図9に示す
ように、ディザマスクDD64(55)、DD64(3
5)と同一のマトリクスとなる。
In the examples of FIGS. 8 and 9, as described above,
Since each of the divided element shape image matrices IS55 and IS35 is composed of only matrix elements to which the value “1” indicating validity is assigned, as shown in each diagram (b), the dither mask DD64 (55) DD64 (35)
And AND operation, the dither mask DD64 (5
5) and a matrix of operation results of the same value as DD64 (35). That is, the divided element shape image matrix IS55 in the output matrix (hereinafter, referred to as “element dither image matrix”) expressing the element dither image of the operation result,
As shown in FIG. 8 and FIG. 9, the divided output matrix corresponding to IS35 (hereinafter, “divided element dither image matrix”) includes dither masks DD64 (55) and DD64 (3).
This is the same matrix as 5).

【0169】一方、図10の例の場合、前述のように、
分割要素形状画像マトリクスIS35Sでは、同図
(b)に示すように、要素本体画像の画素に相当するマ
トリクス要素に有効を示す「1」が割り付けられ、要素
背景画像の画素に相当するマトリクス要素に無効を示す
「0」が割り付けられているが、同図(b)に示すよう
に、指定階調値KP35=階調値「35」に対応するデ
ィザマスクDD64(35)との論理積演算(図示では
「.AND.」で示す)、すなわち対応するマトリクス
要素同士を対象として、双方が有効を示す値(ここでは
「1」)のときのみ有効を示す値(「1」)とする論理
積演算を行うだけで、同図(a)で前述の多値ディザ処
理と2値ディザ処理における比較演算によって得られた
結果と同じ2値の分割出力マトリクス(分割要素ディザ
画像マトリクス)BG35Sが得られる。
On the other hand, in the case of the example of FIG. 10, as described above,
In the divided element shape image matrix IS35S, “1” indicating validity is assigned to a matrix element corresponding to a pixel of the element body image, and a matrix element corresponding to a pixel of the element background image is assigned, as shown in FIG. Although “0” indicating invalidity is assigned, as shown in FIG. 13B, a logical product operation with the designated gradation value KP35 = the dither mask DD64 (35) corresponding to the gradation value “35” ( In the figure, the logical product is expressed as “.AND.”), That is, a value (“1”) indicating the validity only when both of the corresponding matrix elements are valid values (here, “1”). Only by performing the operation, the same binary divided output matrix (divided element dither image matrix) BG as the result obtained by the comparison operation in the multi-value dither processing and the binary dither processing in FIG. 5S is obtained.

【0170】すなわち、従来なら、要素画像のディザマ
トリクスと同一サイズのマトリクス毎に、各マトリクス
の各画素の階調値とそれに対応するディザマトリクスの
しきい値とを比較して疑似階調画像を得るが、テープ印
刷装置1では、単に論理積演算でよいので、処理速度の
向上(処理時間の短縮)が図れる。また、その論理積演
算の入力(ディザマスク、要素形状画像マトリクス)も
出力(演算結果の要素ディザ画像)も2値マトリクスで
表現されるので、メモリ容量を節約できる。もちろん、
全体画像の一部の要素画像ばかりでなく、全体画像に対
しても同様の処理が可能な場合、すなわち全要素画像に
ついて要素本体画像と要素背景画像とが区分可能な場
合、全体画像に適用することにより、さらにメモリ容量
の節約および処理時間の短縮が図れる。以下、この要素
画像全体および全体画像に適用する場合について説明す
る。
That is, conventionally, for each matrix having the same size as the dither matrix of the elemental image, the tone value of each pixel of each matrix is compared with the threshold value of the corresponding dither matrix to form the pseudo tone image. However, since the tape printer 1 can simply perform a logical product operation, the processing speed can be improved (the processing time can be shortened). In addition, since the input (dither mask, element shape image matrix) and output (element dither image of the operation result) of the AND operation are expressed by a binary matrix, the memory capacity can be saved. of course,
When the same processing is possible not only for a part of the whole image but also for the whole image, that is, when the element body image and the element background image can be distinguished for all the element images, the method is applied to the whole image. This can further reduce the memory capacity and shorten the processing time. Hereinafter, a case where the present invention is applied to the whole element image and the whole image will be described.

【0171】なお、以下の説明では、図示およびその説
明の都合上(説明の効率上)、理解しやすいように、0
〜4の5階調の階調値を例にし(n=5)、ディザマト
リクスとして2×2のサイズのマトリクスを使用して説
明する。もちろん、上述した64階調や前述の256階
調のときにも、同様の原理で処理でき、また、ディザマ
トリクスとしても上述の4×4のサイズや前述の8×8
のサイズを利用することもできる。また、同様の理由か
ら、以下では、2×2のサイズのディザマトリクスとし
て、上述の説明で利用したディザマトリクスDD5(図
7(e)、図11(a)および図12(c)参照:全て
同じディザマトリクス)を利用する。なお、このような
場合、通常、上述の0〜63の64階調や0〜255の
256階調などのように、2進数としての情報の効率
上、0〜(2k −1)の2k (kは2以上の自然数)の
階調値とするが、以下では、説明の効率を優先して0〜
4の5階調とする。また、以下では、まず、モノクロ
(通常、白と黒:黒の濃淡)画像の場合について説明す
るが、その後にカラー画像について説明するので、図面
としては、後述のY(イエロー)の階調値の例を用いて
説明する。
In the following description, for convenience of illustration and description (for efficiency of description), 0 is used for easy understanding.
The description will be made using a 2 × 2 size matrix as a dither matrix, taking as an example (n = 5) five gradation values of up to 4. Of course, the same principle can be applied to the above-mentioned 64 gradations and the above-mentioned 256 gradations, and the above-mentioned 4 × 4 size and the above-mentioned 8 × 8
Sizes can also be used. For the same reason, the dither matrix DD5 used in the above description (refer to FIGS. 7 (e), 11 (a) and 12 (c)) will be described below as a 2 × 2 dither matrix. The same dither matrix). In such a case, usually, in terms of the efficiency of information as a binary number, such as 64 gradations from 0 to 63 and 256 gradations from 0 to 255, 2 to 0 to (2 k -1) k (k is a natural number of 2 or more).
It is assumed that there are four gradations of four. In the following, a case of a monochrome (usually, black and white: black and white) image will be described first, but a color image will be described later. This will be described using the example of FIG.

【0172】まず、図11に示すように、同図(a)の
ディザマトリクスDD5が予め定められ、0〜4の5階
調で表現される同図(b)のような階調画像(を表現し
た入力マトリクス)IMGを対象として、従来の方法に
より2値ディザ処理を行う場合について説明する。
First, as shown in FIG. 11, the dither matrix DD5 shown in FIG. 11A is determined in advance, and a gradation image (FIG. A description will be given of a case where binary dither processing is performed on an expressed input matrix (IMG) IMG by a conventional method.

【0173】同図に示すように、ここでは、数字の
「1」の文字画像の階調値が「4」、数字の「2」の文
字画像の階調値が「1」、数字の「3」の文字画像の階
調値が「2」となっていて、全体として文字列(数字
列)「123」の文字列画像が構成されている。この場
合、文字列「123」の文字列画像が全体画像に相当
し、(横)24×(縦)17の入力マトリクスIMGに
より表現されている。また、この全体画像を構成する要
素画像の1つが文字「1」の文字画像であり、(横)8
×(縦)17のマトリクスで表現され、同様にそれぞれ
要素画像の1つとして、文字「2」の文字画像および文
字「3」の文字画像があり、それぞれ(横)8×(縦)
17のマトリクスで表現されている(図12(a)参
照)。
As shown in the figure, here, the gradation value of the character image of the number “1” is “4”, the gradation value of the character image of the number “2” is “1”, and the gradation value of the character “2” is “1”. The gradation value of the character image of “3” is “2”, and a character string image of a character string (numerical string) “123” is configured as a whole. In this case, the character string image of the character string “123” corresponds to the entire image, and is represented by a (horizontal) 24 × (vertical) 17 input matrix IMG. Further, one of the element images constituting the whole image is a character image of the character “1”, and (horizontal) 8
It is expressed by a matrix of × (vertical) 17, and similarly, as one of the element images, there are a character image of a character “2” and a character image of a character “3”.
17 (see FIG. 12A).

【0174】この入力マトリクスIMGに対して、ディ
ザマトリクスDD5に基づいて従来の2値ディザ処理を
行う場合、原画像の階調画像を表現した入力マトリクス
IMGをディザマトリクスDD5のサイズ(2×2)の
マトリクス(例えば図示の点網掛け部分のマトリクス
等)に分割し、分割した各マトリクス毎にそのマトリク
ス要素の階調値とそれに対応するディザマトリクスDD
5のしきい値とを比較演算して、しきい値が示す条件を
満たすか否かを判別し、その判別結果に従って2値のう
ちのいずれかを割り付けることにより、2値のマトリク
スで表現された疑似階調画像を作成する。
When conventional binary dithering is performed on the input matrix IMG based on the dither matrix DD5, the input matrix IMG expressing the gradation image of the original image is converted to the size (2 × 2) of the dither matrix DD5. (For example, a matrix of a shaded portion shown in the drawing), and for each of the divided matrices, the gradation value of the matrix element and the corresponding dither matrix DD
By comparing with a threshold value of 5, a determination is made as to whether or not the condition indicated by the threshold value is satisfied, and one of the two values is assigned according to the determination result. A pseudo tone image is created.

【0175】理解しやすいように、ディザマトリクスD
D5のしきい値の条件を満たした(階調値≧しきい値
の)マトリクス要素を元の階調値で表現し、条件を満た
さない(階調値<しきい値の)マトリクス要素を「0」
で表現して図示したものが同図(c)のマトリクスAM
Gである。この場合、この条件を満たしたマトリクス要
素に有効を示す値「1」を割り付け、条件を満たさない
マトリクス要素に無効を示す値「0」を割り付けたもの
が、処理結果の2値マトリクス、すなわち目的の2値の
疑似階調画像を表現する出力マトリクス(図13(a)
の出力マトリクスDGYと同じ)となり、この出力マト
リクスで表現された画像が目的の疑似階調画像(例えば
「1」を黒、「0」を白としたときに、図13(b)の
疑似階調画像PGY、すなわち後述の印刷画像PGYと
同じ)となる。
For easy understanding, the dither matrix D
A matrix element satisfying the threshold value condition of D5 (gradation value ≧ threshold value) is expressed by the original gradation value, and a matrix element not satisfying the condition (gradation value <threshold value) is represented by “ 0 "
The matrix AM shown in FIG.
G. In this case, a matrix element that satisfies the condition is assigned a value “1” indicating validity, and a matrix element that does not satisfy the condition is assigned a value “0” indicating invalidity. Output matrix expressing the binary pseudo-gradation image (FIG. 13A)
The output matrix DGY is the same as the output matrix DGY. When the image represented by this output matrix is a target pseudo gradation image (for example, “1” is black and “0” is white, Key image PGY, that is, the same as a print image PGY described later).

【0176】これに対し、テープ印刷装置1で採用して
いる画像処理方法では、全体画像の要素画像のうち、本
体となる要素本体画像の画素とその背景になる要素背景
画像の画素とを区分可能な少なくとも1つの要素画像に
ついて、要素本体画像の全画素に、所定の2値のうちの
有効を示す値を割り付け、要素背景画像の全画素に、所
定の2値のうちの無効を示す値を割り付けることによ
り、所定の2値のマトリクスで表現された要素形状画像
を作成する。すなわち、要素本体画像に有効を示す値、
要素背景画像に無効を示す値を割り付けた2値マトリク
スで表現された要素形状画像を作成する。また、その一
方で、要素本体画像の全画素に同一の指定階調値とし
て、n値のうちの1つの階調値を記憶する。
On the other hand, in the image processing method employed in the tape printer 1, in the element image of the whole image, the pixels of the element body image serving as the main body and the pixels of the element background image serving as the background are classified. For at least one possible element image, a value indicating validity among predetermined binary values is assigned to all pixels of the element body image, and a value indicating invalidity among predetermined binary values is assigned to all pixels of the element background image. To create an element shape image represented by a predetermined binary matrix. That is, a value indicating validity in the element body image,
An element shape image represented by a binary matrix in which a value indicating invalidity is assigned to the element background image is created. On the other hand, one of the n values is stored as the same designated gradation value for all pixels of the element body image.

【0177】具体的には、まず、図12(a)に示すよ
うに、全体画像である文字列「123」の文字列画像の
要素画像(ここでは、文字「1」の文字画像、文字
「2」の文字画像および文字「3」の文字画像、の各要
素画像)のうち、本体となる要素本体画像の画素とその
背景になる要素背景画像の画素とを区分可能な少なくと
も1つの要素画像(ここでは全て区分可能な要素画像な
ので、全要素画像のそれぞれ)について、要素本体画像
に有効を示す値「1」、要素背景画像に無効を示す値
「0」を割り付けた要素形状画像マトリクスSG1、S
G2およびSG3で表現された要素形状画像を作成す
る。また、その一方で、同図(b)に示すように(ここ
では、Y色の値を参照)、要素本体画像の全画素に同一
の指定階調値として、それぞれn値(5値)のうちの1
つの階調値(すなわち文字「1」の文字画像の要素本体
画像には階調値「4」、文字「2」の文字画像の要素本
体画像には階調値「1」、文字「3」の文字画像の要素
本体画像には階調値「2」)を記憶する。
Specifically, as shown in FIG. 12A, first, as shown in FIG. 12A, the element images of the character string image of the character string "123" (here, the character image of the character "1", At least one element image capable of distinguishing the pixels of the element body image serving as the main body and the pixels of the element background image serving as the background of the element image of the character image of "2" and the character image of the character "3". An element shape image matrix SG1 in which a value “1” indicating validity is assigned to the element body image and a value “0” indicating invalidity is assigned to the element background image for each of the element images (here, all element images are separable). , S
An element shape image represented by G2 and SG3 is created. On the other hand, as shown in FIG. 3B (refer to the Y color value here), the same designated gradation value is set to the same value for all pixels of the element body image, and n values (five values) are used. One of them
Two gradation values (that is, the gradation value “4” for the element body image of the character image of the character “1”, the gradation value “1”, and the character “3” for the element body image of the character image of the character “2”) The gradation value “2”) is stored in the element body image of the character image.

【0178】この場合、指定階調値を各画素の情報と別
に記憶しても、各画素の情報としては2値のいずれかを
有すれば(記憶すれば)よいので、各画素単位で(各画
素毎に)n値(ここではn=5)の階調値情報を有する
よりメモリ容量は少なくて済む。なお、前述のように、
この場合、パソコン等で作成された例えば図11(b)
の階調画像がすでに存在する場合などには、その画像
(の入力マトリクス)に基づいて、上記の要素形状画像
を作成しつつ指定階調値を抽出しても良いし、ワープロ
等において、文字等をテキスト入力して、その文字毎に
階調値を指定(濃淡指定、色指定等)して要素画像とす
る場合などには、最初から要素形状画像の作成と指定階
調値の指定とを個別に行っても良いが、前述のように、
テープ印刷装置1では、キーボード3により文字等をテ
キスト入力できるので、後者を採用している。
In this case, even if the designated gradation value is stored separately from the information of each pixel, the information of each pixel only needs to have one of two values (if it is stored). The memory capacity is smaller than having n value (here, n = 5) gradation value information for each pixel. As mentioned above,
In this case, for example, FIG.
In the case where a gradation image already exists, for example, the specified gradation value may be extracted while creating the above element shape image based on the image (input matrix). In the case of inputting text and the like and specifying gradation values for each character (shading specification, color specification, etc.) as an element image, creating an element shape image and specifying the specified gradation value from the beginning May be performed individually, but as described above,
The tape printer 1 employs the latter because characters and the like can be input as text using the keyboard 3.

【0179】また、テープ印刷装置1では、前述のよう
に、ディザマトリクスと同一サイズの所定の2値のマト
リクスで表現されたディザマスクを記憶する。すなわ
ち、ディザマトリクスの各しきい値のうちの指定階調値
が条件を満たすしきい値に対応するマトリクス要素に、
所定の2値のうちの有効を示す値を割り付け、条件を満
たさないしきい値に対応するマトリクス要素に、所定の
2値のうちの無効を示す値を割り付けたマトリクスをデ
ィザマスクとして記憶する。
In the tape printer 1, as described above, a dither mask represented by a predetermined binary matrix having the same size as the dither matrix is stored. That is, a matrix element corresponding to a threshold value where a designated gradation value of each threshold value of the dither matrix satisfies a condition,
A value indicating validity among predetermined two values is allocated, and a matrix in which a value indicating invalidity among predetermined two values is allocated to a matrix element corresponding to a threshold value that does not satisfy a condition is stored as a dither mask.

【0180】具体的に、上述の図12の例では、同図
(d)に示すように、5つのディザマスクDM5(0)
〜DM5(4)を予め作成して記憶している。この場合
のディザマスクDM5(0)〜DM5(4)は、それぞ
れ、ディザマトリクスDD5と同一サイズ(ここでは2
×2のサイズ)の所定の階調画像にディザマトリクスD
D5に基づく2値ディザ処理を行った結果の疑似階調画
像のマトリクスと一致する(これらの場合の疑似階調画
像は、「1」を黒、「0」を白としたときに、各ディザ
マスクDM5(0)〜DM5(4)の下の括弧内にそれ
ぞれ図示のようになる)。なお、この場合のディザマス
クDM5(h)の添え字h(=0〜4)は、対応する指
定階調値と一致し、そのディザマスクの種類を表してい
るので、以下「マスク番号」という。
Specifically, in the example shown in FIG. 12, five dither masks DM5 (0)
To DM5 (4) are created and stored in advance. In this case, the dither masks DM5 (0) to DM5 (4) have the same size as the dither matrix DD5 (here, 2).
× 2) dither matrix D
It matches the matrix of the pseudo gradation image obtained as a result of performing the binary dither processing based on D5 (the pseudo gradation image in these cases is such that when “1” is black and “0” is white, As shown in parentheses below the masks DM5 (0) to DM5 (4), respectively). Note that the suffix h (= 0 to 4) of the dither mask DM5 (h) in this case matches the corresponding designated gradation value and indicates the type of the dither mask, and is hereinafter referred to as “mask number”. .

【0181】例えば2×2のサイズの階調画像が各画素
毎にn値(ここではn=5)の階調値情報を有し、か
つ、その全画素の階調値情報が例えば指定階調値「0」
を示しているときに、その階調画像の各画素の階調値
「0」をディザマトリクスDD5の各しきい値と比較す
ると、全て条件不成立(階調値<しきい値)となるの
で、2×2のマトリクス要素の値が全て「0」となる。
すなわち、図示のディザマスクDM5(0)は、このと
きの演算結果のマトリクスと一致する。同様に、全画素
の指定階調値が全て「1」の2×2のサイズの階調画像
に対して、ディザマトリクスDD5に基づく2値ディザ
処理を行うと、処理結果のマトリクスのマトリクス要素
のうち、条件が成立する(階調値≧しきい値の)マトリ
クス要素、すなわち「1」となるマトリクス要素は左下
の1つのみなので、図示のディザマスクDM5(1)
は、このときの演算結果のマトリクスと一致する。同様
に、ディザマスクDM5(2)は、全画素の指定階調値
が全て「2」の2×2のサイズの階調画像に対して、デ
ィザマスクDM5(3)は、全画素の指定階調値が全て
「3」の2×2のサイズの階調画像に対して、ディザマ
スクDM5(4)は、全画素の指定階調値が全て「4」
の2×2のサイズの階調画像に対して、それぞれディザ
マトリクスDD5に基づく2値ディザ処理を行った結果
の、それぞれのマトリクスと一致する。
For example, a gradation image of 2 × 2 size has n value (here, n = 5) gradation value information for each pixel, and the gradation value information of all the pixels is, for example, a designated gradation value. Key value "0"
, When the gradation value “0” of each pixel of the gradation image is compared with each threshold value of the dither matrix DD5, all the conditions are not satisfied (gradation value <threshold value). The values of 2 × 2 matrix elements are all “0”.
That is, the illustrated dither mask DM5 (0) matches the matrix of the operation result at this time. Similarly, when the binary dithering process based on the dither matrix DD5 is performed on a 2 × 2 size gradation image in which the designated gradation values of all the pixels are all “1”, the matrix elements of the processing result matrix Of these, the matrix element that satisfies the condition (gradation value ≧ threshold value), that is, only one matrix element at the lower left is “1”, so the illustrated dither mask DM5 (1)
Matches the matrix of the operation result at this time. Similarly, the dither mask DM5 (2) uses the dither mask DM5 (3) for the 2 × 2 size gradation image in which the designated gradation values of all pixels are all “2”. For a 2 × 2 gradation image in which all the tones are “3”, the dither mask DM5 (4) indicates that all the designated gradation values of all pixels are “4”.
Of the 2 × 2 gradation image, the result of the binary dithering based on the dither matrix DD5 matches the respective matrices.

【0182】上述の場合、考え得る指定階調値0〜4の
それぞれについてのディザマスクDM5(0)〜DM5
(4)を予め記憶しているので、使用するときに読み出
すだけで済み、演算時間が省略できるので、画像処理全
体の処理時間短縮が図れる。もちろん、前述のように、
指定階調値が判明した後に、ディザマトリクスDD5と
の比較演算により新たに作成して記憶しても良く、その
場合、ディザマスク記憶用のメモリ容量を節約でき、ま
た、ディザマトリクスDD5のサイズ(ここでは2×2
のサイズ)の比較演算なので、その処理時間も比較的短
くて済む。
In the above case, the dither masks DM5 (0) to DM5 for each of the conceivable designated gradation values 0 to 4
Since (4) is stored in advance, it is only necessary to read it out when it is used, and the calculation time can be omitted, so that the processing time of the entire image processing can be reduced. Of course, as mentioned above,
After the designated gradation value has been found, it may be newly created and stored by comparison operation with the dither matrix DD5. In this case, the memory capacity for storing the dither mask can be saved, and the size of the dither matrix DD5 ( Here 2 × 2
), The processing time is relatively short.

【0183】また、テープ印刷装置1では、前述のよう
に、要素形状画像のディザマスクと同一サイズのマトリ
クス毎に、各マトリクスとディザマスクとの対応するマ
トリクス要素同士を対象として、双方が有効を示す値の
ときのみ有効を示す値とする論理積演算を行うことによ
り、その論理積演算の結果として、要素形状画像と同一
サイズの所定の2値のマトリクスで表現された要素ディ
ザ画像を作成する。
Further, in the tape printing apparatus 1, as described above, for each matrix having the same size as the dither mask of the element shape image, the corresponding matrix elements of each matrix and the dither mask are set to be effective. By performing a logical product operation indicating a valid value only when the value is the indicated value, an element dither image represented by a predetermined binary matrix having the same size as the element shape image is created as a result of the logical product operation. .

【0184】例えば上述の例の場合、要素形状画像マト
リクスSG1で表現された要素形状画像の2×2のサイ
ズのマトリクス毎に、指定階調値「4」の場合のディザ
マスクDM5(4)と、対応するマトリクス要素同士の
論理積演算を行うと、演算結果の要素ディザ画像を表現
する要素ディザ画像マトリクスは、全体画像である文字
列「123」の文字列画像(全体画像)のディザ画像
(以下「全体ディザ画像」)を表現する出力マトリクス
(以下「全体ディザ画像マトリクス」)のうちの、すな
わち図13(a)の(横)24×(縦)17の全体ディ
ザ画像マトリクスDGYのうちの、左側(文字「1」)
の(横)8×(縦)17のマトリクスとなる。
For example, in the case of the above example, the dither mask DM5 (4) for the designated gradation value “4” is used for each 2 × 2 size matrix of the element shape image represented by the element shape image matrix SG1. When the logical AND operation between the corresponding matrix elements is performed, the element dither image matrix expressing the element dither image of the operation result becomes a dither image (whole image) of the character string image (whole image) of the character string “123” that is the whole image. Hereinafter, the output matrix expressing the “entire dither image” (hereinafter “the overall dither image matrix”), that is, the (horizontal) 24 × (vertical) 17 overall dither image matrix DGY of FIG. , Left side (letter "1")
(Horizontal) 8 × (vertical) 17 matrix.

【0185】同様に、要素形状画像マトリクスSG2で
表現された要素形状画像の2×2のサイズのマトリクス
毎に、指定階調値「1」のディザマスクDM5(1)と
の論理積演算を行うと、図13(a)の(横)24×
(縦)17のうちの中央(文字「2」)の(横)8×
(縦)17の要素ディザ画像マトリクスとなり、要素形
状画像マトリクスSG3で表現された要素形状画像の2
×2のサイズのマトリクス毎に、指定階調値「2」のデ
ィザマスクDM5(2)との論理積演算を行うと、図1
3(a)の(横)24×(縦)17のうちの右側(文字
「3」)の(横)8×(縦)17の要素ディザ画像マト
リクスとなる。
Similarly, a logical AND operation with the dither mask DM5 (1) having the designated gradation value "1" is performed for each 2 × 2 size matrix of the element shape image represented by the element shape image matrix SG2. And (horizontal) 24 × in FIG.
(Horizontal) 8 × of the center (character “2”) of (vertical) 17
(Vertical) 17 element dither image matrices, and 2 of element shape images represented by the element shape image matrix SG3
When a logical AND operation with the dither mask DM5 (2) having the designated gradation value “2” is performed for each matrix having a size of × 2, FIG.
An element dither image matrix of (horizontal) 8 × (vertical) 17 on the right side (character “3”) of (horizontal) 24 × (vertical) 17 of 3 (a) is obtained.

【0186】従来なら、要素画像のディザマトリクスと
同一サイズのマトリクス毎に、各マトリクスの各画素の
階調値とそれに対応するディザマトリクスのしきい値と
を比較して疑似階調画像を得るが、上述のように、テー
プ印刷装置1では、単に論理積演算でよいので、処理速
度の向上(処理時間の短縮)が図れる。また、その論理
積演算の入力(ディザマスク、要素形状画像マトリク
ス)も出力(要素ディザ画像)も2値マトリクスなの
で、メモリ容量を節約できる。また、全体画像の一部の
要素画像ばかりでなく、上述の例のように全体画像に対
しても同様の処理が可能な場合、すなわち全要素画像に
ついて要素本体画像と要素背景画像とが区分可能な場
合、全体画像に適用することにより、さらにメモリ容量
の節約および処理時間の短縮が図れる。
Conventionally, for each matrix of the same size as the dither matrix of the elemental image, the tone value of each pixel of each matrix is compared with the threshold value of the corresponding dither matrix to obtain a pseudo tone image. As described above, the tape printer 1 can simply perform a logical product operation, thereby improving the processing speed (reducing the processing time). Further, since both the input (dither mask, element shape image matrix) and output (element dither image) of the AND operation are binary matrices, the memory capacity can be saved. In addition, when the same processing can be performed not only on a part of the whole image but also on the whole image as in the above-described example, that is, the element body image and the element background image can be divided for all the element images. In such a case, by applying the method to the entire image, it is possible to further save the memory capacity and shorten the processing time.

【0187】また、従来の場合、元のn値の指定階調値
を各画素の階調値情報として有するため、多値(例えば
前述の5値)の疑似階調画像にしたとしても、n値の指
定階調値の情報を失ってしまい、さらに2値化すると、
疑似階調画像の多値の情報さえも失ってしまう。最初か
ら2値ディザ処理を行う場合も同様であり、2値化によ
りn値の情報を失ってしまう。すなわち、設定(指定)
した階調値を表示画面等で再確認するためには、元の階
調画像を記憶しておく必要があり、余分なメモリ容量が
必要となる。また、要素本体画像の画素に同一の階調値
が指定されていても、それを一括で確認することはでき
ず、階調画像の全画素の階調値を表示または印刷して、
各画素毎に視認する必要がある。これに対し、テープ印
刷装置1では、要素本体画像の画素に同一の階調値が指
定されている場合、要素本体画像に対する指定階調値を
各画素の情報とは別に記憶しているので、メモリ容量を
節約しつつ、そのまま数値(階調値)により(例えば表
示または印刷して)一括で確認できる。
Further, in the conventional case, since the original designated gradation value of n value is included as the gradation value information of each pixel, even if a multi-valued (for example, the above-mentioned five-valued) pseudo gradation image is used, n If the information of the designated gradation value of the value is lost and further binarized,
Even the multi-valued information of the pseudo gradation image is lost. The same applies to the case where binary dither processing is performed from the beginning, and n-value information is lost due to binarization. That is, setting (specifying)
In order to reconfirm the obtained gradation value on a display screen or the like, it is necessary to store the original gradation image, and an extra memory capacity is required. Also, even if the same gradation value is specified for the pixels of the element body image, it cannot be checked at once, and the gradation values of all the pixels of the gradation image are displayed or printed,
It is necessary to visually recognize each pixel. On the other hand, in the tape printer 1, when the same gradation value is specified for the pixel of the element main body image, the specified gradation value for the element main body image is stored separately from the information of each pixel. While saving the memory capacity, it is possible to collectively confirm the numerical values (gradation values) (for example, by displaying or printing) as they are.

【0188】したがって、このテープ印刷装置1では、
要素画像の本体となる要素本体画像の画素とその背景に
なる要素背景画像の画素とが区分可能でかつ少なくとも
要素本体画像の全画素が同一階調値の要素画像を、少な
くとも1つ有する全体画像を対象として、メモリ容量の
節約と処理時間の短縮を図りつつ、ディザ処理を行うこ
とができる。
Therefore, in this tape printer 1,
A whole image having at least one element image in which the pixels of the element body image serving as the body of the element image and the pixels of the element background image serving as the background can be distinguished, and at least all the pixels of the element body image have the same gradation value. The dither processing can be performed while saving the memory capacity and shortening the processing time.

【0189】なお、上述の文字をテキスト入力して、そ
の文字毎に階調値を指定(濃淡指定、色指定等)して要
素画像とする場合などの他、文字の背景側の階調値を指
定(濃淡指定、色指定等)できる場合には、文字の背景
側を要素本体画像として扱うことにより、文字の背景側
の要素ディザ画像を作成できる。これは反転文字等の場
合に適している他、その応用として、文字側を要素本体
画像としたときの要素ディザ画像と文字の背景側を要素
本体画像としたときの要素ディザ画像とを組み合わせて
(重ね合わせて)、双方にディザ処理を行った要素ディ
ザ画像を得ることもできる。
It should be noted that the above-described characters are input as text and tone values are designated for each of the characters (shading designation, color designation, etc.) to form an elemental image. Can be specified (shading specification, color specification, etc.), an element dither image on the background side of the character can be created by treating the background side of the character as the element body image. This is suitable for inverted characters, etc., and as an application, it is possible to combine an element dither image when the character side is used as the element body image and an element dither image when the background side of the character is used as the element body image. (Overlapping), it is also possible to obtain an element dither image that has been subjected to dither processing on both sides.

【0190】また、いかに複雑な描画画像も、少なくと
も要素本体画像の全画素が同一階調値の要素画像を合成
した合成画像(全体画像)と見て、各要素画像に分解で
き、各要素画像の要素本体画像とそれ以外の要素背景画
像に分解でき、要素本体画像と要素背景画像とは区分可
能なので、各要素画像に対応する要素ディザ画像を作成
して、それらを組み合わせる(対応するマトリクス要素
を重ね合わせる)ことにより、複雑な描画画像にディザ
処理を行った要素ディザ画像をも得ることができる。
Also, any complicated drawing image can be decomposed into each element image, assuming that at least all the pixels of the element main image are a composite image obtained by synthesizing element images having the same gradation value (whole image). Can be decomposed into the element body image and the other element background image, and the element body image and the element background image can be distinguished. Therefore, element dither images corresponding to each element image are created and combined (corresponding matrix element ) Can also obtain an element dither image obtained by dithering a complicated drawing image.

【0191】また、テープ印刷装置1では、所定の2値
が1および0なので、2進数1桁の1ビットで各画素を
表現でき、メモリ容量が少なくて済む他、上述した論理
積演算が1画素当たり1つのAND素子またはそれに相
当するプログラムによるAND演算処理で済み、ディザ
マスク相当のサイズのマトリクスやそれを複数配置した
さらに大きなマトリクスを対象として、マトリクス単位
での演算も容易なので、さらに処理時間の短縮が図れ
る。また、上述の例のように、要素画像がモノクロ画像
である場合、その濃淡を示す階調値を指定階調値として
記憶するので、モノクロの要素画像の濃淡に関するディ
ザ処理に適用できる。
Further, in the tape printer 1, since the predetermined binary values are 1 and 0, each pixel can be represented by one bit of one digit of the binary number, the memory capacity can be reduced, and the logical product operation described above can be performed by one. Only one AND element per pixel or an AND operation by a program corresponding to the AND operation is sufficient, and a matrix having a size equivalent to a dither mask or a larger matrix having a plurality of such arrangements can be easily processed in matrix units. Can be shortened. Further, when the elementary image is a monochrome image as in the above-described example, the gradation value indicating the gradation is stored as the designated gradation value, so that the present invention can be applied to the dither processing relating to the gradation of the monochrome elemental image.

【0192】なお、テープ印刷装置1では、要素画像や
全体画像としてモノクロ画像ばかりでなく、カラー画像
を扱うこともでき、上述の画像処理方法は、カラー画像
の場合にも適用できるので、以下、カラー画像に適用す
る場合、すなわちカラーディザ処理を行う場合について
説明する。この場合、例えばRGBまたはCMYのカラ
ー3原色の各色の階調値、あるいは後者にKを加えたC
MYKの4色の各色の階調値のそれぞれについて、上述
の処理により各要素ディザ画像を求めて組み合わせれば
良い。また、この場合、例えばCMY各色の要素ディザ
画像を求めてから、それらの各要素ディザ画像の全てに
共通して有効を示す値の画素(マトリクス要素)を抽出
することにより、K色の要素ディザ画像を得ることもで
きる。
It should be noted that the tape printer 1 can handle not only monochrome images but also color images as elemental images and whole images, and the above-described image processing method can be applied to color images. A case where the present invention is applied to a color image, that is, a case where color dither processing is performed will be described. In this case, for example, the gradation value of each of the three primary colors of RGB or CMY, or C obtained by adding K to the latter.
What is necessary is just to obtain | require and combine each element dither image by the above process about each gradation value of each of four colors of MYK. In this case, for example, the element dither image of each color of CMY is obtained, and then the pixel (matrix element) having a value indicating the validity in common to all of the element dither images is extracted, so that the element dither image of K color is obtained. Images can also be obtained.

【0193】以下、具体的に、特に印刷のためのカラー
ディザ処理の場合、すなわち、カラーディザ処理によ
り、印刷のための印刷画像として要素ディザ画像または
全体ディザ画像を作成する場合について、図12〜図2
0を参照して説明する。なお、前述のように、テープ印
刷装置1は、インクジェット方式の印刷装置なので、印
刷画像として作成された要素ディザ画像の有効を示す値
「1」のマトリクス要素は、テープT(特に印刷テープ
T1:印刷対象物)に対して印刷ヘッド(インクジェッ
トヘッド)7からインクを吐出すべき画素に対応してい
る。また、カラー3原色は、C(シアン)、M(マゼン
タ)およびY(イエロー)の3色であり、各種のXYプ
ロッタやプリンタ等における印刷などの反射光によって
カラー表現する場合に適した、いわゆる減法混色により
色(カラー)を表現している。また、CMYの3原色の
混合色(混色)であるK(ブラック)を含むCMYKの
4色を基本色とする。
Hereinafter, specifically, in the case of color dither processing for printing, that is, the case where element dither images or entire dither images are created as print images for printing by color dither processing, FIGS. FIG.
0 will be described. As described above, since the tape printing apparatus 1 is an inkjet printing apparatus, the matrix element of the value “1” indicating the validity of the element dither image created as the print image is the tape T (particularly the print tape T1: It corresponds to a pixel to which ink is to be ejected from a print head (inkjet head) 7 to a print target. The three primary colors are three colors of C (cyan), M (magenta), and Y (yellow), and are suitable for expressing in color by reflected light such as printing on various XY plotters and printers. The color is expressed by subtractive color mixture. In addition, four CMYK colors including K (black) which is a mixed color (mixed color) of three primary colors of CMY are set as basic colors.

【0194】図16は、テープ印刷装置1における典型
的な画像作成・印刷処理を示すフローチャートである。
この処理(S10)では、同図に示すように、まず、文
字等をテキスト入力する(S11)。より具体的には、
ディスプレイ4により確認しながら、キーボード3によ
り、まず、例えば文字列「123」のように文字を入力
し(S111)、次に、文字等のサイズや装飾を指定し
(S112)、色指定等を行う(S113)。
FIG. 16 is a flowchart showing a typical image creating / printing process in the tape printer 1.
In this process (S10), as shown in the figure, first, a character or the like is input as text (S11). More specifically,
While confirming with the display 4, characters are first input by the keyboard 3 like, for example, a character string "123" (S111). Performed (S113).

【0195】なお、この場合、サイズや装飾はフォーム
キー322により選択画面を表示させて、カーソルキー
330により選択肢を反転表示させ、選択キー323に
より確定することにより選択して指定する。また、色指
定は、ディスプレイ4の表示画面41上で、C(シア
ン)、M(マゼンタ)、Y(イエロー)の階調値を、例
えば図20に示す色変換テーブルに規定された色情報
(以下「色パレット情報」)に基づいて色指定キー32
4により指定し、文字やその背景を色設定キー325に
より指示して設定する。文字側のみ色指定した場合、後
述の処理(要素形状画像作成等)では、文字側の画像を
要素本体画像とし、背景側を要素背景画像として処理す
る。また、背景側のみ色指定した場合、逆に背景側の画
像を要素本体画像とし、文字側を要素背景画像として処
理する。双方が指定された場合には、双方を処理して各
要素ディザ画像を作成後に重ね合わせる。ただし、以下
の説明では、理解しやすいように、文字側のみ指定する
例について説明する。
In this case, the size and the decoration are selected and designated by displaying the selection screen with the form key 322, highlighting the choice with the cursor key 330, and confirming with the selection key 323. Further, the color designation is performed by displaying the gradation values of C (cyan), M (magenta) and Y (yellow) on the display screen 41 of the display 4 by, for example, the color information (color information) specified in the color conversion table shown in FIG. Hereinafter, the color designation key 32 based on the “color palette information”)
4, and the character and its background are designated and set by the color setting key 325. When the color is specified only on the character side, in the processing described later (element shape image creation and the like), the image on the character side is processed as the element body image, and the background side is processed as the element background image. On the other hand, when only the background side is designated, the image on the background side is processed as the element body image and the character side is processed as the element background image. If both are designated, both are processed and each element dither image is created and then superimposed. However, in the following description, an example in which only the character side is specified will be described for easy understanding.

【0196】例えば図12(b)に示すように(図20
も参照)、文字「1」の文字画像(要素本体画像)に黒
色を指定する(図20のNo.1)。すなわちCMY各
色の階調値を全て「4」としたことになる。また、文字
「2」の文字画像(要素本体画像)には薄い赤紫を指定
する(No.19)。すなわち、CMY3原色の指定階
調値(以下「原色階調値」)として、C色の原色階調値
「0」、M色の原色階調値「2」、Y色の原色階調値
「1」を指定したことになる。同様に、文字「3」の文
字画像(要素本体画像)には薄いイエローを指定する
(No.17)。すなわちC色の原色階調値「0」、M
色の原色階調値「0」、Y色の原色階調値「2」を指定
したことになる。これらの色パレット情報のデータ(色
パレットデータ)CP1、CP2およびCP3は、文字
「1」、「2」および「3」の文字画像(要素本体画
像)の指定階調値としてRAM240内の色パレットデ
ータ領域247に記憶される。
For example, as shown in FIG.
Also, black is designated for the character image (element body image) of the character “1” (No. 1 in FIG. 20). That is, the tone values of each of the CMY colors are all “4”. Further, light red purple is designated for the character image (element body image) of the character “2” (No. 19). That is, as the designated gradation values of the three primary colors of CMY (hereinafter referred to as “primary color gradation values”), the primary color gradation value of C color “0”, the primary color gradation value of M color “2”, and the primary color gradation value of Y color “ 1 "has been designated. Similarly, light yellow is designated for the character image (element body image) of the character “3” (No. 17). That is, the C primary color tone value “0”, M
This means that the primary color tone value “0” of the color and the primary color tone value “2” of the Y color are designated. These color pallet information data (color pallet data) CP1, CP2 and CP3 are color pallets in the RAM 240 as designated gradation values of character images (element body images) of characters "1", "2" and "3". It is stored in the data area 247.

【0197】図16に示すように、文字列「123」の
テキスト入力(S11)が終了し、印刷キー321によ
り印刷が指定されると(S12)、CG−ROM230
内のアウトラインフォントに基づいて、文字列「12
3」の各文字を画像展開して、図12(a)に示す要素
形状画像マトリクスSG1、SG2、SG3で表現され
た各文字(各要素画像)の要素形状画像を作成する(S
13)。もちろん、アウトラインフォントに基づく以外
にも、例えばドットマップフォントに基づく文字や、外
字登録や描画登録によりドットマップで登録済みの文字
(キャラクタの意味)も利用できる。これらは文字展開
バッファ(フォント色バッファ)に展開される。
As shown in FIG. 16, when the text input of the character string "123" is completed (S11) and printing is designated by the print key 321 (S12), the CG-ROM 230 is started.
Character string "12" based on the outline font in
Each character of "3" is image-developed to create an element shape image of each character (element image) represented by the element shape image matrices SG1, SG2, SG3 shown in FIG.
13). Of course, in addition to being based on the outline font, characters based on, for example, a dot map font and characters (meaning of a character) registered in a dot map by external character registration or drawing registration can also be used. These are developed in a character development buffer (font color buffer).

【0198】図16に示すように、各文字(各要素画
像)の要素形状画像を作成して入力文字展開が終了する
と(S13)、次に、基本色別のディザマスクを選択す
る(S14)。例えば、文字「1」の文字画像(要素形
状画像)に着目すると、CMY各色の原色階調値が全て
「4」なので、マスク番号「4」のディザマスクDM5
(4)があれば、次のマスク処理(S15)に移行でき
る。なお、テープ印刷装置1では、前述のように、考え
得る指定階調値(ここでは原色階調値)の全てを予め作
成して記憶しているが、仮にこの文字「1」の文字画像
(要素形状画像)だけを処理するのであれば、ディザマ
スクとしては、ディザマスクDM5(4)だけ記憶すれ
ばよい。
As shown in FIG. 16, when an element shape image of each character (each element image) is created and input character development is completed (S13), a dither mask for each basic color is selected (S14). . For example, when focusing on the character image (element shape image) of the character “1”, since the primary color gradation values of each of the CMY colors are all “4”, the dither mask DM5 of the mask number “4” is used.
If there is (4), it is possible to shift to the next mask processing (S15). In the tape printing apparatus 1, as described above, all possible designated gradation values (primary color gradation values in this case) are created and stored in advance. If only the element shape image) is processed, only the dither mask DM5 (4) may be stored as the dither mask.

【0199】同様に、文字「2」の文字画像(要素形状
画像)に着目すると、C色の原色階調値「0」、M色の
原色階調値「2」、Y色の原色階調値「1」なので、マ
スク番号「0」、「2」、「1」のディザマスクDM5
(0)、DM5(2)、DM5(1)が準備されれば、
次のマスク処理(S15)に移行できる。同様に、文字
「3」の文字画像(要素形状画像)に着目すると、C色
の原色階調値「0」、M色の原色階調値「0」、Y色の
原色階調値「2」なので、マスク番号「0」、「2」の
ディザマスクDM5(0)、DM5(2)が準備されれ
ば、次のマスク処理(S15)に移行できる。
Similarly, focusing on the character image (element shape image) of the character “2”, the C primary color gradation value “0”, the M primary color gradation value “2”, and the Y primary color gradation value Since the value is “1”, the dither mask DM5 of the mask numbers “0”, “2”, and “1”
If (0), DM5 (2) and DM5 (1) are prepared,
It is possible to shift to the next mask processing (S15). Similarly, focusing on the character image (element shape image) of the character “3”, the C primary color gradation value “0”, the M primary color gradation value “0”, and the Y primary color gradation value “2” Therefore, if the dither masks DM5 (0) and DM5 (2) with the mask numbers “0” and “2” are prepared, the process can proceed to the next mask processing (S15).

【0200】図16に示すように、基本色別ディザマス
クの選択(S14)が終了すると、次に、基本色別にマ
スク処理を行う(S15)。すなわち、要素形状画像の
(要素形状画像マトリクスを分割したときの)ディザマ
スクと同一サイズのマトリクス毎に、各マトリクスとデ
ィザマスクとの対応するマトリクス要素同士を対象とし
て、双方が有効を示す値のときのみ有効を示す値とする
論理積演算を行うことにより、その論理積演算の結果と
して、要素形状画像(を表現する要素形状画像マトリク
ス)と同一サイズの所定の2値のマトリクス(要素ディ
ザ画像マトリクス)で表現された要素ディザ画像を作成
する。
As shown in FIG. 16, when the selection of the dither mask for each basic color (S14) is completed, a mask process is performed for each basic color (S15). In other words, for each matrix having the same size as the dither mask (when the element shape image matrix is divided) of the element shape image, a value indicating that both are valid is given to the corresponding matrix elements of each matrix and the dither mask. A logical AND operation with a value indicating validity is performed only when a predetermined binary matrix (element dither image) having the same size as the element shape image (element shape image matrix expressing the element shape image) is obtained as a result of the AND operation. Create an element dither image represented by a matrix.

【0201】例えば、文字「1」の文字画像(要素形状
画像)に着目すると、CMY各色の原色階調値が全て
「4」なので、要素形状画像マトリクスSG1で表現さ
れた要素形状画像の2×2のサイズのマトリクス毎に、
原色階調値(指定階調値)「4」の場合のディザマスク
DM5(4)と、対応するマトリクス要素同士の論理積
演算を行うと、演算結果の要素ディザ画像を表現する要
素ディザ画像マトリクスは、全体画像である文字列「1
23」の文字列画像の全体ディザ画像を表現する全体デ
ィザ画像マトリクス(原色に対するものを以下「原色全
体ディザ画像マトリクス」という)のうちの、すなわち
図13(a)、図14(a)および図15(a)の
(横)24×(縦)17の原色全体ディザ画像マトリク
スDGY、DGCおよびDGMのうちの、それぞれの左
側(文字「1」)の(横)8×(縦)17の要素ディザ
画像マトリクス(原色に対するものを以下「原色要素デ
ィザ画像マトリクス」という)となる。
For example, when focusing on the character image (element shape image) of the character “1”, since the primary color gradation values of each of the CMY colors are all “4”, 2 × of the element shape image represented by the element shape image matrix SG1 For each matrix of size 2,
When a logical AND operation is performed between the dither mask DM5 (4) for the primary color gradation value (designated gradation value) “4” and the corresponding matrix element, an element dither image matrix expressing the element dither image of the operation result Is a character string "1" which is an entire image.
13 (a), 14 (a) and 14 (b) of the whole dither image matrix (hereinafter, the primary color dither image matrix for the primary colors) expressing the entire dither image of the character string image of "23". 15 (a) (horizontal) 24 × (vertical) 17 primary color whole dither image matrices DGY, DGC and DGM, (left side) (character “1”) (horizontal) 8 × (vertical) 17 elements A dither image matrix (a primary color element matrix is hereinafter referred to as a “primary color element dither image matrix”).

【0202】同様に、文字「2」の文字画像(要素形状
画像)に着目すると、要素形状画像マトリクスSG2で
表現された要素形状画像の2×2のサイズのマトリクス
毎に、Y色の原色階調値(指定階調値)「1」のディザ
マスクDM5(1)との論理積演算を行うと、図13
(a)の(横)24×(縦)17の原色全体ディザ画像
マトリクスDGYのうちの、中央(文字「2」)の
(横)8×(縦)17の原色要素ディザ画像マトリクス
となり、C色の原色階調値(指定階調値)「0」のディ
ザマスクDM5(0)との論理積演算を行うと、図14
(a)の(横)24×(縦)17の原色全体ディザ画像
マトリクスDGCのうちの、中央(文字「2」)の
(横)8×(縦)17の原色要素ディザ画像マトリクス
となり、M色の原色階調値(指定階調値)「2」のディ
ザマスクDM5(2)との論理積演算を行うと、図15
(a)の(横)24×(縦)17の原色全体ディザ画像
マトリクスDGCのうちの、中央(文字「2」)の
(横)8×(縦)17の原色要素ディザ画像マトリクス
となる。
Similarly, focusing on the character image (element shape image) of the character “2”, for each 2 × 2 size matrix of the element shape image represented by the element shape image matrix SG2, the Y primary color scale When a logical AND operation with the dither mask DM5 (1) having the tone value (designated tone value) “1” is performed, FIG.
In the (a) (horizontal) 24 × (vertical) 17 primary color whole dither image matrix DGY, a (horizontal) 8 × (vertical) 17 primary color element dither image matrix at the center (character “2”) is obtained. When an AND operation with the dither mask DM5 (0) of the primary color tone value (designated tone value) “0” of the color is performed, FIG.
(A) A (horizontal) 8 × (vertical) 17 primary color element dither image matrix at the center (character “2”) of the (horizontal) 24 × (vertical) 17 primary color whole dither image matrix DGC, When a logical AND operation with the dither mask DM5 (2) of the primary color tone value (designated tone value) of “2” is performed, FIG.
In the (horizontal) 24 × (vertical) 17 primary color whole dither image matrix DGC of FIG. 9A, the (horizontal) 8 × (vertical) 17 primary color element dither image matrix at the center (character “2”) is obtained.

【0203】同様に、文字「3」の文字画像(要素形状
画像)に着目すると、要素形状画像マトリクスSG2で
表現された要素形状画像の2×2のサイズのマトリクス
毎に、Y色の原色階調値(指定階調値)「2」のディザ
マスクDM5(2)との論理積演算を行うと、図13
(a)の(横)24×(縦)17の原色全体ディザ画像
マトリクスDGYのうちの、右側(文字「3」)の
(横)8×(縦)17の原色要素ディザ画像マトリクス
となり、C色およびM色の原色階調値(指定階調値)
「0」のディザマスクDM5(0)との論理積演算を行
うと、図14(a)および図15(a)の(横)24×
(縦)17の原色全体ディザ画像マトリクスDGCおよ
びDGMのうちの、それぞれの右側(文字「3」)の
(横)8×(縦)17の原色要素ディザ画像マトリクス
となる。
Similarly, focusing on the character image (element shape image) of the character “3”, the Y-color primary color scale is obtained for each 2 × 2 size matrix of the element shape image represented by the element shape image matrix SG2. When a logical AND operation with the dither mask DM5 (2) having the tone value (designated tone value) “2” is performed, FIG.
In the (a) (horizontal) 24 × (vertical) 17 primary color whole dither image matrix DGY, a (horizontal) 8 × (vertical) 17 primary color element dither image matrix on the right side (character “3”) is obtained. Primary color gradation value of color and M color (specified gradation value)
When a logical AND operation with the dither mask DM5 (0) of “0” is performed, (horizontal) 24 × in FIG. 14A and FIG.
Of the (vertical) 17 primary color whole dither image matrices DGC and DGM, the (right) (horizontal) 17 × primary color element dither image matrix on the right side (character “3”) is obtained.

【0204】図13〜図15の上述の原色全体ディザ画
像マトリクスDGY、DGCおよびDGMは、それぞれ
Y色、C色およびM色の基本色別配置バッファに、各文
字の原色要素ディザ画像マトリクスを配置することによ
り作成される。なお、図16に示すように、基本色別マ
スク処理(S15)が終了すると、次に、K(黒)デー
タ作成(S16)を行うが、この処理(S16)を省略
して、色別にインク出力(S17)を行うことにより、
CMY3原色による印刷を行うこともできる。この場合
の印刷画像(すなわち疑似階調画像)は、図13〜図1
5の各図(b)に示すように、Y色、C色およびM色に
ついて、それぞれ、印刷画像(疑似階調画像)PGY、
PGCおよびPGMのようになる。ただし、図示の文字
「2」や「3」の輪郭線は理解しやすいように付したも
ので、印刷はされない。
The primary color whole dither image matrices DGY, DGC and DGM shown in FIGS. 13 to 15 have the primary color element dither image matrices of the respective characters arranged in the basic color arrangement buffers of Y color, C color and M color, respectively. It is created by doing. As shown in FIG. 16, when the mask process for each basic color (S15) is completed, next, K (black) data creation (S16) is performed. However, this process (S16) is omitted, and ink for each color is omitted. By performing the output (S17),
Printing using the three primary colors CMY can also be performed. The print image in this case (that is, the pseudo gradation image) is shown in FIGS.
As shown in FIG. 5B, the print image (pseudo gradation image) PGY, Y color, C color, and M color
Like PGC and PGM. However, the outlines of the characters “2” and “3” in the figure are attached for easy understanding, and are not printed.

【0205】上述の場合、文字「1」については、ディ
ザマスクDM5(4)に基づく原色要素ディザ画像(マ
トリクス)を作業領域に1個作成して、それを3個の基
本色別配置バッファに重複してコピーしても良い。同様
に、文字「3」については、ディザマスクDM5(2)
に基づく原色要素ディザ画像(マトリクス)とディザマ
スクDM5(0)に基づく原色要素ディザ画像(マトリ
クス)との2個を作成して、後者をC色およびM色の基
本色別配置バッファに重複してコピーしても良い。
In the case described above, for the character "1", one primary color element dither image (matrix) based on the dither mask DM5 (4) is created in the work area, and the created dither image is stored in the three basic color arrangement buffers. Duplicate copies may be made. Similarly, for the character “3”, the dither mask DM5 (2)
, And a primary color element dither image (matrix) based on the dither mask DM5 (0), and the latter is overlapped in the basic color arrangement buffers for C and M colors. May be copied.

【0206】上述のように、テープ印刷装置1では、要
素画像がカラー画像である場合、カラー3原色の各色に
ついての原色階調値を、それぞれ指定階調値の1種とし
て記憶し、原色階調値のうちの少なくとも相互に値が異
なるものに対応する原色ディザマスクを、それぞれディ
ザマスクの1種として記憶し、原色ディザマスクに対応
する原色要素ディザ画像を、それぞれ要素ディザ画像の
1種として作成する。すなわち、3原色の原色階調値の
全てが同一の値のときには、少なくとも1個、2原色に
ついて同一の値のときには、少なくとも2個、それぞれ
別のときには、少なくとも3個の原色要素ディザ画像を
作成する。この場合、3原色について同一のときに1個
の原色要素ディザ画像を3原色用に重複利用し、2原色
について同一のときにその2原色について重複利用する
ことも含め、3原色についての原色要素ディザ画像が得
られる。
As described above, in the case where the element image is a color image, the tape printing apparatus 1 stores the primary color gradation values for each of the three primary colors as one of the designated gradation values, and stores the primary color gradation values. Primary color dither masks corresponding to at least mutually different values of the tonal values are stored as one type of dither mask, and primary color element dither images corresponding to the primary color dither masks are respectively stored as one type of element dither image. create. In other words, at least one primary color element dither image is generated when the primary color tone values of the three primary colors are all the same, and at least two primary color element dither images are generated when the two primary colors have the same value. I do. In this case, one primary color element dither image is used for three primary colors when the three primary colors are the same, and the primary color element dither image for the three primary colors is used when the two primary colors are the same. A dither image is obtained.

【0207】なお、この場合、考え得る原色階調値のそ
れぞれについての原色ディザマスクを予めディザマスク
として記憶しておいても良いし、原色階調値が判明した
後に、ディザマトリクスとの比較演算により新たに作成
して記憶しても良い。また、考え得る指定階調値に対応
するディザマスクが予め記憶されている場合には、原色
階調値が判明した後に、それらから選択して改めて原色
ディザマスクとして記憶しても良い。上述の例の場合に
は、考え得る5つの指定階調値0〜4に対応する5つの
ディザマスクDM5(0)〜DM5(4)を記憶してい
て、それらをそのまま原色階調値についての原色ディザ
マスクとして利用しているので、考え得る原色階調値の
それぞれについての原色ディザマスクを予めディザマス
クとして記憶している場合に相当する。
In this case, the primary color dither mask for each conceivable primary color tone value may be stored in advance as a dither mask, or after the primary color tone value is determined, a comparison operation with the dither matrix is performed. May be newly created and stored. If a dither mask corresponding to a conceivable designated gradation value is stored in advance, the primary color gradation value may be determined and then selected and stored as a primary color dither mask again. In the case of the above-described example, five dither masks DM5 (0) to DM5 (4) corresponding to five conceivable designated gradation values 0 to 4 are stored, and these are directly used for the primary color gradation values. Since it is used as a primary color dither mask, this corresponds to a case where a primary color dither mask for each conceivable primary color gradation value is stored in advance as a dither mask.

【0208】図16に示すように、基本色別マスク処理
(S15)が終了すると、次に、K(黒)データ作成
(3色同一ポイント抽出)を行う(S16)。テープ印
刷装置1では、このKデータ作成処理(S16)におい
て、まず、混色要素ディザ画像を、要素ディザ画像の新
たな1種として作成する。すなわち、テープ印刷装置1
では、要素画像がカラー画像である場合、作成された原
色要素ディザ画像の全てに共通して有効を示す値のマト
リクス要素を抽出し、抽出したマトリクス要素のみに有
効を示す値を割り付けた混色要素ディザ画像を、要素デ
ィザ画像の新たな1種として作成する。この場合、3原
色についての原色要素ディザ画像に加え、それらの混色
についての混色要素ディザ画像を得ることができる。こ
の混色要素ディザ画像は、例えば、作成された原色要素
ディザ画像の対応するマトリクス要素同士を対象とし
て、全てが有効を示す値のときのみ有効を示す値とする
論理積演算の結果として作成される。すなわち、この場
合、比較的単純な論理積演算を行うだけで、混色要素デ
ィザ画像を作成できる。
As shown in FIG. 16, when the masking process for each basic color (S15) is completed, next, K (black) data is created (same point extraction for three colors) (S16). In the K data creation process (S16), the tape printer 1 first creates a mixed-color element dither image as a new type of element dither image. That is, the tape printer 1
In the case where the element image is a color image, a matrix element of a value indicating validity is extracted in common to all of the created primary color element dither images, and a mixed color element is assigned a value indicating validity only to the extracted matrix element. A dither image is created as a new element dither image. In this case, in addition to the primary color element dither images for the three primary colors, a mixed color element dither image for the mixed colors can be obtained. This mixed-color element dither image is created, for example, as a result of a logical product operation that targets only the corresponding matrix elements of the created primary color element dither image and indicates a valid value only when all values are valid. . That is, in this case, a mixed-color element dither image can be created only by performing a relatively simple logical product operation.

【0209】上述の例の場合、図12(b)に示す色パ
レットデータCP2およびCP3から明らかなように、
文字「2」および文字「3」については、原色階調値
(ここではマスク番号に相当)に「0」が含まれている
ので、同図(d)のDM5(0)との論理積(AND)
演算により、マトリクス要素が全て無効を示す値「0」
の原色要素ディザ画像マトリクスが存在することになり
(図14の文字「2」および「3」の部分、図25の文
字「2」の部分)、原色要素ディザ画像の全てに共通し
て有効を示す値「1」のマトリクス要素は存在しない。
In the case of the above example, as is apparent from the color pallet data CP2 and CP3 shown in FIG.
As for the characters “2” and “3”, “0” is included in the primary color gradation value (corresponding to the mask number in this case), so the logical product (DM5 (0)) of FIG. AND)
A value “0” indicating that all matrix elements are invalid by calculation
(Parts of characters “2” and “3” in FIG. 14 and part of character “2” in FIG. 25) exist in all the primary color element dither images. There is no matrix element with the indicated value “1”.

【0210】これに対し、黒指定の文字「1」は、図1
2(b)の色パレットデータCP1および図13〜図1
5の原色要素ディザ画像から明らかなように、CMY各
色の原色要素ディザ画像マトリクスの要素本体画像に相
当する部分のマトリクス要素が全て有効を示す値「1」
である。このため、原色要素ディザ画像の全てに共通し
て有効を示す値「1」のマトリクス要素を抽出した混色
要素ディザ画像は、要素形状画像と一致する。すなわ
ち、図12(a)の要素形状画像マトリクスSG1と同
じ値を持つ要素ディザ画像マトリクス(以下、混色に対
するものを「混色要素ディザ画像マトリクス」という)
により表現された混色要素ディザ画像が得られる。
On the other hand, the character "1" designated as black is
2 (b) color pallet data CP1 and FIGS.
As is clear from the primary color element dither image of No. 5, the value "1" indicating that all matrix elements corresponding to the element body image of the primary color element dither image matrix of each CMY color are valid.
It is. For this reason, the mixed-color element dither image obtained by extracting the matrix element having the value “1” indicating validity in common to all the primary color element dither images matches the element shape image. That is, an element dither image matrix having the same value as the element shape image matrix SG1 in FIG. 12A (hereinafter, an element for mixed color is referred to as a “mixed element dither image matrix”).
Is obtained.

【0211】また、原色要素ディザ画像マトリクスを配
置して原色全体ディザ画像マトリクスを作成するのと同
様に、K色の基本色別配置バッファに、各文字の混色要
素ディザ画像マトリクスを配置することにより、混色
(ここではK色)についての全体ディザ画像マトリクス
(混色に対するものを以下「混色全体ディザ画像マトリ
クス」という)により表現された混色全体ディザ画像が
得られる。上述の例の場合、混色全体ディザ画像マトリ
クスDGKおよびそれをそのまま印刷したときの印刷画
像(疑似階調画像)PGKは、それぞれ、図14で前述
のC色の原色全体ディザ画像マトリクスDGCおよび印
刷画像PGCと同じになる。
Similarly to the case where the primary color element dither image matrix is arranged to create the entire primary color dither image matrix, the mixed color element dither image matrix of each character is arranged in the K basic color arrangement buffer. Thus, a mixed-color whole dither image expressed by a mixed-color (here, K color) entire dither image matrix (hereinafter, a mixed-color entire dither image matrix is referred to as a mixed-color entire dither image matrix) is obtained. In the case of the above example, the mixed-color whole dither image matrix DGK and the print image (pseudo gradation image) PGK when it is printed as it is are the primary color whole dither image matrix DGC and the print image of the C color described above in FIG. It will be the same as PGC.

【0212】なお、上述の例の場合、黒色、すなわちK
色そのものが指定色だが、図20に示すように、黒(N
o.1のK欄参照)だけでなく、無彩色の灰色系(N
o.3〜5のK欄参照)や有彩色の明度を変化させたも
の(No.24〜25のK欄参照)であっても、作成さ
れた原色要素ディザ画像の全てに共通して有効を示す値
「1」のマトリクス要素を抽出でき、抽出したマトリク
ス要素のみに有効を示す値「1」を割り付けることによ
り、混色要素ディザ画像が得られ、それを全体画像に対
して適用することにより、混色全体ディザ画像が得られ
る。
In the case of the above-described example, black, that is, K
Although the color itself is the designated color, as shown in FIG.
o. 1 K column) as well as achromatic gray (N
o. Even if the brightness of the chromatic color is changed (refer to the K column of Nos. 24 to 25), the effect is common to all the generated primary color element dither images even if the brightness of the chromatic color is changed (see the K column of No. 24 to 25). A matrix element having a value of "1" can be extracted, and a mixed-color element dither image can be obtained by assigning a value "1" indicating validity only to the extracted matrix element. An overall dither image is obtained.

【0213】上述の例においては、黒が指定されたの
で、文字「1」の混色要素ディザ画像マトリクスは、マ
スク番号「4」の場合の要素ディザ画像マトリクスと同
じ(すなわち要素形状画像マトリクスSG1と同じ値を
持つ)ことになったが(No.1のK欄参照)、例えば
灰色(No.4のK欄参照:マスク番号「2」)が指定
されれば、原色要素ディザ画像の全てに共通して有効を
示す値「1」のマトリクス要素は、要素形状画像マトリ
クスSG1で表現された要素形状画像の2×2のサイズ
のマトリクス毎に、マスク番号「2」の場合のディザマ
スクDM5(2)と論理積演算を行った結果の有効を示
す値「1」のマトリクス要素と一致する。すなわち、こ
の場合の混色要素ディザ画像は、要素形状画像とマスク
番号「2」のディザマスクDM5(2)に基づいて得ら
れる要素ディザ画像に一致する。
In the above example, since black is designated, the mixed-color element dither image matrix of the character “1” is the same as the element dither image matrix in the case of the mask number “4” (that is, the element shape image matrix SG1). (See column K of No. 1), for example, if gray (see column K of No. 4: mask number “2”) is specified, all primary color element dither images are The matrix element having the value “1” indicating the common validity is a dither mask DM5 (in the case of the mask number “2”) for each 2 × 2 size matrix of the element shape image represented by the element shape image matrix SG1. 2) and the matrix element of the value “1” indicating the validity of the result of performing the AND operation. That is, the mixed-color element dither image in this case matches the element dither image obtained based on the element shape image and the dither mask DM5 (2) having the mask number “2”.

【0214】図16のKデータ作成処理(S16)にお
いて、上述の混色要素ディザ画像の作成を行った後に
は、下記の混色有効マトリクス要素削除処理を行う。そ
して、このK(黒)データ作成処理(S16)が終了す
ると、次に、各基本色別配置バッファの各全体ディザ画
像(のマトリクス)を印刷バッファに転送し、色別にイ
ンクを出力することにより、疑似階調画像として作成さ
れた印刷画像を印刷して(S17)、画像作成・印刷処
理(S10)を終了する。なお、上述の説明では、理解
しやすいように、一旦、各色別の基本色別配置バッファ
に各全体ディザ画像を配置して作成し、その後印刷バッ
ファに転送したが、印刷バッファ内の各色別の領域に直
接配置するようにしても良い。
In the K data creation process (S16) in FIG. 16, after the above-described mixed color component dither image is created, the following mixed color effective matrix element deletion process is performed. Then, when the K (black) data creation processing (S16) is completed, next, (the matrix of) the entire dither image of each arrangement buffer for each basic color is transferred to the print buffer, and the ink is output for each color. Then, the print image created as the pseudo gradation image is printed (S17), and the image creation / print processing (S10) is completed. In the above description, for ease of understanding, each entire dither image is temporarily arranged in the basic color arrangement buffer for each color, created and then transferred to the print buffer. It may be arranged directly in the area.

【0215】上述のように、テープ印刷装置1では、図
16のKデータ作成処理(S16)において、混色有効
マトリクス要素削除処理を行う。すなわち、作成された
原色要素ディザ画像の有効を示す値「1」のマトリクス
要素のうち、混色要素ディザ画像の有効を示す値「1」
のマトリクス要素に対応するマトリクス要素の値を、無
効を示す値「0」に変換するための混色有効マトリクス
要素削除処理を行う。これにより、3原色についての原
色要素ディザ画像の有効を示す値「1」のマトリクス要
素のうち、混色要素ディザ画像の有効を示す値「1」と
重複して有効を示すマトリクス要素の有効をキャンセル
できる。
As described above, in the tape printer 1, in the K data creation processing (S16) in FIG. 16, the mixed color effective matrix element deletion processing is performed. That is, among the matrix elements of the value “1” indicating the validity of the created primary color element dither image, the value “1” indicating the validity of the mixed color element dither image
Is performed to convert the value of the matrix element corresponding to the matrix element of “1” to the value “0” indicating invalidity. This cancels the validity of the matrix element indicating the validity overlapping with the value “1” indicating the validity of the mixed color element dither image among the matrix elements of the value “1” indicating the validity of the primary color element dither image for the three primary colors it can.

【0216】3原色についての原色要素ディザ画像およ
びそれらの混色についての混色要素ディザ画像を組み合
わせた(重ね合わせた)場合、混色要素ディザ画像の有
効を示す値のマトリクス要素に対応するマトリクス要素
は、3原色と混色の4個の要素ディザ画像について有効
を示す値が重複することになり、3原色についての原色
要素ディザ画像による混色と、混色要素ディザ画像の混
色とが重複するが、テープ印刷装置1では、上記のキャ
ンセルによりこの重複を回避できる。また、例えば上記
のCMYKの4色の場合、一般に、C(シアン)、M
(マゼンタ)、Y(イエロー)を実際に混色したK(ブ
ラック)より、K(ブラック)を単独で印刷等した方が
きれいなブラックが得られるので、上記のように、3原
色についての原色要素ディザ画像側の有効を示す値の方
をキャンセルすることにより、4色によるきれいな画像
が得られる。
When the primary color element dither images for the three primary colors and the mixed color element dither images for the mixed colors are combined (overlaid), the matrix element corresponding to the matrix element of the value indicating the validity of the mixed color element dither image is: The values indicating the validity of the four element dither images of the three primary colors and the mixed color overlap, and the mixed color of the three primary colors by the primary color element dither image and the mixed color of the mixed color element dither image overlap. In No. 1, this overlap can be avoided by the above-mentioned cancellation. For example, in the case of the above four colors of CMYK, generally, C (cyan), M
(K) (black), in which K (black) is actually mixed with (magenta) and Y (yellow), produces a clearer black if K (black) is printed alone, so that the primary color element dither for the three primary colors is obtained as described above. By canceling the value indicating the validity on the image side, a clear image with four colors can be obtained.

【0217】この場合、混色有効マトリクス要素削除処
理としては、例えば、混色要素ディザ画像を対象とし
て、有効を示す値と無効を示す値とを反転させる論理反
転演算を行うことにより、混色反転要素ディザ画像を作
成し、原色要素ディザ画像の各原色要素ディザ画像と混
色反転要素ディザ画像との対応するマトリクス要素同士
を対象として、双方が有効を示す値のときのみ有効を示
す値とする論理積演算の結果として作成された要素ディ
ザ画像を、新たな各原色要素ディザ画像とする。すなわ
ち、この場合、比較的単純な論理反転演算や論理積演算
を行うだけで、3原色についての原色要素ディザ画像の
有効を示す値のマトリクス要素のうち、混色要素ディザ
画像の有効を示す値と重複して有効を示すマトリクス要
素の有効をキャンセルできる。
In this case, as the mixed-color effective matrix element deletion processing, for example, a mixed-color element dither image is subjected to a logical inversion operation of inverting a value indicating validity and a value indicating invalidity, thereby performing mixed-color inverted element dithering. Logical AND operation that creates an image and targets the corresponding matrix elements of each primary color element dither image and the mixed color inversion element dither image of the primary color element dither image, and sets the value as valid only when both values are valid. The element dither image created as a result of is used as each new primary color element dither image. In other words, in this case, a value indicating the validity of the mixed color element dither image among the matrix elements of the values indicating the validity of the primary color element dither image for the three primary colors can be obtained by simply performing a relatively simple logical inversion or logical multiplication operation. It is possible to cancel the validity of the matrix element which indicates validity redundantly.

【0218】図12〜図15で前述の例の場合につい
て、原色要素ディザ画像や混色要素ディザ画像を配置し
た原色全体ディザ画像や混色全体ディザ画像としてまと
めて、上記のキャンセルについて以下に説明する。図1
3のY色の原色全体ディザ画像マトリクスDGY、図1
4のC色の原色全体ディザ画像マトリクスDGC、およ
び、図15のM色の原色全体ディザ画像マトリクスDG
Mから、対応するマトリクス要素の全てが共通して有効
を示す値「1」のマトリクス要素を抽出することによ
り、図14のC色の原色全体ディザ画像DGCと同じ値
のK色(混色)の混色全体ディザ画像マトリクスDGK
が得られる。
The above-mentioned cancellation will be described below with reference to FIGS. 12 to 15 collectively as an entire primary color dither image or an overall mixed color dither image in which primary color element dither images and mixed color element dither images are arranged. FIG.
3 is a Y-color primary color whole dither image matrix DGY, FIG.
4 and the M primary color whole dither image matrix DG shown in FIG.
By extracting a matrix element having a value “1” indicating that all of the corresponding matrix elements are valid in common from M, the K color (mixed color) of the same value as the C primary color whole dither image DGC of FIG. Mixed color whole dither image matrix DGK
Is obtained.

【0219】そして、図13〜図15の各原色全体ディ
ザ画像マトリクスDGY、DGCおよびDGMのマトリ
クス要素のうち、混色全体ディザ画像マトリクスDGK
と重複して有効を示す値「1」を示すマトリクス要素に
無効を示す値「0」を割り付けると、すなわち、有効を
示す値「1」の重複部分をキャンセルすると、各原色全
体ディザ画像マトリクスDGY、DGCおよびDGMの
文字「1」の原色要素ディザ画像マトリクスの有効を示
す値「1」が全て無効を示す値「0」となり、それぞ
れ、図17〜図19に示す各原色全体ディザ画像マトリ
クスDGY2、DGC2およびDGM2のようになる。
Then, of the primary color whole dither image matrices DGY, DGC and DGM shown in FIGS. 13 to 15, the mixed color whole dither image matrix DGK is used.
When a value “0” indicating invalidity is assigned to a matrix element indicating a value “1” indicating validity overlapping with the above, that is, when an overlapping portion of the value “1” indicating validity is canceled, each primary color entire dither image matrix DGY , DGC, and DGM, the values “1” indicating the validity of the primary color element dither image matrix of the character “1” are all values “0” indicating the invalidity, and the respective primary color entire dither image matrices DGY2 shown in FIGS. , DGC2 and DGM2.

【0220】この結果、図16で前述の色別にインク出
力処理(S17)のとき、すなわち印刷する際には、図
14のK色(混色)の混色全体ディザ画像マトリクスD
GKに基づいてK色の印刷が為され、図17のY色の原
色全体ディザ画像マトリクスDGY2に基づいてY色の
印刷が為され、図18のC色の原色全体ディザ画像マト
リクスDGC2に基づいてC色の印刷が為され、およ
び、図19のM色の原色全体ディザ画像マトリクスDG
M2に基づいてM色の印刷が為されることにより、全体
としてCMYKの4色を基本色としてカラーディザ処理
されたカラー画像が印刷される。
As a result, at the time of the ink output processing (S17) for each color described above in FIG. 16, that is, when printing, the mixed color whole dither image matrix D of K color (mixed color) of FIG.
The printing of the K color is performed based on GK, the printing of the Y color is performed based on the entire primary color dither image matrix DGY2 of FIG. The C color is printed, and the M primary color whole dither image matrix DG shown in FIG.
By printing M colors based on M2, a color image subjected to color dither processing as a whole is printed using the four CMYK colors as basic colors.

【0221】なお、上述の例では、すなわち図16の処
理(S10)の例では、基本色別マスク処理(S15)
において、各原色要素ディザ画像およびそれを配置した
各原色全体要素ディザ画像を作成してから、Kデータ作
成処理(S16)において、混色要素ディザ画像および
それを配置した混色全体要素ディザ画像を作成した後、
各原色要素ディザ画像や各原色全体要素ディザ画像にそ
の分の修正を加えた。しかし、基本色別マスク処理(S
15)の前に、CMY3原色のそれぞれに対するディザ
マスク(以下「原色ディザマスク」)ばかりでなく、K
色(混色)に対するディザマスク(以下「混色ディザマ
スク」)を準備して、CMYKの4色を基本色としてそ
れぞれに対する基本色別マスク処理(S15)を行うこ
とにより、Kデータ作成処理(S16)を省略すること
もできる。以下、この場合について、第2実施形態とし
て説明する。
In the above example, that is, in the example of the processing (S10) in FIG. 16, the mask processing for each basic color (S15)
In, after creating each primary color element dither image and each primary color whole element dither image on which it is arranged, in the K data creation processing (S16), a mixed color element dither image and a whole color mixed element dither image on which it is arranged are created. rear,
Each primary color element dither image and each primary color whole element dither image were modified accordingly. However, the basic color mask processing (S
Before 15), not only the dither mask for each of the three primary colors CMY (hereinafter, “primary color dither mask”) but also K
A dither mask (hereinafter, “mixed color dither mask”) for the color (mixed color) is prepared, and the basic color-based masking process (S15) is performed for each of the four colors CMYK as the basic colors, thereby forming the K data (S16). Can also be omitted. Hereinafter, this case will be described as a second embodiment.

【0222】この第2実施形態におけるテープ印刷装置
1では、要素画像がカラー画像である場合、原色階調値
のうちの少なくとも相互に値が異なるものに対応する仮
原色ディザマスクを、それぞれディザマスクの一種とし
て記憶し、仮原色ディザマスクの全てに共通して有効を
示す値のマトリクス要素のみに有効を示す値を割り付け
た混色ディザマスクを記憶し、仮原色ディザマスクのそ
れぞれについて、各仮原色ディザマスクの有効を示す値
のマトリクス要素のうち、混色ディザマスクの有効を示
す値のマトリクス要素に対応するマトリクス要素の値
を、無効を示す値に変換して、各原色ディザマスクとし
て記憶し、混色ディザマスクおよび各原色ディザマスク
を使用した論理積演算を行うことにより、混色ディザマ
スクおよび各原色ディザマスクに対応する混色要素ディ
ザ画像および各原色要素ディザ画像を、それぞれ要素デ
ィザ画像の1種として作成する。
In the tape printing apparatus 1 according to the second embodiment, when the elementary image is a color image, the temporary primary color dither mask corresponding to at least one of the primary color gradation values having different values is used as the dither mask. And a mixed-color dither mask in which values indicating validity are assigned only to matrix elements of values that are valid for all of the temporary primary color dither masks, and for each of the temporary primary color dither masks, Of the matrix elements of the value indicating the validity of the dither mask, the value of the matrix element corresponding to the matrix element of the value indicating the validity of the mixed color dither mask is converted into a value indicating invalidity, and stored as each primary color dither mask, By performing a logical product operation using the mixed color dither mask and each primary color dither mask, the mixed color dither mask and each primary color Color mixing elements dithered image and each primary color component dithered image corresponding to Zamasuku, created as one of the respective elements dithered image.

【0223】図16で前述のように、各文字(各要素画
像)の要素形状画像を作成して入力文字展開が終了する
と(S13)、次に、基本色別のディザマスクを選択す
る(S14)。図12で前述の例において、例えば、文
字「1」の文字画像(要素形状画像)に着目すると、C
MY各色の原色階調値が全て「4」なので、原色階調値
のうちの少なくとも相互に値が異なるものといっても、
マスク番号「4」のディザマスクDM5(4)があれば
よいので、これを文字「1」の文字画像(要素形状画
像)のCMY各色に共通する原色階調値「4」に対応す
る仮原色ディザマスクとしてディザマスク領域246に
記憶する。
As described above with reference to FIG. 16, when the input character expansion is completed by creating the element shape image of each character (each element image) (S13), a dither mask for each basic color is selected (S14). ). In the example described above with reference to FIG. 12, for example, when focusing on the character image (element shape image) of the character “1”,
Since the primary color tone values of each of the MY colors are all “4”, even if the primary color tone values are at least mutually different,
A dither mask DM5 (4) having a mask number "4" is sufficient, and the dither mask DM5 (4) is used as the temporary primary color corresponding to the primary color gradation value "4" common to each of the CMY colors of the character image (element shape image) of the character "1". It is stored in the dither mask area 246 as a dither mask.

【0224】同様に、文字「2」の文字画像(要素形状
画像)に着目すると、C色の原色階調値「0」、M色の
原色階調値「2」、Y色の原色階調値「1」なので、マ
スク番号「0」、「2」、「1」のディザマスクDM5
(0)、DM5(2)、DM5(1)を、それぞれ、文
字「2」の文字画像(要素形状画像)のC色の原色階調
値「0」、M色の原色階調値「2」、Y色の原色階調値
「1」に対応する仮原色ディザマスクとしてディザマス
ク領域246に記憶する。同様に、文字「3」の文字画
像(要素形状画像)に着目すると、C色の原色階調値
「0」、M色の原色階調値「0」、Y色の原色階調値
「2」なので、マスク番号「0」のディザマスクDM5
(0)を、文字「3」の文字画像(要素形状画像)のC
色およびM色の原色階調値「0」に対応する仮原色ディ
ザマスクとして、マスク番号「2」のディザマスクDM
5(2)を、Y色の原色階調値「2」に対応する仮原色
ディザマスクとして、それぞれディザマスク領域246
に記憶する。
Similarly, focusing on the character image (element shape image) of the character “2”, the C primary color gradation value “0”, the M primary color gradation value “2”, and the Y primary color gradation value Since the value is “1”, the dither mask DM5 of the mask numbers “0”, “2”, and “1”
(0), DM5 (2), and DM5 (1) are respectively represented by the C primary color gradation value “0” and the M primary color gradation value “2” of the character image (element shape image) of the character “2”. , And Y in the dither mask area 246 as a temporary primary color dither mask corresponding to the primary color tone value “1”. Similarly, when focusing on the character image (element shape image) of the character “3”, the C primary color gradation value “0”, the M primary color gradation value “0”, and the Y primary color gradation value “2” , So the dither mask DM5 with the mask number “0”
(0) is the C of the character image (element shape image) of the character “3”
The dither mask DM with the mask number “2” is used as the temporary primary color dither mask corresponding to the primary color gradation value “0” of the color and the M color.
5 (2) as the temporary primary color dither mask corresponding to the primary color tone value “2” of Y color,
To memorize.

【0225】次に、仮原色ディザマスクの全てに共通し
て有効を示す値のマトリクス要素のみに有効を示す値を
割り付けた混色ディザマスクを記憶する。この場合、例
えば、仮原色ディザマスクの対応するマトリクス要素同
士を対象として、全てが有効を示す値のときのみ有効を
示す値とする論理積演算を行うことにより、仮原色ディ
ザマスクの全てに共通して有効を示す値のマトリクス要
素を直接求めて、混色ディザマスクとすることができ
る。そして、この場合、仮原色ディザマスクが、相互に
異なるディザマトリクスに基づくか同一のディザマトリ
クスに基づくかに拘わらずに、混色ディザマスクを得る
ことができる。一方、図12の例において上述のよう
に、仮原色ディザマスクが、同一のディザマトリクス
(この例ではディザマトリクスDD5)に基づく場合、
上記のような論理積演算をしなくても、混色ディザマス
クを得られる。以下では、後者の方法により混色ディザ
マスクを得る方法について説明する。
Next, a mixed color dither mask in which a value indicating validity is assigned to only a matrix element of a value indicating validity in common to all the temporary primary color dither masks is stored. In this case, for example, by performing a logical AND operation on the corresponding matrix elements of the temporary primary color dither mask to indicate a valid value only when all of the values are valid, common to all the temporary primary color dither masks is performed. Then, the matrix element of the value indicating the validity is directly obtained to obtain a mixed color dither mask. Then, in this case, a mixed-color dither mask can be obtained regardless of whether the temporary primary color dither masks are based on mutually different dither matrices or the same dither matrix. On the other hand, as described above in the example of FIG. 12, when the temporary primary color dither mask is based on the same dither matrix (the dither matrix DD5 in this example),
A mixed-color dither mask can be obtained without performing the AND operation as described above. Hereinafter, a method of obtaining a mixed-color dither mask by the latter method will be described.

【0226】すなわち、仮原色ディザマスクのうちの有
効を示す値「1」のマトリクス要素が最も少ない仮原色
ディザマスクを、混色ディザマスクとして記憶する。こ
こで、仮原色ディザマスクの全てが同一のディザマトリ
クスに基づくものである場合、有効を示す値のマトリク
ス要素が最も少ない仮原色ディザマスクの有効を示す値
のマトリクス要素に対応するのは、他の仮原色ディザマ
スクにおいても有効を示す値のマトリクス要素である。
この場合、仮原色ディザマスクが3原色に対応して何種
類(1〜3種)あっても、有効を示す値のマトリクス要
素が最も少ない仮原色ディザマスクの有効を示す値のマ
トリクス要素が、仮原色ディザマスクの全てに共通して
有効を示す値のマトリクス要素となる。このため、この
有効を示す値のマトリクス要素が最も少ない仮原色ディ
ザマスクは、3原色の混色についての混色ディザマスク
として使用できる。
That is, among the temporary primary color dither masks, the temporary primary color dither mask having the least number of matrix elements having the value "1" indicating validity is stored as the mixed color dither mask. Here, when all of the temporary primary color dither masks are based on the same dither matrix, the matrix elements of the value indicating the validity of the temporary primary color dither mask corresponding to the matrix elements of the value indicating the validity of the least are the other elements. Is a matrix element of a value indicating validity in the temporary primary color dither mask.
In this case, no matter how many types (1 to 3 types) of the temporary primary color dither masks correspond to the three primary colors, the matrix element of the value indicating the validity of the temporary primary color dither mask having the least number of matrix elements indicating the validity is: This is a matrix element of a value indicating validity common to all the temporary primary color dither masks. Therefore, the temporary primary color dither mask having the least effective matrix element can be used as the mixed color dither mask for the mixed color of the three primary colors.

【0227】また、この場合、混色ディザマスクは、カ
ラー3原色の各原色階調値のうち、条件を満たすディザ
マトリクスのしきい値の数が最も少ない原色階調値を選
択することにより、選択された原色階調値に対応する仮
原色ディザマスクと同様にして得ることができる。すな
わち、原色階調値を選択することにより、仮原色ディザ
マスクのうちの有効を示す値のマトリクス要素が最も少
ない仮原色ディザマスクを選択でき、これにより、混色
ディザマスクを容易に得られる。
In this case, the mixed color dither mask is selected by selecting the primary color tone value having the smallest number of threshold values of the dither matrix satisfying the condition from the primary color tone values of the three primary colors. In the same manner as the provisional primary color dither mask corresponding to the primary color gradation values thus obtained. In other words, by selecting the primary color tone values, it is possible to select a temporary primary color dither mask which has the least number of matrix elements indicating validity among the temporary primary color dither masks, thereby easily obtaining a mixed color dither mask.

【0228】さらに図12等の例のように、各原色階調
値がディザマトリクスの各しきい値以上(原色階調値≧
しきい値)のときにそのしきい値の条件を満たし、その
しきい値に対応するディザマスクのマトリクス要素が有
効を示す値となる場合、最小値の原色階調値を選択する
だけで、有効を示す値のマトリクス要素が最も少ない仮
原色ディザマスクを選択でき、これにより、混色ディザ
マスクを容易に得られる。なお、もちろん、例えば各原
色階調値がディザマトリクスの各しきい値を超える(原
色階調値>しきい値)ときにそのしきい値の条件を満た
す場合にも、最大値の原色階調値を選択すれば良く、逆
に例えば各原色階調値がディザマトリクスの各しきい値
以下(原色階調値≦しきい値)または各しきい値未満
(原色階調値<しきい値)のときにそのしきい値の条件
を満たす場合には、最大値の原色階調値を選択すること
により、同様に、混色ディザマスクを容易に得られる。
Further, as shown in the example of FIG. 12, etc., each primary color gradation value is not less than each threshold value of the dither matrix (primary color gradation value ≧
When the threshold value is satisfied at the time of (threshold value), and the matrix element of the dither mask corresponding to the threshold value becomes a value indicating validity, only selecting the minimum primary color gradation value, A temporary primary color dither mask having the least number of matrix elements indicating validity can be selected, whereby a mixed color dither mask can be easily obtained. Of course, even when each primary color tone value exceeds each threshold value of the dither matrix (primary color tone value> threshold value), the maximum value of the primary color tone value is satisfied. A value may be selected. Conversely, for example, each primary color tone value is equal to or less than each threshold value of the dither matrix (primary color tone value ≦ threshold value) or less than each threshold value (primary color tone value <threshold value). If the threshold value condition is satisfied at the time of (1), a mixed-color dither mask can be easily obtained in the same manner by selecting the maximum primary color gradation value.

【0229】より具体的には、例えば図12等の例の場
合、文字「1」の文字画像(要素形状画像)についての
仮原色ディザマスクとして記憶されているのは、マスク
番号「4」のディザマスクDM5(4)だけなので、こ
れを文字「1」の文字画像(要素形状画像)に対する混
色ディザマスクとして記憶する。また、文字「2」の文
字画像(要素形状画像)の仮原色ディザマスクは、マス
ク番号「0」、「2」、「1」のディザマスクDM5
(0)、DM5(2)、DM5(1)なので、このうち
の有効を示す値「1」のマトリクス要素が最も少ない仮
原色ディザマスク、すなわちマスク番号「0」のディザ
マスクDM5(0)を、文字「2」の文字画像(要素形
状画像)に対する混色ディザマスクとして記憶する。同
様に、文字「3」の文字画像(要素形状画像)の仮原色
ディザマスクは、マスク番号「0」、「2」のディザマ
スクDM5(0)、DM5(2)なので、このうちの有
効を示す値「1」のマトリクス要素が最も少ないマスク
番号「0」のディザマスクDM5(0)を、文字「3」
の文字画像(要素形状画像)に対する混色ディザマスク
として記憶する。
More specifically, in the example of FIG. 12, for example, the temporary primary color dither mask for the character image (element shape image) of the character “1” is stored in the mask number “4”. Since there is only the dither mask DM5 (4), this is stored as a mixed color dither mask for the character image (element shape image) of the character "1". The temporary primary color dither mask of the character image (element shape image) of the character “2” is a dither mask DM5 of mask numbers “0”, “2”, and “1”.
(0), DM5 (2), and DM5 (1), the temporary primary color dither mask having the least number of matrix elements having the value “1” indicating the validity, that is, the dither mask DM5 (0) having the mask number “0” is used. , Is stored as a mixed-color dither mask for the character image (element shape image) of the character “2”. Similarly, the temporary primary color dither masks of the character image (element shape image) of the character “3” are dither masks DM5 (0) and DM5 (2) with mask numbers “0” and “2”. The dither mask DM5 (0) with the mask number “0” having the least number of matrix elements having the value “1” is replaced with the character “3”.
Is stored as a mixed color dither mask for the character image (element shape image).

【0230】次に、仮原色ディザマスクのそれぞれにつ
いて、各仮原色ディザマスクの有効を示す値「1」のマ
トリクス要素のうち、混色ディザマスクの有効を示す値
「1」のマトリクス要素に対応するマトリクス要素の値
を、無効を示す値「1」に変換して、各原色ディザマス
クとして記憶する。上述の例の場合、文字「1」の文字
画像(要素形状画像)についての仮原色ディザマスクと
して記憶されているのは、マスク番号「4」のディザマ
スクDM5(4)だけであり、混色ディザマスクもディ
ザマスクDM5(4)なので、仮原色ディザマスクの有
効を示す値「1」のマトリクス要素のうち、混色ディザ
マスクの有効を示す値「1」のマトリクス要素に対応す
るマトリクス要素の値を、無効を示す値「1」に変換す
れば、全ての有効を示す値「1」のマトリクス要素が無
効を示す値「1」に変換される。すなわち、文字「1」
の文字画像(要素形状画像)についてのCMY各色につ
いての各原色ディザマスクは、全て無効を示す値「0」
のマトリクス要素から成るディザマスクDM5(0)と
同じになる。
Next, for each of the temporary primary color dither masks, among the matrix elements of the value “1” indicating the validity of each temporary primary color dither mask, the matrix elements of the value “1” indicating the validity of the mixed color dither mask are corresponded. The value of the matrix element is converted into a value "1" indicating invalidity and stored as each primary color dither mask. In the case of the above example, only the dither mask DM5 (4) with the mask number “4” is stored as the temporary primary color dither mask for the character image (element shape image) of the character “1”. Since the mask is also the dither mask DM5 (4), of the matrix elements having the value "1" indicating the validity of the temporary primary color dither mask, the values of the matrix elements corresponding to the matrix element having the value "1" indicating the validity of the mixed color dither mask are , If the value is converted to a value "1" indicating invalidity, all the matrix elements having the value "1" indicating validity are converted into values "1" indicating invalidity. That is, the character "1"
Each of the primary color dither masks for each of the CMY colors for the character image (element shape image) is a value “0” indicating invalidity.
This is the same as the dither mask DM5 (0) composed of the matrix elements of.

【0231】一方、文字「2」の文字画像(要素形状画
像)についての仮原色ディザマスクとして記憶されてい
るのは、マスク番号「0」、「2」、「1」のディザマ
スクDM5(0)、DM5(2)、DM5(1)ではあ
るが、混色ディザマスクがマスク番号「0」のディザマ
スクDM5(0)であり、有効を示す値「1」のマトリ
クス要素がないので、仮原色ディザマスクの有効を示す
値「1」のマトリクス要素のうち、混色ディザマスクの
有効を示す値「1」のマトリクス要素に対応するマトリ
クス要素の値を、無効を示す値「1」に変換するにして
も、変換されるマトリクス要素が無く、仮原色ディザマ
スクがそのまま原色ディザマスクとなる。同様に、文字
「3」の文字画像(要素形状画像)についても、混色デ
ィザマスクがマスク番号「0」のディザマスクDM5
(0)であり、有効を示す値「1」のマトリクス要素が
ないので、仮原色ディザマスクがそのまま原色ディザマ
スクとなる。
On the other hand, what is stored as the temporary primary color dither mask for the character image (element shape image) of the character “2” is the dither mask DM5 (0) of the mask numbers “0”, “2”, and “1”. ), DM5 (2) and DM5 (1), but the mixed color dither mask is the dither mask DM5 (0) having the mask number “0”, and there is no matrix element having the value “1” indicating validity. Among the matrix elements having the value "1" indicating the validity of the dither mask, the values of the matrix elements corresponding to the matrix elements having the value "1" indicating the validity of the mixed color dither mask are converted into the value "1" indicating the invalidity. However, there is no matrix element to be converted, and the temporary primary color dither mask becomes the primary color dither mask as it is. Similarly, for the character image (element shape image) of the character “3”, the mixed color dither mask is the dither mask DM5 with the mask number “0”.
Since it is (0) and there is no matrix element having a value of “1” indicating validity, the temporary primary color dither mask is directly used as the primary color dither mask.

【0232】以上により、文字「1」の文字画像(要素
形状画像)については、混色ディザマスクがディザマス
クDM5(4)と同じになり、CMY各色についての各
原色ディザマスクが全てディザマスクDM5(0)と同
じになる。また、文字「2」の文字画像(要素形状画
像)については、混色ディザマスクがディザマスクDM
5(0)と同じになり、CMY各色についての各原色デ
ィザマスクが、それぞれ各仮原色ディザマスクと同じ、
すなわちディザマスクDM5(0)、DM5(2)、D
M5(1)と同じになる。また、文字「3」の文字画像
(要素形状画像)については、混色ディザマスクがディ
ザマスクDM5(0)と同じになり、CMY各色につい
ての各原色ディザマスクが、各仮原色ディザマスクのそ
れぞれディザマスクDM5(0)、DM5(0)、DM
5(2)と同じになる。
As described above, for the character image (element shape image) of the character “1”, the mixed-color dither mask is the same as the dither mask DM5 (4), and all the primary color dither masks for the respective CMY colors are the dither mask DM5 ( 0). For the character image (element shape image) of the character “2”, the mixed color dither mask is the dither mask DM.
5 (0), each primary color dither mask for each CMY color is the same as each temporary primary color dither mask,
That is, the dither masks DM5 (0), DM5 (2), D5
It is the same as M5 (1). For the character image (element shape image) of the character “3”, the mixed-color dither mask is the same as the dither mask DM5 (0), and the primary color dither masks for the CMY colors are dither masks for the respective temporary primary color dither masks. Mask DM5 (0), DM5 (0), DM
It becomes the same as 5 (2).

【0233】次に、混色ディザマスクおよび各原色ディ
ザマスクを使用した論理積演算を行うことにより、混色
ディザマスクおよび各原色ディザマスクに対応する混色
要素ディザ画像および各原色要素ディザ画像を、それぞ
れ要素ディザ画像の1種として作成する。すなわち、C
MYKの4色を基本色としてそれぞれに対する基本色別
マスク処理(S15)を行うことにより、Kデータ作成
処理(S16)を省略できる。
Next, by performing a logical product operation using the mixed color dither mask and each primary color dither mask, the mixed color element dither image and each primary color element dither image corresponding to each mixed color dither mask and each primary color dither mask are respectively converted into the elementary dither image. Created as one type of dither image. That is, C
By performing the mask processing for each basic color (S15) for each of the four colors MYK as the basic colors, the K data creation processing (S16) can be omitted.

【0234】例えば、文字「1」の文字画像(要素形状
画像)に着目すると、図12の要素形状画像マトリクス
SG1で表現された要素形状画像の2×2のサイズのマ
トリクス毎に、K色(混色)の混色ディザマスクである
ディザマスクDM5(4)との論理積演算を行うと、図
14(a)の(横)24×(縦)17の原色全体ディザ
画像マトリクスDGKのうちの、左側(文字「1」)の
(横)8×(縦)17の原色要素ディザ画像マトリクス
となり、Y色、C色およびM色の原色ディザマスクであ
るディザマスクDM5(0)との論理積演算を行うと、
それぞれ図17〜図19の(横)24×(縦)17の原
色全体ディザ画像マトリクスDGY2、DGC2および
DGM2のうちの、左側(文字「1」)の(横)8×
(縦)17の(すなわち全て無効を示す値「0」の)原
色要素ディザ画像マトリクスとなる。文字「2」および
「3」の文字画像(要素形状画像)については、K色
(混色)の混色ディザマスクがディザマスクDM5
(0)であり、CMY各色の原色ディザマスクは、図1
3〜図15で前述のディザマスクと同じであり、図17
〜図19でも変わらないので、説明は省略する。
For example, focusing on the character image (element shape image) of the character “1”, the K color (2 × 2) matrix of the element shape image represented by the element shape image matrix SG1 in FIG. When a logical product operation is performed with the dither mask DM5 (4), which is a mixed color dither mask, the left side of the (horizontal) 24 × (vertical) 17 whole primary color dither image matrix DGK in FIG. It becomes a (horizontal) 8 × (vertical) 17 primary color element dither image matrix of (character “1”), and performs a logical product operation with a dither mask DM5 (0) which is a primary color dither mask of Y, C and M colors. When you do
Each of the (horizontal) 24 × (vertical) 17 dither image matrices DGY2, DGC2 and DGM2 of (horizontal) 24 × (vertical) 17 in FIGS.
It becomes a (vertical) 17 primary color element dither image matrix (that is, a value “0” indicating all invalid). For the character images (element shape images) of the characters “2” and “3”, the K-color (mixed color) mixed-color dither mask is a dither mask DM5.
(0), and the primary color dither mask of each CMY color is shown in FIG.
3 to 15 are the same as the dither mask described above,
19, the description is omitted.

【0235】すなわち、この場合、CMYKの4色を基
本色としてそれぞれに対する基本色別マスク処理(S1
5)を行うことにより、図14の混色全体ディザ画像マ
トリクスDGK、図17のY色の原色全体ディザ画像マ
トリクスDGY2、図18のC色の原色全体ディザ画像
マトリクスDGC2、および、図19のM色の原色全体
ディザ画像マトリクスDGM2が得られるので、Kデー
タ作成処理(S16)を省略できる。
That is, in this case, the mask processing for each basic color is performed for each of the four colors CMYK as basic colors (S1).
By performing 5), the mixed-color entire dither image matrix DGK in FIG. 14, the Y primary color entire dither image matrix DGY2 in FIG. 17, the C primary color entire dither image matrix DGC2 in FIG. 18, and the M color in FIG. , The K data creation process (S16) can be omitted.

【0236】上述のように、この第2実施形態における
テープ印刷装置1では、要素画像がカラー画像である場
合、前述の実施形態(第1実施形態)におけるテープ印
刷装置1と同様に、3原色の原色階調値の全てが同一の
値のときには、少なくとも1個、2原色について同一の
値のときには、少なくとも2個、それぞれ別のときに
は、少なくとも3個の原色要素ディザ画像を作成する。
As described above, in the tape printing apparatus 1 according to the second embodiment, when the element images are color images, the three primary colors are used in the same manner as in the tape printing apparatus 1 according to the above-described embodiment (first embodiment). When the primary color gradation values are all the same, at least one primary color element dither image is created when the two primary colors have the same value, and at least two primary color element dither images are created when they are different.

【0237】例えば、上述の文字「1」の文字画像(要
素形状画像)については、原色ディザマスクであるディ
ザマスクDM5(0)に基づく少なくとも1個の原色要
素ディザ画像を作成する。また、上述の文字「2」の文
字画像(要素形状画像)については、原色ディザマスク
であるディザマスクDM5(0)、DM5(2)および
DM5(1)に基づく少なくとも3個の原色要素ディザ
画像を作成する。また、文字「3」の文字画像(要素形
状画像)については、原色ディザマスクであるディザマ
スクDM5(0)およびDM5(2)に基づく少なくと
も2個の原色要素ディザ画像を作成する。
For example, for the character image (element shape image) of the character “1”, at least one primary color element dither image based on the dither mask DM5 (0) which is a primary color dither mask is created. For the character image (element shape image) of the character “2”, at least three primary color element dither images based on the dither masks DM5 (0), DM5 (2), and DM5 (1), which are primary color dither masks, are used. Create For the character image (element shape image) of the character “3”, at least two primary color element dither images based on the dither masks DM5 (0) and DM5 (2), which are primary color dither masks, are created.

【0238】すなわち、重複利用することも含め、3原
色についての原色要素ディザ画像が得られるので、カラ
ーの要素画像の3原色の原色階調値に関するディザ処理
に適用できる。なお、この場合も、考え得る原色階調値
のそれぞれについての仮原色ディザマスクを予めディザ
マスクとして記憶しておいても良いし、原色階調値が判
明した後に、ディザマトリクスとの比較演算により新た
に作成して記憶しても良いし、考え得る指定階調値に対
応するディザマスクが予め記憶されている場合には、原
色階調値が判明した後に、それらから選択して改めて原
色ディザマスクとして記憶しても良い。上述の場合に
は、考え得る5つの指定階調値0〜4に対する5つのデ
ィザマスクDM5(0)〜DM5(4)を記憶してい
て、それらのいずれかを選択して改めて原色ディザマス
クとして記憶する場合に相当する。
That is, since the primary color element dither images for the three primary colors are obtained including the overlapping use, the present invention can be applied to the dither processing for the primary color gradation values of the three primary colors of the color element image. In this case as well, the temporary primary color dither mask for each conceivable primary color tone value may be stored in advance as a dither mask, or after the primary color tone value is determined, a comparison operation with a dither matrix is performed. It may be newly created and stored, or if a dither mask corresponding to a conceivable designated gradation value is stored in advance, after the primary color gradation values are determined, the primary color dither mask is selected and newly selected. It may be stored as a mask. In the case described above, five dither masks DM5 (0) to DM5 (4) are stored for five conceivable designated gradation values 0 to 4, and any one of them is selected as a primary color dither mask. This corresponds to storing.

【0239】また、この第2実施形態におけるテープ印
刷装置1では、仮原色ディザマスクの全てに共通して有
効を示す値のマトリクス要素のみに有効を示す値を割り
付けた混色ディザマスクを使用して論理積演算を行うこ
とにより、混色ディザマスクに対応する混色要素ディザ
画像を作成するので、上記の3原色についての原色要素
ディザ画像に加え、3原色の混色についての混色要素デ
ィザ画像を得ることができる。すなわち、混色に関する
ディザ処理も為される。
In the tape printing apparatus 1 according to the second embodiment, a mixed-color dither mask is used in which a value indicating validity is assigned to only matrix elements of values indicating validity in common with all of the temporary primary color dither masks. By performing a logical product operation, a mixed-color element dither image corresponding to the mixed-color dither mask is created. Therefore, in addition to the primary-color element dither image for the three primary colors, a mixed-color element dither image for the three primary colors can be obtained. it can. That is, the dither processing for the color mixture is also performed.

【0240】また、この場合、原色ディザマスクは、仮
原色ディザマスクの有効を示す値のマトリクス要素のう
ち、混色ディザマスクの有効を示す値のマトリクス要素
に対応するマトリクス要素の値を、無効を示す値に変換
したもの、すなわち、混色ディザマスクの有効を示す値
と重複して有効を示すマトリクス要素の有効をキャンセ
ルしたものとなっている。このため、各原色ディザマス
クを使用して作成された各原色要素ディザ画像は、前述
の第1実施形態におけるテープ印刷装置1と同様に、混
色要素ディザ画像の有効を示す値と重複して有効を示す
マトリクス要素の有効をキャンセルしたものとなり、例
えばCMYK等の4色を基本色とする場合にも、きれい
な画像が得られる画像処理を行うことができる。
Also, in this case, the primary color dither mask sets the value of the matrix element corresponding to the value indicating the validity of the mixed color dither mask, out of the matrix elements indicating the validity of the temporary primary color dither mask, to the value of the invalid value. The value is converted into a value indicating the validity of the mixed color dither mask, that is, the validity of the matrix element indicating the validity is canceled while being overlapped with the value indicating the validity of the mixed color dither mask. For this reason, each primary color element dither image created using each primary color dither mask overlaps with the value indicating the validity of the mixed color element dither image, similarly to the tape printer 1 in the first embodiment described above. , The validity of the matrix element is canceled. For example, even when four colors such as CMYK are used as the basic colors, image processing for obtaining a clear image can be performed.

【0241】なお、上述の図12の例は、K色(混色)
ディザマスクがディザマスクDM5(0)(すなわち無
効を示す値「0」のみのディザマスク)であるか(文字
「2」「3」)、K色(混色)ディザマスクがディザマ
スクDM5(0)以外ではあるが、そのかわりに各原色
ディザマスクがディザマスクDM5(0)の例となって
いる。このような場合、仮原色ディザマスクの有効を示
す値のマトリクス要素のうち、混色ディザマスクの有効
を示す値のマトリクス要素に対応するマトリクス要素の
値を、無効を示す値に変換して、混色ディザマスクの有
効を示す値と重複して有効を示すマトリクス要素の有効
をキャンセルするにしても、単に混色ディザマスクがデ
ィザマスクDM5(0)なら、各仮原色ディザマスクを
そのまま各原色ディザマスクとし、それ以外なら、各原
色ディザマスクをディザマスクDM5(0)とすれば良
い。
In the example of FIG. 12, the K color (mixed color) is used.
Whether the dither mask is the dither mask DM5 (0) (that is, the dither mask having only the value “0” indicating invalidity) (characters “2” and “3”), or the K color (mixed color) dither mask is the dither mask DM5 (0) However, each primary color dither mask is an example of the dither mask DM5 (0) instead. In such a case, among the matrix elements indicating the validity of the temporary primary color dither mask, the values of the matrix elements corresponding to the matrix elements indicating the validity of the mixed color dither mask are converted into values indicating the invalidity, and the color mixing is performed. Even if the validity of the matrix element indicating the validity overlaps with the value indicating the validity of the dither mask, if the mixed color dither mask is simply the dither mask DM5 (0), each temporary primary color dither mask is used as each primary color dither mask as it is. Otherwise, each primary color dither mask may be a dither mask DM5 (0).

【0242】例えば、図20は、図12の例と同じディ
ザマトリクスDD5およびマスク番号0〜4のディザマ
スクDM5(0)〜DM(4)を使用した場合の色変換
テーブルの一例を示している。同図に示すように、色呼
称の欄の各名称で示される各指定色に対して、C色、Y
色およびM色の各原色階調値、すなわち各仮原色ディザ
マスクのマスク番号は、それぞれC欄、M欄およびY欄
の各数値となる。また、同図では、K欄の各数値がそれ
に対応するK色(混色)の階調値、すなわち混色ディザ
マスクのマスク番号を示し、C2欄、M2欄およびY2
欄の各数値が、それぞれC色、Y色およびM色の各原色
ディザマスクのマスク番号を示している。
For example, FIG. 20 shows an example of a color conversion table when the same dither matrix DD5 and dither masks DM5 (0) to DM (4) with mask numbers 0 to 4 as in the example of FIG. 12 are used. . As shown in the figure, for each designated color indicated by each name in the color designation column, C color, Y color
The primary color gradation values of the colors and the M colors, that is, the mask numbers of the respective temporary primary color dither masks are the respective numerical values in the C column, the M column, and the Y column. Also, in the same figure, each numerical value in the K column indicates the tone value of the corresponding K color (mixed color), that is, the mask number of the mixed color dither mask, and the C2 column, the M2 column, and the Y2
Each numerical value in the column indicates a mask number of each primary color dither mask of C color, Y color and M color.

【0243】ここで、同図から明らかなように、No.
1〜No.23の指定色に対しては、上述の原色ディザ
マスクの決定方法、すなわち、単に混色ディザマスクが
ディザマスクDM5(0)なら、各仮原色ディザマスク
をそのまま各原色ディザマスクとし、それ以外なら、各
原色ディザマスクをディザマスクDM5(0)とすれば
良い。これらの場合には、結果的に、仮原色ディザマス
クの有効を示す値のマトリクス要素のうち、混色ディザ
マスクの有効を示す値のマトリクス要素に対応するマト
リクス要素の値を、無効を示す値に変換して、混色ディ
ザマスクの有効を示す値と重複して有効を示すマトリク
ス要素の有効をキャンセルしたことになる。
Here, as apparent from FIG.
1 to No. For the 23 designated colors, the above-described method of determining the primary color dither mask, that is, if the mixed color dither mask is simply dither mask DM5 (0), each temporary primary color dither mask is used as each primary color dither mask. What is necessary is just to let each primary color dither mask be dither mask DM5 (0). In these cases, as a result, of the matrix elements indicating the validity of the temporary primary color dither mask, the values of the matrix elements corresponding to the matrix elements indicating the validity of the mixed color dither mask are changed to values indicating the invalidity. This means that the conversion is performed, and the validity of the matrix element indicating the validity is canceled by overlapping the value indicating the validity of the mixed color dither mask.

【0244】しかし、同図のNo.24やNo.25等
のように、すなわち指定色が「暗い赤」や「暗い橙」な
どの有彩色の明度を変化させたもの等のように、ディザ
マスクDM5(0)(すなわち無効を示す値「0」のみ
のディザマスク)でもなく、かつ仮原色ディザマスクと
も異なる原色ディザマスクが必要になる場合がある。
However, in FIG. 24 and No. 25, that is, the dither mask DM5 (0) (that is, the value "0" indicating invalidity), such as the one in which the designated color has changed the brightness of a chromatic color such as "dark red" or "dark orange" There is a case where a primary dither mask that is different from the temporary primary dither mask is required.

【0245】そこで、このテープ印刷装置1では、各原
色ディザマスクは、混色ディザマスクを対象として有効
を示す値と無効を示す値とを反転させる論理反転演算の
結果として作成される混色反転ディザマスクと、各仮原
色ディザマスクとの対応するマトリクス要素同士を対象
として、双方が有効を示す値のときのみ有効を示す値と
する論理積演算の結果として作成する。
Therefore, in the tape printer 1, each primary color dither mask is a mixed color inverted dither mask created as a result of a logical inversion operation for inverting a value indicating validity and a value indicating invalidity for the mixed color dither mask. And a matrix element corresponding to each of the temporary primary color dither masks, and is created as a result of an AND operation in which the values indicating validity are obtained only when both values are valid.

【0246】例えば前述の黒指定(図20のNo.1参
照)の場合、混色ディザマスク(K欄参照)であるディ
ザマスクDM5(4)を対象として有効を示す値「1」
と無効を示す値「0」とを反転させる論理反転演算を行
うと、ディザマスクDM5(0)と同じになる。すなわ
ち混色反転ディザマスクはディザマスクDM5(0)と
同じになるので、各仮原色ディザマスク(C欄、M欄お
よびY欄参照)の構成に拘わらず、論理積演算により、
各原色ディザマスク(C2欄、M2欄およびY2欄参
照)はディザマスクDM5(0)と同じになる。
For example, in the case of the above-mentioned black designation (see No. 1 in FIG. 20), the value “1” indicating validity for the dither mask DM5 (4) which is a mixed color dither mask (see column K).
When a logical inversion operation for inverting the value "0" indicating invalidity is performed, the result becomes the same as the dither mask DM5 (0). That is, since the mixed-color inversion dither mask is the same as the dither mask DM5 (0), regardless of the configuration of each temporary primary color dither mask (see columns C, M, and Y), a logical product operation is performed.
Each primary color dither mask (see columns C2, M2 and Y2) is the same as dither mask DM5 (0).

【0247】また、例えば濃い灰色(図20のNo.3
参照)を指定した場合、混色ディザマスク(K欄参照)
であるディザマスクDM5(3)を対象として有効を示
す値「1」と無効を示す値「0」とを反転させる論理反
転演算(以下「NOT.」で表現)を行うと、ディザマ
スクDM5(3)は、右下のマトリクス要素のみ「0」
で他は「1」のマトリクスなので(図12(d)参
照)、混色反転ディザマスクは、右下のマトリクス要素
のみ「1」で他は「0」のマトリクスとなる(例えばデ
ィザマスクDM5(3)を反転したものを以下「ディザ
マスクDM5N(3)」のように表現する。すなわち、
DM5N(3)=NOT.DM5(3)となる。他のマ
スク番号についても同じ)。この場合、各仮原色ディザ
マスク(C欄、M欄およびY欄参照)は、全てディザマ
スクDM5(3)と同じなので、ディザマスクDM5N
(3)とディザマスクDM5(3)との論理積演算(以
下「.AND.」で表現)を行うと、各原色ディザマス
ク(C2欄、M2欄およびY2欄参照)はディザマスク
DM5(0)と同じになる(すなわち、DM5N
(3).AND.DM5(3)=DM5(0)とな
る)。
Also, for example, dark gray (No. 3 in FIG. 20)
), The mixed color dither mask (see K column)
Is performed on the dither mask DM5 (3), the logical inversion operation of inverting the value “1” indicating validity and the value “0” indicating invalidity (hereinafter expressed as “NOT.”) Results in the dither mask DM5 (3). 3) is "0" only in the lower right matrix element
Since the other is a matrix of “1” (see FIG. 12D), the mixed color inversion dither mask is a matrix of “1” only in the lower right matrix element and the other is “0” (for example, the dither mask DM5 (3 ) Is expressed as “dither mask DM5N (3)” below.
DM5N (3) = NOT. DM5 (3). The same applies to other mask numbers.) In this case, since each of the temporary primary color dither masks (see columns C, M, and Y) is the same as dither mask DM5 (3), dither mask DM5N
When a logical AND operation (hereinafter, represented by “.AND.”) Of (3) and the dither mask DM5 (3) is performed, each primary color dither mask (see the C2 column, the M2 column, and the Y2 column) becomes the dither mask DM5 (0). ) (Ie, DM5N
(3). AND. DM5 (3) = DM5 (0)).

【0248】白(図20のNo.2参照)、灰色(図2
0のNo.4参照)、薄い灰色(図20のNo.5参
照)を指定した場合も同様であり、それぞれの混色ディ
ザマスク(K欄参照)に対して論理反転演算(DM5N
(0)=NOT.DM5(0)=DM5(4)、DM5
N(2)=NOT.DM5(2)、DM5N(1)=N
OT.DM5(1))を行って、混色反転ディザマスク
を求め、各仮原色ディザマスク(C欄、M欄およびY欄
参照)との論理積演算(DM5N(0).AND.DM
5(0)=DM5(0)、DM5N(2).AND.D
M5(2)=DM5(0)、DM5N(1).AND.
DM5(1)=DM5(0))を行うことにより、各原
色ディザマスク(C2欄、M2欄およびY2欄参照:全
てマスク番号「0」)を得ることができる。
White (see No. 2 in FIG. 20), gray (see FIG.
No. 0 The same applies to the case where light gray (see No. 5 in FIG. 20) is specified, and the logical inversion operation (DM5N) is performed on each mixed-color dither mask (see column K).
(0) = NOT. DM5 (0) = DM5 (4), DM5
N (2) = NOT. DM5 (2), DM5N (1) = N
OT. DM5 (1)) to obtain a mixed color inversion dither mask, and perform a logical product operation (DM5N (0) .AND.DM) with each temporary primary color dither mask (see columns C, M and Y).
5 (0) = DM5 (0), DM5N (2). AND. D
M5 (2) = DM5 (0), DM5N (1). AND.
By performing DM5 (1) = DM5 (0), each primary color dither mask (refer to column C2, column M2 and column Y2: all mask numbers “0”) can be obtained.

【0249】また、例えば赤(図20のNo.6参照)
を指定した場合、混色ディザマスク(K欄参照)に対し
て論理反転演算(DM5N(0)=NOT.DM5
(0)=DM5(4))を行うと、混色反転ディザマス
クは、全て有効を示す値「1」のディザマスクDM5
(4)と同じになるので、各仮原色ディザマスク(C
欄、M欄およびY欄参照)との論理積演算(DM5N
(0).AND.DM5(0)=DM5(4).AN
D.DM5(0)=DM5(0)、DM5N(0).A
ND.DM5(4)=DM5(4).AND.DM5
(4)=DM5(4)、DM5N(0).AND.DM
5(4)=DM5(4).AND.DM5(4)=DM
5(4))を行うと、各原色ディザマスク(C2欄、M
2欄およびY2欄参照)は、各仮原色ディザマスク(C
欄、M欄およびY欄参照)と同じになる。
Further, for example, red (see No. 6 in FIG. 20)
Is specified, the logical inversion operation (DM5N (0) = NOT.DM5) is performed on the mixed-color dither mask (refer to column K).
(0) = DM5 (4)), the mixed-color inversion dither mask becomes a dither mask DM5 having a value “1” indicating validity.
Since it becomes the same as (4), each temporary primary color dither mask (C
Column, M column and Y column) (AND and DM5N)
(0). AND. DM5 (0) = DM5 (4). AN
D. DM5 (0) = DM5 (0), DM5N (0). A
ND. DM5 (4) = DM5 (4). AND. DM5
(4) = DM5 (4), DM5N (0). AND. DM
5 (4) = DM5 (4). AND. DM5 (4) = DM
5 (4)), each primary color dither mask (column C2, M
Columns 2 and Y2) indicate each temporary primary color dither mask (C
Column, M column and Y column).

【0250】No.7〜No.23の色を指定した場合
も同様であり、混色ディザマスク(K欄参照)に対して
論理反転演算(DM5N(0)=NOT.DM5(0)
=DM5(4))を行うと、混色反転ディザマスクは、
全て有効を示す値「1」のディザマスクDM5(4)と
同じになるので、各仮原色ディザマスク(C欄、M欄お
よびY欄参照)との論理積演算を行うと、各仮原色ディ
ザマスク(C欄、M欄およびY欄参照)と同じ各原色デ
ィザマスク(C2欄、M2欄およびY2欄参照)が得ら
れる。
[0250] No. 7-No. The same applies to the case where 23 colors are designated, and the logical inversion operation (DM5N (0) = NOT.DM5 (0)) is performed on the mixed-color dither mask (see column K).
= DM5 (4)), the mixed color inversion dither mask becomes
Since it is the same as the dither mask DM5 (4) having a value of “1” indicating all valid, if the logical AND operation with each of the temporary primary color dither masks (see columns C, M, and Y) is performed, The same primary color dither mask (see columns C2, M2 and Y2) as the mask (see columns C, M and Y) is obtained.

【0251】次に、暗い赤(図20のNo.24参照)
を指定した場合、仮原色ディザマスク(C欄、M欄およ
びY欄参照)は、それぞれディザマスクDM5(2)、
DM5(4)、DM5(4)となるので、仮原色ディザ
マスクの全てに共通して有効を示す値「1」のみに有効
を示す値「1」を割り付けた混色ディザマスク(K欄参
照)は、ディザマスクDM5(2)と同じになる(図1
2(b)参照)。
Next, dark red (see No. 24 in FIG. 20)
Is specified, the provisional primary color dither masks (see columns C, M, and Y) are respectively dither masks DM5 (2),
Since DM5 (4) and DM5 (4) are used, a mixed-color dither mask in which only a value “1” indicating validity is assigned to a value “1” indicating validity in common to all of the temporary primary color dither masks (see column K). Is the same as the dither mask DM5 (2) (FIG. 1).
2 (b)).

【0252】この場合、例えばC色の仮原色ディザマス
ク(C欄参照)であるディザマスクDM5(2)のマト
リクス要素のうち、混色ディザマスクであるディザマス
クDM5(2)の有効を示す値「1」のマトリクス要素
に対応するマトリクス要素の値を無効を示す値「0」に
変換して、すなわち混色ディザマスクと重複して有効を
示す値「1」を示すマトリクス要素に無効を示す値
「0」を割り付けて、有効を示す値「1」の重複部分を
キャンセルすると、C色の原色ディザマスク(C2欄参
照)は、ディザマスクDM5(0)となる。このC色の
原色ディザマスクは、混色ディザマスクであるディザマ
スクDM5(2)に対する論理反転演算(DM5N
(2)=NOT.DM5(2))の結果として作成され
る混色反転ディザマスクと、C色の仮原色ディザマスク
であるディザマスクDM5(2)と、の対応するマトリ
クス要素同士の論理積演算(DM5N(2).AND.
DM5(2)=DM5(0))の結果として作成でき
る。
In this case, for example, among the matrix elements of the dither mask DM5 (2), which is a temporary C primary color dither mask (see the column C), a value “indicating the validity of the dither mask DM5 (2) that is a mixed color dither mask” The value of the matrix element corresponding to the matrix element of "1" is converted into the value "0" indicating invalidity, that is, the value "1" indicating validity is overlapped with the value of the matrix element indicating validity "1" overlapping with the mixed color dither mask. When “0” is assigned and the overlapping portion of the value “1” indicating the validity is canceled, the C primary color dither mask (see column C2) becomes the dither mask DM5 (0). This C primary color dither mask is a logical inversion operation (DM5N) with respect to a dither mask DM5 (2) which is a mixed color dither mask.
(2) = NOT. DM5 (2). The logical multiplication operation (DM5N (2).) Of the corresponding matrix elements of the mixed-color inversion dither mask created as a result of DM5 (2)) and the dither mask DM5 (2), which is the temporary C primary color dither mask. AND.
DM5 (2) = DM5 (0)).

【0253】また、例えばM色やY色の仮原色ディザマ
スク(M欄およびY欄参照)であるディザマスクDM5
(4)のマトリクス要素のうち、混色ディザマスクであ
るディザマスクDM5(2)の有効を示す値「1」のマ
トリクス要素に対応するマトリクス要素の値を無効を示
す値「0」に変換して、すなわち混色ディザマスクと重
複して有効を示す値「1」を示すマトリクス要素に無効
を示す値「0」を割り付けて、有効を示す値「1」の重
複部分をキャンセルすると、図21(a)に示すよう
に、ディザマスクDM5(42)になる。このディザマ
スクDM5(42)は、図示のように、ディザマスクD
M5(4)からディザマスクDM5(2)を減算した
(以下「DM5(4)−DM5(2)」のように表現す
る)イメージとなるので、図20には、M色やY色の原
色ディザマスク(M2欄およびY2欄参照)のマスク番
号として、「4−2」のように示している(後述の「2
−1」や「3−1」も同様)。そして、この場合も、こ
のM色やY色の原色ディザマスクは、混色ディザマスク
であるディザマスクDM5(2)に対する論理反転演算
(DM5N(2)=NOT.DM5(2))の結果とし
て作成される混色反転ディザマスクと、M色やY色の仮
原色ディザマスクであるディザマスクDM5(4)と、
の対応するマトリクス要素同士の論理積演算(DM5N
(2).AND.DM5(4)=DM5(42))の結
果として作成できる(図21(a)参照)。
Also, a dither mask DM5 which is a temporary primary color dither mask of, for example, M color or Y color (see the M column and the Y column)
In the matrix element (4), the value of the matrix element corresponding to the matrix element having the value “1” indicating the validity of the dither mask DM5 (2), which is the mixed color dither mask, is converted into the value “0” indicating the invalidity. That is, if a value “0” indicating invalidity is assigned to a matrix element indicating validity “1” overlapping with the mixed-color dither mask, and the overlapping portion of the value “1” indicating validity is canceled, FIG. ), It becomes the dither mask DM5 (42). This dither mask DM5 (42) has a dither mask D
Since the image is obtained by subtracting the dither mask DM5 (2) from M5 (4) (hereinafter expressed as “DM5 (4) -DM5 (2)”), the primary colors of M and Y are shown in FIG. The mask number of the dither mask (see the M2 column and the Y2 column) is indicated as “4-2” (see “2
-1 "and" 3-1 "). Also in this case, the M-color and Y-color primary color dither masks are created as a result of a logical inversion operation (DM5N (2) = NOT.DM5 (2)) on the dither mask DM5 (2) which is a mixed color dither mask. A mixed color inversion dither mask and a dither mask DM5 (4), which is a temporary primary color dither mask for M and Y colors,
AND operation between corresponding matrix elements (DM5N
(2). AND. DM5 (4) = DM5 (42)) (see FIG. 21A).

【0254】次に、暗い橙(図20のNo.25参照)
を指定した場合、仮原色ディザマスク(C欄、M欄およ
びY欄参照)は、それぞれディザマスクDM5(1)、
DM5(2)、DM5(3)となるので、仮原色ディザ
マスクの全てに共通して有効を示す値「1」のみに有効
を示す値「1」を割り付けた混色ディザマスク(K欄参
照)は、ディザマスクDM5(1)と同じになる(図1
2(b)参照)。
Next, a dark orange (see No. 25 in FIG. 20)
Is specified, the provisional primary color dither masks (see columns C, M, and Y) are respectively dither masks DM5 (1),
Since it is DM5 (2) and DM5 (3), a mixed color dither mask in which only the value “1” indicating validity is assigned to the value “1” indicating validity in common to all of the temporary primary color dither masks (see column K) Is the same as the dither mask DM5 (1) (FIG. 1).
2 (b)).

【0255】この場合、例えばC色の仮原色ディザマス
ク(C欄参照)であるディザマスクDM5(2)の混色
ディザマスクと重複して有効を示す値「1」を示すマト
リクス要素の有効をキャンセルすると、C色の原色ディ
ザマスク(C2欄参照)は、ディザマスクDM5(0)
となる。この場合のC色の原色ディザマスクは、混色デ
ィザマスクであるディザマスクDM5(1)に対する論
理反転演算(DM5N(2)=NOT.DM5(2))
の結果として作成される混色反転ディザマスクと、C色
の仮原色ディザマスクであるディザマスクDM5(1)
と、の対応するマトリクス要素同士の論理積演算(DM
5N(1).AND.DM5(1)=DM5(0))の
結果として作成できる。
In this case, for example, the validity of a matrix element indicating a value “1” indicating validity is canceled by overlapping with the mixed color dither mask of the dither mask DM5 (2), which is a temporary primary color dither mask of C color (see column C). Then, the C primary color dither mask (see column C2) becomes the dither mask DM5 (0).
Becomes In this case, the C primary color dither mask is a logical inversion operation (DM5N (2) = NOT.DM5 (2)) for the dither mask DM5 (1) which is a mixed color dither mask.
, And a dither mask DM5 (1), which is a temporary primary color dither mask for C color.
AND operation between corresponding matrix elements (DM
5N (1). AND. DM5 (1) = DM5 (0)).

【0256】また、M色の仮原色ディザマスク(M欄参
照)であるディザマスクDM5(2)の混色ディザマス
クと重複して有効を示す値「1」を示すマトリクス要素
の有効をキャンセルすると、図21(c)に示すよう
に、ディザマスクDM5(21)になる(DM5(2
1)=DM5(2)−DM(1))。そして、この場合
も、このM色の原色ディザマスクは、混色ディザマスク
であるディザマスクDM5(1)に対する論理反転演算
(DM5N(1)=NOT.DM5(1))の結果とし
て作成される混色反転ディザマスクと、M色の仮原色デ
ィザマスクであるディザマスクDM5(2)と、の対応
するマトリクス要素同士の論理積演算(DM5(2).
AND.DM5N(1)=DM5(21))の結果とし
て作成できる。同様に、Y色の仮原色ディザマスク(Y
欄参照)であるディザマスクDM5(3)の混色ディザ
マスクと重複して有効を示す値「1」を示すマトリクス
要素の有効をキャンセルすると、図21(b)に示すよ
うに、ディザマスクDM5(31)になり、これは混色
ディザマスクに対する論理反転演算の結果として作成さ
れる混色反転ディザマスクと、Y色の仮原色ディザマス
クと、の対応するマトリクス要素同士の論理積演算の結
果として作成できる(DM5(31)=DM5(3)−
DM(1)=DM5(3).AND.DM5N
(1))。
When the validity of a matrix element indicating a value “1” indicating validity is canceled in combination with the mixed color dither mask of the dither mask DM5 (2), which is a temporary dither mask for M colors (see column M), As shown in FIG. 21C, the dither mask DM5 (21) is formed (DM5 (2
1) = DM5 (2) -DM (1)). Also in this case, the M primary color dither mask is a mixed color created as a result of a logical inversion operation (DM5N (1) = NOT.DM5 (1)) for the dither mask DM5 (1) which is a mixed color dither mask. A logical AND operation (DM5 (2)...) Between corresponding matrix elements of an inverted dither mask and a dither mask DM5 (2) which is a temporary dither mask of M colors.
AND. DM5N (1) = DM5 (21)). Similarly, a temporary primary color dither mask (Y
When the validity of the matrix element indicating the value “1” indicating the validity is overlapped with the mixed color dither mask of the dither mask DM5 (3) which is the validity of the dither mask DM5 (3) as shown in FIG. 31), which can be created as a result of an AND operation between the corresponding matrix elements of the mixed-color inverted dither mask created as a result of the logical inversion operation on the mixed-color dither mask and the temporary primary color dither mask of the Y color. (DM5 (31) = DM5 (3)-
DM (1) = DM5 (3). AND. DM5N
(1)).

【0257】上述のように、このテープ印刷装置1で
は、各原色ディザマスクは、混色ディザマスクを対象と
して有効を示す値と無効を示す値とを反転させる論理反
転演算の結果として作成される混色反転ディザマスク
と、各仮原色ディザマスクとの対応するマトリクス要素
同士を対象として、双方が有効を示す値のときのみ有効
を示す値とする論理積演算の結果として作成される。す
なわち、この場合、比較的単純な論理反転演算や論理積
演算を行うだけで、仮原色ディザマスクの有効を示す値
のマトリクス要素のうち、混色ディザマスクの有効を示
す値と重複して有効を示すマトリクス要素の有効をキャ
ンセルした原色ディザマスクを作成できる。
As described above, in the tape printer 1, each primary color dither mask is a mixed color dither mask which is created as a result of a logical inversion operation for inverting a value indicating validity and a value indicating invalidity. It is created as a result of a logical product operation that sets the value indicating valid only when both of the matrix elements corresponding to the inverted dither mask and each temporary primary color dither mask are valid. In other words, in this case, by simply performing a relatively simple logical inversion or logical multiplication operation, the matrix element of the value indicating the validity of the temporary primary color dither mask overlaps with the value indicating the validity of the mixed color dither mask. A primary color dither mask in which the validity of the indicated matrix element is canceled can be created.

【0258】なお、上述の第1実施形態および第2実施
形態におけるテープ印刷装置1では、文字の例について
説明したので、以下、少し図形に関して説明しておく。
テープ印刷装置1では、前述のように、外字登録や描画
登録によりドットマップで図形等を登録することができ
る。このうち、いわゆる外字は上述の文字等と同様に扱
え、また、図形でも簡易なものであれば、フォントとし
てまたは外字として用意して文字同様に扱えるので、以
下では、通常、1文字と同様には扱えない描画登録によ
る図形について説明する。
In the tape printing apparatus 1 according to the first and second embodiments described above, examples of characters have been described, and therefore, some figures will be described below.
As described above, the tape printer 1 can register a figure or the like with a dot map by registering an external character or drawing. Of these, so-called external characters can be handled in the same manner as the above-mentioned characters and the like, and if a graphic is also simple, it can be prepared as a font or an external character and handled in the same manner as a character. A description will be given of a figure by drawing registration that cannot be handled.

【0259】例えばフォームキー322により選択画面
を表示させて描画登録画面に遷移させ、その描画登録画
面上で、いわゆる外字登録と同様に、例えばシフトキー
327を押しながらカーソルキー330を操作すること
により、カーソルの軌跡上の画素(ドット)の値(有効
を示す「1」と無効を示す「0」など)を反転させた
り、あるいは例えばシフトキー327を押しながら選択
キー323により始点と終点を指定してその間を対角線
とする長方形内の画素の値を変更したりしながら、ドッ
トイメージで図形を描き、それをRAM240の描画登
録画像データ領域245に登録(登録番号等を付して記
憶)する。
For example, the selection screen is displayed by the form key 322 and the screen is transited to the drawing registration screen. By operating the cursor key 330 while pressing the shift key 327 on the drawing registration screen in the same manner as in the so-called external character registration, for example. Invert the value of a pixel (dot) on the locus of the cursor (eg, “1” indicating validity and “0” indicating invalidity), or specify the start point and end point by using the select key 323 while pressing the shift key 327, for example. A figure is drawn with a dot image while changing the value of a pixel in a rectangle having a diagonal line between them, and the figure is registered in the drawing registration image data area 245 of the RAM 240 (stored with a registration number and the like).

【0260】ここで、登録直後のまたは以前に登録して
おいて改めて読み出した図形が、例えば図22(a)に
示す「禁煙マーク」の図形だったとして説明する。この
「禁煙マーク」の図形は、例えば同図(b)のような要
素画像に分解できる。また、これらは、例えば図示の点
網掛けの部分を要素本体画像、およびそれ以外を要素背
景画像と見れば、各要素画像の要素本体画像と要素背景
画像に分解でき、(マトリクス)データ上もそれらを区
分できる。すなわち、各要素画像の要素本体画像の画素
(ドット)を有効を示す値「1」とし、要素背景画像の
画素に無効を示す値「0」を割り付けることにより、要
素形状画像マトリクスで表現された要素形状画像とする
ことができる。
Here, a description will be given assuming that the figure registered immediately after or before registration and re-read is a figure of the “no smoking mark” shown in FIG. 22A, for example. The figure of the “no smoking mark” can be decomposed into, for example, an element image as shown in FIG. Further, these can be decomposed into an element main body image and an element background image of each element image, for example, when the shaded portion shown in the drawing is regarded as an element main body image and the rest as an element background image. You can segment them. That is, a pixel (dot) of the element body image of each element image is set to a value “1” indicating validity, and a value “0” indicating invalidity is assigned to a pixel of the element background image, thereby expressing the element shape image matrix. It can be an element shape image.

【0261】前述の文字に対する色指定と同様に、同図
(b)の要素形状画像マトリクスSG4で表現された要
素形状画像の要素本体画像(点網掛けの部分)に、例え
ば赤色、すなわちC色の原色階調値「0」、M色の原色
階調値「4」、Y色の原色階調値「4」を指定する(図
20のNo.6参照)。また、要素形状画像マトリクス
SG5で表現された要素形状画像の要素本体画像(点網
掛けの部分)に、例えば少し薄い青色、すなわちC色の
原色階調値「3」、M色の原色階調値「3」、Y色の原
色階調値「0」を指定する(図20のNo.7およびN
o.13参照:これらの中間となる)。また、要素形状
画像マトリクスSG6で表現された要素形状画像の要素
本体画像(点網掛けの部分)に、例えば薄い灰色、すな
わちC色、M色およびY色の原色階調値が全て「1」を
指定する(図20のNo.5参照)。図22(c)に示
すこれらの色パレットデータCP4、CP5およびCP
6は、それぞれの要素本体画像の指定階調値(各原色階
調値)としてRAM240内の色パレットデータ領域2
47に記憶される。
Similarly to the above-mentioned color designation for characters, the element body image (dotted portion) of the element shape image represented by the element shape image matrix SG4 in FIG. , The primary color tone value “4” for the M color, and the primary color tone value “4” for the Y color (see No. 6 in FIG. 20). In addition, for example, a slightly light blue color, that is, a C primary color gradation value of “3” and an M primary color gradation are added to the element body image (dotted hatching) of the element shape image expressed by the element shape image matrix SG5. The value “3” and the primary color gradation value “0” of the Y color are designated (No. 7 and N in FIG. 20).
o. 13: intermediate between these). Further, in the element body image (shaded portion) of the element shape image represented by the element shape image matrix SG6, for example, the primary color gradation values of light gray, that is, C, M, and Y are all “1”. (See No. 5 in FIG. 20). These color palette data CP4, CP5 and CP shown in FIG.
Reference numeral 6 denotes a color pallet data area 2 in the RAM 240 as a designated gradation value (each primary color gradation value) of each element body image.
47.

【0262】上述の色指定までの処理は、図16のテキ
スト入力(S11)に対応する処理であり、第1実施形
態において図16のテキスト入力(S11)が終了した
時点で前述の文字「1」、「2」および「3」の文字画
像に対して用意されたデータと同様のデータ、すなわち
各要素形状画像マトリクスおよび色パレットデータは、
上記の処理で既に揃っているので、図16のテキスト入
力(S11)以降の処理(S12〜)は同様に処理でき
る。また、第2実施形態において説明した処理も、上記
の図16のテキスト入力(S11)は第1実施形態と同
じなので、同様に適用できる。
The processing up to the above-described color designation is processing corresponding to the text input (S11) in FIG. 16. In the first embodiment, when the text input (S11) in FIG. , "2" and "3", the same data as the data prepared for the character images, that is, each element shape image matrix and color pallet data are
Since the above processing has been completed, the processing (S12-) following the text input (S11) in FIG. 16 can be performed in the same manner. Also, the processing described in the second embodiment can be applied in the same manner, since the text input (S11) in FIG. 16 is the same as in the first embodiment.

【0263】なお、図22で上述の図形は、紙面の都合
(図示や説明の効率)上、「禁煙マーク」のような比較
的簡単な図形としたが、前述のように、いかに複雑な描
画画像も、少なくとも要素本体画像の全画素が同一階調
値の要素画像を合成した合成画像(全体画像)と見て、
各要素画像に分解でき、各要素画像の要素本体画像とそ
れ以外の要素背景画像に分解でき、要素本体画像と要素
背景画像とは区分可能なので、各要素画像に対応する要
素ディザ画像を作成して、それらを組み合わせる(対応
するマトリクス要素を重ね合わせる)ことにより、複雑
な描画画像にディザ処理を行った要素ディザ画像をも得
ることができる。
Although the figure described above in FIG. 22 is a relatively simple figure such as a “no smoking mark” due to space limitations (efficiency of illustration and explanation), as described above, how complicated a drawing is The image is also considered as a composite image (whole image) in which at least all pixels of the element body image are composed of element images having the same gradation value
It can be decomposed into each element image, it can be decomposed into the element body image of each element image and the other element background image, and the element body image and the element background image can be separated, so create the element dither image corresponding to each element image Then, by combining them (overlapping corresponding matrix elements), it is possible to obtain an element dither image obtained by dithering a complicated drawing image.

【0264】次に、要素本体画像と要素背景画像の階調
値の差について考える。すなわち、単一の要素画像につ
いて、上述のように要素本体画像と要素背景画像とが区
分可能であっても、要素本体画像と要素背景画像の階調
値の差(濃度差(濃淡差)等)が小さい場合、例えば要
素背景画像の濃度を基準とした要素背景画像の濃度が低
い場合には、表示するにしても印刷するにしても、その
間の境界(輪郭線等)が不明瞭になり、いわゆるかすれ
等が生じる。かといって、例えば要素本体画像の階調値
を、元の(指定の)階調値に拘わらずに一律に濃度が高
くなるように補正したのでは、もともと最大濃度に近い
階調値を指定する場合と差異が無くなり、ユーザの意図
が反映されない。特にカラー画像に対してこのような補
正をしたのでは、3色または4色の基本色相互間のバラ
ンスが崩れてしまい、異なる色合いに成ってしまう。
Next, the difference between the gradation values of the element body image and the element background image will be considered. That is, even if the element main body image and the element background image can be distinguished from each other with respect to a single element image as described above, the difference between the gradation values of the element main body image and the element background image (density difference (density difference) etc. ) Is small, for example, when the density of the element background image based on the density of the element background image is low, the boundary (such as an outline) between the display and the print becomes unclear even if the image is displayed or printed. , So-called blurring occurs. On the other hand, for example, if the gradation value of the element body image is corrected so that the density is uniformly increased regardless of the original (specified) gradation value, a gradation value close to the maximum density is originally specified. And the difference is lost, and the intention of the user is not reflected. In particular, if such correction is performed on a color image, the balance between the three or four basic colors is lost, resulting in different colors.

【0265】また、全体的に一律に濃度差等を大きく
(例えば要素本体画像の濃度を高く)すると、いわゆる
つぶれ等が生じる。全体画像についても同様であり、ユ
ーザの意図に反して要素画像相互間のバランスが崩れた
り相互間干渉によるつぶれ等の原因となる。特に印刷装
置に画像を出力する場合、すなわちディザ処理により印
刷画像を作成する場合、印刷装置には印刷対象物の単位
面積に吸い込めるインク量等の制限値(以下「打込量制
限値」)があるため、一律に濃度を高くするような補正
をすると、その打込量制限値を超えてしまうなどの問題
を生じる。
Further, if the density difference or the like is uniformly increased as a whole (for example, the density of the element main body image is increased), so-called collapse occurs. The same applies to the entire image, which may cause the balance between the elemental images to be lost or the image to be crushed due to mutual interference against the user's intention. In particular, when an image is output to a printing device, that is, when a print image is created by dither processing, the printing device has a limit value such as the amount of ink that can be sucked into a unit area of a printing target (hereinafter, a “printing amount limit value”) Therefore, if the correction for uniformly increasing the density is made, a problem such as exceeding the ejection amount limit value occurs.

【0266】そこで、以下では、メモリ容量の節約や処
理時間の短縮が図れるばかりでなく、さらに、ユーザの
意図を反映しつつかすれやつぶれ等を防止可能とするデ
ィザ処理、すなわち、上述のような問題が発生する可能
性がある場合の画像処理(ディザ処理)方法について、
第3実施形態として説明する。
Therefore, in the following, not only the saving of the memory capacity and the shortening of the processing time can be achieved, but also the dither processing which can prevent the fading or the crushing while reflecting the intention of the user, that is, the above-described dither processing. For information on how to process images (dithering) when problems may occur,
This will be described as a third embodiment.

【0267】この第3実施形態におけるテープ印刷装置
1では、前述の第1実施形態や第2実施形態と同様に、
まず、要素本体画像の画素とその背景になる要素背景画
像の画素とを区分可能な少なくとも1つの要素画像につ
いて、要素本体画像に有効を示す値、要素背景画像に無
効を示す値を割り付けた2値マトリクスで表現された要
素形状画像を作成し、その一方で、要素本体画像の全画
素に同一の指定階調値として、n値のうちの1つの階調
値を記憶する。
In the tape printer 1 according to the third embodiment, similar to the above-described first and second embodiments,
First, for at least one element image capable of distinguishing the pixels of the element body image from the pixels of the element background image as the background, a value indicating validity is assigned to the element body image and a value indicating invalidity is assigned to the element background image. An element shape image represented by a value matrix is created, while one of the n values is stored as the same designated gradation value for all pixels of the element body image.

【0268】具体的には、図16等で前述の場合と同様
に、例えば図26に示すように、まず、文字等がテキス
ト入力された後、すなわち図12で前述の例では、文字
列「123」のように文字が入力され、文字等のサイズ
や装飾が指定され、色指定等が終了した後(S21:前
述のS11と同じ)、印刷キー321により印刷が指定
されると(S22:S12と同じ)、文字列「123」
の各文字を画像展開して、図12(a)に示す要素形状
画像マトリクスSG1、SG2、SG3で表現された各
文字(各要素画像)の要素形状画像を作成し(S23:
S13と同じ)、その一方で、各文字「1」、「2」お
よび「3」の文字画像(要素本体画像)の指定階調値と
して、色パレットデータCP1、CP2およびCP3を
RAM240内の色パレットデータ領域247に記憶す
る。
Specifically, similarly to the case described above with reference to FIG. 16 and the like, for example, as shown in FIG. 26, first, after a character or the like is input as a text, that is, in the example described above with reference to FIG. After inputting a character such as "123", designating the size and decoration of the character and the like, and ending the color designation and the like (S21: same as S11 described above), when printing is designated by the print key 321 (S22: Same as S12), character string "123"
Of each character (each element image) represented by the element shape image matrices SG1, SG2, and SG3 shown in FIG. 12A are created (S23:
On the other hand, the color palette data CP1, CP2, and CP3 are used as the designated gradation values of the character images (element body images) of the characters "1", "2", and "3" in the colors in the RAM 240. It is stored in the pallet data area 247.

【0269】ここで、この第3実施形態のテープ印刷装
置1では、次に、指定階調値(カラーの場合、原色階調
値)に基づいて補正階調値(原色補正階調値)を決定
し、その補正階調値に対応するディザマスクを使用して
要素ディザ画像(原色要素ディザ画像)を作成する。こ
の場合、指定階調値にはユーザの意図が反映されている
ため、それに基づく補正階調値にもユーザの意図を反映
させることができ、この補正階調値に対応するディザマ
スクを使用して要素ディザ画像を作成するので、要素デ
ィザ画像にもユーザの意図を反映させることができる。
その反面、このときのディザマスクは、指定階調値と直
接対応するものではなく補正階調値を介して対応するも
のなので、指定階調値と補正階調値との対応を工夫する
ことにより、指定階調値に応じた種々の補正が可能とな
る。このため、メモリ容量の節約や処理時間の短縮が図
れるばかりでなく、ユーザの意図を反映しつつ階調値に
関する補正ができ、これにより、かすれやつぶれ等を防
止可能になる。
Here, in the tape printing apparatus 1 of the third embodiment, a correction gradation value (primary color correction gradation value) is next determined based on a designated gradation value (primary color gradation value in the case of color). It is determined, and an element dither image (primary color element dither image) is created using a dither mask corresponding to the corrected gradation value. In this case, since the user's intention is reflected in the designated gradation value, the user's intention can be reflected in the corrected gradation value based on the user's intention, and the dither mask corresponding to this corrected gradation value is used. Therefore, the user's intention can be reflected on the element dither image.
On the other hand, since the dither mask at this time does not directly correspond to the designated gradation value but corresponds to the corrected gradation value, the correspondence between the designated gradation value and the corrected gradation value is devised. Thus, various corrections according to the designated gradation value can be performed. For this reason, not only can the memory capacity be saved and the processing time can be reduced, but also the gradation value can be corrected while reflecting the user's intention, thereby making it possible to prevent blurring or crushing.

【0270】階調値に関する補正としては、例えば全体
画像の各要素画像に対する指定階調値がn値のうちの狭
い範囲内に集中した微差と成っている場合に、指定階調
値の微差を拡大して階調値を分散させた補正階調値とす
ることにより、ユーザの意図(差を付けていること)を
強調して全体画像の要素画像相互間のコントラストを強
くする補正が考えられる。また、各要素画像について、
要素本体画像と要素背景画像の濃度差が小さい場合(例
えば要素背景画像の濃度を基準とした要素背景画像の濃
度が低い場合)にのみ、その濃度差を大きく(濃度を高
く)し、濃度差が大きい場合には、指定階調値と同じ値
の補正階調値とすることにより、かすれ等を防止しつつ
補正によりつぶれ等が発生しないようにすることもでき
る。なお、これらの場合、指定階調値に応じて処理を分
岐させて補正階調値を決定しても良いし、指定階調値と
補正階調値の対応テーブル等を用意してそれを参照する
ことにより決定しても良い。
The correction relating to the gradation value may be performed, for example, when the designated gradation value for each element image of the whole image is a small difference concentrated in a narrow range of n values. By correcting the gradation value by dispersing the gradation value by enlarging the difference, the correction that emphasizes the user's intention (giving the difference) and enhances the contrast between the elementary images of the entire image is performed. Conceivable. Also, for each element image,
Only when the density difference between the element body image and the element background image is small (for example, when the density of the element background image based on the density of the element background image is low), the density difference is increased (the density is increased). Is large, the correction gradation value is set to the same value as the designated gradation value, so that blurring or the like can be prevented from occurring while correction is prevented while blurring or the like is prevented. In these cases, the correction gradation value may be determined by branching the process according to the designated gradation value, or a correspondence table between the designated gradation value and the corrected gradation value may be prepared and referred to. May be determined.

【0271】このため、以下では、指定階調値が所定の
補正範囲内か否かを判別して、補正範囲内であるとき
に、指定階調値を補正して補正階調値とし、補正範囲外
であるときに、指定階調値をそのまま補正階調値とす
る。すなわち、所定の補正範囲内か否かを判別すること
により、補正の対象となる指定階調値をその補正範囲内
に絞ることができ、これにより、一律に補正するのに比
べて補正に伴う問題(例えばつぶれ等)の発生を低減で
きる。
For this reason, hereinafter, it is determined whether or not the designated gradation value is within a predetermined correction range. When the designated gradation value is within the correction range, the designated gradation value is corrected to a corrected gradation value, and When the value is out of the range, the designated gradation value is directly used as the corrected gradation value. That is, by determining whether or not the correction value is within the predetermined correction range, the designated gradation value to be corrected can be narrowed down to the correction range. The occurrence of a problem (for example, collapse) can be reduced.

【0272】なお、この場合、ディザマスクは、前述の
ように、考え得る補正階調値のそれぞれについてのディ
ザマスクを予め記憶しておいても良いし、補正階調値が
判明した後に、ディザマトリクスとの比較演算により新
たに作成して記憶しても良いが、前者の場合、補正階調
値が決定してからそれに対応するディザマスクを選択し
ても良いし、指定階調値(補正範囲外であるときの補正
階調値と同じ)により選択しておいて、その指定階調値
が補正範囲内であることが判別されたときのみ、その補
正階調値により選択し直す(変更する)ようにしても良
い。そこで、以下では、指定階調値により選択しておい
て、その指定階調値が補正範囲内であることが判別され
たときのみ、その補正階調値により選択し直す(変更す
る)例について説明する。
In this case, as described above, the dither mask may store in advance a dither mask for each of the conceivable corrected gradation values, or the dither mask may be used after the corrected gradation value is determined. Although it may be newly created and stored by a comparison operation with a matrix, in the former case, a dither mask corresponding to the correction gradation value may be selected after the correction gradation value is determined, or the designated gradation value (correction gradation value) may be selected. Only when it is determined that the designated gradation value is within the correction range (changed). Yes). Therefore, in the following, an example will be described in which selection is made based on a designated gradation value, and only when it is determined that the designated gradation value is within the correction range, the selection is made again (changed) based on the corrected gradation value. explain.

【0273】図26に示すように、各文字(各要素画
像)の要素形状画像を作成して入力文字展開が終了する
と(S23)、基本色別のディザマスクを選択する(S
24:S14と同じ)。前述のように、図12の例で
は、例えば文字「1」の文字画像(要素形状画像)につ
いては、CMY各色の原色階調値が全て「4」なので、
マスク番号「4」のディザマスクDM5(4)を選択
し、文字「2」の文字画像(要素形状画像)について
は、C色の原色階調値「0」、M色の原色階調値
「2」、Y色の原色階調値「1」なので、マスク番号
「0」、「2」、「1」のディザマスクDM5(0)、
DM5(2)、DM5(1)を選択し、同様に、文字
「3」の文字画像(要素形状画像)については、C色の
原色階調値「0」、M色の原色階調値「0」、Y色の原
色階調値「2」なので、マスク番号「0」、「2」のデ
ィザマスクDM5(0)、DM5(2)を選択する。
As shown in FIG. 26, when an element shape image of each character (each element image) is created and input character development is completed (S23), a dither mask for each basic color is selected (S23).
24: Same as S14). As described above, in the example of FIG. 12, for the character image (element shape image) of the character “1”, for example, the primary color gradation values of each of the CMY colors are all “4”.
The dither mask DM5 (4) having the mask number “4” is selected, and the character image (element shape image) of the character “2” is set to the primary color gradation value “0” for the C color and the primary color gradation value “M” for the M color. 2 ", the primary color gradation value" 1 "of the Y color, so that the dither mask DM5 (0) of the mask numbers" 0 "," 2 "," 1 ",
DM5 (2) and DM5 (1) are selected. Similarly, for the character image (element shape image) of the character “3”, the C primary color gradation value “0” and the M primary color gradation value “M” The dither masks DM5 (0) and DM5 (2) having the mask numbers "0" and "2" are selected because the primary color gradation value of the Y color is "0".

【0274】そして、このテープ印刷装置1では、図2
6に示すように、基本色別ディザマスクの選択(S2
4)が終了すると、次に、濃度(階調値)に対応してデ
ィザマスクを変更する(S25)。すなわち、例えば図
示のように、まず、単色濃度(ここでは原色階調値)が
最大濃度(図12の例では原色階調値が最大値「4」の
場合に最大濃度)を100%としたときの30%以下
(補正範囲内)であるか否かを判別し(S251)、3
0%以下(補正範囲内)であると判別されたときには
(S251:Yes)、次に、10%濃い(前述の例で
は10%階調値が高い)階調値に補正してから、すなわ
ち10%濃いディザマスクに変更してから(S25
2)、次の基本色別マスク処理(S26:S16と同
じ)に移行する。この処理(S26)以降は前述の第1
実施形態等と同様なので説明は省略する。
In this tape printing apparatus 1, FIG.
As shown in FIG. 6, selection of a dither mask for each basic color (S2
When 4) is completed, the dither mask is changed according to the density (gradation value) (S25). That is, as shown in the drawing, for example, first, the maximum density of the single-color density (here, the primary color tone value) is set to 100% (the maximum density in the example of FIG. 12 when the primary color tone value is the maximum value “4”). It is determined whether it is 30% or less of the time (within the correction range) (S251).
If it is determined that it is 0% or less (within the correction range) (S251: Yes), then it is corrected to a gradation value that is 10% darker (10% gradation value is higher in the above example), After changing to a 10% darker dither mask (S25
2) Then, the process proceeds to the next mask process for each basic color (S26: same as S16). After this process (S26), the first
The description is omitted because it is similar to the embodiment.

【0275】図12で前述の場合、説明の都合上、階調
値を0〜4の5階調としたので、最大値は「4」とな
り、その30%(1.2)以下の階調値は「1」以下の
階調値であり、それを10%(0.4)濃くしたもの
(1.6)も階調値「2」にならないので、例として適
さないが、この場合、例えば補正範囲を階調値「1」以
下とし、その場合には階調値を1だけ向上させる(すな
わち階調値「2」)ように規定することもできる。
In the case described above with reference to FIG. 12, for convenience of explanation, the gradation value is set to 5 gradations of 0 to 4, so the maximum value is "4", and the gradation value is 30% (1.2) or less. The value is a gradation value equal to or less than “1”, and a value obtained by increasing it by 10% (0.4) (1.6) does not become the gradation value “2”, which is not suitable as an example. For example, the correction range may be set to be equal to or less than the gradation value “1”, and in that case, the gradation value may be improved by 1 (that is, the gradation value is “2”).

【0276】なお、ここで、より好ましい例を示してお
く。例えば図23(a)および図24に示す「濃」の印
刷画像PGK1は、0〜255の256階調値の場合の
30%以下、すなわち階調値「76」の例であり、図2
3(b)および図25に示す「濃」の印刷画像PGK1
Uは、それより濃度(階調値)を10%高くした(40
%の)階調値「102」の例を示していて、前者の図2
3(a)の印刷画像PGK1と後者の同図(b)の印刷
画像PGK1Uとを比較すれば、あるいはそれらを小さ
いサイズで示した同図(c)の左側の(前者に相当す
る)印刷画像PGK1Sと右側の(後者に相当する)印
刷画像PGK1USとを比較すれば、濃度(階調値)の
補正によりかすれ等が防止されていることがわかる。
Here, a more preferable example will be described. For example, the “dark” print image PGK1 shown in FIG. 23A and FIG. 24 is an example of 30% or less of 256 gradation values of 0 to 255, that is, a gradation value of “76”.
3 (b) and the “dark” print image PGK1 shown in FIG.
U increased the density (tone value) by 10% (40
FIG. 2 shows an example of the gradation value “102” of FIG.
By comparing the print image PGK1 of FIG. 3A with the print image PGK1U of FIG. 2B, or by displaying them in a small size, the print image on the left side of FIG. Comparing the PGK1S with the print image PGK1US on the right (corresponding to the latter), it can be seen that blurring or the like is prevented by correcting the density (gradation value).

【0277】すなわち、この場合、このテープ印刷装置
1では、所定の補正範囲を所定基準以下の濃度に対応す
る範囲とすることにより、補正の対象となる指定階調値
を所定基準以下の濃度に対応する範囲内に絞ることがで
き、これにより、高濃度(所定基準を超える濃度)に対
応する指定階調値を補正の対象から除くことができ、こ
の結果、例えばかすれ等を防止しつつ補正によりつぶれ
等が発生しないような補正が容易にできる。特に印刷装
置に画像を出力する場合、すなわちディザ処理により印
刷画像のための要素ディザ画像を作成する場合、高濃度
に対応する指定階調値に基づいてさらに濃度を高くした
補正階調値とするのでは、前述のように打込量制限値を
超えるなどの問題が生じる可能性があるが、上記の場
合、所定の補正範囲が所定基準以下の濃度に対応する範
囲なので、この補正範囲内を対象に一律に濃度を高くす
るなどの比較的ラフな補正を行っても問題は生じにく
く、補正処理を簡易にできる。
That is, in this case, the tape printer 1 sets the predetermined correction range to a range corresponding to the density lower than the predetermined reference, so that the designated gradation value to be corrected is reduced to the density lower than the predetermined reference. The specified gradation value corresponding to high density (density exceeding a predetermined reference) can be excluded from the correction target, and as a result, correction can be performed while preventing, for example, blurring. Thus, it is possible to easily perform a correction that does not cause collapse or the like. In particular, when an image is output to a printing apparatus, that is, when an element dither image for a print image is created by dither processing, a corrected gradation value with a further increased density based on a designated gradation value corresponding to a high density is used. However, as described above, there is a possibility that a problem such as exceeding the ejection amount limit value may occur, but in the above case, the predetermined correction range is a range corresponding to a density equal to or lower than a predetermined reference, so that within this correction range, Even if a relatively rough correction such as uniformly increasing the density is performed on the target, no problem is likely to occur, and the correction process can be simplified.

【0278】また、上記の場合、所定の補正範囲が、指
定階調値に対応する濃度の最大濃度に対する比率に基づ
いて規定されている。すなわち、例えば百分率等の最大
濃度に対する比率に基づいて規定されているので、補正
対象となる濃度の範囲のイメージを把握しやすい。ま
た、イメージを把握し易いので、規定もし易く変更もし
易い。また、上述の説明において、最大濃度を階調値
「255」とし、30%以下の例を階調値「76」、4
0%(30%+10%)の例を階調値「102」とした
ように、所定の補正範囲を階調値の範囲として規定すれ
ば、指定階調値の値から直接判別でき、判別しやすく、
またその規定もし易くなる。
In the above case, the predetermined correction range is defined based on the ratio of the density corresponding to the designated gradation value to the maximum density. That is, since the image is defined based on the ratio of the maximum density such as a percentage, the image of the density range to be corrected can be easily grasped. Also, since the image is easy to grasp, it is easy to define and change. In the above description, the maximum density is assumed to be a gradation value “255”, and an example of 30% or less is assumed to be a gradation value “76”, 4
If the predetermined correction range is defined as the range of the tone value, as in the case of 0% (30% + 10%) as the tone value “102”, the determination can be made directly from the value of the designated tone value. Easy,
In addition, it becomes easier to define the rules.

【0279】また、所定の補正範囲を、指定階調値をそ
のまま補正調整値としたときのディザマスクの有効を示
す値を割り付けられたマトリクス要素の数の範囲として
規定することもできる。ディザマトリクスの規定の仕方
によっては、濃度が階調値の変化と所定の関係(例えば
リニア等)の関係にあるとは限らないので、そのような
場合、濃度と所定の関係(リニア等)になるディザマス
クの有効を示す値を割り付けられたマトリクス要素の数
で規定した方が、所望の補正範囲を濃度と関連させて規
定しやすくなる。この場合、ディザマスクの有効を示す
値を割り付けられたマトリクス要素の数を直接カウント
しても良いが、その数と指定階調値との対応テーブルお
よびその数と補正階調値の対応テーブルを個別に用意し
て参照するか、指定階調値とその数(ディザマスクの有
効を示す値を割り付けられたマトリクス要素の数)と補
正階調値とを対応づけた対応テーブル等を用意して参照
できるようにしておくと便利である。
Further, the predetermined correction range can be defined as a range of the number of matrix elements to which a value indicating the effectiveness of the dither mask when the designated gradation value is directly used as the correction adjustment value. Depending on how the dither matrix is defined, the density is not always in a predetermined relationship (for example, linear) with the change in gradation value. In such a case, the density and the predetermined relationship (linear, etc.) If the value indicating the effectiveness of the dither mask is defined by the number of allocated matrix elements, it becomes easier to define a desired correction range in association with the density. In this case, the number of matrix elements to which the value indicating the validity of the dither mask is assigned may be directly counted, but a correspondence table between the number and the designated gradation value and a correspondence table between the number and the corrected gradation value may be used. Prepare individually and refer to them, or prepare a correspondence table or the like in which the designated gradation value and its number (the number of matrix elements to which the value indicating the validity of the dither mask is assigned) and the corrected gradation value are associated. It is convenient to be able to refer to it.

【0280】なお、文字、記号、外字登録した図形・記
号など、文字の単位で扱えるいわゆるキャラクタの他、
描画登録による図形についても同様に扱える点について
は、前述の第1実施形態や第2実施形態と同じである
が、前述の禁煙マーク等のような絵(図形)ではなく、
より絵画的な絵柄(風景の絵など)の場合には、応用例
として、逆に補正の対象から除く工夫もできる。すなわ
ち、この種の描画画像(絵画的な絵柄)では、かすれ等
が一種の風情や自然な感覚をかもしだすこともあるの
で、例えばこの種の描画画像を補正対象としない(指定
階調値=補正階調値)で1つの要素画像とし、これと対
比させてキャラクタ等の要素画像を(補正対象として)
すっきりと明確に表現して組み合わせるなど、より趣向
を凝らした全体画像を作成することもできる。
It should be noted that, in addition to so-called characters that can be handled in units of characters, such as characters, symbols, and figures and symbols registered with external characters,
The points that can be handled in the same way for the figures by the drawing registration are the same as those in the first and second embodiments described above.
In the case of a more pictorial pattern (such as a picture of a landscape), as an application example, conversely, it can be devised to remove it from the correction target. That is, in this type of drawn image (painting-like pattern), blurring or the like may give rise to a kind of taste or natural feeling, and therefore, for example, this type of drawn image is not to be corrected (designated gradation value = correction). (Gradation value) as one element image, and in contrast to this, an element image of a character or the like (as a correction target)
It is also possible to create a more elaborate overall image, such as by clearly expressing and combining them.

【0281】その他の点については、指定階調値(原色
階調値)の代わりにその補正階調値(原色補正階調値)
とすることにより、前述の第1実施形態や第2実施形態
と同様の各種の利点を有することは明らかなので、説明
は省略する。
For other points, instead of the designated gradation value (primary color gradation value), its corrected gradation value (primary color correction gradation value)
By doing so, it is clear that various advantages similar to those of the above-described first and second embodiments are obtained, and therefore, description thereof will be omitted.

【0282】次に、要素本体画像の明瞭さについて考え
る。すなわち、単一の要素画像について、前述のように
要素本体画像と要素背景画像とが区分可能であっても、
ディザ処理によりいわゆる間引きが行われると、微視的
(ミクロ的)に見れば、それらの間の境界(例えば要素
本体画像の輪郭線等)に凸凹が生じるので、その境界
(輪郭線等)が不明瞭になる。特に要素本体画像のサイ
ズが小さかったり線幅の狭い部分等があると、その部分
に凹が割り付けられたとき(間引きされたとき)に、輪
郭線等にいわゆるかすれや切れが生じて不明瞭になる。
また、ディザ処理により印刷画像を作成してその画像を
印刷装置に出力する場合、印刷の際のインク等のにじみ
等がその不明瞭さに拍車を掛ける。
Next, the clarity of the element body image will be considered. That is, for a single element image, even if the element body image and the element background image can be distinguished as described above,
When so-called thinning is performed by dither processing, when viewed microscopically (microscopically), a boundary between them (for example, a contour line of the element body image) is uneven, and the boundary (contour line or the like) is formed. Becomes ambiguous. In particular, if the size of the element body image is small or there is a part with a narrow line width, etc., when a concave is allocated to that part (when thinned out), the so-called faint or cut occurs in the outline etc. Become.
In addition, when a print image is created by dither processing and the image is output to a printing apparatus, blurring of ink or the like during printing exacerbates the unclearness.

【0283】そこで、以下では、メモリ容量の節約や処
理時間の短縮が図れるばかりでなく、さらに、要素本体
画像のかすれや切れ等を防止可能とするディザ処理、す
なわち、上述のような問題が発生する可能性がある場合
の画像処理(ディザ処理)方法について、第4実施形態
として説明する。
Therefore, in the following, not only the memory capacity can be saved and the processing time can be shortened, but also the dither processing which can prevent the element main body image from being blurred or cut off, that is, the above-described problem occurs. An image processing (dither processing) method when there is a possibility of performing the operation will be described as a fourth embodiment.

【0284】この第4実施形態におけるテープ印刷装置
1では、前述の第1実施形態ないし第3実施形態と同様
に、要素本体画像の画素とその背景になる要素背景画像
の画素とを区分可能な少なくとも1つの要素画像につい
て、要素本体画像に有効を示す値、要素背景画像に無効
を示す値を割り付けた2値マトリクスで表現された要素
形状画像を作成し、その一方で、要素本体画像の全画素
に同一の指定階調値として、n値のうちの1つの階調値
を記憶する。
In the tape printing apparatus 1 according to the fourth embodiment, similarly to the above-described first to third embodiments, the pixels of the element main body image and the pixels of the element background image serving as the background can be distinguished. For at least one element image, an element shape image represented by a binary matrix in which a value indicating validity is assigned to the element body image and a value indicating invalidity is assigned to the element background image is created. One of the n values is stored as the same designated gradation value for the pixel.

【0285】具体的には、図16等で前述の場合と同様
に、例えば図30に示すように、まず、文字等がテキス
ト入力された後、すなわち図12で前述の例では、文字
列「123」のように文字が入力され、文字等のサイズ
や装飾が指定され、色指定等が終了した後(S31:前
述のS11と同じ)、印刷キー321により印刷が指定
されると(S32:S12と同じ)、CG−ROM23
0内のアウトラインフォントに基づいて、文字列「12
3」の各文字を画像展開して、図12(a)に示す要素
形状画像マトリクスSG1、SG2、SG3で表現され
た各文字(各要素画像)の要素形状画像を作成し(S3
3:S13と同じ)、その一方で、各文字「1」、
「2」および「3」の文字画像(要素本体画像)の指定
階調値として、色パレットデータCP1、CP2および
CP3をRAM240内の色パレットデータ領域247
に記憶する。
Specifically, as shown in FIG. 16 and the like, first, as shown in FIG. 30, for example, after a character or the like is input as a text, that is, in the example described above with reference to FIG. After inputting characters such as "123", designating the size and decoration of characters and the like, and ending color designation and the like (S31: same as S11 described above), when printing is designated by the print key 321 (S32: CG-ROM 23
0 based on the outline font in “0”.
Each character of “3” is image-developed to create an element shape image of each character (each element image) represented by the element shape image matrices SG1, SG2, and SG3 shown in FIG.
3: Same as S13), while each character “1”,
The color palette data CP1, CP2, and CP3 are used as designated gradation values of the character images (element body images) of "2" and "3" in the color palette data area 247 in the RAM 240.
To memorize.

【0286】もちろん、この場合も、アウトラインフォ
ントに基づく以外に、例えばドットマップフォントに基
づく文字や、外字登録や描画登録によりドットマップで
登録済みの文字(キャラクタの意味)も利用できるが、
第4実施形態では、後述のように輪郭線の再描画を行う
ので、アウトラインフォントに基づく場合に特に便利で
ある。そこで、以下では、特にアウトラインフォントに
基づく例について説明する。
Of course, in this case, in addition to the outline font, a character based on, for example, a dot map font or a character (meaning a character) registered in a dot map by external character registration or drawing registration can be used.
In the fourth embodiment, since the outline is redrawn as described later, it is particularly convenient when the outline is based on the outline font. Therefore, an example based on an outline font will be described below.

【0287】すなわち、このテープ印刷装置1では、図
30に示すように、上記の入力文字展開処理(S33)
において、まず、所定のアウトラインフォントに基づい
て、要素本体画像の輪郭線を構成するマトリクス要素に
のみ所定の2値(ここでは「1」および「0」)のうち
の有効を示す値(「1」)を割り付け、他のマトリクス
要素に、所定の2値のうちの無効を示す値(「0」)を
割り付けることにより、所定の2値のマトリクス(以下
「要素本体輪郭画像マトリクス」)で表現された文字
(要素本体)輪郭画像を作成し(S331)、文字(要
素本体)輪郭画像の無効を示す値「0」を割り付けられ
たマトリクス要素のうち、文字(要素本体)画像の輪郭
線を構成するマトリクス要素に囲まれたマトリクス要素
に、有効を示す値「1」を割り付けることにより、要素
形状画像マトリクスで表現される要素形状画像を作成す
る(S332)。
That is, in the tape printer 1, as shown in FIG. 30, the above-described input character development processing (S33)
First, based on a predetermined outline font, a value (“1”) indicating validity of predetermined binary values (here, “1” and “0”) only for matrix elements constituting an outline of an element body image )) And assigning a value (“0”) indicating invalidity among predetermined binary values to other matrix elements, thereby expressing the matrix in a predetermined binary matrix (hereinafter, “element body contour image matrix”). The character (element body) outline image is created (S331), and the outline of the character (element body) image is extracted from the matrix elements to which the value “0” indicating invalidity of the character (element body) outline image is assigned. An element shape image represented by an element shape image matrix is created by allocating a value “1” indicating validity to a matrix element surrounded by constituent matrix elements (S332).

【0288】アウトラインフォントは、輪郭線の座標や
属性等で定義されているため、アウトラインフォントに
基づく画像の展開処理(S33)は、一般に、輪郭線の
描画処理(アウトライン展開処理:輪郭線を構成するマ
トリクス要素に有効を示す値を割り付ける処理:S33
1)とその描画された輪郭線内のいわゆる塗り潰し処理
(アウトライン内塗り潰し処理:輪郭線内のマトリクス
要素の全てに有効を示す値を割り付ける処理:S33
2)により行われる。すなわち、上記の場合、アウトラ
インフォントに基づく一般的な画像展開方法により、要
素形状画像を容易に作成できる。
Since the outline font is defined by the coordinates and attributes of the outline, the image development processing (S33) based on the outline font generally includes outline drawing processing (outline expansion processing: forming outlines). Of assigning a value indicating validity to a matrix element to be executed: S33
1) and so-called filling processing in the drawn outline (outlining filling processing: processing of assigning values indicating validity to all matrix elements in the outline: S33)
2). That is, in the above case, the element shape image can be easily created by a general image expansion method based on the outline font.

【0289】図30に示すように、各文字(各要素画
像)の要素形状画像を作成して入力文字展開が終了する
と(S33)、基本色別のディザマスクを選択する(S
34:S14と同じ)。この処理(S34)はすでに第
1実施形態等で前述しているので、詳細な説明は省略す
る。そして、このテープ印刷装置1では、図30に示す
ように、基本色別ディザマスクの選択(S24)が終了
すると、次に、基本色別にマスク処理を行う(S3
5)。
As shown in FIG. 30, when the element shape image of each character (each element image) is created and the input character development is completed (S33), a dither mask for each basic color is selected (S33).
34: Same as S14). Since this process (S34) has already been described in the first embodiment and the like, detailed description will be omitted. Then, in the tape printer 1, as shown in FIG. 30, when the selection of the dither mask for each basic color is completed (S24), a mask process is then performed for each basic color (S3).
5).

【0290】この基本色別マスク処理(S35)におい
て、この第4実施形態のテープ印刷装置1では、要素本
体画像の輪郭線に基づいて要素ディザ画像を補正した要
素ディザ補正画像を作成する。
In the mask processing for each basic color (S35), the tape printing apparatus 1 according to the fourth embodiment creates an element dither corrected image in which the element dither image is corrected based on the outline of the element body image.

【0291】例えば前述の要素形状画像では、要素本体
画像の画素を表現するマトリクス要素には有効を示す値
「1」が割り付けられ、要素背景画像の画素を表現する
マトリクス要素には無効を示す値「0」が割り付けられ
ているので、それらの境界線(要素本体画像の輪郭線
等)は明瞭である。しかし、要素ディザ画像における要
素本体画像の画素に対応するマトリクス要素には、論理
積演算の結果、有効を示す値「1」と無効を示す値
「0」とが混在するので、例えば要素本体画像の輪郭線
に対応するマトリクス要素にも、有効を示す値「1」と
無効を示す値「0」とが混在してしまうことがあり、そ
の場合、要素背景画像との境界、すなわち要素本体画像
の輪郭線に対応する部分が不明瞭になる。そこで、この
ような場合に、要素本体画像に基づいて要素ディザ画像
を補正することにより、例えば要素ディザ画像の要素本
体画像の輪郭線に対応する部分を明瞭にすることがで
き、この補正結果の要素ディザ補正画像では、上述した
要素ディザ画像の利点に加え、要素本体画像のかすれや
切れ等を防止することが可能になる。
For example, in the above-described element shape image, a value “1” indicating validity is assigned to a matrix element expressing a pixel of the element body image, and a value indicating invalidity is allocated to a matrix element expressing a pixel of the element background image. Since “0” is assigned, their boundaries (such as the outline of the element body image) are clear. However, as a result of the logical product operation, a value “1” indicating validity and a value “0” indicating invalidity are mixed in the matrix element corresponding to the pixel of the element main image in the element dither image. In some cases, a value “1” indicating validity and a value “0” indicating invalidity are also mixed in the matrix element corresponding to the contour line of, and in this case, the boundary with the element background image, that is, the element body image The part corresponding to the contour line becomes unclear. Therefore, in such a case, by correcting the element dither image based on the element body image, for example, a portion corresponding to the contour line of the element body image of the element dither image can be clarified. In the element dither correction image, in addition to the advantages of the element dither image described above, it is possible to prevent fading or cutting of the element body image.

【0292】具体的には、図30に示すように、基本色
別マスク処理(S35)において、文字展開バッファ内
で、第1実施形態等と同様のマスク処理により各色の原
色要素ディザ画像を作成し(S351)、輪郭再描画を
行って、補正後の原色要素ディザ画像(以下「原色要素
ディザ補正画像」)を作成した後(S352)、各基本
色別配置バッファに各原色要素ディザ補正画像を配置し
(S353)、これにより、図13〜図15および図1
7〜図19で前述のような各基本色の全体ディザ画像を
作成する。すなわち、輪郭再描画(S352)以外は、
第1実施形態等と同様なので、それらの説明は省略し、
以下では、この輪郭再描画(S352)について説明す
る。
More specifically, as shown in FIG. 30, in the mask processing for each basic color (S35), a primary color element dither image of each color is created in the character expansion buffer by the same mask processing as in the first embodiment. (S351), the contour is redrawn, and a corrected primary color element dither image (hereinafter, "primary color element dither corrected image") is created (S352). Then, each primary color element dither corrected image is stored in each basic color arrangement buffer. Are arranged (S353), whereby FIG. 13 to FIG. 15 and FIG.
7 to 19, the entire dither image of each basic color as described above is created. That is, except for the outline redrawing (S352),
Since they are the same as the first embodiment and the like, the description thereof is omitted,
The outline redrawing (S352) will be described below.

【0293】まず、このテープ印刷装置1における要素
ディザ画像(ここでは原色要素ディザ画像)の補正は、
各要素ディザ画像のマトリクス要素のうち、要素本体画
像の輪郭線に対応するマトリクス要素に、所定の2値
「1」および「0」のうちの有効を示す値「1」を割り
付けることにより行われ、これにより、要素ディザ画像
の要素本体画像の輪郭線に対応する部分を明瞭にするこ
とができ、補正結果の要素ディザ補正画像では、要素本
体画像のかすれや切れ等を防止できる。
First, correction of an element dither image (here, a primary color element dither image) in the tape printer 1 is performed as follows.
This is performed by assigning a value “1” indicating validity of predetermined binary “1” and “0” to a matrix element corresponding to the contour line of the element body image among the matrix elements of each element dither image. Thus, the portion of the element dither image corresponding to the contour line of the element body image can be made clear, and in the element dither correction image resulting from the correction, it is possible to prevent fading or cutting of the element body image.

【0294】例えば図27(a)および図28に示す
「輪」の印刷画像(要素ディザ画像)PGK2に対し
て、輪郭線を強化する補正をすると、図27(b)およ
び図29に示す「輪」の印刷画像(要素ディザ補正画
像)PGK2Lのようになる。これらを比較すれば、あ
るいはそれらを小さいサイズで示した図27(c)の左
側の印刷画像(要素ディザ画像)PGK2Sと右側の印
刷画像(要素ディザ補正画像)PGK2LSとを比較す
れば、輪郭線の補正によりかすれや切れ等が防止されて
いることがわかる。
For example, when the print image (element dither image) PGK2 of the “ring” shown in FIG. 27A and FIG. 28 is corrected to enhance the outline, the correction shown in FIG. 27B and FIG. A print image (element dither correction image) PGK2L of “ring” is obtained. If these are compared, or if the print image (element dither image) PGK2S on the left side and the print image (element dither correction image) PGK2LS on the right side of FIG. It can be seen that blurring, cutting and the like are prevented by the correction of.

【0295】すなわち、このテープ印刷装置1では、例
えばディザ処理により印刷画像を作成してその画像を印
刷装置に出力する場合、印刷の際のインク等のにじみ等
が発生してもその輪郭線を強化することにより不明瞭さ
を抑止できる。また、印刷装置には前述のように印刷対
象物に応じた打込量制限値があるため、一律に濃度を高
くするような補正をすると、その打込量制限値を超えて
しまうなどの問題を生じることがあるが、ここでは輪郭
線を強化するだけであり、輪郭線の外側はインク等のな
い(無効を示す値が割り付けられた)領域なので、この
種の問題は生じない。
That is, in the tape printer 1, when a print image is created by, for example, dither processing and the image is output to the printer, even if bleeding or the like of ink or the like occurs at the time of printing, the outline thereof is drawn. Reinforcement can suppress ambiguity. In addition, since the printing apparatus has the ejection amount limit value corresponding to the printing target as described above, if the correction for uniformly increasing the density is exceeded, the ejection amount limit value may be exceeded. However, this type of problem does not occur because the outline is merely reinforced here, and the outside of the outline is a region without ink or the like (a value indicating invalidity is assigned).

【0296】具体的には、例えば図30に示すように、
輪郭再描画(S352)では、まず、要素本体画像が所
定の特性を有しているか否か、ここでは「文字サイズが
64ドット以下」および「線幅が4ドット以下」のいず
れかに該当するか否か、を判別し(S3521)、その
所定の特性を有していると判別したときに(S352
1:Yes)、文字輪郭再描画を行う(S3522)。
Specifically, for example, as shown in FIG.
In the outline redrawing (S352), first, it is determined whether or not the element body image has a predetermined characteristic. In this case, it corresponds to one of “character size is 64 dots or less” and “line width is 4 dots or less”. Is determined (S3521), and when it is determined that it has the predetermined characteristic (S352).
1: Yes), redraw the character outline (S3522).

【0297】この文字輪郭再描画(S3522)は、前
述の入力文字展開(S33)のアウトライン展開(S3
31)と同様の処理である。すなわち、このテープ印刷
装置1では、入力文字展開(要素形状画像作成:S3
3)の際の輪郭線の描画処理(アウトライン展開処理:
S331)と同様の処理を要素ディザ画像に対して行う
(すなわち輪郭線を再描画する文字(要素本体)輪郭再
描画を行う:S3522)ので、特に新たな機能を付加
することなく、要素ディザ画像の要素本体画像の輪郭線
に対応するマトリクス要素に、有効を示す値を容易に割
り付けることができる。
The character outline redrawing (S3522) is based on the outline expansion (S3) of the input character expansion (S33).
This is the same processing as 31). That is, in the tape printer 1, the input character development (element shape image creation: S3
3) Outline drawing processing (outline expansion processing:
The same processing as in S331) is performed on the element dither image (that is, the outline of the character (element body) whose outline is to be redrawn: S3522), so that the element dither image is added without adding any new function. A value indicating validity can be easily assigned to the matrix element corresponding to the contour line of the element body image of.

【0298】なお、入力文字展開(S33)の際に、ア
ウトライン展開(S331)で作成した要素本体輪郭画
像を、次のアウトライン内塗り潰し(S332)で使用
するのと並行してそのまま記憶しておき、上記の文字
(要素本体)輪郭再描画(S3522)において利用す
ることもできる。この場合、要素ディザ画像マトリクス
と要素本体輪郭画像マトリクスとの対応するマトリクス
要素同士を対象として、双方のいずれかが有効を示す値
「1」のときに結果のマトリクス要素を有効を示す値
「1」とする論理和演算を行う。すなわち、文字(要素
本体)輪郭画像マトリクスは、文字(要素本体)画像の
輪郭線を構成するマトリクス要素にのみ有効を示す値
「1」を割り付けたものなので、要素ディザ画像マトリ
クスと論理和演算するだけで、要素ディザ画像マトリク
スの要素本体画像の輪郭線に対応するマトリクス要素
に、有効を示す値「1」を容易に割り付けることがで
き、また、単に論理和演算を行えばよいので、処理時間
も短くて済む。
At the time of input character development (S33), the element body outline image created by outline development (S331) is stored as it is in parallel with the use in the next outline filling (S332). , Can be used in the character (element body) outline redrawing (S3522). In this case, for the corresponding matrix elements of the element dither image matrix and the element body outline image matrix, when either of them is a value “1” indicating validity, the resulting matrix element is set to a value “1” indicating validity. Is performed. That is, since the character (element body) contour image matrix is obtained by assigning a value "1" indicating validity only to the matrix elements constituting the outline of the character (element body) image, the logical OR operation with the element dither image matrix is performed. Alone, the value “1” indicating validity can be easily assigned to the matrix element corresponding to the contour line of the element body image of the element dither image matrix, and the processing time can be easily obtained by simply performing a logical OR operation. Can be shortened.

【0299】また、このテープ印刷装置1では、上述の
輪郭再描画(要素ディザ補正画像作成:S352)にお
いて、要素本体画像が所定の特性を有するか否かを判別
し(S3521)、所定の特性を有していると判別した
ときに(S3521:Yes)、要素ディザ画像を補正
して要素ディザ補正画像とし(文字輪郭再描画:S35
22)、有していないと判別したときに(S3521:
No)、要素ディザ画像をそのまま要素ディザ補正画像
とする。すなわち、所定の特性を有するか否かを判別す
ることにより、補正対象の要素ディザ画像を絞ることが
でき、要素画像を複数有するような場合に、一律に補正
するのに比べて全体として処理時間を短縮できる。
In the tape printing apparatus 1, it is determined whether or not the element body image has a predetermined characteristic in the above-described outline redrawing (element dither correction image creation: S352) (S3521). (S3521: Yes), the element dither image is corrected to an element dither correction image (character outline redrawing: S35).
22) When it is determined that it does not have it (S3521:
No), the element dither image is used as it is as an element dither correction image. That is, by determining whether or not the element has predetermined characteristics, it is possible to narrow down the element dither image to be corrected. Can be shortened.

【0300】また、上記の場合、所定の特性に、要素本
体画像のサイズに関する特性が含まれる。ディザ処理の
結果の明瞭さ、特にいわゆる間引き処理による結果の明
瞭さは、種々のサイズにより多様なので、これにより、
種々のサイズのうちの処理結果の明瞭さに影響し易いサ
イズに着目して、補正の対象を絞ることができ、効率の
よい補正が可能になる。また、上記の場合、一般的なド
ットサイズに基づいて判別するので、処理しやすい。
In the above case, the predetermined characteristics include a characteristic relating to the size of the element body image. The clarity of the result of the dithering process, especially the clarity of the result of the so-called decimation process, varies with different sizes,
Paying attention to the size that easily affects the clarity of the processing result among the various sizes, the correction target can be narrowed, and efficient correction can be performed. In the above case, the determination is made based on the general dot size, so that the processing is easy.

【0301】具体的には、上述のように、所定の特性
に、要素本体画像の形状全体が所定サイズ(ここでは6
4ドット)より小さいことが含まれる。すなわち、要素
本体画像の形状全体のサイズが小さい場合に、いわゆる
間引き処理により例えば輪郭線等の各部に凸凹が生じる
と、全体を見たときに、全体が小さい分だけその凸凹が
目立つことになり、要素本体画像の元々の形状が把握し
にくくなる。このため、要素本体画像の形状全体が所定
サイズ(64ドット)より小さい場合に、作成された要
素ディザ画像を補正対象とすることにより、画像の明瞭
さを向上させ、かすれ等を防止することができる。
Specifically, as described above, the entire shape of the element body image has a predetermined size (here, 6
4 dots). In other words, if the size of the entire shape of the element body image is small, and so-called thinning-out processing causes unevenness in each part such as a contour line, for example, when the entire image is viewed, the unevenness becomes conspicuous by the smaller the entire image. However, it is difficult to grasp the original shape of the element body image. For this reason, when the entire shape of the element body image is smaller than the predetermined size (64 dots), by making the created element dither image a correction target, it is possible to improve the clarity of the image and prevent blurring and the like. it can.

【0302】また、この場合、例えば同一サイズの文字
画像でもその書体により線幅が異なるように、上述の要
素本体画像の形状全体のサイズのみによっては判別でき
ないことがある。また、全体的な形状は把握できても、
その一部に線幅が狭い部分があると、そこに切れ等が生
じることがある。このため、上記の場合、所定の特性に
は、要素本体画像の線幅が所定サイズ(ここでは4ドッ
ト)より小さいことが含まれる。すなわち、要素本体画
像の線幅が所定サイズ(4ドット)より小さい場合に、
作成された要素ディザ画像を補正対象とすることによ
り、画像の明瞭さを向上させ、切れ等を防止することが
できる。なお、要素本体画像あるいはその一部として、
例えば文字に対するアンダーライン、取消線、罫線枠、
外枠等が含まれる場合、これらも線幅が狭い等によりか
すれや切れ等が生じる可能性があるので、上記の所定の
特性の判別では、これらも判別の対象とし、また、輪郭
再描画による補正対象とすることが好ましい。
[0302] In this case, for example, even in a character image having the same size, it may not be possible to determine only the size of the entire shape of the element body image described above so that the line width differs depending on the typeface. Also, even if you can grasp the overall shape,
If a part of the part has a narrow line width, the part may be cut off. Therefore, in the above case, the predetermined characteristics include that the line width of the element body image is smaller than a predetermined size (here, 4 dots). That is, when the line width of the element body image is smaller than the predetermined size (4 dots),
By using the created element dither image as a correction target, it is possible to improve the clarity of the image and prevent the image from being cut off. In addition, as the element body image or a part thereof,
For example, underlines, strikethroughs, borders,
When an outer frame or the like is included, these may also be blurred or cut due to a narrow line width or the like. Therefore, in the above-described determination of the predetermined characteristics, these are also subjected to the determination, and the outline redrawing is performed. It is preferable to make the correction target.

【0303】上述以外の点については、前述の第1実施
形態ないし第3実施形態と同様であり、同様の各種利点
を有することは明らかなので、説明は省略する。
The other points are the same as those of the above-described first to third embodiments, and it is clear that they have the same various advantages.

【0304】なお、上述の実施形態では、テープ印刷装
置1における印刷のため、すなわち印刷画像作成のため
の画像処理を例に挙げたが、当然ながら、ディスプレイ
4に表示する表示画像作成のための画像処理にも適用で
きる。前述の印刷の場合にはカラー3原色をCMYと
し、それにKを加えたCMYKの4色を基本色とした
が、表示のためには、カラー3原色は、R(レッド)、
G(グリーン)およびB(ブルー)の3色として、その
3原色を基本色とした画像処理(ディザ処理)を行うの
が好ましい。この場合、いわゆる加法混色により色(カ
ラー)を表現できるので、CRT、プラズマ、液晶等の
ディスプレイのように、それ自体が発光によってカラー
表現する場合に適している。また、この場合、RGBの
3色の混合色(混色)は白となる。
In the above-described embodiment, the image processing for printing in the tape printer 1, that is, the image processing for creating a print image has been described as an example. It can also be applied to image processing. In the case of the above-described printing, the three primary colors of CMY are set to CMY, and four basic colors of CMYK to which K is added are set as the basic colors. However, for display, the three primary colors of R are red (R),
It is preferable to perform image processing (dither processing) using the three primary colors as basic colors for the three colors G (green) and B (blue). In this case, since a color can be expressed by so-called additive color mixture, it is suitable for a case where a color display is performed by itself, such as a display such as a CRT, a plasma, or a liquid crystal. In this case, the mixed color (mixed color) of the three colors RGB is white.

【0305】また、上述の実施形態では、インクジェッ
ト方式の例を挙げたが、サーマル方式、レーザ方式等に
も適用できる。また、要素画像の本体となる要素本体画
像の画素とその背景になる要素背景画像の画素とが区分
可能でかつ少なくとも要素本体画像の全画素が同一階調
値の要素画像を、少なくとも1つ有する全体画像を対象
とするものであれば、例えば一般的な印刷装置や表示装
置その他のどのような装置あるいはどのような目的で作
成する画像処理にも適用できる。もちろん、その他、本
発明の要旨を逸脱しない範囲で、適宜変更も可能であ
る。
Further, in the above embodiment, an example of the ink jet system has been described, but the present invention can be applied to a thermal system, a laser system, and the like. In addition, the pixels of the element body image serving as the body of the element image and the pixels of the element background image serving as the background can be distinguished, and at least all the pixels of the element body image have at least one element image having the same gradation value. The present invention can be applied to, for example, a general printing device, a display device, or any other device, or image processing created for any purpose, as long as the target is the entire image. Of course, other modifications can be made as appropriate without departing from the spirit of the present invention.

【0306】[0306]

【発明の効果】上述のように、本発明の画像処理方法お
よびその装置によれば、要素画像の本体となる要素本体
画像の画素とその背景になる要素背景画像の画素とが区
分可能でかつ少なくとも要素本体画像の全画素が同一階
調値の要素画像を、少なくとも1つ有する全体画像を対
象として、メモリ容量の節約と処理時間の短縮を図りつ
つ、ディザ処理を行うことができる、などの効果があ
る。
As described above, according to the image processing method and apparatus of the present invention, it is possible to distinguish between the pixel of the element body image which is the body of the element image and the pixel of the element background image which is the background thereof. Dither processing can be performed on an entire image having at least one element image in which all pixels of the element body image have the same gradation value while saving memory capacity and shortening the processing time. effective.

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

【図1】本発明の一実施形態に係る画像処理方法および
その装置を適用したテープ印刷装置1の外観斜視図であ
る。
FIG. 1 is an external perspective view of a tape printing apparatus 1 to which an image processing method and an image processing method according to an embodiment of the present invention are applied.

【図2】図1のテープ印刷装置の制御系のブロック図で
ある。
FIG. 2 is a block diagram of a control system of the tape printing apparatus of FIG.

【図3】図1のテープ印刷装置の装置本体の断面図であ
る。
FIG. 3 is a sectional view of an apparatus main body of the tape printing apparatus of FIG.

【図4】図1のテープ印刷装置に装着するテープカート
リッジの一例の裁断断面図である。
FIG. 4 is a cut-away sectional view of an example of a tape cartridge to be mounted on the tape printer of FIG. 1;

【図5】図1のテープ印刷装置の制御全体の概念的処理
を示すフローチャートである。
FIG. 5 is a flowchart showing a conceptual process of the entire control of the tape printing apparatus in FIG. 1;

【図6】2値ディザ処理の一例を示す原理説明図であ
る。
FIG. 6 is a principle explanatory diagram showing an example of a binary dither process.

【図7】多値ディザ処理の一例を示す原理説明図であ
る。
FIG. 7 is a principle explanatory diagram showing an example of a multi-value dither process.

【図8】同一階調値の要素本体画像の輪郭線内の一部を
表現する分割入力マトリクスの一例に対するディザ処理
を、従来と対比して説明するための原理説明図である。
FIG. 8 is a principle explanatory diagram for explaining dither processing on an example of a divided input matrix expressing a part of the contour of an element body image having the same gradation value in comparison with a conventional example.

【図9】別の一例に対する図8と同様の原理説明図であ
る。
FIG. 9 is a principle explanatory view similar to FIG. 8 for another example.

【図10】同一階調値の要素本体画像の輪郭線内および
輪郭線外を含むさらに別の一例に対する図8と同様の原
理説明図である。
FIG. 10 is a principle explanatory view similar to FIG. 8 for still another example including inside and outside the outline of an element main body image having the same gradation value.

【図11】要素画像全体および全体画像に対して従来の
ディザ処理を行う一例を説明するための原理説明図であ
る。
FIG. 11 is a principle explanatory diagram for explaining an example in which conventional dither processing is performed on the entire element image and the entire image.

【図12】図11に対応して、本発明の実施形態におけ
るディザ処理を行う一例を説明するための原理説明図で
ある。
FIG. 12 is a principle explanatory diagram corresponding to FIG. 11, for explaining an example of performing dither processing in the embodiment of the present invention.

【図13】モノクロ画像の場合およびカラー画像のY色
についての全体ディザ画像マトリクスおよびそれに対応
する印刷画像の一例を示す説明図である。
FIG. 13 is an explanatory diagram showing an example of an entire dither image matrix for a monochrome image and for a Y color of a color image and a print image corresponding thereto.

【図14】カラー画像のC色およびK色についての全体
ディザ画像マトリクスおよびそれに対応する印刷画像の
一例を示す説明図である。
FIG. 14 is an explanatory diagram showing an example of an overall dither image matrix for C and K colors of a color image and a print image corresponding thereto.

【図15】カラー画像のM色についての全体ディザ画像
マトリクスおよびそれに対応する印刷画像の一例を示す
説明図である。
FIG. 15 is an explanatory diagram showing an example of an entire dither image matrix for M colors of a color image and a print image corresponding thereto.

【図16】第1実施形態における画像作成・印刷処理の
一例を示すフローチャートである。
FIG. 16 is a flowchart illustrating an example of an image creation / printing process according to the first embodiment.

【図17】図13のカラー画像のY色について図14の
K色の分をキャンセルしたときの全体ディザ画像マトリ
クスおよびそれに対応する印刷画像の一例を示す説明図
である。
17 is an explanatory diagram showing an example of an entire dither image matrix when the color K of FIG. 14 is canceled for the Y color of the color image of FIG. 13 and a print image corresponding thereto;

【図18】図14のカラー画像のC色について図14の
K色の分をキャンセルしたときの全体ディザ画像マトリ
クスおよびそれに対応する印刷画像の一例を示す説明図
である。
18 is an explanatory diagram illustrating an example of an entire dither image matrix when the color C of the color image of FIG. 14 is canceled for the color K of FIG. 14 and a print image corresponding thereto;

【図19】図15のカラー画像のM色について図14の
K色の分をキャンセルしたときの全体ディザ画像マトリ
クスおよびそれに対応する印刷画像の一例を示す説明図
である。
19 is an explanatory diagram showing an example of an entire dither image matrix when the color of M in the color image of FIG. 15 is canceled for K of FIG. 14 and a print image corresponding thereto;

【図20】色変換テーブルの一例を示す説明図である。FIG. 20 is an explanatory diagram illustrating an example of a color conversion table.

【図21】第2実施形態において仮原色ディザマスクと
混色ディザマスクから原色ディザマスクを求める一例を
示す原理説明図である。
FIG. 21 is a principle explanatory diagram showing an example of obtaining a primary color dither mask from a temporary primary color dither mask and a mixed color dither mask in the second embodiment.

【図22】図形に関するディザ処理の一例を示す原理説
明図である。
FIG. 22 is a principle explanatory diagram showing an example of dither processing for a graphic.

【図23】第3実施形態の指定階調値の補正を適用しな
い場合と適用した場合を対比して説明するための印刷画
像の一例を示す説明図である。
FIG. 23 is an explanatory diagram showing an example of a print image for comparing and explaining a case where the correction of the designated gradation value according to the third embodiment is not applied and a case where it is applied.

【図24】図23の指定階調値の補正を適用しない場合
の印刷画像を拡大して示す説明図である。
24 is an explanatory diagram showing an enlarged print image when the correction of the designated gradation value in FIG. 23 is not applied.

【図25】図23の指定階調値の補正を適用した場合の
印刷画像を拡大して示す説明図である。
FIG. 25 is an explanatory diagram showing an enlarged print image when the correction of the designated gradation value in FIG. 23 is applied.

【図26】第3実施形態における画像作成・印刷処理の
一例を示すフローチャートである。
FIG. 26 is a flowchart illustrating an example of an image creation / printing process according to the third embodiment.

【図27】第4実施形態の要素ディザ画像の補正を適用
しない場合と適用した場合を対比して説明するための印
刷画像の一例を示す説明図である。
FIG. 27 is an explanatory diagram illustrating an example of a print image for describing a case where correction of an element dither image according to the fourth embodiment is not applied and a case where correction is applied;

【図28】図27の要素ディザ画像の補正を適用しない
場合の印刷画像を拡大して示す説明図である。
FIG. 28 is an explanatory diagram showing an enlarged print image when the correction of the element dither image in FIG. 27 is not applied.

【図29】図27の要素ディザ画像の補正を適用した場
合の印刷画像を拡大して示す説明図である。
FIG. 29 is an explanatory diagram showing an enlarged print image when the correction of the element dither image of FIG. 27 is applied.

【図30】第4実施形態における画像作成・印刷処理の
一例を示すフローチャートである。
FIG. 30 is a flowchart illustrating an example of an image creation / printing process according to the fourth embodiment.

【図31】従来の画像作成・印刷処理の一例を示すフロ
ーチャートである。
FIG. 31 is a flowchart illustrating an example of a conventional image creation / printing process.

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

1 テープ印刷装置 3 キーボード 4 ディスプレイ 5 テープカートリッジ 7 印刷ヘッド 11 操作部 12 印刷部 13 切断部 14 検出部 41 表示画面 200 制御部 210 CPU 220 ROM 230 キャラクタジェネレータROM(CG−RO
M) 240 RAM 241 各種レジスタ群 242 テキストデータ領域 243 表示画像データ領域 244 印刷画像データ領域 245 描画登録画像データ領域 246 ディザマスクデータ領域 247 色パレットデータ領域 248 各種バッファ領域 250 周辺制御回路(P−CON) 260 内部バス 270 駆動部 290 電源部 CP1〜CP6 …… 色パレットデータ DD5、DD16、DD64(1〜4) …… ディザ
マトリクス DGC、DGC2、DGM、DGM2、DGY、DGY
2、DGK…… 全体ディザ画像マトリクス DM5(0〜4)、DM64(35、55) …… デ
ィザマスク KP35、KP55 …… 指定階調値 SG1〜SG6 …… 要素形状画像マトリクス T テープ T1 印刷テープ T2 ラミネートテープ
DESCRIPTION OF SYMBOLS 1 Tape printer 3 Keyboard 4 Display 5 Tape cartridge 7 Print head 11 Operation part 12 Printing part 13 Cutting part 14 Detecting part 41 Display screen 200 Control part 210 CPU 220 ROM 230 Character generator ROM (CG-RO)
M) 240 RAM 241 Various register groups 242 Text data area 243 Display image data area 244 Print image data area 245 Drawing registration image data area 246 Dither mask data area 247 Color palette data area 248 Various buffer areas 250 Peripheral control circuit (P-CON) ) 260 Internal bus 270 Drive unit 290 Power supply unit CP1 to CP6 Color palette data DD5, DD16, DD64 (1 to 4) Dither matrix DGC, DGC2, DGM, DGM2, DGY, DGY
2, DGK: overall dither image matrix DM5 (0 to 4), DM64 (35, 55): dither mask KP35, KP55: designated gradation value SG1 to SG6: element shape image matrix T tape T1 printing tape T2 Laminating tape

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 AA20 CA01 CA08 CA12 CA16 CB01 CB07 CB12 CB16 CC02 CE13 DA08 DB02 DB06 DB09 DC16 5C077 LL17 LL18 NN08 NP01 PP32 PP33 PP47 PQ12 RR09 SS05 SS07 TT05 TT10 5C079 HB01 HB02 KA12 LA06 LC05 MA01 MA11 MA17 MA19 NA10 NA11 PA00  ──────────────────────────────────────────────────続 き Continued on the front page F-term (reference) 5B057 AA20 CA01 CA08 CA12 CA16 CB01 CB07 CB12 CB16 CC02 CE13 DA08 DB02 DB06 DB09 DC16 5C077 LL17 LL18 NN08 NP01 PP32 PP33 PP47 PQ12 RR09 SS05 SS07 TT05 TT10 5C009 HB01B01B12B MA11 MA17 MA19 NA10 NA11 PA00

Claims (42)

【特許請求の範囲】[Claims] 【請求項1】 画素のn値(nは3以上の整数)の階調
値のしきい値をm値(mはn≧m≧2となる整数)で規
定してマトリクス要素として配列したディザマトリクス
に基づいて、ディザ処理を行う画像処理方法であって、 1つ以上の要素画像を有する全体画像の要素画像のう
ち、要素画像の本体となる要素本体画像の画素とその背
景になる要素背景画像の画素とを区分可能な少なくとも
1つの要素画像について、前記要素本体画像の全画素
に、所定の2値のうちの有効を示す値を割り付け、前記
要素背景画像の全画素に、前記所定の2値のうちの無効
を示す値を割り付けることにより、前記所定の2値のマ
トリクスで表現された要素形状画像を作成して記憶する
要素形状画像作成工程と、 前記少なくとも1つの要素画像について、前記要素本体
画像の全画素に同一の指定階調値として、前記n値のう
ちの1つの階調値を記憶する指定階調値記憶工程と、 前記ディザマトリクスと同一サイズの前記所定の2値の
マトリクスで表現され、前記ディザマトリクスの各しき
い値のうちの前記指定階調値が条件を満たすしきい値に
対応するマトリクス要素に、前記所定の2値のうちの有
効を示す値を割り付け、条件を満たさないしきい値に対
応するマトリクス要素に、前記所定の2値のうちの無効
を示す値を割り付けたディザマスクを記憶するディザマ
スク記憶工程と、 前記要素形状画像の前記ディザマスクと同一サイズのマ
トリクス毎に、各マトリクスと前記ディザマスクとの対
応するマトリクス要素同士を対象として、双方が有効を
示す値のときのみ有効を示す値とする論理積演算を行う
ことにより、その論理積演算の結果として、前記要素形
状画像と同一サイズの前記所定の2値のマトリクスで表
現された要素ディザ画像を作成する要素ディザ画像作成
工程と、を備えたことを特徴とする画像処理方法。
1. A dither in which a threshold value of a gradation value of an n value (n is an integer of 3 or more) of a pixel is defined as an m value (m is an integer satisfying n ≧ m ≧ 2) and arranged as a matrix element. An image processing method for performing dither processing based on a matrix, comprising, among element images of an entire image having one or more element images, a pixel of an element body image serving as a body of an element image and an element background serving as a background thereof For at least one element image that can be distinguished from the pixels of the image, all the pixels of the element body image are assigned a value indicating validity among predetermined two values, and all the pixels of the element background image are assigned the predetermined value. An element shape image creation step of creating and storing an element shape image represented by the predetermined binary matrix by assigning a value indicating invalidity among the two values; and for the at least one element image, element A designated gradation value storing step of storing one of the n values as the designated designated gradation value for all pixels of the body image; and the predetermined binary matrix having the same size as the dither matrix. And assigning a value indicating validity of the predetermined two values to a matrix element corresponding to a threshold value that satisfies a condition where the designated gradation value among the threshold values of the dither matrix satisfies a condition, A dither mask storing step of storing a dither mask in which a value indicating invalidity of the predetermined two values is assigned to a matrix element corresponding to a threshold value that does not satisfy the following condition: the same size as the dither mask of the element shape image For each matrix, a logical AND operation is performed on the corresponding matrix elements of each matrix and the dither mask, and only when both values are valid, the value indicates validity. An element dither image creating step of creating an element dither image represented by the predetermined binary matrix having the same size as the element shape image as a result of the logical product operation. Image processing method.
【請求項2】 前記所定の2値は、1および0であるこ
とを特徴とする、請求項1に記載の画像処理方法。
2. The image processing method according to claim 1, wherein the predetermined binary value is 1 and 0.
【請求項3】 前記少なくとも1つの要素画像がモノク
ロ画像である場合、その濃淡を示す階調値を前記指定階
調値として記憶することを特徴とする、請求項1または
2に記載の画像処理方法。
3. The image processing apparatus according to claim 1, wherein, when the at least one element image is a monochrome image, a gradation value indicating the density of the monochrome image is stored as the designated gradation value. Method.
【請求項4】 前記少なくとも1つの要素画像がカラー
画像である場合、 前記指定階調値記憶工程では、カラー3原色の各色につ
いての原色階調値を、それぞれ前記指定階調値の1種と
して記憶し、 前記ディザマスク記憶工程では、前記原色階調値のうち
の少なくとも相互に値が異なるものに対応する原色ディ
ザマスクを、それぞれ前記ディザマスクの1種として記
憶し、 前記要素ディザ画像作成工程では、前記原色ディザマス
クを使用した前記論理積演算を行うことにより、各原色
ディザマスクに対応する原色要素ディザ画像を、それぞ
れ前記要素ディザ画像の1種として作成することを特徴
とする、請求項1ないし3のいずれかに記載の画像処理
方法。
4. When the at least one elemental image is a color image, in the designated gradation value storing step, a primary color gradation value for each of the three primary colors is set as one of the designated gradation values. In the dither mask storing step, a primary color dither mask corresponding to at least one of the primary color tone values having different values is stored as one of the dither masks, and the element dither image creating step is performed. The primary color dither image corresponding to each primary color dither mask is created as one kind of the element dither image by performing the logical product operation using the primary color dither mask. 4. The image processing method according to any one of 1 to 3.
【請求項5】 前記少なくとも1つの要素画像がカラー
画像である場合、作成された前記原色要素ディザ画像の
全てに共通して前記有効を示す値のマトリクス要素のみ
に前記有効を示す値を割り付けた混色要素ディザ画像
を、前記要素ディザ画像の新たな1種として作成する混
色要素ディザ画像作成工程をさらに備えたことを特徴と
する、請求項4に記載の画像処理方法。
5. When the at least one element image is a color image, a value indicating the validity is assigned to only a matrix element having a value indicating the validity in common to all of the created primary color element dither images. The image processing method according to claim 4, further comprising a mixed-color element dither image creating step of creating a mixed-color element dither image as a new kind of the element dither image.
【請求項6】 前記混色要素ディザ画像は、作成された
前記原色要素ディザ画像の対応するマトリクス要素同士
を対象として、全てが前記有効を示す値のときのみ有効
を示す値とする論理積演算の結果として作成されること
を特徴とする、請求項5に記載の画像処理方法。
6. The AND operation of the mixed-color element dither image, which is performed on the corresponding matrix elements of the created primary-color element dither image and sets a value indicating the validity only when all the values indicate the validity. The image processing method according to claim 5, wherein the image processing method is created as a result.
【請求項7】 作成された前記原色要素ディザ画像の前
記有効を示す値のマトリクス要素のうち、前記混色要素
ディザ画像の前記有効を示す値のマトリクス要素に対応
するマトリクス要素の値を、前記無効を示す値に変換す
る混色有効マトリクス要素削除工程をさらに備えたこと
を特徴とする、請求項5または6に記載の画像処理方
法。
7. A matrix element value corresponding to the validity value of the mixed color element dither image among the matrix elements of the validity value of the created primary color element dither image, 7. The image processing method according to claim 5, further comprising a color mixing effective matrix element deleting step of converting the value into a value indicating
【請求項8】 混色有効マトリクス要素削除工程は、 前記混色要素ディザ画像を対象として、前記有効を示す
値と前記無効を示す値とを反転させる論理反転演算を行
うことにより、混色反転要素ディザ画像を作成する混色
反転要素ディザ画像作成工程と、 前記原色要素ディザ画像の各原色要素ディザ画像と前記
混色反転要素ディザ画像との対応するマトリクス要素同
士を対象として、双方が前記有効を示す値のときのみ有
効を示す値とする論理積演算の結果として作成された要
素ディザ画像を、新たな各原色要素ディザ画像とする新
原色要素ディザ画像作成工程と、を有することを特徴と
する、請求項7に記載の画像処理方法。
8. The mixed color effective matrix element deleting step includes performing a logical inversion operation of inverting the value indicating validity and the value indicating invalidity on the mixed color element dither image, thereby obtaining a mixed color inverted element dither image. A mixed color inversion element dither image creating step of creating, and for each matrix element corresponding to the primary color element dither image and the color mixture inversion element dither image of the primary color element dither image, when both are values indicating the validity 8. A new primary color element dither image creating step of using element dither images created as a result of a logical product operation indicating only valid values as new primary color element dither images. The image processing method according to 1.
【請求項9】 前記少なくとも1つの要素画像がカラー
画像である場合、 前記指定階調値記憶工程では、カラー3原色の各色につ
いての原色階調値を、それぞれ前記指定階調値の1種と
して記憶し、 前記ディザマスク記憶工程は、 前記原色階調値のうちの少なくとも相互に値が異なるも
のに対応する仮原色ディザマスクを、それぞれ前記ディ
ザマスクの一種として記憶する仮原色ディザマスク記憶
工程と、 前記仮原色ディザマスクの全てに共通して前記有効を示
す値のマトリクス要素のみに前記有効を示す値を割り付
けた混色ディザマスクを記憶する混色ディザマスク記憶
工程と、 前記仮原色ディザマスクのそれぞれについて、各仮原色
ディザマスクの前記有効を示す値のマトリクス要素のう
ち、前記混色ディザマスクの前記有効を示す値のマトリ
クス要素に対応するマトリクス要素の値を、前記無効を
示す値に変換して、各原色ディザマスクとして記憶する
原色ディザマスク記憶工程と、を有し、 前記要素ディザ画像作成工程では、前記混色ディザマス
クおよび前記各原色ディザマスクを使用した前記論理積
演算を行うことにより、前記混色ディザマスクおよび前
記各原色ディザマスクに対応する混色要素ディザ画像お
よび各原色要素ディザ画像を、それぞれ前記要素ディザ
画像の1種として作成することを特徴とする、請求項1
ないし3のいずれかに記載の画像処理方法。
9. When the at least one elemental image is a color image, in the designated gradation value storing step, a primary color gradation value for each of the three primary colors is set as one of the designated gradation values. Storing the dither mask storing step, wherein a temporary primary color dither mask corresponding to at least one of the primary color tone values having different values is stored as a kind of the dither mask. A mixed color dither mask storing step of storing a mixed color dither mask in which a value indicating the validity is assigned only to the matrix element of the value indicating the validity in common with all of the temporary primary color dither masks; Of the matrix elements of the value indicating the validity of each temporary primary color dither mask, the value indicating the validity of the mixed color dither mask A primary color dither mask storing step of converting a value of a matrix element corresponding to the matrix element into a value indicating the invalidity and storing the converted value as a primary color dither mask. By performing the AND operation using the mask and the respective primary color dither masks, the mixed color dither mask and the mixed color element dither images and the respective primary color element dither images corresponding to the respective primary color dither masks are respectively converted to the element dither images. 2. The method according to claim 1, wherein the method is performed as one type.
4. The image processing method according to any one of claims 1 to 3.
【請求項10】 前記仮原色ディザマスクの全てが同一
のディザマトリクスに基づくものである場合、前記仮原
色ディザマスクのうちの前記有効を示す値のマトリクス
要素が最も少ない仮原色ディザマスクを、前記混色ディ
ザマスクとして記憶することを特徴とする、請求項9に
記載の画像処理方法。
10. When the temporary primary color dither masks are all based on the same dither matrix, the temporary primary color dither mask having the least effective matrix element among the temporary primary color dither masks is used as the temporary primary color dither mask. The image processing method according to claim 9, wherein the image is stored as a mixed-color dither mask.
【請求項11】 前記混色ディザマスクは、前記カラー
3原色の各原色階調値のうち、条件を満たす前記ディザ
マトリクスのしきい値の数が最も少ない原色階調値を選
択することにより、選択された原色階調値に対応する仮
原色ディザマスクとして得られることを特徴とする、請
求項10に記載の画像処理方法。
11. The multi-color dither mask is selected by selecting a primary color tone value having the smallest number of threshold values of the dither matrix satisfying a condition from among primary color tone values of the three primary colors. The image processing method according to claim 10, wherein the image processing method is obtained as a temporary primary color dither mask corresponding to the determined primary color tone value.
【請求項12】 前記各原色階調値がディザマトリクス
の各しきい値以上のときにそのしきい値の条件を満た
し、そのしきい値に対応するディザマスクのマトリクス
要素が有効を示す値となる場合に、前記混色ディザマス
クを得るための原色階調値の選択では、最小値の原色階
調値が選択されることを特徴とする、請求項11に記載
の画像処理方法。
12. When a value of each primary color tone value is equal to or greater than each threshold value of a dither matrix, the threshold value condition is satisfied, and a value indicating that a matrix element of a dither mask corresponding to the threshold value is valid is provided. 12. The image processing method according to claim 11, wherein in the case of selecting a primary color tone value for obtaining the mixed color dither mask, a minimum primary color tone value is selected.
【請求項13】 前記各原色階調値がディザマトリクス
の各しきい値以下のときにそのしきい値の条件を満た
し、そのしきい値に対応するディザマスクのマトリクス
要素が有効を示す値となる場合に、前記混色ディザマス
クを得るための原色階調値の選択では、最大値の原色階
調値が選択されることを特徴とする、請求項11に記載
の画像処理方法。
13. A value which satisfies a threshold condition when each of said primary color tone values is equal to or less than each threshold value of a dither matrix, and a value indicating that a matrix element of a dither mask corresponding to the threshold value is valid. 12. The image processing method according to claim 11, wherein in the case of selecting a primary color tone value for obtaining the mixed color dither mask, a maximum primary color tone value is selected.
【請求項14】 前記混色ディザマスクは、前記仮原色
ディザマスクの対応するマトリクス要素同士を対象とし
て、全てが前記有効を示す値のときのみ有効を示す値と
する論理積演算の結果として作成されることを特徴とす
る、請求項9に記載の画像処理方法。
14. The mixed-color dither mask is created as a result of a logical AND operation that targets the corresponding matrix elements of the temporary primary-color dither mask and indicates a valid value only when all the values are valid. The image processing method according to claim 9, wherein:
【請求項15】 前記各原色ディザマスクは、前記混色
ディザマスクを対象として前記有効を示す値と前記無効
を示す値とを反転させる論理反転演算の結果として作成
される混色反転ディザマスクと、各仮原色ディザマスク
と、の対応するマトリクス要素同士を対象として、双方
が前記有効を示す値のときのみ有効を示す値とする論理
積演算の結果として作成されることを特徴とする、請求
項9ないし14のいずれかに記載の画像処理方法。
15. Each of the primary color dither masks is a mixed color inversion dither mask created as a result of a logical inversion operation for inverting the value indicating the validity and the value indicating the invalidation with respect to the mixed color dither mask; 10. The temporary primary color dither mask is created as a result of a logical AND operation that sets corresponding values only when both of the matrix elements corresponding to the temporary primary color dither mask indicate the validity value. 15. The image processing method according to any one of items 14 to 14.
【請求項16】 前記カラー3原色は、シアン、マゼン
タおよびイエローの3色であることを特徴とする、請求
項4ないし15のいずれかに記載の画像処理方法。
16. The image processing method according to claim 4, wherein the three primary colors are three colors of cyan, magenta, and yellow.
【請求項17】 前記要素ディザ画像は、印刷対象物に
印刷するための印刷画像として作成されることを特徴と
する、請求項1ないし16のいずれかに記載の画像処理
方法。
17. The image processing method according to claim 1, wherein the element dither image is created as a print image to be printed on a print target.
【請求項18】 前記要素ディザ画像の前記有効を示す
値のマトリクス要素は、前記印刷対象物に対してインク
ジェットヘッドからインクを吐出すべき画素に対応して
いることを特徴とする、請求項17に記載の画像処理方
法。
18. The method according to claim 17, wherein the matrix element of the value indicating the validity of the element dither image corresponds to a pixel to which ink is to be ejected from an inkjet head to the printing target. The image processing method according to 1.
【請求項19】 前記印刷対象物がテープであることを
特徴とする、請求項17または18に記載の画像処理方
法。
19. The image processing method according to claim 17, wherein the print target is a tape.
【請求項20】 前記カラー3原色は、レッド、グリー
ンおよびブルーの3色であることを特徴とする、請求項
4に記載の画像処理方法。
20. The image processing method according to claim 4, wherein the three primary colors are three colors of red, green, and blue.
【請求項21】 前記要素ディザ画像が、表示画面に表
示するための表示画像として作成されることを特徴とす
る、請求項1ないし4のいずれかに記載の画像処理方
法。
21. The image processing method according to claim 1, wherein the element dither image is created as a display image to be displayed on a display screen.
【請求項22】 画素のn値(nは3以上の整数)の階
調値のしきい値をm値(mはn≧m≧2となる整数)で
規定してマトリクス要素として配列したディザマトリク
スに基づいて、ディザ処理を行う画像処理装置であっ
て、 1つ以上の要素画像を有する全体画像の要素画像のう
ち、要素画像の本体となる要素本体画像の画素とその背
景になる要素背景画像の画素とを区分可能な少なくとも
1つの要素画像について、前記要素本体画像の全画素
に、所定の2値のうちの有効を示す値を割り付け、前記
要素背景画像の全画素に、前記所定の2値のうちの無効
を示す値を割り付けることにより、前記所定の2値のマ
トリクスで表現された要素形状画像を作成して記憶する
要素形状画像作成手段と、 前記少なくとも1つの要素画像について、前記要素本体
画像の全画素に同一の指定階調値として、前記n値のう
ちの1つの階調値を記憶する指定階調値記憶手段と、 前記ディザマトリクスと同一サイズの前記所定の2値の
マトリクスで表現され、前記ディザマトリクスの各しき
い値のうちの前記指定階調値が条件を満たすしきい値に
対応するマトリクス要素に、前記所定の2値のうちの有
効を示す値を割り付け、条件を満たさないしきい値に対
応するマトリクス要素に、前記所定の2値のうちの無効
を示す値を割り付けたディザマスクを記憶するディザマ
スク記憶手段と、 前記要素形状画像の前記ディザマスクと同一サイズのマ
トリクス毎に、各マトリクスと前記ディザマスクとの対
応するマトリクス要素同士を対象として、双方が有効を
示す値のときのみ有効を示す値とする論理積演算を行う
ことにより、その論理積演算の結果として、前記要素形
状画像と同一サイズの前記所定の2値のマトリクスで表
現された要素ディザ画像を作成する要素ディザ画像作成
手段と、を備えたことを特徴とする画像処理装置。
22. A dither in which pixels are arranged as matrix elements by defining a threshold value of an n value (n is an integer of 3 or more) gradation value of a pixel by an m value (m is an integer satisfying n ≧ m ≧ 2). What is claimed is: 1. An image processing apparatus for performing dither processing based on a matrix, comprising: a pixel of an element main image serving as a main body of an element image and an element background serving as a background among element images of an entire image having one or more element images. For at least one element image that can be distinguished from the pixels of the image, all the pixels of the element body image are assigned a value indicating validity among predetermined two values, and all the pixels of the element background image are assigned the predetermined value. An element shape image creating unit that creates and stores an element shape image represented by the predetermined binary matrix by allocating a value indicating invalidity among the two values; and for the at least one element image, Required Designated gradation value storage means for storing one of the n values as the same designated gradation value for all pixels of the main body image; and the predetermined binary matrix having the same size as the dither matrix And assigning a value indicating validity of the predetermined two values to a matrix element corresponding to a threshold value of which the designated gradation value among the threshold values of the dither matrix satisfies a condition, A dither mask storing means for storing a dither mask in which a value indicating invalidity of the predetermined two values is assigned to a matrix element corresponding to a threshold value that does not satisfy the following condition: a dither mask having the same size as the dither mask of the element shape image For each matrix, for each matrix element corresponding to the dither mask and the corresponding matrix element, a logical product operation is performed which sets a value indicating valid only when both values are valid. Performing an AND operation to generate an element dither image represented by the predetermined binary matrix having the same size as the element shape image as a result of the AND operation. Image processing apparatus.
【請求項23】 前記所定の2値は、1および0である
ことを特徴とする、請求項22に記載の画像処理装置。
23. The image processing apparatus according to claim 22, wherein the predetermined binary is 1 and 0.
【請求項24】 前記少なくとも1つの要素画像がモノ
クロ画像である場合、その濃淡を示す階調値を前記指定
階調値として記憶することを特徴とする、請求項22ま
たは23に記載の画像処理装置。
24. The image processing method according to claim 22, wherein, when the at least one element image is a monochrome image, a gradation value indicating the density of the monochrome image is stored as the designated gradation value. apparatus.
【請求項25】 前記少なくとも1つの要素画像がカラ
ー画像である場合、 前記指定階調値記憶手段は、カラー3原色の各色につい
ての原色階調値を、それぞれ前記指定階調値の1種とし
て記憶し、 前記ディザマスク記憶手段は、前記原色階調値のうちの
少なくとも相互に値が異なるものに対応する原色ディザ
マスクを、それぞれ前記ディザマスクの1種として記憶
し、 前記要素ディザ画像作成手段は、前記原色ディザマスク
を使用した前記論理積演算を行うことにより、各原色デ
ィザマスクに対応する原色要素ディザ画像を、それぞれ
前記要素ディザ画像の1種として作成することを特徴と
する、請求項22ないし24のいずれかに記載の画像処
理装置。
25. When the at least one elemental image is a color image, the designated gradation value storage means stores primary color gradation values for each of the three primary colors as one of the designated gradation values. The dither mask storage means stores primary color dither masks corresponding to at least mutually different values of the primary color tone values as one of the dither masks, and the element dither image creation means Generating a primary color element dither image corresponding to each primary color dither mask as one kind of the element dither image by performing the logical AND operation using the primary color dither mask. 25. The image processing device according to any one of 22 to 24.
【請求項26】 前記少なくとも1つの要素画像がカラ
ー画像である場合、作成された前記原色要素ディザ画像
の全てに共通して前記有効を示す値のマトリクス要素の
みに前記有効を示す値を割り付けた混色要素ディザ画像
を、前記要素ディザ画像の新たな1種として作成する混
色要素ディザ画像作成手段をさらに備えたことを特徴と
する、請求項25に記載の画像処理装置。
26. When the at least one elemental image is a color image, the value indicating the validity is assigned only to the matrix element of the value indicating the validity common to all of the created primary color element dither images. 26. The image processing apparatus according to claim 25, further comprising: a mixed-color element dither image creating unit that creates a mixed-color element dither image as a new kind of the element dither image.
【請求項27】 前記混色要素ディザ画像は、作成され
た前記原色要素ディザ画像の対応するマトリクス要素同
士を対象として、全てが前記有効を示す値のときのみ有
効を示す値とする論理積演算の結果として作成されるこ
とを特徴とする、請求項26に記載の画像処理装置。
27. An AND operation in which said mixed-color element dither image is a value indicating the validity only when all of the matrix elements corresponding to the created primary color element dither image are valid values. The image processing apparatus according to claim 26, wherein the image processing apparatus is created as a result.
【請求項28】 作成された前記原色要素ディザ画像の
前記有効を示す値のマトリクス要素のうち、前記混色要
素ディザ画像の前記有効を示す値のマトリクス要素に対
応するマトリクス要素の値を、前記無効を示す値に変換
する混色有効マトリクス要素削除手段をさらに備えたこ
とを特徴とする、請求項26または27に記載の画像処
理装置。
28. Among the matrix elements of the value indicating the validity of the created primary color element dither image, a value of a matrix element corresponding to the matrix element of the validity value of the mixed color element dither image is set to the invalid value. 28. The image processing apparatus according to claim 26, further comprising a color mixture effective matrix element deleting unit that converts the value into a value indicating
【請求項29】 混色有効マトリクス要素削除手段は、 前記混色要素ディザ画像を対象として、前記有効を示す
値と前記無効を示す値とを反転させる論理反転演算を行
うことにより、混色反転要素ディザ画像を作成する混色
反転要素ディザ画像作成手段と、 前記原色要素ディザ画像の各原色要素ディザ画像と前記
混色反転要素ディザ画像との対応するマトリクス要素同
士を対象として、双方が前記有効を示す値のときのみ有
効を示す値とする論理積演算の結果として作成された要
素ディザ画像を、新たな各原色要素ディザ画像とする新
原色要素ディザ画像作成手段と、を有することを特徴と
する、請求項28に記載の画像処理装置。
29. A mixed-color inversion element dither image by performing a logical inversion operation of inverting the value indicating validity and the value indicating invalidity on the mixed-color element dither image with respect to the mixed-color element dither image. A mixed color inversion element dither image creating means for creating, and for target matrix elements of each primary color element dither image and the mixed color inversion element dither image of the primary color element dither image, when both are values indicating the validity 29. A new primary color element dither image creating means for using element dither images created as a result of a logical product operation indicating only valid values as new primary color element dither images. An image processing apparatus according to claim 1.
【請求項30】 前記少なくとも1つの要素画像がカラ
ー画像である場合、 前記指定階調値記憶手段は、カラー3原色の各色につい
ての原色階調値を、それぞれ前記指定階調値の1種とし
て記憶し、 前記ディザマスク記憶手段は、 前記原色階調値のうちの少なくとも相互に値が異なるも
のに対応する仮原色ディザマスクを、それぞれ前記ディ
ザマスクの一種として記憶する仮原色ディザマスク記憶
手段と、 前記仮原色ディザマスクの全てに共通して前記有効を示
す値のマトリクス要素のみに前記有効を示す値を割り付
けた混色ディザマスクを記憶する混色ディザマスク記憶
手段と、 前記仮原色ディザマスクのそれぞれについて、各仮原色
ディザマスクの前記有効を示す値のマトリクス要素のう
ち、前記混色ディザマスクの前記有効を示す値のマトリ
クス要素に対応するマトリクス要素の値を、前記無効を
示す値に変換して、各原色ディザマスクとして記憶する
原色ディザマスク記憶手段と、を有し、 前記要素ディザ画像作成手段は、前記混色ディザマスク
および前記各原色ディザマスクを使用した前記論理積演
算を行うことにより、前記混色ディザマスクおよび前記
各原色ディザマスクに対応する混色要素ディザ画像およ
び各原色要素ディザ画像を、それぞれ前記要素ディザ画
像の1種として作成することを特徴とする、請求項22
ないし24のいずれかに記載の画像処理装置。
30. When the at least one elemental image is a color image, the designated gradation value storage means sets primary color gradation values for each of three primary colors as one of the designated gradation values. A temporary primary color dither mask storage means for storing, as one type of the dither masks, temporary primary color dither masks corresponding to at least mutually different values of the primary color tone values; A mixed-color dither mask storing means for storing a mixed-color dither mask in which a value indicating the validity is assigned only to a matrix element of the value indicating the validity in common to all of the temporary primary-color dither masks; Of the matrix elements of the value indicating the validity of each temporary primary color dither mask, the value indicating the validity of the mixed color dither mask Primary color dither mask storage means for converting a value of a matrix element corresponding to a matrix element into a value indicating the invalidity and storing the converted value as each primary color dither mask; and By performing the logical AND operation using the mask and the respective primary color dither masks, the mixed color dither mask and the mixed color element dither image and the respective primary color element dither images corresponding to the respective primary color dither masks are respectively converted to the element dither image. 23. The method as claimed in claim 22, wherein the method is performed as one type.
25. The image processing apparatus according to any one of claims to 24.
【請求項31】 前記仮原色ディザマスクの全てが同一
のディザマトリクスに基づくものである場合、前記仮原
色ディザマスクのうちの前記有効を示す値のマトリクス
要素が最も少ない仮原色ディザマスクを、前記混色ディ
ザマスクとして記憶することを特徴とする、請求項30
に記載の画像処理装置。
31. When all of the temporary primary color dither masks are based on the same dither matrix, the temporary primary color dither mask of the temporary primary color dither mask having the least effective matrix element is determined as the temporary primary color dither mask. 31. A multi-color dither mask for storing.
An image processing apparatus according to claim 1.
【請求項32】 前記混色ディザマスクは、前記カラー
3原色の各原色階調値のうち、条件を満たす前記ディザ
マトリクスのしきい値の数が最も少ない原色階調値を選
択することにより、選択された原色階調値に対応する仮
原色ディザマスクとして得られることを特徴とする、請
求項31に記載の画像処理装置。
32. The mixed-color dither mask is selected by selecting a primary color tone value having the smallest number of threshold values of the dither matrix satisfying a condition from among primary color tone values of the three primary colors. 32. The image processing apparatus according to claim 31, wherein the image processing apparatus is obtained as a provisional primary color dither mask corresponding to the primary color tone value obtained.
【請求項33】 前記各原色階調値がディザマトリクス
の各しきい値以上のときにそのしきい値の条件を満た
し、そのしきい値に対応するディザマスクのマトリクス
要素が有効を示す値となる場合に、前記混色ディザマス
クを得るための原色階調値の選択では、最小値の原色階
調値が選択されることを特徴とする、請求項32に記載
の画像処理装置。
33. When each of the primary color gradation values is equal to or greater than each threshold value of the dither matrix, the threshold value condition is satisfied, and a value indicating that the matrix element of the dither mask corresponding to the threshold value is valid is 33. The image processing apparatus according to claim 32, wherein in the case of selecting the primary color tone value for obtaining the mixed color dither mask, a minimum primary color tone value is selected.
【請求項34】 前記各原色階調値がディザマトリクス
の各しきい値以下のときにそのしきい値の条件を満た
し、そのしきい値に対応するディザマスクのマトリクス
要素が有効を示す値となる場合に、前記混色ディザマス
クを得るための原色階調値の選択では、最大値の原色階
調値が選択されることを特徴とする、請求項32に記載
の画像処理装置。
34. When each of the primary color gradation values is equal to or less than each of the threshold values of the dither matrix, the condition of the threshold value is satisfied, and a value indicating that the matrix element of the dither mask corresponding to the threshold value is valid. 33. The image processing apparatus according to claim 32, wherein, when the primary color tone value for obtaining the mixed color dither mask is selected, a maximum primary color tone value is selected.
【請求項35】 前記混色ディザマスクは、前記仮原色
ディザマスクの対応するマトリクス要素同士を対象とし
て、全てが前記有効を示す値のときのみ有効を示す値と
する論理積演算の結果として作成されることを特徴とす
る、請求項30に記載の画像処理装置。
35. The mixed-color dither mask is created as a result of a logical product operation that targets the corresponding matrix elements of the temporary primary color dither mask and indicates a valid value only when all the values are valid. The image processing apparatus according to claim 30, wherein
【請求項36】 前記各原色ディザマスクは、前記混色
ディザマスクを対象として前記有効を示す値と前記無効
を示す値とを反転させる論理反転演算の結果として作成
される混色反転ディザマスクと、各仮原色ディザマスク
と、の対応するマトリクス要素同士を対象として、双方
が前記有効を示す値のときのみ有効を示す値とする論理
積演算の結果として作成されることを特徴とする、請求
項30ないし35のいずれかに記載の画像処理装置。
36. Each of the primary color dither masks is a mixed color inversion dither mask created as a result of a logical inversion operation for inverting the value indicating validity and the value indicating invalidity with respect to the mixed color dither mask; 31. The temporary primary color dither mask is created as a result of an AND operation that sets the value indicating validity only when both of the matrix elements corresponding to the temporary primary color dither mask indicate the validity value. 36. The image processing device according to any one of claims 35.
【請求項37】 前記カラー3原色は、シアン、マゼン
タおよびイエローの3色であることを特徴とする、請求
項25ないし36のいずれかに記載の画像処理装置。
37. The image processing apparatus according to claim 25, wherein the three primary colors are cyan, magenta, and yellow.
【請求項38】 前記要素ディザ画像は、印刷対象物に
印刷するための印刷画像として作成されることを特徴と
する、請求項22ないし37のいずれかに記載の画像処
理装置。
38. The image processing apparatus according to claim 22, wherein the element dither image is created as a print image for printing on a print target.
【請求項39】 前記要素ディザ画像の前記有効を示す
値のマトリクス要素は、前記印刷対象物に対してインク
ジェットヘッドからインクを吐出すべき画素に対応して
いることを特徴とする、請求項38に記載の画像処理装
置。
39. The method according to claim 38, wherein the matrix element of the value indicating the validity of the element dither image corresponds to a pixel to which ink is to be ejected from an inkjet head to the printing target. An image processing apparatus according to claim 1.
【請求項40】 前記印刷対象物がテープであることを
特徴とする、請求項38または39に記載の画像処理装
置。
40. The image processing apparatus according to claim 38, wherein the print target is a tape.
【請求項41】 前記カラー3原色は、レッド、グリー
ンおよびブルーの3色であることを特徴とする、請求項
25に記載の画像処理装置。
41. The image processing apparatus according to claim 25, wherein the three primary colors are three colors of red, green and blue.
【請求項42】 前記要素ディザ画像が、表示画面に表
示するための表示画像として作成されることを特徴とす
る、請求項22ないし25のいずれかに記載の画像処理
装置。
42. The image processing apparatus according to claim 22, wherein the element dither image is created as a display image to be displayed on a display screen.
JP10312563A 1998-11-02 1998-11-02 Image processing method and device thereof Withdrawn JP2000138831A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP10312563A JP2000138831A (en) 1998-11-02 1998-11-02 Image processing method and device thereof
US09/431,634 US6731407B1 (en) 1998-11-02 1999-11-01 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10312563A JP2000138831A (en) 1998-11-02 1998-11-02 Image processing method and device thereof

Publications (1)

Publication Number Publication Date
JP2000138831A true JP2000138831A (en) 2000-05-16

Family

ID=18030727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10312563A Withdrawn JP2000138831A (en) 1998-11-02 1998-11-02 Image processing method and device thereof

Country Status (1)

Country Link
JP (1) JP2000138831A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100346348C (en) * 2004-01-05 2007-10-31 凌阳科技股份有限公司 Storage unit use and management method and system and fractional printing mode for table-printing machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100346348C (en) * 2004-01-05 2007-10-31 凌阳科技股份有限公司 Storage unit use and management method and system and fractional printing mode for table-printing machine

Similar Documents

Publication Publication Date Title
US6731407B1 (en) Image processing method and device
EP0620534B1 (en) Method for automatic trap selection for correcting for plate misregistration in colour printing
US5668931A (en) Method for automatic trap selection for correcting for plate misregistration in color printing
US6313847B1 (en) Blending graphics objects in a frame buffer
JPH11272252A (en) Process for removing half-tone from digital image
US7949180B2 (en) Non-transitory computer readable medium for image processing searching colored regions for region satisfying searching condition, and image-processing apparatus for performing the image processing
US10877709B2 (en) Image processing apparatus, non-transitory recording medium storing image processing program, and image processing method for generating a color chart image data
US7110147B1 (en) Image processing method and apparatus
JP2000216973A (en) Image forming method and device thereof
US5475496A (en) Image processing apparatus for binarizing multi-value image data
JP3667133B2 (en) Image display apparatus, electronic apparatus equipped with the apparatus, and image display method
JP2000216974A (en) Image forming method and device thereof
EP0817122B1 (en) Filter and raster operations
US6760125B1 (en) Image processing method and device
JP3760644B2 (en) Image processing method and apparatus
JP2000138831A (en) Image processing method and device thereof
JP2000138830A (en) Image processing method and thereof
CN1663791A (en) Apparatus for, and method of, forming parenthesized image, apparatus for, and method of, forming externally framed image, program, and memory medium
JP2000255043A (en) Method and apparatus for printing image
JP3404445B2 (en) Image processing device
JP2000332986A (en) Method and device for image processing
JP7463760B2 (en) Image processing method, printing method, and printing system
US8351082B2 (en) Image processing apparatus, image forming system, and computer usable medium therefor
JP2010016647A (en) Image processing apparatus, method and program
JP2000295455A (en) Method and device for processing image

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051018

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20051130