JP2003116000A - Dither pattern generating method and apparatus, computer program, and computer-readable storage medium - Google Patents

Dither pattern generating method and apparatus, computer program, and computer-readable storage medium

Info

Publication number
JP2003116000A
JP2003116000A JP2001308835A JP2001308835A JP2003116000A JP 2003116000 A JP2003116000 A JP 2003116000A JP 2001308835 A JP2001308835 A JP 2001308835A JP 2001308835 A JP2001308835 A JP 2001308835A JP 2003116000 A JP2003116000 A JP 2003116000A
Authority
JP
Japan
Prior art keywords
threshold value
dither matrix
allocation
dither
bits
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.)
Pending
Application number
JP2001308835A
Other languages
Japanese (ja)
Other versions
JP2003116000A5 (en
Inventor
Makoto Torigoe
真 鳥越
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2001308835A priority Critical patent/JP2003116000A/en
Publication of JP2003116000A publication Critical patent/JP2003116000A/en
Publication of JP2003116000A5 publication Critical patent/JP2003116000A5/ja
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To allow dots of print objects to be easily produced even when a multilevel image with a comparatively light density is received while maintaining gradation reproducibility. SOLUTION: When threshold values for generating a 8×8 dither matrix are 0, 4, 8, etc., positions of the threshold value 28 being the eighth order from the minimum threshold value 0 are exclusive to each other by avoiding rows and columns to which they belong from being overlapped with each other. As a result, the minimum values of the threshold values of the rows and columns are 0, 4, 28, and even when a multilevel image with a comparatively light density is received, dots can be formed on any row or column with high possibility.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はディザパターン作成
方法及び装置、並びにコンピュータプログラム及びコン
ピュータ可読記憶媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dither pattern creating method and apparatus, a computer program, and a computer-readable storage medium.

【0002】[0002]

【従来の技術】ハーフトーン方法は多値画像を面積変調
して2値画像で表現する方法である。その中でディザ法
は入力値と閾値の並んだディザマトリックスを単純に比
較するという処理のため、高速に処理できるという利点
があり、広く用いられている手法でもある。
2. Description of the Related Art The halftone method is a method of area-modulating a multi-valued image and expressing it as a binary image. Among them, the dither method has a merit that it can be processed at high speed because it is a process of simply comparing a dither matrix in which an input value and a threshold value are lined up, and is also a widely used method.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、ディザ
法は単純比較で閾値に達しない入力データを切り捨てて
しまうので、例えば濃度の薄く細いライン(例えば1ド
ットライン)の細線データでは、場合によっては丸々消
えてしまうことがある。これを図1を用いて説明する。
However, since the dither method truncates input data that does not reach the threshold value by simple comparison, for example, thin line data of thin and thin lines (for example, 1 dot line) may be completely rounded. It may disappear. This will be described with reference to FIG.

【0004】図1はいわゆるドット集中型のディザパタ
ーンの1例である。ディザ処理対象のサイズが8×8、
入力値は8ビット(0〜255の256階調)である。
0−255の範囲を取り得る入力値に対して階調数は8
×8=64個しか取れないため1階調あたり入力値とし
て4レベルおきの値をとる。パターン中の各画素の値が
入力値より小さい値の画素のみが印刷される。
FIG. 1 shows an example of a so-called dot concentration type dither pattern. The size of the dithering target is 8x8,
The input value is 8 bits (256 gradations from 0 to 255).
The number of gradations is 8 for input values that can take the range of 0-255.
Since only x8 = 64 can be obtained, an input value per 4 gradations is taken every 4 levels. Only pixels whose pixel values in the pattern are smaller than the input value are printed.

【0005】さて、図示のディザマトリックスを用い
て、レベル“64”の縦の1画素幅の線が図1の左端の
列に重なった場合(図示の斜線部)、この入力されたラ
インの各画素値は、ディザマトリックス左端の列中のい
ずれの閾値よりも小さい。従って、全てが“0”と2値
化され、結果的に印刷対象のドットは消えてしまうこと
になる。
Now, using the dither matrix shown in the drawing, when a vertical line of 1 pixel width at level "64" overlaps the leftmost column in FIG. 1 (the hatched part in the drawing), each of the input lines The pixel value is less than any threshold in the leftmost column of the dither matrix. Therefore, all are binarized as "0", and as a result, the dots to be printed disappear.

【0006】本発明はかかる問題点に鑑みなされたもの
であり、階調再現性を維持しつつ、比較的濃度の薄い多
値画像が入力されたとしても、印刷対象のドットが発生
しやすくできるディザパターン作成方法及び装置、並び
にコンピュータプログラム及びコンピュータ可読記憶媒
体を提供しようとするものである。
The present invention has been made in view of the above problems, and it is possible to easily generate dots to be printed even if a multi-valued image having a relatively low density is input while maintaining gradation reproducibility. An object of the present invention is to provide a dither pattern creating method and apparatus, a computer program, and a computer-readable storage medium.

【0007】[0007]

【課題を解決するための手段】この課題を解決するた
め、例えば本発明のディザパターン作成方法は以下の工
程を備える。すなわち、1画素が複数ビットで表現され
る多値画像データを、より少ないビット数に量子化する
ディザ法におけるディザマトリックス作成方法であっ
て、ディザマトリックスの各マス目に、第1階調目の閾
値から順に割り当てる際、i番目の閾値を割り当てるマ
ス目として、i−1番目以前に割り当てた閾値が属する
行及び列を割り当て禁止領域として設定し、当該割り当
て禁止領域以外のマス目の中から選択し、選択したマス
目にi番目の閾値を割り当てることを特徴とする。
In order to solve this problem, for example, the dither pattern forming method of the present invention comprises the following steps. That is, it is a dither matrix creation method in the dither method in which multi-valued image data in which one pixel is represented by a plurality of bits is quantized into a smaller number of bits, and each grid of the dither matrix has a first gradation. When sequentially allocating from the threshold value, as the grid to which the i-th threshold value is allocated, the row and column to which the threshold value allocated before the i-1th is set as the allocation prohibition area, and selected from the grids other than the allocation prohibition area. The i-th threshold value is assigned to the selected cell.

【0008】[0008]

【発明の実施の形態】以下、添付図面に従って本発明に
係る実施形態を詳細に説明する。
DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

【0009】先ず、実施形態における手順の概要を図2
乃至図7を用いて説明する。ここではディザマトリック
スのサイズとして8×8とし、入力される画像は1画素
が8ビットの256階調(0〜255の値を取り得る)
とする。
First, an outline of the procedure in the embodiment is shown in FIG.
It will be described with reference to FIGS. Here, the size of the dither matrix is 8 × 8, and the input image has 256 gradations in which one pixel has 8 bits (values from 0 to 255 can be taken).
And

【0010】従って、ディザマトリックスは8×8の6
4個の閾値を必要とするわけであるから、閾値は0、
4、8、12…と4レベルおきの値となる。
Therefore, the dither matrix is 8 × 8 = 6.
Since four thresholds are needed, the threshold is 0,
It is a value every 4 levels such as 4, 8, 12 ...

【0011】先ず、図2に示すように、ディザマトリッ
クスの一番左上の画素に第1階調目の“0”というレベ
ル(閾値)を割り当てる。
First, as shown in FIG. 2, a level (threshold) of the first gradation "0" is assigned to the upper left pixel of the dither matrix.

【0012】次に図3を参照して、第2階調目の“4”
は、第1階調目の“0”を含む行と列(図示の斜線で示
す領域)を除外し、残りのマス目(画素位置)の中から
選択し、その位置に割り当てる。
Next, referring to FIG. 3, the second gradation "4"
Excludes rows and columns (areas indicated by diagonal lines in the figure) including "0" of the first gradation, selects from the remaining cells (pixel positions), and assigns to that position.

【0013】さらに図4を参照して、第3階調目の
“8”は、第1階調目の“0”を含む行と列及び第2階
調目の“4” を含む行と列(図4の斜線部)を除外
し、残りのマス目の中から選択し、その位置に割り当て
る。
Further, referring to FIG. 4, "8" of the third gradation is a row and a column containing "0" of the first gradation and a row containing "4" of the second gradation. The column (hatched portion in FIG. 4) is excluded, selected from the remaining squares, and assigned to that position.

【0014】またさらに図5を参照して、第4階調目の
“12”は、第2階調目以前の各画素を含む行と列及び
第3階調目の“8” を含む行と列(図5中の斜線部)
を除外した、残りのマス目の中から選択し、その位置に
割り当てる。
Further, referring to FIG. 5, "12" at the fourth gradation is a row and column including pixels before the second gradation and a row including "8" at the third gradation. And row (hatched area in Figure 5)
Select from the remaining squares that exclude, and assign to that position.

【0015】このように順次第i階調目の閾値を割り当
てる位置を決定する際に、第i−1階調目以前の各画素
を含む行と列を除いた画素の中から選択していくと、図
6に示すように第8階調目の閾値“28”を決定する際
には、もう選択できる場所は1画素しか残っていない状
態になる。
As described above, when the position to which the threshold value of the i-th gradation is assigned is sequentially determined, pixels are selected from the rows and columns excluding the pixels of the i-1th gradation and before. Then, as shown in FIG. 6, when the threshold “28” for the eighth gradation is determined, only one pixel remains in the selectable place.

【0016】これ以降の階調に関しては、以上の法則に
とらわれることなく第64階調目の閾値“255”まで
適宜画素の位置を決定していくことにより、例えば図7
に示すようにディザマトリックスが完成する。例えば、
閾値が未割り当てのマス目の中から乱数で1つを選択し
て割り当てることを最後の閾値“255”まで繰り返
す。
With respect to the gradation after this, the pixel position is appropriately determined up to the threshold value "255" of the 64th gradation without being bound by the above rule, and for example, as shown in FIG.
The dither matrix is completed as shown in. For example,
The process of selecting and assigning one with a random number from the cells to which the threshold is not assigned is repeated until the final threshold "255".

【0017】図7のディザマトリックスについて各行と
各列におけるそれぞれ閾値の最小値を求めると図8のよ
うになる。これら最小値群の中の、最大となる閾値は
“28”となる。従って、図7のディザマトリックスを
用いた場合、入力される2値化対象の多値画像データの
濃度が少なくとも値“29”である限りは、閾値を越え
る画素が少なくとも1つは確保される。換言すれば、少
なくとも1つの印刷されるドットが存在することが保証
され、濃度の薄い線画が消滅しずらい状態とすることが
できる。
The minimum values of the threshold values in each row and each column of the dither matrix of FIG. 7 are obtained as shown in FIG. The maximum threshold value in the minimum value group is “28”. Therefore, when the dither matrix of FIG. 7 is used, as long as the density of the input multivalued image data to be binarized is at least the value “29”, at least one pixel exceeding the threshold value is secured. In other words, it is guaranteed that there is at least one printed dot, and it is possible to make it difficult for a line image having a low density to disappear.

【0018】上記の如く、本発明の思想は、ディザマト
リックスの各マス目に割り当てる閾値のうち、小さい値
(0、4、8、…、28)については、それらの割り当
てるマス目が属する行と列が、互いに排他的なものを採
用する点をその主要な特徴とするものである。
As described above, the idea of the present invention is that, of the threshold values assigned to the cells of the dither matrix, the smaller value (0, 4, 8, ..., 28) is the row to which the assigned cells belong. Its main feature is that the columns adopt mutually exclusive ones.

【0019】従って、図9のように、正方形のディザマ
トリックスにおいて、該ディザマトリックスの一辺の画
素数に一致する階調、すなわちこの場合は画素サイズ8
×8のディザマトリックスであるので第8階調目の“2
8”までは、該ディザマトリックスの対角画素上に並ぶ
ようにすれば、先に説明した例と同様の効果が得られ
る。第9階調目以上の閾値については適宜配置して決定
するのは上記の例と同様である。
Therefore, as shown in FIG. 9, in a square dither matrix, a gray scale corresponding to the number of pixels on one side of the dither matrix, that is, a pixel size of 8 in this case.
Since it is a x8 dither matrix, "2" of the eighth gradation
Up to 8 ″, if the pixels are arranged on the diagonal pixels of the dither matrix, the same effect as the example described above can be obtained. The threshold values for the ninth gradation and higher are appropriately arranged and determined. Is similar to the above example.

【0020】次に、上記ディザマトリックスを作成する
装置の一例を図10に示し、その動作処理手順について
図11のフローチャートに従って説明することとする。
Next, an example of an apparatus for creating the above dither matrix is shown in FIG. 10, and its operation processing procedure will be described with reference to the flowchart of FIG.

【0021】図10は、一般的な情報処理装置(例えば
パーソナルコンピュータ等)のブロック構成図である。
FIG. 10 is a block diagram of a general information processing apparatus (for example, personal computer).

【0022】図中、1は装置全体の制御を司るCPUで
あり、2はBIOSやブートプログラムを記憶している
ROM、3はCPU1のワークエリアとして使用される
RAMである。4はOS、各種アプリケーションの他、
実施形態におけるディザマトリックス作成処理プログラ
ムを格納するハードディスク装置(HDD)である。5
は表示装置であって、内部にVRAM及びその描画制御
を行うコントローラが内臓されているものである。6は
キーボード(KB)や、マウス等のポインティングデバ
イス(PD)であり、7はプリンタ8を接続するための
インターフェースである。プリンタ8のタイプは如何な
るものでも良いが、例えばインク液を吐出するタイプの
ものを採用する。
In the figure, 1 is a CPU which controls the entire apparatus, 2 is a ROM which stores a BIOS and a boot program, and 3 is a RAM which is used as a work area of the CPU 1. 4 is OS, various applications,
It is a hard disk device (HDD) that stores the dither matrix creation processing program in the embodiment. 5
Is a display device having a built-in VRAM and a controller for controlling its drawing. Reference numeral 6 is a keyboard (KB), a pointing device (PD) such as a mouse, and 7 is an interface for connecting the printer 8. The printer 8 may be of any type, but, for example, a type that ejects ink liquid is adopted.

【0023】上記構成において、本装置に電源が投入さ
れると、CPU1はROM2のブートプログラムの従っ
てHDD4内のOSをRAM3にロードし、しかるのに
各種アプリケーションを用いて編集作業を行うことにな
るが、実施形態では、ディザマトリックス作成プログラ
ムについて説明する。
In the above configuration, when the power of the apparatus is turned on, the CPU 1 loads the OS in the HDD 4 according to the boot program of the ROM 2 into the RAM 3, and accordingly edits using various applications. However, in the embodiment, a dither matrix creation program will be described.

【0024】図10はディザマトリックス作成プログラ
ムの動作手順を示すフローチャートである。以下、同図
に従って順に説明する。
FIG. 10 is a flow chart showing the operation procedure of the dither matrix creation program. Hereinafter, description will be made in order with reference to FIG.

【0025】先ず、ステップS1において、作成するデ
ィザマトリックスのサイズを決定する。ディザマトリッ
クスは正方形である必要はないので、図示の如くM×N
で表現できる。従って、このM、Nを先ず決定する。決
定の仕方は、例えばユーザーに問い合わせるメッセージ
を表示し、その回答からM、Nを決定するものとする。
First, in step S1, the size of the dither matrix to be created is determined. Since the dither matrix does not have to be square, M × N as shown
Can be expressed as Therefore, M and N are first determined. As for the determination method, for example, a message inquiring the user is displayed, and M and N are determined from the answer.

【0026】次いで、ステップS2に進み、閾値を割り
当てていくときの増分値ΔTを算出する。8ビット多値
画像の場合には、0〜255の256通りの値を取り得
るわけであるから、それをディザマトリックスのサイズ
(閾値の個数=M×N)で除算することで算出する。な
お、算出して得られたΔTは、整数ではなく、適度な桁
数の小数点まで算出する。
Next, in step S2, an increment value ΔT for assigning a threshold value is calculated. In the case of an 8-bit multi-valued image, 256 possible values from 0 to 255 can be taken, and therefore the value is calculated by dividing it by the size of the dither matrix (the number of threshold values = M × N). It should be noted that the calculated ΔT is not an integer, but is calculated to a decimal point with an appropriate number of digits.

【0027】次いで、ステップS3では、割り当てる閾
値を格納する変数Tを0で初期化し、カウンタとして用
いる変数iも0で初期化する。
Next, in step S3, a variable T for storing the threshold to be assigned is initialized to 0, and a variable i used as a counter is also initialized to 0.

【0028】ステップS4では、先に入力したディザマ
トリックスサイズM×Nの値M、Nの小さい値nを決定
する。先に説明した8×8のサイズの場合にはn=8と
なるが、これの意味するところは、閾値をその最小値か
ら割り当てていくとき8個目で、図6に示す如く1つし
か割り当てる画素位置が存在しなくなるためである。
In step S4, the value n of the dither matrix size M.times.N input earlier and the smaller value n of N are determined. In the case of the size of 8 × 8 described above, n = 8, but this means that when assigning a threshold value from its minimum value, it is the eighth, and as shown in FIG. 6, there is only one. This is because there is no pixel position to be assigned.

【0029】ステップS5では、閾値が既に割り当てら
れているマス目の位置が属する行及び列を割り当て禁止
領域として設定し、残ったマス目の中から1つのマス目
を選択する。初期状態ではM×Nの全てが選択対象とな
る。閾値の割り当てるマス目が決定されると、処理はス
テップS6に進んで、その位置に閾値T(初期状態では
0)の整数部分を割り当てる、すなわち、小数点以下を
切り捨てて閾値を割り当てる。
In step S5, the row and column to which the position of the grid to which the threshold value has already been assigned belong is set as an allocation prohibited area, and one of the remaining grids is selected. In the initial state, all M × N are selected. When the grid to which the threshold is assigned is determined, the process proceeds to step S6, and the integer part of the threshold T (0 in the initial state) is assigned to the position, that is, the fractional part is truncated and the threshold is assigned.

【0030】次のステップS7では、閾値TをΔTだけ
増加させると共に、変数iを“1”だけ増加させる。
In the next step S7, the threshold value T is increased by ΔT and the variable i is increased by "1".

【0031】ステップS8では変数iの値とnとを比較
し、i<nなる関係がある場合には、ステップS5に戻
り、次の閾値の割り当てを行っていく。
In step S8, the value of the variable i is compared with n. If there is a relation of i <n, the process returns to step S5 and the next threshold value is assigned.

【0032】こうして、変数iがnと等しくなると、処
理はステップS9に進み、残りの閾値を未割り当てのマ
ス目位置に順に割り当てていく。例えば、未割り当ての
マス目を乱数的に並び替え、その後に順に閾値をΔTだ
け増加させて割り当てる等の処理を行えば良いであろ
う。この割り当てが完了すると、ステップS10で作成
したディザマトリックスをHDD4に保存する。
Thus, when the variable i becomes equal to n, the process proceeds to step S9, and the remaining thresholds are sequentially assigned to unassigned grid positions. For example, it suffices to rearrange the unallocated cells in a random number, and thereafter increase the threshold value by ΔT and allocate the cells. When this allocation is completed, the dither matrix created in step S10 is stored in the HDD 4.

【0033】なお、上記例ではディザマトリックスを作
成する手順について説明したが、例えばアプリケーショ
ン上で印刷指示したとき、プリンタドライバが起動する
ことになるが、そのプリンタドライバにおいて、本実施
形態で説明した上記処理を開始するようにしても構わな
い。すなわち、図10の処理手順はプリンタドライバの
1つの処理として組み込まれるようにしても構わない。
Although the procedure for creating the dither matrix has been described in the above example, for example, when a print instruction is given on an application, the printer driver is activated. In the printer driver, the above-described procedure described in this embodiment is used. The processing may be started. That is, the processing procedure of FIG. 10 may be incorporated as one processing of the printer driver.

【0034】<第2の実施形態>上記実施形態では、デ
ィザマトリックスのサイズが例えば8×8の場合であっ
て、閾値“0”〜“28”までは、それらが属する行及
び列が互いに排他的なものを選択し、閾値“32”以降
については、単純に乱数で割り当てるとして説明した
が、これによって本発明が限定されるものではない。
<Second Embodiment> In the above embodiment, when the size of the dither matrix is, for example, 8 × 8, and the thresholds “0” to “28”, the rows and columns to which they belong are mutually exclusive. However, the present invention is not limited to this.

【0035】例えば、図6に示す如く、閾値“28”を
割り当てる際のマス目は1つのみなったが、その割り当
てが完了したとき、割り当て禁止領域をリセット擦るよ
うにしてもよい。勿論、既に割り当てた閾値の存在する
マス目については、その値を変更しない。
For example, as shown in FIG. 6, when the threshold value "28" is assigned, only one square is considered, but when the assignment is completed, the assignment prohibited area may be reset and rubbed. Of course, with respect to the squares that already have the assigned threshold value, the value is not changed.

【0036】従って、閾値“32”を割り当てる場合、
それ以前の割り当て禁止領域はリセットされるので、図
12に示す如く、斜線部以外であればどこからでも選択
することが許可される。従って、“32”以降の8個の
閾値も同様にして割り当てることができる。そして、8
個の閾値の割り当てが完了した場合には、再び割り当て
禁止領域をリセットし、同様の処理を繰り返せば良い。
Therefore, when the threshold value "32" is assigned,
Since the allocation prohibition area before that is reset, as shown in FIG. 12, it is permitted to select from anywhere except the shaded area. Therefore, eight threshold values after "32" can be similarly assigned. And 8
When the allocation of the individual threshold values is completed, the allocation prohibited area may be reset again and the same processing may be repeated.

【0037】かかる処理を実現するためには図11の手
順に従って処理すれば良いであろう。
In order to realize such processing, it suffices to perform processing according to the procedure of FIG.

【0038】図示で、図10と異なるのは、ステップS
9を、ステップS11及びS12で置き換えた点であ
る。すなわち、ステップS11では、既に閾値を割り当
てたマス目を残し、割り当て禁止領域をリセットする。
ステップS12では、全ての閾値を割り当てが完了した
か否かを判断し、否の場合にはステップS5以降の処理
を繰り返す。
In the figure, step S is different from FIG.
9 is replaced with steps S11 and S12. In other words, in step S11, the allocation-prohibited area is reset while leaving the cells to which the threshold has already been allocated.
In step S12, it is determined whether or not allocation of all thresholds has been completed, and if not, the processes in step S5 and subsequent steps are repeated.

【0039】以上の結果、本第2の実施形態によれば、
例えば8×8のディザマトリックスにおいて、“28”
のP倍を越える多値データが入力された場合、2値化し
た際の“1”の数がP個になることが保証されることに
なる。
As a result of the above, according to the second embodiment,
For example, in an 8x8 dither matrix, "28"
When multi-valued data that exceeds P times P is input, it is guaranteed that the number of “1” s when binarized will be P.

【0040】また、上記実施形態は、先に説明したよう
にコンピュータプログラムとして実現できるものである
から、本願発明はコンピュータプログラムをもその範疇
とするものである。また、通常、コンピュータプログラ
ムは、それを記憶する記憶媒体を装置にセットし、装置
内のメモリ(ハードディスク等)にコピーもしくはイン
ストールすることになるわけであるから、本発明はかか
るコンピュータ可読記憶媒体をもその範疇とするのは明
らかである。
Since the above-described embodiment can be realized as a computer program as described above, the present invention also includes a computer program in its category. Further, since the computer program usually means setting a storage medium for storing the computer program in the device and copying or installing the program in a memory (hard disk etc.) in the device, the present invention provides such a computer-readable storage medium. It is clear that this is also a category.

【0041】また、実施形態では、ディザマトリックス
として2値化を例にして説明したが、量子化後の値が
0、1、2となる3値化に適合させてもよい。3値化に
適用するのであれば、先ず、量子化後のデータを2にす
るのか、2以外(0、1のいずれか)に2値化するディ
ザマトリックスを1つ用い、そして2以外と判定された
画素を0、1のいずれかに2値化するディザマトリック
スを用意すればよい。4値化、或いはそれ以上の量子化
についても同様である。
In the embodiment, the dither matrix is described as an example of binarization. However, the dither matrix may be adapted to ternarization in which the quantized values are 0, 1, and 2. If it is applied to ternarization, first, the quantized data is set to 2, or one dither matrix that is binarized to a value other than 2 (either 0 or 1) is used, and it is determined that it is not 2. It suffices to prepare a dither matrix that binarizes the generated pixels into either 0 or 1. The same applies to quantization with four levels or more.

【0042】[0042]

【発明の効果】以上説明したように本発明によれば、階
調再現性を維持しつつ、比較的濃度の薄い多値画像が入
力されたとしても、印刷対象のドットが発生しやすくで
きるようになる。
As described above, according to the present invention, it is possible to easily generate dots to be printed even if a multi-valued image having a relatively low density is input while maintaining gradation reproducibility. become.

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

【図1】従来のディザマトリックスの構造と2値化の様
子を示す図である。
FIG. 1 is a diagram showing a structure of a conventional dither matrix and a state of binarization.

【図2】実施形態における第1番目の閾値を設定した状
態のディザマトリックスの例を示す図である。
FIG. 2 is a diagram showing an example of a dither matrix in a state in which a first threshold value is set in the embodiment.

【図3】実施形態における第2番目の閾値を設定する際
の、割り当て禁止領域を有するディザマトリックスの例
を示す図である。
FIG. 3 is a diagram showing an example of a dither matrix having an allocation prohibited area when setting a second threshold value in the embodiment.

【図4】実施形態における第3番目の閾値を設定する際
の、割り当て禁止領域を有するディザマトリックスの例
を示す図である。
FIG. 4 is a diagram showing an example of a dither matrix having an allocation prohibited area when setting a third threshold value in the embodiment.

【図5】実施形態における第4番目の閾値を設定する際
の、割り当て禁止領域を有するディザマトリックスの例
を示す図である。
FIG. 5 is a diagram showing an example of a dither matrix having an allocation prohibited area when setting a fourth threshold value in the embodiment.

【図6】実施形態における第8番目の閾値を設定する際
の、割り当て禁止領域を有するディザマトリックスの例
を示す図である。
FIG. 6 is a diagram showing an example of a dither matrix having an allocation prohibited area when setting an eighth threshold value in the embodiment.

【図7】実施形態におけるディザマトリックスの構造を
示す図である。
FIG. 7 is a diagram showing a structure of a dither matrix in the embodiment.

【図8】図7のディザマトリックスの行及び列の最小値
を抽出して示す図である。
FIG. 8 is a diagram showing extracted minimum values of rows and columns of the dither matrix of FIG.

【図9】実施形態における装置のブロック構成図であ
る。
FIG. 9 is a block configuration diagram of an apparatus according to an embodiment.

【図10】実施形態における動作処理手順を示すフロー
チャートである。
FIG. 10 is a flowchart showing an operation processing procedure in the embodiment.

【図11】第2の実施形態における動作処理手順を示す
フローチャートである。
FIG. 11 is a flowchart showing an operation processing procedure in the second embodiment.

【図12】第2の実施形態における9番目の閾値を設定
する際のディザマトリックスの例を示す図である
FIG. 12 is a diagram showing an example of a dither matrix when setting a ninth threshold value according to the second embodiment.

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 2C262 AB07 BB06 BC09 EA13 5B057 CA02 CA08 CA12 CA16 CB02 CB07 CB12 CB16 CC01 CE13 CH07 CH08 5C077 LL19 MP01 NN09 PP47 PP68 PQ12 PQ23 TT02    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 2C262 AB07 BB06 BC09 EA13                 5B057 CA02 CA08 CA12 CA16 CB02                       CB07 CB12 CB16 CC01 CE13                       CH07 CH08                 5C077 LL19 MP01 NN09 PP47 PP68                       PQ12 PQ23 TT02

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 1画素が複数ビットで表現される多値画
像データを、より少ないビット数に量子化するディザ法
におけるディザマトリックス作成方法であって、 ディザマトリックスの各マス目に、第1階調目の閾値か
ら順に割り当てる際、i番目の閾値を割り当てるマス目
として、i−1番目以前に割り当てた閾値が属する行及
び列を割り当て禁止領域として設定し、当該割り当て禁
止領域以外のマス目の中から選択し、 選択したマス目にi番目の閾値を割り当てることを特徴
とするディザマトリックス作成方法。
1. A dither matrix creation method in a dither method for quantizing multi-valued image data in which one pixel is represented by a plurality of bits into a smaller number of bits, wherein the first floor is formed in each cell of the dither matrix. When sequentially allocating from the threshold value of the key, as the grid to which the i-th threshold value is allocated, the row and the column to which the threshold value allocated before the i-1th is set as the allocation-prohibited area, and the cells other than the allocation-prohibited area are A method for creating a dither matrix, which is characterized by selecting from among and assigning an i-th threshold value to the selected cell.
【請求項2】 更に、注目閾値を割り当てる対象のマス
目が見つからない場合には、前記割り当て禁止領域をリ
セットする工程を備えることを特徴とする請求項第1項
に記載のディザマトリックス作成方法。
2. The dither matrix creating method according to claim 1, further comprising the step of resetting the allocation prohibited area when a grid to which a target threshold is allocated is not found.
【請求項3】 1画素が複数ビットで表現される多値画
像データを、より少ないビット数に量子化するディザ法
におけるディザマトリックス作成装置であって、 ディザマトリックスの各マス目に、第1階調目の閾値か
ら順に割り当てる際、i番目の閾値を割り当てるマス目
として、i−1番目以前に割り当てた閾値が属する行及
び列を割り当て禁止領域として設定し、当該割り当て禁
止領域以外のマス目の中から選択する選択手段と、 選択したマス目にi番目の閾値を割り当てる割り当て手
段とを備えることを特徴とするディザマトリックス作成
装置。
3. A dither matrix creation device in a dither method for quantizing multi-valued image data in which one pixel is represented by a plurality of bits into a smaller number of bits, wherein a first floor is provided in each cell of the dither matrix. When sequentially allocating from the threshold value of the key, as the grid to which the i-th threshold value is allocated, the row and the column to which the threshold value allocated before the i-1th is set as the allocation-prohibited area, and the cells other than the allocation-prohibited area are An apparatus for creating a dither matrix, comprising: selecting means for selecting from among them and assigning means for assigning an i-th threshold value to a selected square.
【請求項4】 1画素が複数ビットで表現される多値画
像データを、より少ないビット数に量子化するディザ法
におけるディザマトリックス作成装置として機能するコ
ンピュータプログラムであって、 ディザマトリックスの各マス目に、第1階調目の閾値か
ら順に割り当てる際、i番目の閾値を割り当てるマス目
として、i−1番目以前に割り当てた閾値が属する行及
び列を割り当て禁止領域として設定し、当該割り当て禁
止領域以外のマス目の中から選択する工程のプログラム
コードと、 選択したマス目にi番目の閾値を割り当てる工程のプロ
グラムコードとを備えることを特徴とするコンピュータ
プログラム。
4. A computer program that functions as a dither matrix creating device in a dither method for quantizing multi-valued image data in which one pixel is represented by a plurality of bits into a smaller number of bits, and each cell of the dither matrix. At the time of sequentially allocating from the threshold value of the first gradation, the row and column to which the threshold value assigned before the i−1th threshold value belongs is set as an allocation prohibition area as a cell to which the i-th threshold value is allocated. A computer program comprising: a program code of a step of selecting from other squares; and a program code of a step of assigning an i-th threshold value to the selected square.
【請求項5】 更に、請求項第4項に記載のコンピュー
タプログラムを格納することを特徴とするコンピュータ
可読記憶媒体。
5. A computer-readable storage medium further storing the computer program according to claim 4.
JP2001308835A 2001-10-04 2001-10-04 Dither pattern generating method and apparatus, computer program, and computer-readable storage medium Pending JP2003116000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001308835A JP2003116000A (en) 2001-10-04 2001-10-04 Dither pattern generating method and apparatus, computer program, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001308835A JP2003116000A (en) 2001-10-04 2001-10-04 Dither pattern generating method and apparatus, computer program, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
JP2003116000A true JP2003116000A (en) 2003-04-18
JP2003116000A5 JP2003116000A5 (en) 2005-06-16

Family

ID=19128079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001308835A Pending JP2003116000A (en) 2001-10-04 2001-10-04 Dither pattern generating method and apparatus, computer program, and computer-readable storage medium

Country Status (1)

Country Link
JP (1) JP2003116000A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100369452C (en) * 2005-01-07 2008-02-13 大日本网目版制造株式会社 Threshold matrix generation method, threshold matrix generation apparatus, and recording medium
US8922827B2 (en) 2010-07-23 2014-12-30 Brother Kogyo Kabushiki Kaisha Image processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100369452C (en) * 2005-01-07 2008-02-13 大日本网目版制造株式会社 Threshold matrix generation method, threshold matrix generation apparatus, and recording medium
US8922827B2 (en) 2010-07-23 2014-12-30 Brother Kogyo Kabushiki Kaisha Image processing apparatus

Similar Documents

Publication Publication Date Title
US7079290B2 (en) Halftoning method and system providing increased number of densities per basic halftone cell for constant input
JPS6053373A (en) Processing method of gradation information
JP2001298617A (en) Threshold matrix and method and device for gradation reproduction using it
KR102307264B1 (en) Image processing apparatus, image processing method, and storage medium
EP0785667A2 (en) Force field halftoning
JP2003116000A (en) Dither pattern generating method and apparatus, computer program, and computer-readable storage medium
CN111901497B (en) Gray image processing method, device and printer
US5425112A (en) Method for optimizing frequency-modulated rasters upon utilization of threshold hills
CN1151468C (en) Semi-color tone display considering characteristic of image and printer
JP2001298616A (en) Threshold matrix and method and device for gradation reproduction using it
EP0828377A2 (en) Efficient gray tile storage
US8885223B1 (en) On-the-fly halftone image generation
JP2005191959A (en) Apparatus, method, and program for image processing
EP2410729A1 (en) Image processing apparatus
JP4222187B2 (en) Image processing apparatus, image processing method, and image processing program
JP2023012186A (en) Image processing device
WO1991010312A2 (en) False density contour suppression using stored random probabilities to form print/no print decisions
JP2002185787A (en) Dither pattern generating method and dither pattern generator
JP3790613B2 (en) How to create a scatter dither
JP2000196888A (en) Image processing method and image generating device
JP3863961B2 (en) Font generator device
JP2001045287A5 (en)
JP4222151B2 (en) Image processing apparatus, image processing method, and image processing program
JP4151520B2 (en) Image processing apparatus, image processing method, and image processing program
AU723183B2 (en) Force field halftoning

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040922

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040922

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061013

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070219