JP2008113114A - Printing device, printing device control program, printing device control method, image processor, image processing program, image processing method, and storage medium stored with the program - Google Patents

Printing device, printing device control program, printing device control method, image processor, image processing program, image processing method, and storage medium stored with the program Download PDF

Info

Publication number
JP2008113114A
JP2008113114A JP2006293636A JP2006293636A JP2008113114A JP 2008113114 A JP2008113114 A JP 2008113114A JP 2006293636 A JP2006293636 A JP 2006293636A JP 2006293636 A JP2006293636 A JP 2006293636A JP 2008113114 A JP2008113114 A JP 2008113114A
Authority
JP
Japan
Prior art keywords
threshold
row
image data
value
sequentially
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
JP2006293636A
Other languages
Japanese (ja)
Inventor
Shinichi Arasaki
真一 荒崎
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 JP2006293636A priority Critical patent/JP2008113114A/en
Publication of JP2008113114A publication Critical patent/JP2008113114A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printing device which is suitable for efficiently using a common dither matrix stored in a memory when converting image data into an N-value, while preventing degradation in picture quality caused by the regularity of dither arrangement. <P>SOLUTION: A printing device 1 comprises an image data acquiring part 10 which acquires image data, an image data storing part 11 which stores the image data, an image processing part 12 for converting into an N-value using a dither method, a dither matrix storing part 13 for storing a dither matrix, a print data generating part 14 for generating print data, and a printing part 15 which executes a printing process based on the print data. A reference dither matrix is sequentially stored in one dimensional manner in a storage region of a high speed memory with continuous addresses. Threshold value data are cyclically and repeatedly read from the continuous addresses while a starting position for reading is displaced at each row of the image for converting image data into the N-value. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、ディザ法を用いた画像処理に好適な印刷装置、印刷装置制御プログラム、印
刷装置制御方法、画像処理装置、画像処理プログラム及び画像処理方法、並びに前記プロ
グラムを記憶した記憶媒体に関する。
The present invention relates to a printing apparatus suitable for image processing using a dither method, a printing apparatus control program, a printing apparatus control method, an image processing apparatus, an image processing program and an image processing method, and a storage medium storing the program.

従来、ディザマトリックスを用いて、画像データのN値化(多値化)を行う技術として
、例えば、特許文献1に記載の画像処理装置及び特許文献2に記載の画像形成装置などが
ある。
特許文献1の画像処理装置は、画像データに対し、ディザマトリックスを階段状に配置
してN値化(多値化)を行う。具体的には、主走査方向または副走査方向に順次ずらしな
がらディザマトリックスを配置する。つまり、画像データのサイズよりも小さい共通の(
同じ内容の)ディザマトリックスを、画像データに対して方眼状に且つ規則的に配置して
しまうと、ドットの形成パターンが規則的となり画質を低下させてしまう。そこで、前述
したように、画像データに対してディザマトリックスを階段状にずらして配置することに
よって規則性をなくし、画質の低下を防いでいる。
特開平12−101837号公報
Conventionally, as a technique for performing N-value (multi-value) of image data using a dither matrix, for example, there are an image processing apparatus described in Patent Document 1 and an image forming apparatus described in Patent Document 2.
The image processing apparatus of Patent Document 1 performs N-value conversion (multi-value conversion) on image data by arranging dither matrices in a staircase pattern. Specifically, the dither matrix is arranged while sequentially shifting in the main scanning direction or the sub-scanning direction. In other words, the common (
If the dither matrix (having the same content) is regularly arranged in a grid pattern with respect to the image data, the dot formation pattern becomes regular and the image quality deteriorates. Therefore, as described above, the dither matrix is shifted in a stepwise manner with respect to the image data, thereby eliminating regularity and preventing deterioration in image quality.
Japanese Patent Laid-Open No. 12-101837

しかしながら、上記特許文献1などの従来技術においては、N値化を行うときに、メモ
リへのディザマトリックスデータの記憶構成、及びディザマトリックスの記憶されたメモ
リから、その閾値データを読み出すときのメモリアクセス方法について、工夫点などは特
に述べられていない。
また、共通のディザマトリックスの閾値の選択開始位置をずらしながらN値化を行う場
合に、メモリからずらし量に対応するアドレス位置の閾値データを順次読み出してくる必
要がある。そのため、画像データの画素数が多くなればなるほど、閾値の読み出し回数が
増加するため、メモリとのアクセス時間が増加して、これが処理全体にとってのボトルネ
ックとなる恐れがある。
However, in the prior art such as Patent Document 1 described above, when N-value conversion is performed, the storage configuration of the dither matrix data in the memory and the memory access when reading the threshold data from the memory storing the dither matrix There are no special points about the method.
Further, when N-value conversion is performed while shifting the selection start position of the common dither matrix threshold value, it is necessary to sequentially read threshold value data at the address position corresponding to the shift amount from the memory. For this reason, as the number of pixels of the image data increases, the number of times of reading out the threshold increases, so that the access time with the memory increases, which may become a bottleneck for the entire processing.

そこで、本発明は、このような従来の技術の有する未解決の課題に着目してなされたも
のであって、画像データをN値化するに際し、メモリに記憶された共通のディザマトリッ
クスを効率的に使用し且つディザ配置の規則性による画質劣化を防ぐのに好適な印刷装置
、印刷装置制御プログラム、印刷装置制御方法、画像処理装置、画像処理プログラム及び
画像処理方法、並びに前記プログラムを記憶した記憶媒体を提供することを目的としてい
る。
Therefore, the present invention has been made paying attention to such an unsolved problem of the prior art, and when converting the image data into N-values, the common dither matrix stored in the memory is efficiently used. , Printing apparatus control program, printing apparatus control method, printing apparatus control method, image processing apparatus, image processing program and image processing method, and storage storing the program The purpose is to provide a medium.

〔形態1〕 上記目的を達成するために、形態1の印刷装置は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、アドレスの連続す
るそれぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に
1次元的に記憶する基準ディザマトリックス記憶手段と、
前記記憶領域に記憶された各行の前記閾値をその読出開始行から順に、前記画像データ
の各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出す閾値読出手段と、
前記閾値読出手段において、前記記憶領域からの前記閾値の読出処理が前記必要な回数
分行われる毎に、前記記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、
前記N値化手段で変換後の画素値から構成される画像データに基づき印刷処理を実行す
る印刷手段と、を備えることを特徴とする。
[Mode 1] In order to achieve the above object, a printing apparatus according to mode 1 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data having the M number of gradations Is converted to image data having a gradation number of N (M> N ≧ 2) values, and a printing process is performed based on the converted image data,
Reference dither matrix storage means for storing the threshold values of the first to DH rows constituting the reference dither matrix in a one-dimensional manner in the order of arrangement of the threshold values in the reference dither matrix in separate storage areas having consecutive addresses. When,
Threshold reading means for cyclically and repeatedly reading out the threshold value of each row stored in the storage area, in order from the reading start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading means, a reading start position setting means for sequentially shifting the position of the reading start line in the storage area in units of one line each time the threshold value is read from the storage area for the required number of times.
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing means;
Printing means for executing print processing based on image data composed of pixel values converted by the N-value conversion means.

このような構成であれば、基準ディザマトリックス記憶手段によって、前記基準ディザ
マトリックスを構成する第1行〜第DH行の閾値を、アドレスの連続するそれぞれ別々の
記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶す
ることが可能である。
そして、閾値読出手段によって、前記記憶領域に記憶された各行の前記閾値をその読出
開始行から順に、前記画像データの各行の前記判定処理に必要な回数分、循環的に且つ繰
り返し読み出すことが可能である。
In such a configuration, the threshold values of the first to DH rows constituting the reference dither matrix are stored in the respective storage areas having consecutive addresses by the reference dither matrix storage means, in the reference dither matrix. It is possible to store one-dimensionally in the order in which the threshold values are arranged.
Then, the threshold value reading means can cyclically and repeatedly read the threshold value of each row stored in the storage area in order from the read start row, the number of times necessary for the determination processing of each row of the image data. It is.

また、読出開始位置設定手段によって、前記閾値読出手段において、前記記憶領域から
の前記閾値の読出処理が前記必要な回数分行われる毎に、前記記憶領域における読出開始
行の位置を1行単位で順次ずらすことが可能である。
更に、画素値取得手段によって、前記画像データにおける取得開始位置の画素値から順
番に前記ラスタ走査を行って各行の画素値を順次取得すると、判定処理手段は、前記閾値
読出手段で順次読み出される前記閾値セットの各閾値と、前記画素値取得手段で取得され
る前記各色の画素値とを用いて、前記各閾値とこれらにそれぞれ対応する画素値との各組
み合わせに対して前記判定処理を順次行うことが可能である。
Further, the reading start position setting means sequentially sets the position of the reading start row in the storage area in units of one line each time the threshold value reading means performs the threshold value reading process from the storage area for the required number of times. It is possible to shift.
Further, when the pixel value acquisition unit sequentially acquires the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data, the determination processing unit sequentially reads the threshold value reading unit. Using each threshold value of the threshold value set and the pixel value of each color acquired by the pixel value acquisition unit, the determination process is sequentially performed for each combination of the threshold value and the corresponding pixel value. It is possible.

また、N値化手段は、前記判定処理手段の判定結果に基づき、前記M階調の画像データ
を前記N階調の画像データに変換することが可能である。
そして、印刷手段は、前記変換後の画像データに基づき印刷処理を実行することが可能
である。
つまり、基準ディザマトリックスをその配列順に、アドレスの連続する記憶領域に1次
元的に記憶し、且つ読出開始行から順に各閾値を、前記アドレス順に循環的に且つ繰り返
し読み出すようにし、更に、画像データの各行に対して前記判定処理に必要な閾値の読み
出しが終了する毎に、前記記憶領域に記憶された前記閾値の読出開始行の位置(ポインタ
)を1行分ずつシフトするようにしたので、記憶領域から連続して各行に必要な閾値を読
み出すことができると共に、基準ディザマトリックス全体をその全列数幅分シフトすると
きに、、そのシフト後の配置を、シフト前の配置に対して1行分、副走査方向とは反対方
向にずらすことができる。
Further, the N-value conversion unit can convert the M-gradation image data into the N-gradation image data based on the determination result of the determination processing unit.
Then, the printing unit can execute a printing process based on the converted image data.
That is, the reference dither matrix is stored one-dimensionally in a storage area where addresses are consecutively arranged in the order of arrangement, and the threshold values are read cyclically and repeatedly in the order of addresses from the read start row. Each time the reading of the threshold necessary for the determination process is completed for each row of the row, the threshold reading start row position (pointer) stored in the storage area is shifted by one row. The threshold value necessary for each row can be read continuously from the storage area, and when the entire reference dither matrix is shifted by the total number of columns, the arrangement after the shift is 1 with respect to the arrangement before the shift. The line can be shifted in the direction opposite to the sub-scanning direction.

これによって、画像データの各行に対して用いられる閾値のパターンが1行単位で順次
ずれたものとなるため、閾値の規則性が原因で発生する画質劣化を低減できるという効果
が得られると共に、K個の記憶領域に記憶するディザマトリックスは全体で基準ディザマ
トリックス1つ分だけで良いので、ディザマトリックスを記憶するメモリ容量を低減する
ことができるという効果も得られる。
As a result, the threshold pattern used for each row of the image data is sequentially shifted in units of one row, so that the image quality degradation caused by the regularity of the threshold can be reduced, and the K Since only one reference dither matrix is required for the total number of dither matrices stored in each storage area, the memory capacity for storing the dither matrix can be reduced.

ここで、上記「ディザマトリックス」は、公知のディザ法を用いたN値化処理(多値化
処理又はハーフトーン処理とも言う)において用いられるもので、所定の閾値(ディザ値
などと言われる)が2次元マトリックス状に配列された構成をしている。そして、同様に
2次元マトリックス状に画素値が配列された構成の画像データの各画素値と、前記ディザ
マトリックスの各閾値とを対応付け、それぞれ対応する位置の画素値と閾値との大小を比
較して、その画素値に対するドットのオン・オフを判定する。ディザマトリックスのサイ
ズは、一般に画像データのマトリックスサイズより小さくなっており、画像データのサイ
ズに合わせて、行方向及び列方向にディザマトリックスをシフトしながら判定処理を実行
する。以下の、印刷装置制御プログラムに関する形態、印刷装置制御方法に関する形態、
画像処理装置に関する形態、画像処理プログラムに関する形態、画像処理方法に関する形
態、前記プログラムを記憶したコンピュータ読み取り可能な記憶媒体に関する形態、発明
を実施するための最良の形態の欄などにおいて同じである。
Here, the “dither matrix” is used in an N-value processing (also referred to as multi-value processing or halftone processing) using a known dither method, and is a predetermined threshold (referred to as a dither value). Are arranged in a two-dimensional matrix. Similarly, each pixel value of the image data having a configuration in which pixel values are arranged in a two-dimensional matrix is associated with each threshold value of the dither matrix, and the pixel values at the corresponding positions are compared in magnitude. Then, the dot on / off state for the pixel value is determined. The size of the dither matrix is generally smaller than the matrix size of the image data, and the determination process is executed while shifting the dither matrix in the row direction and the column direction according to the size of the image data. The following forms related to a printing apparatus control program, forms related to a printing apparatus control method,
The same applies to the form relating to the image processing apparatus, the form relating to the image processing program, the form relating to the image processing method, the form relating to the computer-readable storage medium storing the program, the best mode for carrying out the invention, and the like.

また、上記「循環的に且つ繰り返し読み出す」とは、連続するアドレスに配列順に記憶
された基準ディザマトリックスの閾値の行を、読出開始行のアドレスから順に読み出し、
最後のアドレス領域の閾値を読み出したら、再び先頭のアドレスに戻って、そのアドレス
から順に閾値を読み出すことを繰り返して行うことである。つまり、循環的にとは、公知
のリングバッファ構成のように、例えば、閾値の行のデータが格納されたアドレスを示す
ポインタを1増やしながら順次データを読み出すときに、ポインタがデータの末尾までき
たら先頭のポインタに戻してやる構成である。以下の、印刷装置に関する形態、印刷装置
制御プログラムに関する形態、印刷装置制御方法に関する形態、画像処理装置に関する形
態、画像処理プログラムに関する形態、画像処理方法に関する形態、前記プログラムを記
憶したコンピュータ読み取り可能な記憶媒体に関する形態、発明を実施するための最良の
形態の欄などにおいて同じである。
Further, the above-mentioned “cyclically and repeatedly reading” means reading the threshold dither matrix threshold values stored in the order of arrangement in consecutive addresses in order from the address of the reading start row,
When the threshold value of the last address area is read out, the process returns to the head address again and the threshold values are read out sequentially from that address. In other words, cyclically, as in a known ring buffer configuration, for example, when data is sequentially read while incrementing the pointer indicating the address at which the threshold row data is stored, the pointer reaches the end of the data. In this configuration, the pointer is returned to the head pointer. A form relating to a printing apparatus, a form relating to a printing apparatus control program, a form relating to a printing apparatus control method, a form relating to an image processing apparatus, a form relating to an image processing program, a form relating to an image processing method, and a computer-readable storage storing the program The same applies to the form relating to the medium, the best mode for carrying out the invention, and the like.

また、上記「1次元的に記憶する」とは、例えば、フレームメモリのように、画像デー
タを、その座標位置に対応付けて記憶領域に2次元マトリックス状に記憶するのではなく
、連続するアドレスのメモリ領域に、基準ディザマトリックスの1行目のデータ、2行目
のデータ、・・・、最終行のデータといったように順番にデータを記憶することである。
以下の、印刷装置に関する形態、印刷装置制御プログラムに関する形態、印刷装置制御方
法に関する形態、画像処理装置に関する形態、画像処理プログラムに関する形態、画像処
理方法に関する形態、前記プログラムを記憶したコンピュータ読み取り可能な記憶媒体に
関する形態、発明を実施するための最良の形態の欄などにおいて同じである。
The “store one-dimensionally” means, for example, as in a frame memory, image data is not stored in a storage area in a two-dimensional matrix in association with the coordinate position, but continuous addresses. Is stored in the memory area in order, such as the first row data, the second row data,..., The last row data of the reference dither matrix.
A form relating to a printing apparatus, a form relating to a printing apparatus control program, a form relating to a printing apparatus control method, a form relating to an image processing apparatus, a form relating to an image processing program, a form relating to an image processing method, and a computer-readable storage storing the program The same applies to the form relating to the medium, the best mode for carrying out the invention, and the like.

〔形態2〕 また、上記目的を達成するために、形態2の印刷装置は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行だけを、アドレスの連続する記憶
領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶する基
準ディザマトリックス記憶手段と、
前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出手段と、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新手段と、
前記閾値更新手段において、前記不足している前記閾値の行が前記記憶領域に記憶され
る毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位置設
定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、
前記N値化手段で変換後の画素値から構成される画像データに基づき印刷処理を実行す
る印刷手段と、を備えることを特徴とする。
[Mode 2] In order to achieve the above object, a printing apparatus according to mode 2 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data having the M number of gradations Is converted to image data having a gradation number of N (M> N ≧ 2) values, and a printing process is performed based on the converted image data,
In the threshold value of the first row to the DH row constituting the reference dither matrix, only the threshold row for the one row to be processed of the image data is stored in the storage area where the addresses are continuous. Reference dither matrix storage means for storing one-dimensionally in the order of arrangement of the threshold values in the dither matrix;
Threshold reading means for cyclically reading out the threshold value of each row stored in the storage area, in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, each time the threshold value for the necessary amount is read from the storage area, the next row of the image data in the threshold row stored in the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. Threshold update means for sequentially storing in the storage area of the deleted address;
In the threshold update means, a read start position setting means for sequentially shifting the position of the read start line in the storage area in units of one line every time the insufficient threshold line is stored in the storage area;
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing means;
Printing means for executing print processing based on image data composed of pixel values converted by the N-value conversion means.

このような構成であれば、基準ディザマトリックス記憶手段によって、前記基準ディザ
マトリックスを構成する第1行〜第DH行の閾値における、前記画像データの処理対象の
1行に対して用いる分の前記閾値の行だけを、アドレスの連続する記憶領域に、前記基準
ディザマトリックスにおける前記閾値の配列順に1次元的に記憶することが可能である。
また、閾値読出手段によって、前記記憶領域に記憶された各行の前記閾値を読出開始行
から順に、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に出すこと
が可能であり、閾値更新手段によって、前記画像データの各処理対象行に対して、前記記
憶領域から前記必要な分の閾値が読み出される毎に、前記記憶領域の前記連続するアドレ
スに記憶された閾値の行のうち画像データの次の処理対象行に対して不要な前記閾値の行
を削除すると共に、前記基準ディザマトリックスから前記次の処理対象行に対して不足し
ている前記閾値の行を選択して、当該選択した閾値の行を前記削除したアドレスの記憶領
域に順次記憶することが可能であり、読出開始位置設定手段によって、前記閾値更新手段
において、前記不足している前記閾値の行が前記記憶領域に記憶される毎に、当該記憶領
域における読出開始行の位置を1行単位で順次ずらすことが可能である。
With such a configuration, the threshold used for one row to be processed of the image data in the thresholds of the first to DH rows constituting the reference dither matrix by the reference dither matrix storage means. Can be stored one-dimensionally in a storage area of consecutive addresses in the order of arrangement of the threshold values in the reference dither matrix.
Further, the threshold value reading means can cyclically output the threshold value of each row stored in the storage area in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data. Yes, each time the threshold value is read from the storage area for each processing target row of the image data by the threshold update means, the threshold row stored in the continuous address of the storage area And deleting the threshold row unnecessary for the next processing target row of the image data and selecting the threshold row that is insufficient for the next processing target row from the reference dither matrix. The row of the selected threshold value can be sequentially stored in the storage area of the deleted address, and the threshold update unit can read the shortage before the read start position setting unit. Each time the threshold line is stored in the storage area, it is possible to sequentially shift the position of the read start line in the storage area on a line-by-line basis.

また、画素値取得手段によって、前記画像データにおける取得開始位置の画素値から順
番に前記ラスタ走査を行って各行の画素値を順次取得すると、判定処理手段は、前記閾値
読出手段で順次読み出される前記閾値セットの各閾値と、前記画素値取得手段で取得され
る前記各色の画素値とを用いて、前記各閾値とこれらにそれぞれ対応する画素値との各組
み合わせに対して前記判定処理を順次行うことが可能である。
Further, when the pixel value acquisition unit sequentially acquires the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data, the determination processing unit sequentially reads the threshold value reading unit. Using each threshold value of the threshold value set and the pixel value of each color acquired by the pixel value acquisition unit, the determination process is sequentially performed for each combination of the threshold value and the corresponding pixel value. It is possible.

また、N値化手段は、前記判定処理手段の判定結果に基づき、前記M階調の画像データ
を前記N階調の画像データに変換することが可能である。
そして、印刷手段は、前記変換後の画像データに基づき印刷処理を実行することが可能
である。
つまり、基準ディザマトリックスのうち、画像データの処理対象行の前記判定処理に用
いる分の閾値だけをアドレスの連続する記憶領域に記憶すれば良いので、ディザマトリッ
クスを記憶するメモリ容量をより低減することができるという効果が得られる。
Further, the N-value conversion unit can convert the M-gradation image data into the N-gradation image data based on the determination result of the determination processing unit.
Then, the printing unit can execute a printing process based on the converted image data.
In other words, only the threshold value for the determination processing of the processing target row of image data in the reference dither matrix has only to be stored in the storage area where the addresses are continuous, thereby further reducing the memory capacity for storing the dither matrix. The effect of being able to be obtained.

また、画像データの各処理対象行に対する前記判定処理に必要な閾値の読み出しを終了
する毎に、記憶領域に記憶された閾値行データから、次の処理対象行に対して不要な閾値
行データを削除し、不足している閾値行データだけを新たに取得するようにしたので、例
えば、基準ディザマトリックスを記憶しているメモリと、前記判定処理に用いるワークメ
モリとの間などのメモリ間のアクセス時間を大幅に削減することができるという効果が得
られる。
In addition, every time reading of the threshold necessary for the determination processing for each processing target row of image data is completed, unnecessary threshold row data for the next processing target row is extracted from the threshold row data stored in the storage area. Since it is deleted and only the missing threshold row data is newly acquired, for example, access between memories such as between the memory storing the reference dither matrix and the work memory used for the determination processing The effect that time can be reduced significantly is acquired.

〔形態3〕 また、上記目的を達成するために、形態3の印刷装置は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループを、アドレスの連続する
それぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1
次元的に記憶する基準ディザマトリックス記憶手段と、
前記副走査方向の走査に対して、前記第1閾値行グループから第K閾値行グループに向
けて順に各閾値行グループの記憶された記憶領域を循環的に且つ繰り返し選択すると共に
、当該選択した各記憶領域に記憶された各グループの各行の閾値をその読出開始行から順
に、前記画像データの各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出
す閾値読出手段と、
前記閾値読出手段において、前記各記憶領域からの前記閾値の読出処理が前記必要な回
数分行われる毎に、前記各記憶領域における読出開始行の位置をK−1行単位で順次ずら
す読出開始位置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、
前記N値化手段で変換後の画素値から構成される画像データに基づき印刷処理を実行す
る印刷手段と、を備えることを特徴とする。
[Mode 3] In order to achieve the above object, a printing apparatus according to mode 3 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the number of gradations of the M value is converted into image data having the number of gradations of N (M> N ≧ 2), and the converted image A printing apparatus that performs a printing process based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of xK), each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K is consecutive in address. 1 in the order of arrangement of the threshold values in the reference dither matrix
Reference dither matrix storage means for storing dimensionally;
For the scanning in the sub-scanning direction, the storage areas stored in the respective threshold row groups are selected cyclically and repeatedly in order from the first threshold row group to the Kth threshold row group. Threshold reading means for reading the threshold value of each row of each group stored in the storage area in order from the read start row, repeatedly and repeatedly for the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading means, every time the threshold value is read out from each storage area for the required number of times, a reading start position setting is performed in which the position of the reading start line in each storage area is sequentially shifted by K-1 lines. Means,
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing means;
Printing means for executing print processing based on image data composed of pixel values converted by the N-value conversion means.

このような構成であれば、基準ディザマトリックス記憶手段によって、前記基準ディザ
マトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2,・・・,K−1
,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−1)×K)の法則
に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グループのK個の閾値行
グループに分類された、当該各閾値行グループを、アドレスの連続するそれぞれ別々の記
憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶する
ことが可能である。
With such a configuration, the threshold values of the first to DH rows constituting the reference dither matrix are set to (i (i = 1, 2,..., K−1) by the reference dither matrix storage means.
, K) + j (j = 0, 1,..., (DH / K) −2, (DH / K) −1) × K), the first corresponding to i = 1 to K, respectively. The threshold row groups classified into K threshold row groups of the Kth threshold row group are one-dimensionally arranged in separate storage areas having consecutive addresses in the order of arrangement of the threshold values in the reference dither matrix. It is possible to memorize.

また、閾値読出手段によって、前記副走査方向の走査に対して、前記第1閾値行グルー
プから第K閾値行グループに向けて順に各閾値行グループの記憶された記憶領域を循環的
に且つ繰り返し選択すると共に、当該選択した各記憶領域に記憶された各グループの各行
の閾値をその読出開始行から順に、前記画像データの各行の前記判定処理に必要な回数分
、循環的に且つ繰り返し読み出すことが可能であり、読出開始位置設定手段によって、前
記閾値読出手段において、前記各記憶領域からの前記閾値の読出処理が前記必要な回数分
行われる毎に、前記各記憶領域における読出開始行の位置をK−1行単位で順次ずらすこ
とが可能である。
In addition, the threshold reading means cyclically and repeatedly selects the storage areas stored in the respective threshold row groups in order from the first threshold row group to the Kth threshold row group for scanning in the sub-scanning direction. In addition, the threshold value of each row of each group stored in each selected storage area can be read cyclically and repeatedly for the number of times necessary for the determination processing of each row of the image data in order from the read start row. The reading start position setting means sets the position of the read start row in each storage area to K each time the threshold value reading means performs the threshold value reading process from each storage area for the required number of times. It is possible to sequentially shift in units of −1 line.

また、画素値取得手段によって、前記画像データにおける取得開始位置の画素値から順
番に前記ラスタ走査を行って各行の画素値を順次取得すると、判定処理手段は、前記閾値
読出手段で順次読み出される前記閾値セットの各閾値と、前記画素値取得手段で取得され
る前記各色の画素値とを用いて、前記各閾値とこれらにそれぞれ対応する画素値との各組
み合わせに対して前記判定処理を順次行うことが可能である。
また、N値化手段は、前記判定処理手段の判定結果に基づき、前記M階調の画像データ
を前記N階調の画像データに変換することが可能である。
そして、印刷手段は、前記変換後の画像データに基づき印刷処理を実行することが可能
である。
Further, when the pixel value acquisition unit sequentially acquires the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data, the determination processing unit sequentially reads the threshold value reading unit. Using each threshold value of the threshold value set and the pixel value of each color acquired by the pixel value acquisition unit, the determination process is sequentially performed for each combination of the threshold value and the corresponding pixel value. It is possible.
Further, the N-value conversion unit can convert the M-gradation image data into the N-gradation image data based on the determination result of the determination processing unit.
Then, the printing unit can execute a printing process based on the converted image data.

つまり、基準ディザマトリックスを、(i(i=1,2,・・・,K−1,K)+j(
j=0,1,・・・,(DH/K)−2,(DH/K)−1)×K)の法則に従って、K
個の閾値行グループに分類した、各閾値行グループを、その配列順に、アドレスの連続す
るそれぞれ別々の記憶領域に1次元的に記憶し、且つ第1〜第Kの閾値行グループの記憶
された記憶領域から順に、各グループの読出開始行から順に各閾値を、前記アドレス順に
循環的に且つ繰り返し読み出すようにした。更に、第1〜第K閾値行グループに対応する
画像データの各行に対して前記判定処理に必要な閾値の読み出しが終了する毎に、前記各
記憶領域に記憶された前記閾値の読出開始行の位置(ポインタ)をK行分ずつシフトする
ようにしたので、各記憶領域から連続して各行に必要な閾値を読み出すことができると共
に、基準ディザマトリックス全体をその全列数幅分シフトするときに、、そのシフト後の
配置を、シフト前の配置に対してK行分、副走査方向とは反対方向にずらすことができる
That is, the reference dither matrix is expressed as (i (i = 1, 2,..., K−1, K) + j (
j = 0, 1,... (DH / K) -2, (DH / K) -1) × K)
Each threshold row group classified into a plurality of threshold row groups is stored in a one-dimensional manner in separate storage areas with consecutive addresses in the order of arrangement, and the first to Kth threshold row groups are stored. In order from the storage area, the threshold values are read cyclically and repeatedly in the order of the addresses in order from the read start row of each group. Further, every time reading of the threshold necessary for the determination process is completed for each row of image data corresponding to the first to Kth threshold row groups, the reading start row of the threshold stored in the storage area is stored. Since the position (pointer) is shifted by K rows, the necessary threshold value can be read continuously from each storage area, and the entire reference dither matrix is shifted by the total number of columns. The arrangement after the shift can be shifted in the direction opposite to the sub-scanning direction by K rows with respect to the arrangement before the shift.

これによって、画像データの各行に対して用いられる閾値のパターンがK行単位で順次
ずれたものとなるため、閾値の規則性が原因で発生する画質劣化を低減できるという効果
が得られると共に、K個の記憶領域に記憶するディザマトリックスは全体で基準ディザマ
トリックス1つ分だけで良いので、ディザマトリックスを記憶するメモリ容量を低減する
ことができるという効果も得られる。
As a result, the threshold pattern used for each row of the image data is sequentially shifted in units of K rows, so that the image quality degradation caused by the regularity of the threshold can be reduced, and the K Since only one reference dither matrix is required for the total number of dither matrices stored in each storage area, the memory capacity for storing the dither matrix can be reduced.

ここで、上記「(i(i=1,2,・・・,K−1,K)+j(j=0,1,・・・,
(DH/K)−2,(DH/K)−1)×K)の法則」に従うと、基準ディザマトリック
スは、ずらし量Kに対して、i=1〜Kにそれぞれ対応する、第1閾値行グループ(第1
行,第(1+K)行,第(1+2)K行,・・・,第(1+(DH/K)−2)K行,第
(1+(DH/K)−1)K行)〜第K閾値行グループ(第K行,第(K+K)行,第(
K+2K)行,・・・,第(K+(DH/K)−2)K行,第(K+(DH/K)−1)
K行)の、K個の閾値行グループに分類される。
Here, “(i (i = 1, 2,..., K−1, K) + j (j = 0, 1,...,
In accordance with the “(DH / K) -2, (DH / K) -1) × K)”, the reference dither matrix has a first threshold value corresponding to i = 1 to K with respect to the shift amount K, respectively. Row group (first
Line, (1 + K) line, (1 + 2) K line,..., (1+ (DH / K) -2) K line, (1+ (DH / K) -1) K line) to Kth line Threshold row group (row K, row (K + K), row (
K + 2K),..., (K + (DH / K) -2) Kth, (K + (DH / K) -1)
K threshold row groups.

具体的に、例えば、8行×8列の基準ディザマトリックスに対して、ずらし量K=2の
場合は、前記法則により、i=1に対して(1+0×2=1,1+1×2=3,1+2×
2=5)が、i=2に対して(2+0×2=2,2+1×2=4,2+2×2=6)がそ
れぞれ求まる。従って、K=2のときは、基準ディザマトリックスは、当該基準ディザマ
トリックスの、第1行目、第3行目及び第5行目の組み合わせからなる第1閾値行グルー
プ、及び第2行目、第4行目及び第6行目の組み合わせからなる第2閾値行グループの2
つのグループに分類されることになる。そして、これら2つの閾値行グループが2つの記
憶領域にそれぞれ別々に記憶される。
Specifically, for example, when the shift amount K = 2 with respect to the reference dither matrix of 8 rows × 8 columns, (1 + 0 × 2 = 1, 1 + 1 × 2 = 3) with respect to i = 1 according to the above-mentioned law. , 1 + 2 ×
2 = 5), (2 + 0 × 2 = 2, 2 + 1 × 2 = 4, 2 + 2 × 2 = 6) are obtained for i = 2. Therefore, when K = 2, the reference dither matrix is the first threshold row group consisting of a combination of the first row, the third row, and the fifth row of the reference dither matrix, and the second row. 2 of the second threshold row group consisting of a combination of the fourth row and the sixth row
Will fall into one group. These two threshold row groups are stored separately in the two storage areas.

同様な条件で、ずらし量K=4とした場合は、前記法則から、i=1に対して(1,5
)、i=2に対して(2,6)、i=3に対して(3,7)、i=4に対して(4,8)
がそれぞれ求まる。つまり、K=4のときは、基準ディザマトリックスは、当該基準ディ
ザマトリックスの、第1行目及び第5行目の組み合わせからなる第1閾値行グループ、第
2行目及び第6行目の組み合わせからなる第2閾値行グループ、第3行目及び第7行目の
組み合わせからなる第3閾値行グループ、及び第4行目及び第8行目の組み合わせからな
る第4閾値行グループの4つのグループに分類されることになる。そして、これら4つの
閾値行グループが、4つの記憶領域にそれぞれ別々に記憶される。本形態に関連する、以
下の、印刷装置に関する形態、印刷装置制御プログラムに関する形態、印刷装置制御方法
に関する形態、画像処理装置に関する形態、画像処理プログラムに関する形態、画像処理
方法に関する形態、前記プログラムを記憶したコンピュータ読み取り可能な記憶媒体に関
する形態、発明を実施するための最良の形態の欄などにおいて同じである。
When the shift amount K = 4 under the same conditions, from the above law, for i = 1, (1, 5
), (= 2,6) for i = 2, (3,7) for i = 3, (4,8) for i = 4
Is obtained. That is, when K = 4, the reference dither matrix is a combination of the first threshold row group, the second row, and the sixth row that are combinations of the first row and the fifth row of the reference dither matrix. 4 groups of the second threshold row group consisting of the third threshold row group consisting of the combination of the third row and the seventh row, and the fourth threshold row group consisting of the combination of the fourth row and the eighth row. It will be classified into. These four threshold row groups are stored separately in the four storage areas. A form relating to the present embodiment, a form relating to a printing apparatus, a form relating to a printing apparatus control program, a form relating to a printing apparatus control method, a form relating to an image processing apparatus, a form relating to an image processing program, a form relating to an image processing method, and storing the program The same applies to the computer-readable storage medium, the best mode for carrying out the invention, and the like.

〔形態4〕 一方、上記目的を達成するために、形態4の印刷装置は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行を、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶する基準ディザマトリックス記憶手段と、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出手段と、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新手段と、
前記閾値更新手段において、前記不足している前記閾値の行が前記各記憶領域に記憶さ
れる毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、
前記N値化手段で変換後の画素値から構成される画像データに基づき印刷処理を実行す
る印刷手段と、を備えることを特徴とする。
[Mode 4] On the other hand, in order to achieve the above object, a printing apparatus according to mode 4 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the number of gradations of the M value is converted into image data having the number of gradations of N (M> N ≧ 2), and the converted image A printing apparatus that performs a printing process based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) The image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, according to the rule of 1) × K) Reference dither matrix storage means for storing one-dimensionally the row of the threshold used for one processing target row in separate storage areas having consecutive addresses;
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Means,
Each time the threshold value is read out from each storage area for scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete the threshold rows unnecessary for the processing target row and select the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, Threshold update means for sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting unit that sequentially shifts the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area; ,
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing means;
Printing means for executing print processing based on image data composed of pixel values converted by the N-value conversion means.

このような構成であれば、基準ディザマトリックス記憶手段によって、前記基準ディザ
マトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2,・・・,K−1
,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−1)×K)の法則
に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グループのK個の閾値行
グループに分類された、当該各閾値行グループにおける、それぞれ前記画像データの処理
対象の1行に対して用いる分の前記閾値の行を、アドレスの連続するそれぞれ別々の記憶
領域に1次元的に記憶することが可能である。
With such a configuration, the threshold values of the first to DH rows constituting the reference dither matrix are set to (i (i = 1, 2,..., K−1) by the reference dither matrix storage means.
, K) + j (j = 0, 1,..., (DH / K) −2, (DH / K) −1) × K), the first corresponding to i = 1 to K, respectively. -The threshold rows for the one threshold value row group classified into K threshold row groups of the Kth threshold row group are used for one row to be processed for the image data. It is possible to store one-dimensionally in separate storage areas.

また、閾値読出手段によって、前記副走査方向の走査に対して、前記各記憶領域を、前
記第1閾値行グループの閾値の行が記憶されているものから前記第K閾値行グループの閾
値の行が記憶されているものへと順に、循環的に且つ繰り返し選択すると共に、当該選択
した記憶領域に記憶された各行の前記閾値を、前記画像データの各処理対象行の前記判定
処理に必要な分、循環的に読み出すことが可能であり、閾値更新手段によって、前記副走
査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な分行われる
毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像データの新
たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第K閾値行グ
ループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞれ選択して
、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレスの記憶領域
に順次記憶することが可能であり、読出開始位置設定手段によって、前記閾値更新手段に
おいて、前記不足している前記閾値の行が前記各記憶領域に記憶される毎に、当該各記憶
領域における読出開始行の位置を1行単位で順次ずらすことが可能である。
In addition, the threshold reading means scans each of the storage areas with respect to the scanning in the sub-scanning direction from the threshold value row of the first threshold row group to the threshold row of the Kth threshold row group. Are stored in the selected storage area, and the threshold value of each row stored in the selected storage area is determined by the amount necessary for the determination processing of each processing target row of the image data. The threshold value updating means stores the threshold value reading process from the storage area for the scanning in the sub-scanning direction every time the necessary amount is read. Among the threshold rows, the unnecessary threshold row is deleted from the new processing target row of each of the image data, and the new processing target is deleted from the first to Kth threshold row groups. Each of the threshold rows that are deficient with respect to each of the storage areas can be selected, and the selected threshold rows can be sequentially stored in the storage area of the deleted address in each of the storage areas. The setting means may cause the threshold updating means to sequentially shift the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area. Is possible.

更に、画素値取得手段によって、前記画像データにおける取得開始位置の画素値から順
番に前記ラスタ走査を行って各行の画素値を順次取得すると、判定処理手段は、前記閾値
読出手段で順次読み出される前記閾値セットの各閾値と、前記画素値取得手段で取得され
る前記各色の画素値とを用いて、前記各閾値とこれらにそれぞれ対応する画素値との各組
み合わせに対して前記判定処理を順次行うことが可能である。
また、N値化手段は、前記判定処理手段の判定結果に基づき、前記M階調の画像データ
を前記N階調の画像データに変換することが可能である。
そして、印刷手段は、前記変換後の画像データに基づき印刷処理を実行することが可能
である。
Further, when the pixel value acquisition unit sequentially acquires the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data, the determination processing unit sequentially reads the threshold value reading unit. Using each threshold value of the threshold value set and the pixel value of each color acquired by the pixel value acquisition unit, the determination process is sequentially performed for each combination of the threshold value and the corresponding pixel value. It is possible.
Further, the N-value conversion unit can convert the M-gradation image data into the N-gradation image data based on the determination result of the determination processing unit.
Then, the printing unit can execute a printing process based on the converted image data.

つまり、基準ディザマトリックスを、(i(i=1,2,・・・,K−1,K)+j(
j=0,1,・・・,(DH/K)−2,(DH/K)−1)×K)の法則に従って、K
個の閾値行グループに分類した、各閾値行グループのうち、画像データにおける各グルー
プの処理対象行の前記判定処理に用いる分の閾値だけを、アドレスの連続するグループ毎
にそれぞれ別々の記憶領域に記憶すれば良いので、基準ディザマトリックス全てを記憶す
る必要が無く、処理に必要なメモリ容量を低減することができるという効果が得られる。
つまり、閾値の記憶に必要なワークメモリの容量を低減できるので、例えば、CPU内の
キャッシュメモリなどの比較的低容量なメモリを有効に利用することができる。
That is, the reference dither matrix is expressed as (i (i = 1, 2,..., K−1, K) + j (
j = 0, 1,... (DH / K) -2, (DH / K) -1) × K)
Of the threshold row groups classified into the threshold row groups, only the thresholds used for the determination processing of the processing target row of each group in the image data are stored in separate storage areas for each group of consecutive addresses. Since all the reference dither matrix need not be stored, it is possible to reduce the memory capacity required for processing.
That is, since the capacity of the work memory necessary for storing the threshold value can be reduced, for example, a relatively low-capacity memory such as a cache memory in the CPU can be effectively used.

また、第1〜第K閾値行グループの閾値が記憶されたK個の記憶領域に対して、画像デ
ータの各処理対象行に対する前記判定処理に必要な閾値の読み出しを終了する毎に、各記
憶領域に記憶された閾値行データから、次の処理対象行に対して不要な閾値行データを削
除し、不足している閾値行データだけを各閾値行グループから新たに取得するようにした
ので、前記判定処理に用いるワークメモリとの間などのメモリ間のアクセス時間を大幅に
削減することができるという効果が得られる。
Each time the reading of the thresholds necessary for the determination processing for each processing target row of the image data is completed for the K storage areas in which the thresholds of the first to Kth threshold row groups are stored, Since the threshold line data unnecessary for the next processing target line is deleted from the threshold line data stored in the area and only the missing threshold line data is newly acquired from each threshold line group, There is an effect that the access time between memories such as the work memory used for the determination process can be greatly reduced.

〔形態5〕 更に、形態5の印刷装置は、形態3又は4の印刷装置において、
前記基準ディザマトリックス記憶手段は、前記第1〜第K閾値行グループの各閾値行グ
ループの先頭行から順に、行毎に、各行の先頭の閾値から各行の最後尾の閾値まで順に各
閾値行グループの閾値を1つずつ、第1閾値行グループのものから第K閾値行グループの
ものに向けて順に並べながらアドレスの連続する1つの記憶領域に記憶し、
前記閾値読出手段は、前記副走査方向の走査に対して、前記各記憶領域に並べて記憶さ
れた前記各閾値行グループの閾値の読出開始位置を、1つ前の読出開始位置に対して前記
並び順に1つずつずらすと共に、前記主査方向の走査に対して、前記記憶領域に記憶され
た前記閾値を、前記読出開始位置からK個ずつスキップしながら、前記画像データの各行
の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出し、
前記読出開始位置設定手段は、前記閾値読出手段において、前記記憶領域に記憶された
前記第1〜第K閾値行グループの前記閾値に対して、前記必要な回数分の読み出しを行う
毎に、前記各記憶領域における前記読出開始位置をK−1行単位で順次ずらすことを特徴
とする。
[Mode 5] Furthermore, the printing apparatus of mode 5 is the printing apparatus of mode 3 or 4,
The reference dither matrix storage means sequentially stores each threshold row group in order from the first row of each threshold row group of the first to Kth threshold row groups, from the first threshold of each row to the last threshold of each row. Are stored in one storage area where addresses are continuous while sequentially arranging the thresholds of the first threshold row group toward the Kth threshold row group,
The threshold reading means sets the threshold reading start positions of the threshold row groups stored side by side in the storage areas for the scanning in the sub-scanning direction relative to the previous reading start position. Necessary for the determination process for each row of the image data while sequentially shifting the threshold values stored in the storage area one by one from the read start position while shifting by one in order. Read out cyclically and repeatedly for a certain number of times,
The reading start position setting unit is configured to read the necessary number of times for the threshold value of the first to Kth threshold row groups stored in the storage area in the threshold value reading unit. The read start position in each storage area is sequentially shifted in units of K-1 rows.

このような構成であれば、例えば、まず、8行×8列の基準ディザマトリックスに対し
て、ずらし量K=2として、基準ディザマトリックスは、第1閾値行グループ(第1、第
3、第5行から構成)及び第2閾値行グループ(第2、第4、第6行から構成)に分類す
る。そして、第1閾値行グループの第1行の閾値をa111〜a118とし、第3行の閾値をa
131〜a138とし、第5行の閾値をa151〜a158とし、同様に、第2閾値行グループの第2
行の閾値をa221〜a228とし、第3行の閾値をa241〜a248とし、第5行の閾値をa261
〜a268とする。このような場合に、これら閾値の記憶構成は、アドレスの連続する1つ
の記憶領域に対して、そのアドレス順に、「a111,a221,a112,a222,・・・,a13
1,a241,a132,a242,・・・,a151,a261,a152,a262,・・・,a157,a267,
a158,a268」となる。
With such a configuration, for example, first, with respect to the reference dither matrix of 8 rows × 8 columns, the shift amount K = 2, and the reference dither matrix includes the first threshold row group (first, third, and second). 5 rows) and a second threshold row group (2nd, 4th, 6th rows). Then, the first row threshold of the first threshold row group is set to a111 to a118, and the third row threshold is set to a.
131 to a138, the threshold value of the fifth row is set to a151 to a158, and similarly, the second threshold row group second
The row threshold is a221 to a228, the third row threshold is a241 to a248, and the fifth row threshold is a261.
˜a268. In such a case, the storage configuration of these threshold values is as follows: “a111, a221, a112, a222,.
1, a241, a132, a242, ..., a151, a261, a152, a262, ..., a157, a267,
a158, a268 ".

つまり、第1閾値行グループの第1行目の閾値と第2閾値行グループの第2行目の閾値
とをその先頭の閾値から最後尾の閾値に向けて、それぞれの閾値を各1つずつ互い違いに
順に並べて記憶していく構成となる。また、第1閾値行グループの第3行目及び第2閾値
行グループの第4行目、並びに第1閾値行グループの第5行目及び第2閾値行グループの
第6行目も同様の記憶構成となる。
That is, the threshold value of the first row of the first threshold row group and the threshold value of the second row of the second threshold row group are directed from the first threshold value to the last threshold value, and each threshold value is set one by one. It becomes the structure which arranges and stores in order one after another. Similarly, the third row of the first threshold row group and the fourth row of the second threshold row group, and the fifth row of the first threshold row group and the sixth row of the second threshold row group are also stored. It becomes composition.

ずらし量をKに拡大すると、第1〜第K閾値行グループの各グループにおける行番号の
若い順に、且つ各グループの各閾値行毎に、それぞれ対応するK個の閾値行の各先頭から
最後尾に向けて順番に、閾値を各1つずつ選択し、各1つずつ選択したK個の閾値を第1
〜第Kの順に並べて記憶していく。
更に、このようにして記憶された基準ディザマトリックスを、副走査方向の走査に対し
ては、第1閾値行グループ〜第K閾値行グループに向けて順に、主走査方向の走査に対し
ては、各グループに対する閾値の読出開始位置から順に、記憶領域に記憶された閾値をK
個飛ばしで読み出していくようにした。そして、第1〜第K閾値行グループに対して、前
記判定処理に必要な回数分の閾値の読み出しが行われたときは、各閾値行グループに対す
る読出開始位置をK個分ずらすようにした。
When the shift amount is increased to K, the first to the last of the K threshold rows corresponding to the threshold rows of each of the first to Kth threshold row groups in ascending order of the row numbers and for each threshold row of each group. In turn, select one threshold value each in order, and select the K threshold values selected one by one.
-Stored in order of the Kth.
Further, the reference dither matrix thus stored is sequentially scanned from the first threshold row group to the Kth threshold row group for scanning in the sub-scanning direction, and for scanning in the main scanning direction. The threshold values stored in the storage area are set in order from the threshold reading start position for each group.
Read by skipping. When the threshold values are read out for the first to Kth threshold row groups for the number of times necessary for the determination process, the reading start position for each threshold row group is shifted by K.

これにより、記憶領域に記憶するディザマトリックスは基準ディザマトリックス1つ分
だけで良いので、ディザマトリックスを記憶するメモリ容量を低減することができるとい
う効果が得られる。また、ずらし量を2以上にしても、各閾値行グループを1つの記憶領
域に記憶することができるので、K個の閾値行グループをK個のメモリブロックに分けて
記憶する構成と比較して、必要なメモリブロック数を減らせるため、コストを低減するこ
とができるという効果が得られる。
As a result, only one reference dither matrix needs to be stored in the storage area, so that the memory capacity for storing the dither matrix can be reduced. In addition, even if the shift amount is 2 or more, each threshold row group can be stored in one storage area. Compared to a configuration in which K threshold row groups are divided and stored in K memory blocks. Since the number of necessary memory blocks can be reduced, an effect that the cost can be reduced is obtained.

〔形態6〕 更に、形態6の印刷装置は、形態3乃至5のいずれか1の印刷装置におい
て、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類する閾値行分類手段を備えることを特徴とする。
[Mode 6] Furthermore, the printing apparatus of mode 6 is the printing apparatus of any one of modes 3 to 5,
The threshold values of the first to DH rows constituting the reference dither matrix are set as (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) It is characterized by comprising threshold value row classification means for classifying into K threshold value row groups of the first to Kth threshold value row groups corresponding to i = 1 to K, respectively, in accordance with the rule of 1) × K).

このような構成であれば、閾値行分類手段によって、前記基準ディザマトリックスを構
成する第1行〜第DH行の閾値を、(i(i=1,2,・・・,K−1,K)+j(j=
0,1,・・・,(DH/K)−2,(DH/K)−1)×K)の法則に従って、前記i
=1〜Kにそれぞれ対応する第1〜第K閾値行グループのK個の閾値行グループに分類す
ることが可能である。
従って、自装置において、基準ディザマトリックスの前記分類処理をいつでも行うこと
ができるので、基準ディザマトリックスの更新処理などを容易に行うことができるという
効果が得られる。
With such a configuration, the threshold values of the first to DH rows constituting the reference dither matrix are set to (i (i = 1, 2,..., K−1, K) by the threshold row classification means. ) + J (j =
0, 1, ..., (DH / K) -2, (DH / K) -1) x K)
Can be classified into K threshold row groups of first to Kth threshold row groups corresponding to = 1 to K, respectively.
Accordingly, since the classification process of the reference dither matrix can be performed at any time in the own apparatus, an effect that the update process of the reference dither matrix can be easily performed is obtained.

〔形態7〕 一方、上記目的を達成するために、形態7の印刷装置制御プログラムは、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置を制御するのに使用する印刷装置制御プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、アドレスの連続す
るそれぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に
1次元的に記憶されており、
前記記憶領域に記憶された各行の前記閾値をその読出開始行から順に、前記画像データ
の各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出す閾値読出ステップ
と、
前記閾値読出ステップにおいて、前記記憶領域からの前記閾値の読出処理が前記必要な
回数分行われる毎に、前記記憶領域における読出開始行の位置を1行単位で順次ずらす読
出開始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップとからなる処理をコンピュータに実行させるのに使用するプログラム
を含むことを特徴とする。
[Mode 7] On the other hand, in order to achieve the above object, a printing apparatus control program according to mode 7
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted in the main scanning direction by the width of the entire column for the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data of the M number of gradations Is a printing apparatus control program used to convert image data of N (M> N ≧ 2) number of gradations and to control a printing apparatus that performs printing processing based on the converted image data,
The threshold values of the first row to the DH row constituting the reference dither matrix are stored one-dimensionally in the order of the arrangement of the threshold values in the reference dither matrix in respective separate storage areas having consecutive addresses,
A threshold value reading step for cyclically and repeatedly reading out the threshold value of each row stored in the storage area, in order from the reading start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold reading step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line every time the threshold value reading process from the storage area is performed the required number of times.
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a program used for causing a computer to execute a process including a print step for executing a print process based on image data composed of pixel values converted in the N-value conversion step.

このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態1記載の印刷装置と同等の
作用及び効果が得られる。
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operation and effect as those of the printing apparatus according to the first aspect can be obtained.

〔形態8〕 また、上記目的を達成するために、形態8の印刷装置制御プログラムは、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置を制御するのに使用する印刷装置制御プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続する記憶領域
に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶されており

前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出ステップと、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新ステップと

前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記記憶領域に記憶
される毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップとからなる処理をコンピュータに実行させるのに使用するプログラム
を含むことを特徴とする。
[Mode 8] In order to achieve the above object, a printing apparatus control program according to mode 8
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted in the main scanning direction by the width of the entire column for the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data of the M number of gradations Is a printing apparatus control program used to convert image data of N (M> N ≧ 2) number of gradations and to control a printing apparatus that performs printing processing based on the converted image data,
Among the threshold values of the first to DH rows constituting the reference dither matrix, the threshold rows for the one row to be processed of the image data are stored in the storage area where the addresses are continuous in the reference dither matrix. Stored one-dimensionally in the order of arrangement of the threshold values in the matrix;
A threshold value reading step for cyclically reading out the threshold value of each row stored in the storage area in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, every time the required threshold value is read from the storage area, the next row of the image data in the threshold row stored at the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. A threshold update step for sequentially storing in the storage area of the deleted address;
In the threshold update step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line each time the insufficient threshold line is stored in the storage area;
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a program used for causing a computer to execute a process including a print step for executing a print process based on image data composed of pixel values converted in the N-value conversion step.

このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態2記載の印刷装置と同等の
作用及び効果が得られる。
With such a configuration, when the program is read by the computer and the computer executes processing in accordance with the read program, the same operations and effects as those of the printing apparatus according to the second aspect are obtained.

〔形態9〕 また、上記目的を達成するために、形態9の印刷装置制御プログラムは、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
を制御するのに使用する印刷装置制御プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループが、アドレスの連続する
それぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1
次元的に記憶されており、
前記副走査方向の走査に対して、前記第1閾値行グループから第K閾値行グループに向
けて順に各閾値行グループの記憶された記憶領域を循環的に且つ繰り返し選択すると共に
、当該選択した各記憶領域に記憶された各グループの各行の閾値をその読出開始行から順
に、前記画像データの各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出
す閾値読出ステップと、
前記閾値読出ステップにおいて、前記各記憶領域からの前記閾値の読出処理が前記必要
な回数分行われる毎に、前記各記憶領域における読出開始行の位置をK−1行単位で順次
ずらす読出開始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップとからなる処理をコンピュータに実行させるのに使用するプログラム
を含むことを特徴とする。
[Mode 9] In order to achieve the above object, a printing apparatus control program according to mode 9
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the M number of gradations is converted into image data having the gradation number of N (M> N ≧ 2), and the converted image A printing apparatus control program used to control a printing apparatus that performs printing processing based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of xK), each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, has consecutive addresses. 1 in the order of arrangement of the threshold values in the reference dither matrix
Dimensionally remembered,
For the scanning in the sub-scanning direction, the storage areas stored in the respective threshold row groups are cyclically and repeatedly selected in order from the first threshold row group to the Kth threshold row group. A threshold value reading step for cyclically and repeatedly reading out the threshold value of each row of each group stored in the storage area, in order from the read start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading step, every time the threshold value is read out from each storage area for the required number of times, a read start position setting for sequentially shifting the position of the read start line in each storage area in units of K-1 lines. Steps,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a program used for causing a computer to execute a process including a print step for executing a print process based on image data composed of pixel values converted in the N-value conversion step.

このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態3記載の印刷装置と同等の
作用及び効果が得られる。
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operation and effect as those of the printing apparatus according to the third aspect can be obtained.

〔形態10〕 また、上記目的を達成するために、形態10の印刷装置制御プログラム
は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
を制御するのに使用する印刷装置制御プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶されており、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出ステップと、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新ステップと、
前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記各記憶領域に記
憶される毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップとからなる処理をコンピュータに実行させるのに使用するプログラム
を含むことを特徴とする。
[Mode 10] In order to achieve the above object, a printing apparatus control program according to mode 10 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the M number of gradations is converted into image data having the gradation number of N (M> N ≧ 2), and the converted image A printing apparatus control program used to control a printing apparatus that performs printing processing based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of × K), the image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively. The threshold rows for one processing target row are stored one-dimensionally in separate storage areas with consecutive addresses,
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Steps,
Each time the threshold value is read out from each storage area for the scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete unnecessary threshold rows for the processing target row, and select each of the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, A threshold update step of sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting step of sequentially shifting the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area in the threshold update step; ,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a program used for causing a computer to execute a process including a print step for executing a print process based on image data composed of pixel values converted in the N-value conversion step.

このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態4記載の印刷装置と同等の
作用及び効果が得られる。
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operation and effect as those of the printing apparatus according to the fourth aspect are obtained.

〔形態11〕 更に、形態11の印刷装置制御プログラムは、形態9又は10の印刷装
置制御プログラムにおいて、
前記第1〜第K閾値行グループの各閾値行グループの先頭行から順に、行毎に、各行の
先頭の閾値から各行の最後尾の閾値まで順に各閾値行グループの閾値が1つずつ、第1閾
値行グループのものから第K閾値行グループのものに向けて順に並んでアドレスの連続す
る1つの記憶領域に記憶されており、
前記閾値読出ステップは、前記副走査方向の走査に対して、前記各記憶領域に並べて記
憶された前記各閾値行グループの閾値の読出開始位置を、1つ前の読出開始位置に対して
前記並び順に1つずつずらすと共に、前記主査方向の走査に対して、前記記憶領域に記憶
された前記閾値を、前記読出開始位置からK個ずつスキップしながら、前記画像データの
各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出し、
前記読出開始位置設定ステップは、前記閾値読出ステップにおいて、前記記憶領域に記
憶された前記第1〜第K閾値行グループの前記閾値に対して、前記必要な回数分の読み出
しを行う毎に、前記各記憶領域における前記読出開始位置をK−1行単位で順次ずらすこ
とを特徴とする。
[Mode 11] Furthermore, the printing apparatus control program according to mode 11 is the printing apparatus control program according to mode 9 or 10,
In order from the first row of each threshold row group of the first to Kth threshold row groups, for each row, the threshold value of each threshold row group is one by one from the first threshold value of each row to the last threshold value of each row, Stored in one storage area in which addresses are arranged in order from one threshold row group to that of the Kth threshold row group,
In the threshold value reading step, the threshold value reading start positions of the threshold value row groups stored side by side in the storage areas are scanned with respect to the scanning in the sub-scanning direction with respect to the previous reading start position. Necessary for the determination process for each row of the image data while sequentially shifting the threshold values stored in the storage area one by one from the read start position while shifting by one in order. Read out cyclically and repeatedly as many times as possible,
In the reading start position setting step, in the threshold reading step, the reading of the necessary number of times is performed on the thresholds of the first to Kth threshold row groups stored in the storage area. The read start position in each storage area is sequentially shifted in units of K-1 rows.

このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態5記載の印刷装置と同等の
作用及び効果が得られる。
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operations and effects as those of the printing apparatus according to the fifth aspect are obtained.

〔形態12〕 更に、形態12の印刷装置制御プログラムは、形態9乃至11のいずれ
か1の印刷装置制御プログラムにおいて、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類する閾値行分類ステップをコンピュータに実行させるの
に使用するプログラムを含むことを特徴とする。
このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態6記載の印刷装置と同等の
作用及び効果が得られる。
[Mode 12] Further, the printing device control program according to mode 12 is the printing device control program according to any one of modes 9 to 11,
The threshold values of the first to DH rows constituting the reference dither matrix are set as (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) Used to cause a computer to execute a threshold row classification step for classifying into K threshold row groups of the first to Kth threshold row groups corresponding to the above i = 1 to K according to the rule of xK). It is characterized by including a program.
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operations and effects as those of the printing apparatus according to mode 6 can be obtained.

〔形態13〕 一方、上記目的を達成するために、形態13のコンピュータ読み取り可
能な記憶媒体は、
形態7乃至12のいずれか1の印刷装置制御プログラムを記憶したコンピュータ読み取
り可能な記憶媒体である。
これによって、CD−ROMやDVD−ROM、FD、半導体チップなどのコンピュー
タ読み取り可能な記憶媒体を介して前記形態7乃至12のいずれか1に記載の印刷装置制
御プログラムをユーザなどの需用者に対して容易かつ確実に提供することができる。
[Mode 13] On the other hand, in order to achieve the above object, a computer-readable storage medium according to mode 13 is provided.
A computer-readable storage medium storing the printing apparatus control program according to any one of Embodiments 7 to 12.
As a result, the printing apparatus control program according to any one of the seventh to twelfth aspects can be transmitted to a user such as a user via a computer-readable storage medium such as a CD-ROM, DVD-ROM, FD, or semiconductor chip. It can be provided easily and reliably.

〔形態14〕 一方、上記目的を達成するために、形態14の印刷装置制御方法は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置を制御するのに使用する印刷装置制御方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、アドレスの連続す
るそれぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に
1次元的に記憶されており、
前記記憶領域に記憶された各行の前記閾値をその読出開始行から順に、前記画像データ
の各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出す閾値読出ステップ
と、
前記閾値読出ステップにおいて、前記記憶領域からの前記閾値の読出処理が前記必要な
回数分行われる毎に、前記記憶領域における読出開始行の位置を1行単位で順次ずらす読
出開始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップと、を含むことを特徴とする
これにより、形態1の印刷装置と同等の作用及び効果が得られる。
[Mode 14] On the other hand, in order to achieve the above object, a printing apparatus control method according to mode 14 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data having the M number of gradations Is converted to image data having N (M> N ≧ 2) gradations, and a printing apparatus control method used to control a printing apparatus that performs printing processing based on the converted image data,
The threshold values of the first row to the DH row constituting the reference dither matrix are stored one-dimensionally in the order of the arrangement of the threshold values in the reference dither matrix in respective separate storage areas having consecutive addresses,
A threshold value reading step for cyclically and repeatedly reading out the threshold value of each row stored in the storage area, in order from the reading start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold reading step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line every time the threshold value reading process from the storage area is performed the required number of times.
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a printing step for executing a printing process based on the image data composed of the pixel values after the conversion in the N-value conversion step. can get.

〔形態15〕 また、上記目的を達成するために、形態15の印刷装置制御方法は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置を制御するのに使用する印刷装置制御方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続する記憶領域
に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶されており

前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出ステップと、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新ステップと

前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記記憶領域に記憶
される毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップと、を含むことを特徴とする。
これにより、形態2の印刷装置と同等の作用及び効果が得られる。
[Mode 15] In order to achieve the above object, a printing apparatus control method according to mode 15 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data having the M number of gradations Is converted to image data having N (M> N ≧ 2) gradations, and a printing apparatus control method used to control a printing apparatus that performs printing processing based on the converted image data,
Among the threshold values of the first to DH rows constituting the reference dither matrix, the threshold rows for the one row to be processed of the image data are stored in the storage area where the addresses are continuous in the reference dither matrix. Stored one-dimensionally in the order of arrangement of the threshold values in the matrix;
A threshold value reading step for cyclically reading out the threshold value of each row stored in the storage area in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, every time the required threshold value is read from the storage area, the next row of the image data in the threshold row stored at the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. A threshold update step for sequentially storing in the storage area of the deleted address;
In the threshold update step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line each time the insufficient threshold line is stored in the storage area;
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a printing step of executing a printing process based on the image data composed of the pixel values converted in the N-value conversion step.
Thereby, an operation and effect equivalent to that of the printing apparatus of mode 2 can be obtained.

〔形態16〕 また、上記目的を達成するために、形態16の印刷装置制御方法は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
を制御するのに使用する印刷装置制御方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループが、アドレスの連続する
それぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1
次元的に記憶されており、
前記副走査方向の走査に対して、前記第1閾値行グループから第K閾値行グループに向
けて順に各閾値行グループの記憶された記憶領域を循環的に且つ繰り返し選択すると共に
、当該選択した各記憶領域に記憶された各グループの各行の閾値をその読出開始行から順
に、前記画像データの各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出
す閾値読出ステップと、
前記閾値読出ステップにおいて、前記各記憶領域からの前記閾値の読出処理が前記必要
な回数分行われる毎に、前記各記憶領域における読出開始行の位置をK−1行単位で順次
ずらす読出開始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップと、を含むことを特徴とする。
これにより、形態3の印刷装置と同等の作用及び効果が得られる。
[Mode 16] In order to achieve the above object, a printing apparatus control method according to mode 16 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the M number of gradations is converted into image data having the gradation number of N (M> N ≧ 2), and the converted image A printing apparatus control method used to control a printing apparatus that performs printing processing based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of xK), each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, has consecutive addresses. 1 in the order of arrangement of the threshold values in the reference dither matrix
Dimensionally remembered,
For the scanning in the sub-scanning direction, the storage areas stored in the respective threshold row groups are cyclically and repeatedly selected in order from the first threshold row group to the Kth threshold row group. A threshold value reading step for cyclically and repeatedly reading out the threshold value of each row of each group stored in the storage area, in order from the read start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading step, every time the threshold value is read out from each storage area for the required number of times, a read start position setting for sequentially shifting the position of the read start line in each storage area in units of K-1 lines. Steps,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a printing step of executing a printing process based on the image data composed of the pixel values converted in the N-value conversion step.
Thereby, the same operation and effect as those of the printing apparatus of mode 3 can be obtained.

〔形態17〕 また、上記目的を達成するために、形態17の印刷装置制御方法は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
を制御するのに使用する印刷装置制御方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶されており、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出ステップと、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新ステップと、
前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記各記憶領域に記
憶される毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップと、を含むことを特徴とする。
これにより、形態4の印刷装置と同等の作用及び効果が得られる。
[Mode 17] In order to achieve the above object, a printing apparatus control method according to mode 17 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the M number of gradations is converted into image data having the gradation number of N (M> N ≧ 2), and the converted image A printing apparatus control method used to control a printing apparatus that performs printing processing based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of × K), the image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively. The threshold rows for one processing target row are stored one-dimensionally in separate storage areas with consecutive addresses,
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Steps,
Each time the threshold value is read out from each storage area for the scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete unnecessary threshold rows for the processing target row, and select each of the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, A threshold update step of sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting step of sequentially shifting the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area in the threshold update step; ,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a printing step of executing a printing process based on the image data composed of the pixel values converted in the N-value conversion step.
Thereby, the same operation and effect as those of the printing apparatus of aspect 4 can be obtained.

〔形態18〕 更に、形態18の印刷装置制御方法は、形態16又は17の印刷装置制
御方法において、
前記第1〜第K閾値行グループの各閾値行グループの先頭行から順に、行毎に、各行の
先頭の閾値から各行の最後尾の閾値まで順に各閾値行グループの閾値が1つずつ、第1閾
値行グループのものから第K閾値行グループのものに向けて順に並んでアドレスの連続す
る1つの記憶領域に記憶されており、
前記閾値読出ステップは、前記副走査方向の走査に対して、前記各記憶領域に並べて記
憶された前記各閾値行グループの閾値の読出開始位置を、1つ前の読出開始位置に対して
前記並び順に1つずつずらすと共に、前記主査方向の走査に対して、前記記憶領域に記憶
された前記閾値を、前記読出開始位置からK個ずつスキップしながら、前記画像データの
各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出し、
前記読出開始位置設定ステップは、前記閾値読出ステップにおいて、前記記憶領域に記
憶された前記第1〜第K閾値行グループの前記閾値に対して、前記必要な回数分の読み出
しを行う毎に、前記各記憶領域における前記読出開始位置をK−1行単位で順次ずらすこ
とを特徴とする。
これにより、形態5の印刷装置と同等の作用及び効果が得られる。
[Form 18] Furthermore, the printing apparatus control method of aspect 18 is the same as the printing apparatus control method of aspect 16 or 17,
In order from the first row of each threshold row group of the first to Kth threshold row groups, for each row, the threshold value of each threshold row group is one by one from the first threshold value of each row to the last threshold value of each row, Stored in one storage area in which addresses are arranged in order from one threshold row group to that of the Kth threshold row group,
In the threshold value reading step, the threshold value reading start positions of the threshold value row groups stored side by side in the storage areas are scanned with respect to the scanning in the sub-scanning direction with respect to the previous reading start position. Necessary for the determination process for each row of the image data while sequentially shifting the threshold values stored in the storage area one by one from the read start position while shifting by one in order. Read out cyclically and repeatedly as many times as possible,
In the reading start position setting step, in the threshold reading step, the reading of the necessary number of times is performed on the thresholds of the first to Kth threshold row groups stored in the storage area. The read start position in each storage area is sequentially shifted in units of K-1 rows.
Thereby, an operation and effect equivalent to that of the printing apparatus of mode 5 can be obtained.

〔形態19〕 更に、形態19の印刷装置制御方法は、形態16乃至18のいずれか1
の印刷装置制御方法において、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類する閾値行分類ステップを含むことを特徴とする。
これにより、形態6の印刷装置と同等の作用及び効果が得られる。
[Mode 19] Further, the printing apparatus control method according to mode 19 is any one of modes 16 to 18.
In the printing apparatus control method of
The threshold values of the first to DH rows constituting the reference dither matrix are set as (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) A threshold row classification step for classifying into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, according to the rule of 1) × K).
Thereby, the same operation and effect as those of the printing apparatus of mode 6 can be obtained.

〔形態20〕 一方、上記目的を達成するために、形態20の画像処理装置は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換する画像処理装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、アドレスの連続す
るそれぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に
1次元的に記憶する基準ディザマトリックス記憶手段と、
前記記憶領域に記憶された各行の前記閾値をその読出開始行から順に、前記画像データ
の各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出す閾値読出手段と、
前記閾値読出手段において、前記記憶領域からの前記閾値の読出処理が前記必要な回数
分行われる毎に、前記記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、を備えることを特徴とする。
これによって、形態1の印刷装置と同等の作用及び効果が得られる。
[Mode 20] On the other hand, in order to achieve the above object, an image processing apparatus according to mode 20
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted in the main scanning direction by the width of the entire column for the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between each of the read threshold values and the corresponding pixel value, and the image data of the M number of gradations Is converted into image data having N (M> N ≧ 2) number of gradations,
Reference dither matrix storage means for storing the threshold values of the first to DH rows constituting the reference dither matrix in a one-dimensional manner in the order of arrangement of the threshold values in the reference dither matrix in separate storage areas having consecutive addresses. When,
Threshold reading means for cyclically and repeatedly reading out the threshold value of each row stored in the storage area, in order from the reading start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading means, a reading start position setting means for sequentially shifting the position of the reading start line in the storage area in units of one line each time the threshold value is read from the storage area for the required number of times.
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting the pixel value of the M-value gradation number into the pixel value of the N-value gradation number based on the determination result of the determination processing means.
As a result, the same operations and effects as those of the printing apparatus according to mode 1 can be obtained.

〔形態21〕 また、上記目的を達成するために、形態21の画像処理装置は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換する画像処理装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行だけを、アドレスの連続する記憶
領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶する基
準ディザマトリックス記憶手段と、
前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出手段と、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新手段と、
前記閾値更新手段において、前記不足している前記閾値の行が前記記憶領域に記憶され
る毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位置設
定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、を備えることを特徴とする。
これによって、形態2の印刷装置と同等の作用及び効果が得られる。
[Mode 21] In order to achieve the above object, an image processing apparatus according to mode 21
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted in the main scanning direction by the width of the entire column for the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data of the M number of gradations Is converted into image data having N (M> N ≧ 2) number of gradations,
In the threshold value of the first row to the DH row constituting the reference dither matrix, only the threshold row for the one row to be processed of the image data is stored in the storage area where the addresses are continuous. Reference dither matrix storage means for storing one-dimensionally in the order of arrangement of the threshold values in the dither matrix;
Threshold reading means for cyclically reading out the threshold value of each row stored in the storage area, in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, each time the threshold value for the necessary amount is read from the storage area, the next row of the image data in the threshold row stored in the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. Threshold update means for sequentially storing in the storage area of the deleted address;
In the threshold update means, a read start position setting means for sequentially shifting the position of the read start line in the storage area in units of one line every time the insufficient threshold line is stored in the storage area;
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting the pixel value of the M-value gradation number into the pixel value of the N-value gradation number based on the determination result of the determination processing means.
As a result, the same operations and effects as those of the printing apparatus of aspect 2 can be obtained.

〔形態22〕 また、上記目的を達成するために、形態22の画像処理装置は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換する画像処理装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループを、アドレスの連続する
それぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1
次元的に記憶する基準ディザマトリックス記憶手段と、
前記副走査方向の走査に対して、前記第1閾値行グループから第K閾値行グループに向
けて順に各閾値行グループの記憶された記憶領域を循環的に且つ繰り返し選択すると共に
、当該選択した各記憶領域に記憶された各グループの各行の閾値をその読出開始行から順
に、前記画像データの各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出
す閾値読出手段と、
前記閾値読出手段において、前記各記憶領域からの前記閾値の読出処理が前記必要な回
数分行われる毎に、前記各記憶領域における読出開始行の位置をK−1行単位で順次ずら
す読出開始位置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、を備えることを特徴とする。
これによって、形態3の印刷装置と同等の作用及び効果が得られる。
[Mode 22] In order to achieve the above object, an image processing apparatus according to mode 22
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The image processing apparatus converts the image data having the M number of gradations into the image data having the number of gradations of N (M> N ≧ 2) by sequentially determining whether the dots are turned on or off according to ,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of xK), each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K is consecutive in address. 1 in the order of arrangement of the threshold values in the reference dither matrix
Reference dither matrix storage means for storing dimensionally;
For the scanning in the sub-scanning direction, the storage areas stored in the respective threshold row groups are selected cyclically and repeatedly in order from the first threshold row group to the Kth threshold row group. Threshold reading means for reading the threshold value of each row of each group stored in the storage area in order from the read start row, repeatedly and repeatedly for the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading means, every time the threshold value is read out from each storage area for the required number of times, a reading start position setting is performed in which the position of the reading start line in each storage area is sequentially shifted by K-1 lines. Means,
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting the pixel value of the M-value gradation number into the pixel value of the N-value gradation number based on the determination result of the determination processing means.
As a result, the same operations and effects as those of the printing apparatus of aspect 3 can be obtained.

〔形態23〕 また、上記目的を達成するために、形態23の画像処理装置は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換する画像処理装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行を、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶する基準ディザマトリックス記憶手段と、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出手段と、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新手段と、
前記閾値更新手段において、前記不足している前記閾値の行が前記各記憶領域に記憶さ
れる毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、を備えることを特徴とする。
これによって、形態4の印刷装置と同等の作用及び効果が得られる。
[Mode 23] In order to achieve the above object, an image processing apparatus according to mode 23
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The image processing apparatus converts the image data having the M number of gradations into the image data having the number of gradations of N (M> N ≧ 2) by sequentially determining whether the dots are turned on or off according to ,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) The image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, according to the rule of 1) × K) Reference dither matrix storage means for storing one-dimensionally the row of the threshold used for one processing target row in separate storage areas having consecutive addresses;
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Means,
Each time the threshold value is read out from each storage area for scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete the threshold rows unnecessary for the processing target row and select the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, Threshold update means for sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting unit that sequentially shifts the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area; ,
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting the pixel value of the M-value gradation number into the pixel value of the N-value gradation number based on the determination result of the determination processing means.
Thereby, the same operation and effect as those of the printing apparatus of aspect 4 can be obtained.

〔形態24〕 更に、形態24の画像処理装置は、形態22又は23の画像処理装置に
おいて、
前記基準ディザマトリックス記憶手段は、前記第1〜第K閾値行グループの各閾値行グ
ループの先頭行から順に、行毎に、各行の先頭の閾値から各行の最後尾の閾値まで順に各
閾値行グループの閾値を1つずつ、第1閾値行グループのものから第K閾値行グループの
ものに向けて順に並べながらアドレスの連続する1つの記憶領域に記憶し、
前記閾値読出手段は、前記副走査方向の走査に対して、前記各記憶領域に並べて記憶さ
れた前記各閾値行グループの閾値の読出開始位置を、1つ前の読出開始位置に対して前記
並び順に1つずつずらすと共に、前記主査方向の走査に対して、前記記憶領域に記憶され
た前記閾値を、前記読出開始位置からK個ずつスキップしながら、前記画像データの各行
の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出し、
前記読出開始位置設定手段は、前記閾値読出手段において、前記記憶領域に記憶された
前記第1〜第K閾値行グループの前記閾値に対して、前記必要な回数分の読み出しを行う
毎に、前記各記憶領域における前記読出開始位置をK−1行単位で順次ずらすことを特徴
とする。
これによって、形態5の印刷装置と同等の作用及び効果が得られる。
[Mode 24] Furthermore, the image processing apparatus of mode 24 is the image processing apparatus of mode 22 or 23,
The reference dither matrix storage means sequentially stores each threshold row group in order from the first row of each threshold row group of the first to Kth threshold row groups, from the first threshold of each row to the last threshold of each row. Are stored in one storage area where addresses are continuous while sequentially arranging the thresholds of the first threshold row group toward the Kth threshold row group,
The threshold reading means sets the threshold reading start positions of the threshold row groups stored side by side in the storage areas for the scanning in the sub-scanning direction relative to the previous reading start position. Necessary for the determination process for each row of the image data while sequentially shifting the threshold values stored in the storage area one by one from the read start position while shifting by one in order. Read out cyclically and repeatedly for a certain number of times,
The reading start position setting unit is configured to read the necessary number of times for the threshold value of the first to Kth threshold row groups stored in the storage area in the threshold value reading unit. The read start position in each storage area is sequentially shifted in units of K-1 rows.
As a result, the same operations and effects as those of the printing apparatus according to mode 5 can be obtained.

〔形態25〕 更に、形態25の画像処理装置は、形態22乃至24のいずれか1の画
像処理装置において、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類する閾値行分類手段を備えることを特徴とする。
これによって、形態6の印刷装置と同等の作用及び効果が得られる。
[Mode 25] Furthermore, the image processing apparatus according to mode 25 is the image processing apparatus according to any one of modes 22 to 24.
The threshold values of the first to DH rows constituting the reference dither matrix are set as (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) It is characterized by comprising threshold value row classification means for classifying into K threshold value row groups of the first to Kth threshold value row groups corresponding to i = 1 to K, respectively, in accordance with the rule of 1) × K).
Thereby, the same operation and effect as those of the printing apparatus of mode 6 can be obtained.

〔形態26〕 一方、上記目的を達成するために、形態26の画像処理プログラムは、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対して1行単位で前記副走査方向とは反対方向にずらし
、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドットのオン・
オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の階調数の画
像データに変換する画像処理プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、アドレスの連続す
るそれぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に
1次元的に記憶されており、
前記記憶領域に記憶された各行の前記閾値をその読出開始行から順に、前記画像データ
の各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出す閾値読出ステップ
と、
前記閾値読出ステップにおいて、前記記憶領域からの前記閾値の読出処理が前記必要な
回数分行われる毎に、前記記憶領域における読出開始行の位置を1行単位で順次ずらす読
出開始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップとからなる処理をコンピュータに実行させるのに
使用するプログラムを含むことを特徴とする。
このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態1記載の印刷装置と同等の
作用及び効果が得られる。
[Mode 26] On the other hand, in order to achieve the above object, the image processing program of mode 26
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH> DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the total column number width, Is shifted in the direction opposite to the sub-scanning direction in units of one line with respect to the arrangement before the shift, and the dot on / off state is changed according to the magnitude relationship between the read threshold values and the corresponding pixel values.
An image processing program for sequentially determining OFF and converting the image data having the number of gradations of the M value into image data having the number of gradations of N (M> N ≧ 2).
The threshold values of the first row to the DH row constituting the reference dither matrix are stored one-dimensionally in the order of the arrangement of the threshold values in the reference dither matrix in respective separate storage areas having consecutive addresses,
A threshold value reading step for cyclically and repeatedly reading out the threshold value of each row stored in the storage area, in order from the reading start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold reading step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line every time the threshold value reading process from the storage area is performed the required number of times.
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
Based on the determination result of the determination processing step, used to cause a computer to execute a process including an N-value conversion step of converting the pixel value having the M-value gradation number into the pixel value having the N-value gradation number. Including a program to be executed.
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operation and effect as those of the printing apparatus according to the first aspect can be obtained.

〔形態27〕 また、上記目的を達成するために、形態27の画像処理プログラムは、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対して1行単位で前記副走査方向とは反対方向にずらし
、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドットのオン・
オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の階調数の画
像データに変換する画像処理プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続する記憶領域
に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶されており

前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出ステップと、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新ステップと

前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記記憶領域に記憶
される毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップとからなる処理をコンピュータに実行させるのに
使用するプログラムを含むことを特徴とする。
[Mode 27] In order to achieve the above object, an image processing program according to mode 27
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH <DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the width of the entire column, Is shifted in the direction opposite to the sub-scanning direction in units of one line with respect to the arrangement before the shift, and the dot on / off state is changed according to the magnitude relationship between the read threshold values and the corresponding pixel values.
An image processing program for sequentially determining OFF and converting the image data having the number of gradations of the M value into image data having the number of gradations of N (M> N ≧ 2).
Among the threshold values of the first to DH rows constituting the reference dither matrix, the threshold rows for the one row to be processed of the image data are stored in the storage area where the addresses are continuous in the reference dither matrix. Stored one-dimensionally in the order of arrangement of the threshold values in the matrix;
A threshold value reading step for cyclically reading out the threshold value of each row stored in the storage area in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, every time the required threshold value is read from the storage area, the next row of the image data in the threshold row stored at the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. A threshold update step for sequentially storing in the storage area of the deleted address;
In the threshold update step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line each time the insufficient threshold line is stored in the storage area;
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
Based on the determination result of the determination processing step, used to cause a computer to execute a process including an N-value conversion step of converting the pixel value having the M-value gradation number into the pixel value having the N-value gradation number. Including a program to be executed.

このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態2記載の印刷装置と同等の
作用及び効果が得られる。
With such a configuration, when the program is read by the computer and the computer executes processing in accordance with the read program, the same operations and effects as those of the printing apparatus according to the second aspect are obtained.

〔形態28〕 また、上記目的を達成するために、形態28の画像処理プログラムは、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対してK行単位(Kは、DH/2≧K≧2且つDH/K
の余りが0の自然数)で前記副走査方向とは反対方向にずらし、前記読み出した各閾値と
これに対応する各画素値との大小関係に応じてドットのオン・オフを順次判定して、前記
M値の階調数の画像データをN(M>N≧2)値の階調数の画像データに変換する画像処
理プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループが、アドレスの連続する
それぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1
次元的に記憶されており、
前記副走査方向の走査に対して、前記第1閾値行グループから第K閾値行グループに向
けて順に各閾値行グループの記憶された記憶領域を循環的に且つ繰り返し選択すると共に
、当該選択した各記憶領域に記憶された各グループの各行の閾値をその読出開始行から順
に、前記画像データの各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出
す閾値読出ステップと、
前記閾値読出ステップにおいて、前記各記憶領域からの前記閾値の読出処理が前記必要
な回数分行われる毎に、前記各記憶領域における読出開始行の位置をK−1行単位で順次
ずらす読出開始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップとからなる処理をコンピュータに実行させるのに
使用するプログラムを含むことを特徴とする。
[Mode 28] In order to achieve the above object, the image processing program of mode 28
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH> DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the total column number width, For the arrangement before shifting, in units of K rows (K is DH / 2 ≧ K ≧ 2 and DH / K
(The remainder is a natural number of 0) and is shifted in the direction opposite to the sub-scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, An image processing program for converting the image data having the number of gradations of the M value into image data having the number of gradations of N (M> N ≧ 2).
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of xK), each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, has consecutive addresses. 1 in the order of arrangement of the threshold values in the reference dither matrix
Dimensionally remembered,
For the scanning in the sub-scanning direction, the storage areas stored in the respective threshold row groups are cyclically and repeatedly selected in order from the first threshold row group to the Kth threshold row group. A threshold value reading step for cyclically and repeatedly reading out the threshold value of each row of each group stored in the storage area, in order from the read start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading step, every time the threshold value is read out from each storage area for the required number of times, a read start position setting for sequentially shifting the position of the read start line in each storage area in units of K-1 lines. Steps,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
Based on the determination result of the determination processing step, used to cause a computer to execute a process including an N-value conversion step of converting the pixel value having the M-value gradation number into the pixel value having the N-value gradation number. Including a program to be executed.

このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態3記載の印刷装置と同等の
作用及び効果が得られる。
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operation and effect as those of the printing apparatus according to the third aspect can be obtained.

〔形態29〕 また、上記目的を達成するために、形態29の画像処理プログラムは、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対してK行単位(Kは、DH/2≧K≧2且つDH/K
の余りが0の自然数)で前記副走査方向とは反対方向にずらし、前記読み出した各閾値と
これに対応する各画素値との大小関係に応じてドットのオン・オフを順次判定して、前記
M値の階調数の画像データをN(M>N≧2)値の階調数の画像データに変換する画像処
理プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶されており、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出ステップと、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新ステップと、
前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記各記憶領域に記
憶される毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップとからなる処理をコンピュータに実行させるのに
使用するプログラムを含むことを特徴とする。
[Mode 29] In order to achieve the above object, the image processing program of mode 29
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH <DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the entire column width, after the shift For the arrangement before shifting, in units of K rows (K is DH / 2 ≧ K ≧ 2 and DH / K
(The remainder is a natural number of 0) and is shifted in the direction opposite to the sub-scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, An image processing program for converting the image data having the number of gradations of the M value into image data having the number of gradations of N (M> N ≧ 2).
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of × K), the image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively. The threshold rows for one processing target row are stored one-dimensionally in separate storage areas with consecutive addresses,
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Steps,
Each time the threshold value is read out from each storage area for the scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete unnecessary threshold rows for the processing target row, and select each of the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, A threshold update step of sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting step of sequentially shifting the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area in the threshold update step; ,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
Based on the determination result of the determination processing step, used to cause a computer to execute a process including an N-value conversion step of converting the pixel value having the M-value gradation number into the pixel value having the N-value gradation number. Including a program to be executed.

このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態4記載の印刷装置と同等の
作用及び効果が得られる。
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operation and effect as those of the printing apparatus according to the fourth aspect are obtained.

〔形態30〕 更に、形態30の画像処理プログラムは、形態28又は29の画像処理
プログラムにおいて、
前記第1〜第K閾値行グループの各閾値行グループの先頭行から順に、行毎に、各行の
先頭の閾値から各行の最後尾の閾値まで順に各閾値行グループの閾値が1つずつ、第1閾
値行グループのものから第K閾値行グループのものに向けて順に並んでアドレスの連続す
る1つの記憶領域に記憶されており、
前記閾値読出ステップは、前記副走査方向の走査に対して、前記各記憶領域に並べて記
憶された前記各閾値行グループの閾値の読出開始位置を、1つ前の読出開始位置に対して
前記並び順に1つずつずらすと共に、前記主査方向の走査に対して、前記記憶領域に記憶
された前記閾値を、前記読出開始位置からK個ずつスキップしながら、前記画像データの
各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出し、
前記読出開始位置設定ステップは、前記閾値読出ステップにおいて、前記記憶領域に記
憶された前記第1〜第K閾値行グループの前記閾値に対して、前記必要な回数分の読み出
しを行う毎に、前記各記憶領域における前記読出開始位置をK−1行単位で順次ずらすこ
とを特徴とする。
このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態5記載の印刷装置と同等の
作用及び効果が得られる。
[Mode 30] Furthermore, the image processing program of mode 30 is the image processing program of mode 28 or 29,
In order from the first row of each threshold row group of the first to Kth threshold row groups, for each row, the threshold value of each threshold row group is one by one from the first threshold value of each row to the last threshold value of each row, Stored in one storage area in which addresses are arranged in order from one threshold row group to that of the Kth threshold row group,
In the threshold value reading step, the threshold value reading start positions of the threshold value row groups stored side by side in the storage areas are scanned with respect to the scanning in the sub-scanning direction with respect to the previous reading start position. Necessary for the determination process for each row of the image data while sequentially shifting the threshold values stored in the storage area one by one from the read start position while shifting by one in order. Read out cyclically and repeatedly as many times as possible,
In the reading start position setting step, in the threshold reading step, the reading of the necessary number of times is performed on the thresholds of the first to Kth threshold row groups stored in the storage area. The read start position in each storage area is sequentially shifted in units of K-1 rows.
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operations and effects as those of the printing apparatus according to the fifth aspect are obtained.

〔形態31〕 更に、形態31の画像処理プログラムは、形態28乃至30のいずれか
1の画像処理プログラムにおいて、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類する閾値行分類ステップをコンピュータに実行させるの
に使用するプログラムを含むことを特徴とする。
このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムに従ってコンピュータが処理を実行すると、形態6記載の印刷装置と同等の
作用及び効果が得られる。
[Mode 31] Furthermore, the image processing program of mode 31 is the image processing program of any one of modes 28 to 30,
The threshold values of the first to DH rows constituting the reference dither matrix are set as (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) Used to cause a computer to execute a threshold row classification step for classifying into K threshold row groups of the first to Kth threshold row groups corresponding to the above i = 1 to K according to the rule of xK). It is characterized by including a program.
With such a configuration, when the program is read by the computer and the computer executes processing according to the read program, the same operations and effects as those of the printing apparatus according to mode 6 can be obtained.

〔形態32〕 一方、上記目的を達成するために、形態32のコンピュータ読み取り可
能な記憶媒体は、
形態26乃至31のいずれか1の画像処理プログラムを記憶したコンピュータ読み取り
可能な記憶媒体である。
これによって、CD−ROMやDVD−ROM、FD、半導体チップなどのコンピュー
タ読み取り可能な記憶媒体を介して前記形態26乃至31のいずれか1に記載の画像処理
プログラムをユーザなどの需用者に対して容易かつ確実に提供することができる。
[Mode 32] On the other hand, in order to achieve the above object, a computer-readable storage medium according to mode 32 is provided.
A computer-readable storage medium storing an image processing program according to any one of forms 26 to 31.
As a result, the image processing program according to any one of Embodiments 26 to 31 is transmitted to a user such as a user via a computer-readable storage medium such as a CD-ROM, DVD-ROM, FD, or semiconductor chip. Can be provided easily and reliably.

〔形態33〕 一方、上記目的を達成するために、形態33の画像処理方法は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対して1行単位で前記副走査方向とは反対方向にずらし
、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドットのオン・
オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の階調数の画
像データに変換する画像処理方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、アドレスの連続す
るそれぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に
1次元的に記憶されており、
前記記憶領域に記憶された各行の前記閾値をその読出開始行から順に、前記画像データ
の各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出す閾値読出ステップ
と、
前記閾値読出ステップにおいて、前記記憶領域からの前記閾値の読出処理が前記必要な
回数分行われる毎に、前記記憶領域における読出開始行の位置を1行単位で順次ずらす読
出開始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、を含むことを特徴とする。
これにより、形態1の印刷装置と同等の作用及び効果が得られる。
[Mode 33] On the other hand, in order to achieve the above object, an image processing method according to mode 33,
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH> DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the total column number width, Is shifted in the direction opposite to the sub-scanning direction in units of one line with respect to the arrangement before the shift, and the dot on / off state is changed according to the magnitude relationship between the read threshold values and the corresponding pixel values.
An image processing method for sequentially determining OFF and converting the image data having the number of gradations of the M value into image data having the number of gradations of N (M> N ≧ 2).
The threshold values of the first row to the DH row constituting the reference dither matrix are stored one-dimensionally in the order of the arrangement of the threshold values in the reference dither matrix in respective separate storage areas having consecutive addresses,
A threshold value reading step for cyclically and repeatedly reading out the threshold value of each row stored in the storage area, in order from the reading start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold reading step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line every time the threshold value reading process from the storage area is performed the required number of times.
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on a determination result of the determination processing step.
Thereby, the same operation and effect as those of the printing apparatus of aspect 1 can be obtained.

〔形態34〕 また、上記目的を達成するために、形態34の画像処理方法は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対して1行単位で前記副走査方向とは反対方向にずらし
、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドットのオン・
オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の階調数の画
像データに変換する画像処理方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続する記憶領域
に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶されており

前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出ステップと、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新ステップと

前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記記憶領域に記憶
される毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、を含むことを特徴とする。
これにより、形態2の印刷装置と同等の作用及び効果が得られる。
[Form 34] In order to achieve the above object, an image processing method according to form 34 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH <DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the width of the entire column, Is shifted in the direction opposite to the sub-scanning direction in units of one line with respect to the arrangement before the shift, and the dot on / off state is changed according to the magnitude relationship between the read threshold values and the corresponding pixel values.
An image processing method for sequentially determining OFF and converting the image data having the number of gradations of the M value into image data having the number of gradations of N (M> N ≧ 2).
Among the threshold values of the first to DH rows constituting the reference dither matrix, the threshold rows for the one row to be processed of the image data are stored in the storage area where the addresses are continuous in the reference dither matrix. Stored one-dimensionally in the order of arrangement of the threshold values in the matrix;
A threshold value reading step for cyclically reading out the threshold value of each row stored in the storage area in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, every time the required threshold value is read from the storage area, the next row of the image data in the threshold row stored at the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. A threshold update step for sequentially storing in the storage area of the deleted address;
In the threshold update step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line each time the insufficient threshold line is stored in the storage area;
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on a determination result of the determination processing step.
Thereby, an operation and effect equivalent to that of the printing apparatus of mode 2 can be obtained.

〔形態35〕 また、上記目的を達成するために、形態35の画像処理方法は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対してK行単位(Kは、DH/2≧K≧2且つDH/K
の余りが0の自然数)で前記副走査方向とは反対方向にずらし、前記読み出した各閾値と
これに対応する各画素値との大小関係に応じてドットのオン・オフを順次判定して、前記
M値の階調数の画像データをN(M>N≧2)値の階調数の画像データに変換する画像処
理方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループが、アドレスの連続する
それぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1
次元的に記憶されており、
前記副走査方向の走査に対して、前記第1閾値行グループから第K閾値行グループに向
けて順に各閾値行グループの記憶された記憶領域を循環的に且つ繰り返し選択すると共に
、当該選択した各記憶領域に記憶された各グループの各行の閾値をその読出開始行から順
に、前記画像データの各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出
す閾値読出ステップと、
前記閾値読出ステップにおいて、前記各記憶領域からの前記閾値の読出処理が前記必要
な回数分行われる毎に、前記各記憶領域における読出開始行の位置をK−1行単位で順次
ずらす読出開始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、を含むことを特徴とする。
これにより、形態3の印刷装置と同等の作用及び効果が得られる。
[Mode 35] In order to achieve the above object, an image processing method according to mode 35 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH> DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the total column number width, For the arrangement before shifting, in units of K rows (K is DH / 2 ≧ K ≧ 2 and DH / K
(The remainder is a natural number of 0) and is shifted in the direction opposite to the sub-scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, An image processing method for converting the image data having the number of gradations of M value into image data having the number of gradations of N (M> N ≧ 2) values,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of xK), each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, has consecutive addresses. 1 in the order of arrangement of the threshold values in the reference dither matrix
Dimensionally remembered,
For the scanning in the sub-scanning direction, the storage areas stored in the respective threshold row groups are cyclically and repeatedly selected in order from the first threshold row group to the Kth threshold row group. A threshold value reading step for cyclically and repeatedly reading out the threshold value of each row of each group stored in the storage area, in order from the read start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading step, every time the threshold value is read out from each storage area for the required number of times, a read start position setting for sequentially shifting the position of the read start line in each storage area in units of K-1 lines. Steps,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on a determination result of the determination processing step.
Thereby, the same operation and effect as those of the printing apparatus of mode 3 can be obtained.

〔形態36〕 また、上記目的を達成するために、形態36の画像処理方法は、
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対してK行単位(Kは、DH/2≧K≧2且つDH/K
の余りが0の自然数)で前記副走査方向とは反対方向にずらし、前記読み出した各閾値と
これに対応する各画素値との大小関係に応じてドットのオン・オフを順次判定して、前記
M値の階調数の画像データをN(M>N≧2)値の階調数の画像データに変換する画像処
理方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶されており、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出ステップと、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新ステップと、
前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記各記憶領域に記
憶される毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、を含むことを特徴とする。
これにより、形態4の印刷装置と同等の作用及び効果が得られる。
[Mode 36] In order to achieve the above object, an image processing method according to mode 36 includes:
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH <DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the entire column width, after the shift For the arrangement before shifting, in units of K rows (K is DH / 2 ≧ K ≧ 2 and DH / K
(The remainder is a natural number of 0) and is shifted in the direction opposite to the sub-scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, An image processing method for converting the image data having the number of gradations of M value into image data having the number of gradations of N (M> N ≧ 2) values,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of × K), the image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively. The threshold rows for one processing target row are stored one-dimensionally in separate storage areas with consecutive addresses,
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Steps,
Each time the threshold value is read out from each storage area for the scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete unnecessary threshold rows for the processing target row, and select each of the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, A threshold update step of sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting step of sequentially shifting the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area in the threshold update step; ,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on a determination result of the determination processing step.
Thereby, the same operation and effect as those of the printing apparatus of aspect 4 can be obtained.

〔形態37〕 更に、形態37の画像処理方法は、形態35又は36の画像処理方法に
おいて、
前記第1〜第K閾値行グループの各閾値行グループの先頭行から順に、行毎に、各行の
先頭の閾値から各行の最後尾の閾値まで順に各閾値行グループの閾値が1つずつ、第1閾
値行グループのものから第K閾値行グループのものに向けて順に並んでアドレスの連続す
る1つの記憶領域に記憶されており、
前記閾値読出ステップは、前記副走査方向の走査に対して、前記各記憶領域に並べて記
憶された前記各閾値行グループの閾値の読出開始位置を、1つ前の読出開始位置に対して
前記並び順に1つずつずらすと共に、前記主査方向の走査に対して、前記記憶領域に記憶
された前記閾値を、前記読出開始位置からK個ずつスキップしながら、前記画像データの
各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出し、
前記読出開始位置設定ステップは、前記閾値読出ステップにおいて、前記記憶領域に記
憶された前記第1〜第K閾値行グループの前記閾値に対して、前記必要な回数分の読み出
しを行う毎に、前記各記憶領域における前記読出開始位置をK−1行単位で順次ずらすこ
とを特徴とする。
これにより、形態5の印刷装置と同等の作用及び効果が得られる。
[Mode 37] Furthermore, the image processing method of mode 37 is the same as the image processing method of mode 35 or 36,
In order from the first row of each threshold row group of the first to Kth threshold row groups, for each row, the threshold value of each threshold row group is one by one from the first threshold value of each row to the last threshold value of each row, Stored in one storage area in which addresses are arranged in order from one threshold row group to that of the Kth threshold row group,
In the threshold value reading step, the threshold value reading start positions of the threshold value row groups stored side by side in the storage areas are scanned with respect to the scanning in the sub-scanning direction with respect to the previous reading start position. Necessary for the determination process for each row of the image data while sequentially shifting the threshold values stored in the storage area one by one from the read start position while shifting by one in order. Read out cyclically and repeatedly as many times as possible,
In the reading start position setting step, in the threshold reading step, the reading of the necessary number of times is performed on the thresholds of the first to Kth threshold row groups stored in the storage area. The read start position in each storage area is sequentially shifted in units of K-1 rows.
Thereby, an operation and effect equivalent to that of the printing apparatus of mode 5 can be obtained.

〔形態38〕 更に、形態38の画像処理方法は、形態35乃至37のいずれか1の画
像処理方法において、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類する閾値行分類ステップを含むことを特徴とする。
これにより、形態6の印刷装置と同等の作用及び効果が得られる。
[Mode 38] Furthermore, the image processing method according to mode 38 is the image processing method according to any one of modes 35 to 37, wherein
The threshold values of the first to DH rows constituting the reference dither matrix are set as (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) A threshold row classification step for classifying into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, according to the rule of 1) × K).
Thereby, the same operation and effect as those of the printing apparatus of mode 6 can be obtained.

〔第1の実施の形態〕
以下、本発明の第1の実施の形態を図面に基づき説明する。図1〜図18は、本発明に
係る印刷装置、印刷装置制御プログラム、印刷装置制御方法、画像処理装置、画像処理プ
ログラム及び画像処理方法、並びに前記プログラムを記憶した記憶媒体の第1の実施の形
態を示す図である。
[First Embodiment]
A first embodiment of the present invention will be described below with reference to the drawings. 1 to 18 show a printing apparatus, a printing apparatus control program, a printing apparatus control method, an image processing apparatus, an image processing program and an image processing method, and a storage medium storing the program according to the first embodiment of the invention. It is a figure which shows a form.

まず、本発明の第1の実施の形態に係る印刷装置の構成を図1に基づき説明する。図1
は、本発明の第1の実施の形態に係る印刷装置1の構成を示すブロック図である。
印刷装置1は、図1に示すように、外部機器等からM値(M≧3)の階調数を有する画
像データを取得する画像データ取得部10と、当該取得した画像データを記憶する画像デ
ータ記憶部11と、当該記憶された画像データに対して、ディザ法を用いたN値化処理等
の画像処理を施してM値の階調数の画像データをN値の階調数の画像データに変換する画
像処理部12と、ディザマトリックスを記憶するディザマトリックス記憶部13と、変換
後の画像データに基づき印刷データを生成する印刷データ生成部14と、印刷データに基
づき印刷処理を実行する印刷部15とを含んだ構成となっている。
First, the configuration of the printing apparatus according to the first embodiment of the present invention will be described with reference to FIG. FIG.
1 is a block diagram illustrating a configuration of a printing apparatus 1 according to a first embodiment of the present invention.
As illustrated in FIG. 1, the printing apparatus 1 includes an image data acquisition unit 10 that acquires image data having an M value (M ≧ 3) gradation number from an external device and the like, and an image that stores the acquired image data. The data storage unit 11 and the stored image data are subjected to image processing such as N-value conversion processing using a dither method, so that the image data having the M-value gradation number is converted into the image having the N-value gradation number. An image processing unit 12 that converts data, a dither matrix storage unit 13 that stores a dither matrix, a print data generation unit 14 that generates print data based on the converted image data, and print processing based on the print data The printing unit 15 is included.

画像データ取得部10は、印刷装置1と接続されたパソコン(PC)やプリンタサーバ
などの印刷指示装置(図示せず)から送られてくる印刷に供するM値の階調数の画像デー
タをネットワークなどを介して取得したり、あるいは図示しないスキャナやCD−ROM
ドライブなどの画像(データ)読込装置などから直接読み込んで取得したりする機能を提
供するようになっている。更に、前記取得した画像データに対して解像度変換処理及び色
変換処理を施す機能も有している。解像度変換処理は、前記取得した画像データを、印刷
解像度に合わせて解像度変換する処理である。また、色変換処理は、例えば、画像データ
がRGBの色空間で表現されたデータなどのようにCMYKの色空間データではない場合
に、CMYKの色空間データへと変換する処理である。
The image data acquisition unit 10 is a network that stores M-value gradation image data to be used for printing sent from a print instruction apparatus (not shown) such as a personal computer (PC) or a printer server connected to the printing apparatus 1. Or via a scanner or CD-ROM (not shown)
A function of directly reading and acquiring from an image (data) reading device such as a drive is provided. Further, it has a function of performing resolution conversion processing and color conversion processing on the acquired image data. The resolution conversion process is a process for converting the resolution of the acquired image data in accordance with the print resolution. The color conversion process is a process of converting image data into CMYK color space data when the image data is not CMYK color space data, such as data expressed in RGB color space.

画像データ記憶部11は、画像データ取得部10において取得し且つ解像度変換及び色
変換処理後のCMYKの画像データを、後述する記憶装置70の所定記憶領域に記憶する
機能を提供するようになっている。ここで、画像データは、画素値が2次元マトリックス
状(行数(縦幅)IH、列数(横幅)IW)に配列された構成となっている。
ディザマトリックス記憶部13は、画像データ取得部10で取得される画像データに共
通の、基準となるディザマトリックス(以下、基準ディザマトリックスと称す)を、後述
する記憶装置70の所定領域に記憶する機能を提供するようになっている。ここで、ディ
ザマトリックスは、所定の閾値データが、2次元マトリックス状(行数(縦幅)DH、列
数(横幅)DW)に配列された構成となっている。また、本実施の形態において、画像デ
ータと基準ディザマトリックスとは、「IH>DH」、「IW>DH」の関係となってい
る。
The image data storage unit 11 provides a function of storing CMYK image data obtained by the image data acquisition unit 10 and subjected to resolution conversion and color conversion processing in a predetermined storage area of a storage device 70 described later. Yes. Here, the image data has a configuration in which pixel values are arranged in a two-dimensional matrix (number of rows (vertical width) IH, number of columns (horizontal width) IW).
The dither matrix storage unit 13 has a function of storing a reference dither matrix (hereinafter referred to as a reference dither matrix) common to the image data acquired by the image data acquisition unit 10 in a predetermined area of the storage device 70 described later. Is supposed to provide. Here, the dither matrix has a configuration in which predetermined threshold data is arranged in a two-dimensional matrix (number of rows (vertical width) DH, number of columns (horizontal width) DW). In this embodiment, the relationship between the image data and the reference dither matrix is “IH> DH” and “IW> DH”.

印刷データ生成部14は、画像処理部12においてN値の階調数のデータに変換後の画
像データ(以下、N値化データと称す)に基づき、印刷部15において解釈可能な印刷用
のデータ(印刷データ)を生成する機能を提供するようになっている。
印刷部15は、CMYKの各色に対応するノズルモジュールが形成された印字ヘッドを
備え、印刷用紙などの印刷に用いる媒体(以下、印刷媒体と称す)または印字ヘッドの一
方、あるいは双方を移動させながら前記印字ヘッドに形成された前記ノズルモジュールか
らインクをそれぞれドット状に噴射して前記印刷媒体上に多数のドットからなる所定の画
像を形成するようにしたインクジェット方式のプリンタであり、前述した印字ヘッドの他
に、この印字ヘッドを印刷媒体上をその幅方向に往復移動させる図示しない印字ヘッド送
り機構(マルチパス型の場合)、前記印刷媒体を移動させるための図示しない紙送り機構
、前記印刷データに基づいて印字ヘッドのインクの吐出を制御する図示しない印字コント
ローラ機構などの公知の構成要素から構成されている。
The print data generation unit 14 is print data that can be interpreted by the printing unit 15 based on image data (hereinafter referred to as “N-valued data”) that has been converted into N-level gradation data by the image processing unit 12. A function for generating (print data) is provided.
The printing unit 15 includes a print head in which a nozzle module corresponding to each color of CMYK is formed, and moves one or both of a medium used for printing such as printing paper (hereinafter referred to as a print medium) and / or the print head. An ink jet printer configured to form a predetermined image composed of a large number of dots on the print medium by ejecting ink from the nozzle module formed on the print head in the form of dots, respectively. In addition, a print head feed mechanism (not shown) for reciprocating the print head on the print medium in the width direction (in the case of a multi-pass type), a paper feed mechanism (not shown) for moving the print medium, and the print data Well-known components such as a print controller mechanism (not shown) for controlling the ink discharge of the print head based on It is constructed from.

更に、図2に基づき、画像処理部12の詳細な構成を説明する。図2は、画像処理部1
2の詳細な機能構成を示すブロック図である。
画像処理部12は、図2に示すように、ディザ閾値分類部100と、ディザ閾値記憶部
102と、画素制御部104と、ディザ閾値メモリ制御部106と、ディザ処理部108
とを含んだ構成となっている。
Further, a detailed configuration of the image processing unit 12 will be described with reference to FIG. FIG. 2 shows an image processing unit 1
It is a block diagram which shows the 2 detailed functional structure.
As shown in FIG. 2, the image processing unit 12 includes a dither threshold classification unit 100, a dither threshold storage unit 102, a pixel control unit 104, a dither threshold memory control unit 106, and a dither processing unit 108.
It is configured to include.

ディザ閾値分類部100は、閾値データの記憶指示に応じて、ディザマトリックス記憶
部13に記憶された基準ディザマトリックスの各閾値データを、ディザ処理時のずらし量
に基づき、複数の閾値データのグループに分類する機能を提供するようになっている。但
し、閾値データの分類(グループ分け)は、基準ディザマトリックスの行単位で行われる
The dither threshold classification unit 100 divides each threshold data of the reference dither matrix stored in the dither matrix storage unit 13 into a plurality of groups of threshold data based on the shift amount at the time of dither processing in response to the threshold data storage instruction. A function to classify is provided. However, the threshold data classification (grouping) is performed in units of rows of the reference dither matrix.

ディザ閾値記憶部102は、後述する記憶装置70と比較して非常に高速なメモリを1
〜複数個有し、ディザ閾値分類部100で分類された閾値データのグループを、グループ
毎に別々のメモリに、且つ各メモリのアドレスの連続する記憶領域に基準ディザマトリッ
クスの配列順に従って記憶する機能を提供するようになっている。また、本実施の形態に
おいては、シングルモード及びマルチモードの2つのモードが選択可能となっている。こ
こで、シングルモードは、高速メモリが1つしかない場合や、高速メモリを1つしか使用
したくない場合などに有効なモードで、ずらし量が2行以上の場合でも、1つのメモリに
所定の順番で各閾値行グループを記憶することができる。一方、マルチモードは、ずらし
量に対応する個数の高速メモリを有している場合に使用できるモードで、各閾値行グルー
プを2個以上の高速メモリに別々に記憶することができる。
The dither threshold value storage unit 102 has a very high speed memory as compared with a storage device 70 described later.
A function of storing a plurality of threshold data groups classified by the dither threshold value classifying unit 100 in separate memories for each group and in a storage area where addresses of each memory are continuous according to the arrangement order of the reference dither matrix Is supposed to provide. In the present embodiment, two modes, a single mode and a multi mode, can be selected. Here, the single mode is effective when there is only one high-speed memory or when only one high-speed memory is used. Even when the shift amount is two lines or more, a single memory is predetermined. Each threshold row group can be stored in this order. On the other hand, the multi-mode is a mode that can be used when the number of high-speed memories corresponding to the shift amount is provided, and each threshold row group can be separately stored in two or more high-speed memories.

ここで、図3〜図5に基づき、本実施の形態のディザ処理について説明する。
図3は、DH6×DW6(6行×6列)の基準ディザマトリックスの一例を示す図であ
る。また、図4は、画像に対する、印刷時の印字ヘッドの位置、及び本実施の形態に係る
ディザ処理時の走査方向を示す図である。また、図5は、本実施の形態のディザ処理に係
るずらし量の説明図である。
Here, the dither processing of the present embodiment will be described with reference to FIGS.
FIG. 3 is a diagram illustrating an example of a reference dither matrix of DH6 × DW6 (6 rows × 6 columns). FIG. 4 is a diagram showing the position of the print head during printing and the scanning direction during dither processing according to the present embodiment with respect to the image. FIG. 5 is an explanatory diagram of the shift amount related to the dither processing of the present embodiment.

例えば、図3に示す、閾値a11〜a66の計36個の閾値データが2次元マトリック
ス状に配列された6行×6列の基準ディザマトリックスを用いてディザ処理を実行するこ
とを想定する。この基準ディザマトリックスを、例えば、図4に示すように、IH54×
IW48(54行×48列)の画像データに適用する場合は、画像データの各画素データ
及び基準ディザマトリックスの各閾値データ共に、図4中の実線の矢印線の方向(以下、
主走査方向と称す)に1つずつ順番に、且つ主走査方向の走査が各行の右端に到達する毎
に、図4中の点線で示すように、次の行且つその左端の方向(以下、副走査方向と称す)
に1行ずつ順番に走査しながら、それぞれ対応する画素データ及び閾値データの組を1組
ずつ選択してディザ処理を実行する。このような走査は、一般にラスタ走査と呼ばれる。
For example, it is assumed that the dither processing is executed using a reference dither matrix of 6 rows × 6 columns in which a total of 36 threshold value data of threshold values a11 to a66 shown in FIG. 3 are arranged in a two-dimensional matrix. This reference dither matrix is expressed as IH54 ×, for example, as shown in FIG.
When applied to IW48 (54 rows × 48 columns) image data, both the pixel data of the image data and the threshold data of the reference dither matrix are in the direction of the solid arrow line in FIG.
Each time the scanning in the main scanning direction reaches the right end of each row, as indicated by the dotted line in FIG. 4, the next row and its left end direction (hereinafter, (Referred to as sub-scanning direction)
While scanning one row at a time, each set of corresponding pixel data and threshold data is selected one by one and the dither processing is executed. Such scanning is generally called raster scanning.

前述したように、基準ディザマトリックスは、画像データよりもマトリックスサイズが
小さいため、図4に示す各マスのように、1つの画像データに対して、1つの基準ディザ
マトリックスを何度も繰り返し用いる必要がある。従って、本実施の形態では、上記画素
データ及び閾値データに対するラスタ走査に加え、基準ディザマトリックス全体をラスタ
走査と同様の方向にシフトさせながらディザ処理を実行する。
As described above, since the reference dither matrix has a smaller matrix size than the image data, it is necessary to repeatedly use one reference dither matrix for one image data as shown in FIG. There is. Therefore, in this embodiment, in addition to the raster scan for the pixel data and threshold data, the dither process is executed while shifting the entire reference dither matrix in the same direction as the raster scan.

但し、単純にシフトさせるだけでは、画像データの同一行に対して、同じ行(内容)の
閾値データが繰り返し用いられてしまうため画質が劣化する恐れがある。そこで、本実施
の形態においては、この繰り返しパターンによる画質劣化を防ぐために、図4に示すよう
に、基準ディザマトリックス全体を、画像データの横幅方向(右方向)に、その全幅分シ
フトする毎にそのシフト前後(左右)の基準ディザマトリックスの配置位置を、シフト後
の基準ディザマトリックスが、シフト前に対して所定行単位で副走査方向とは逆方向(図
4の例では上方向)にずれるようにする。なお、図4中の画像からはみ出した斜め点線部
分が基準ディザマトリックスのずれ位置となる。
However, if the shift is simply performed, the threshold data of the same line (content) is repeatedly used for the same line of the image data, so that the image quality may be deteriorated. Therefore, in this embodiment, every time the entire reference dither matrix is shifted by the entire width in the horizontal width direction (right direction) of the image data, as shown in FIG. The position of the reference dither matrix before and after the shift (left and right) shifts the reference dither matrix after the shift in the direction opposite to the sub-scanning direction (upward in the example of FIG. 4) in a predetermined row unit before the shift. Like that. Note that the oblique dotted line portion protruding from the image in FIG. 4 is the shift position of the reference dither matrix.

つまり、ずらし量をΔyとすると、図5に示すように、基準ディザマトリックスが幅方
向にシフトする毎に、シフト後の基準ディザマトリックスの位置が、シフト前に対してΔ
yだけ副走査方向とは逆方向に順次ずれる。言い換えると、基準ディザマトリックスが幅
方向にシフトする毎に、シフト後の基準ディザマトリックスに対する閾値データの選択開
始行が、シフト前に対して副走査方向にΔy行だけ順次ずれる。
That is, when the shift amount is Δy, as shown in FIG. 5, every time the reference dither matrix is shifted in the width direction, the position of the reference dither matrix after the shift is Δ
The y is sequentially shifted in the direction opposite to the sub scanning direction. In other words, every time the reference dither matrix shifts in the width direction, the threshold data selection start row for the shifted reference dither matrix is sequentially shifted by Δy rows in the sub-scanning direction before the shift.

図2に戻って、画素制御部104は、画像データ記憶部11によって記憶された画像デ
ータを、ラスタ走査によって1画素分のデータ(画素データ)ずつ順次読み出してディザ
処理部108に入力する処理を制御する機能を提供するようになっている。具体的には、
読み出し信号(アドレス情報及び読み出しコマンドを含む信号)を生成して、これを画像
データ記憶部11及びディザ閾値メモリ制御部106に出力する。
Returning to FIG. 2, the pixel control unit 104 performs a process of sequentially reading out the image data stored in the image data storage unit 11 for each pixel (pixel data) by raster scanning and inputting the data to the dither processing unit 108. The function to control is provided. In particular,
A read signal (a signal including address information and a read command) is generated and output to the image data storage unit 11 and the dither threshold memory control unit 106.

ディザ閾値メモリ制御部106は、ディザ閾値記憶部102に記憶された閾値データの
読み出しタイミング及び読み出し開始位置などを制御する機能を提供するようになってい
る。つまり、ディザ閾値記憶部102には、基準ディザマトリックス1つ分のデータしか
記憶されていないため、画像データの各行に対して閾値データを所定行単位でずらしなが
ら読み出すために、各メモリに記憶された閾値データの繰り返し読み出しや、画像データ
の行毎の読み出し開始位置の変更等のメモリからの閾値データの読み出し制御を行う。な
お、ディザ閾値メモリ制御部106は、画素制御部104からの読み出し信号によって、
画像データ記憶部11から画素データを読み出すタイミングと、ディザ閾値記憶部102
から閾値データを読み出すタイミングとを同期させるようになっている。
The dither threshold memory control unit 106 provides a function of controlling the reading timing and reading start position of threshold data stored in the dither threshold storage unit 102. That is, since only the data for one reference dither matrix is stored in the dither threshold value storage unit 102, the threshold value data is stored in each memory in order to read out the data in a predetermined row unit with respect to each row of the image data. The threshold data is read out from the memory such as repeatedly reading out the threshold data and changing the reading start position for each row of the image data. Note that the dither threshold memory control unit 106 uses the readout signal from the pixel control unit 104 to
Timing for reading out pixel data from the image data storage unit 11 and a dither threshold storage unit 102
The timing for reading out the threshold data from is synchronized with the timing.

ディザ処理部108は、画素データと、これに対応する閾値とを比較してその大小関係
に基づき、当該画素データに対してドットを形成するか否かを判定する。そして、この判
定結果に基づき、M値の階調数の画素データをN値の階調数のデータ(以下、N値化デー
タと称す)に変換する。そして、このN値化データを印刷データ生成部14に出力する。
更に、図6に基づき、ディザ処理部108の詳細な構成を説明する。ここで、図6は、
ディザ処理部108の詳細構成を示すブロック図である。
The dither processing unit 108 compares the pixel data with the corresponding threshold value and determines whether or not to form a dot for the pixel data based on the magnitude relationship. Then, based on the determination result, the pixel data having the M-value gradation number is converted into data having the N-value gradation number (hereinafter referred to as N-valued data). Then, the N-value data is output to the print data generation unit 14.
Further, a detailed configuration of the dither processing unit 108 will be described with reference to FIG. Here, FIG.
3 is a block diagram showing a detailed configuration of a dither processing unit 108. FIG.

図6に示すように、ディザ処理部108は、判定処理部108aと、N値化部108b
とを含んだ構成となっている。
判定処理部108aは、画像データ記憶部11から入力された画素データの示す画素値
(濃度値)と、ディザ閾値記憶部102から入力された閾値データの示す閾値とを比較し
、前記画素値が前記閾値以上であったときに、当該画素値に対してドットを形成すると判
定し、前記画素値が前記閾値未満であったときに、当該画素値に対してドットを形成しな
いと判定する。そして、この判定結果を、N値化部108bに出力する。
As shown in FIG. 6, the dither processing unit 108 includes a determination processing unit 108a and an N-value conversion unit 108b.
It is configured to include.
The determination processing unit 108a compares the pixel value (density value) indicated by the pixel data input from the image data storage unit 11 with the threshold value indicated by the threshold data input from the dither threshold value storage unit 102, and the pixel value is When the threshold value is equal to or greater than the threshold value, it is determined that a dot is formed for the pixel value. When the pixel value is less than the threshold value, it is determined that no dot is formed for the pixel value. Then, the determination result is output to the N-value conversion unit 108b.

N値化部108bは、判定処理部108aから入力された判定結果に基づき、ドットを
形成すると判定されたときは、画素値を所定値に変換し、ドットを形成しないと判定され
たときは「0」に変換する。
例えば、印刷部15が単一サイズのドットを形成する印字ヘッドを有している構成の場
合は、M値の階調数の画素データを2値(N=2)の階調数のデータへと変換する。つま
り、ドットを形成すると判定されたときはその画素値を、例えば「255」に変換し、ド
ットを形成しないと判定されたときはその画素値を、例えば「0」に変換する。
The N-value conversion unit 108b converts the pixel value into a predetermined value when it is determined to form a dot based on the determination result input from the determination processing unit 108a, and when it is determined that the dot is not formed, “N”. 0 ".
For example, in the case where the printing unit 15 has a print head that forms dots of a single size, the pixel data of the M number of gradations is changed to data of the gradation number of binary (N = 2). And convert. That is, when it is determined that a dot is to be formed, the pixel value is converted to, for example, “255”, and when it is determined that a dot is not to be formed, the pixel value is converted, for example, to “0”.

なお、印刷部15が複数サイズのドットを形成する印字ヘッドを有している構成の場合
は、ドットを形成すると判定されたときは、画素値をサイズに応じた数値へと変換する。
ここで、印刷装置1は、前記画像データ取得部10、画像処理部12、印刷データ生成
部14、印刷部15などをソフトウェア上で実現するためのコンピュータシステムを備え
ており、そのハードウェア構成は、図7に示すように、各種制御や演算処理を担う中央演
算処理装置であるCPU(Central Processing Unit)60と、
主記憶装置(Main Storage)を構成するRAM(Random Acces
s Memory)62と、読み出し専用の記憶装置であるROM(Read Only
Memory)64との間をPCI(Peripheral Component I
nterconnect)バスやISA(Industrial Standard A
rchitecture)バス等からなる各種内外バス68で接続すると共に、このバス
68に入出力インターフェース(I/F)66を介して、HDD(Hard Disk
Drive)などの外部記憶装置(Secondary Storage)70や、印刷
部15やCRT、LCDモニター等の出力装置72、操作パネルやマウス、キーボード、
スキャナなどの入力装置74、および図示しない印刷指示装置などと通信するためのネッ
トワークLなどを接続したものである。
In the case where the printing unit 15 includes a print head that forms dots of a plurality of sizes, when it is determined that dots are to be formed, the pixel value is converted into a numerical value corresponding to the size.
Here, the printing apparatus 1 includes a computer system for realizing the image data acquisition unit 10, the image processing unit 12, the print data generation unit 14, the printing unit 15 and the like on software, and the hardware configuration thereof is As shown in FIG. 7, a central processing unit (CPU) 60 that is a central processing unit that performs various controls and arithmetic processing,
RAM (Random Access) that constitutes the main storage (Main Storage)
s Memory) 62 and a read-only storage device ROM (Read Only)
Memory (Memory) 64 and PCI (Peripheral Component I)
interconnector) bus and ISA (Industrial Standard A)
In addition to being connected by various internal and external buses 68 such as an architecture bus, an HDD (Hard Disk) is connected to the bus 68 via an input / output interface (I / F) 66.
External storage device (Secondary Storage) 70 such as Drive), output device 72 such as printing unit 15, CRT, LCD monitor, operation panel, mouse, keyboard,
An input device 74 such as a scanner and a network L for communicating with a print instruction device (not shown) are connected.

そして、電源を投入すると、ROM64等に記憶されたBIOS等のシステムプログラ
ムが、ROM64に予め記憶された各種専用のコンピュータプログラム、あるいは、CD
−ROMやDVD−ROM、フレキシブルディスク(FD)などの記憶媒体を介して、ま
たはインターネットなどの通信ネットワークLを介して記憶装置70にインストールされ
た各種専用のコンピュータプログラムを同じくRAM62にロードし、そのRAM62に
ロードされたプログラムに記述された命令に従ってCPU60が各種リソースを駆使して
所定の制御および演算処理を行うことで前述したような各部の各機能を実現できるように
なっている。
When the power is turned on, a system program such as BIOS stored in the ROM 64 or the like is stored in various dedicated computer programs stored in the ROM 64 in advance or a CD.
-Various dedicated computer programs installed in the storage device 70 via the storage medium such as ROM, DVD-ROM, flexible disk (FD) or the like via the communication network L such as the Internet are similarly loaded into the RAM 62. Each function of each unit as described above can be realized by the CPU 60 performing predetermined control and arithmetic processing using various resources in accordance with instructions described in a program loaded in the RAM 62.

更に、図8に基づき、印刷装置1の印刷処理の流れを説明する。ここで、図8は、印刷
装置1における印刷処理を示すフローチャートである。
印刷処理は、図8に示すように、まずステップS100に移行し、画像データ取得部1
0において、ネットワークケーブルLを介して接続された外部装置からの印刷指示情報が
送られてくることにより、あるいは入力装置74を介して印刷指示情報が入力されたこと
により、印刷指示があったか否かを判定し、印刷指示があったと判定された場合(Yes)は
ステップS102に移行し、そうでない場合(No)は印刷指示があるまで判定処理を繰り返
す。
Furthermore, the flow of the printing process of the printing apparatus 1 will be described with reference to FIG. Here, FIG. 8 is a flowchart showing a printing process in the printing apparatus 1.
As shown in FIG. 8, the printing process first proceeds to step S <b> 100 and the image data acquisition unit 1.
0, whether or not there has been a print instruction because print instruction information is sent from an external device connected via the network cable L or because print instruction information is input via the input device 74 If it is determined that there is a print instruction (Yes), the process proceeds to step S102. If not (No), the determination process is repeated until there is a print instruction.

ステップS102に移行した場合は、画像データ取得部10において、印刷指示に対応
する画像データを、上記したように、外部装置、CD−ROM、DVD−ROM等の記録
媒体、HDD等の記憶装置70などから取得してステップS104に移行する。
ステップS104では、画像データ取得部10において、ステップS102で取得した
画像データを解像度変換及び色変換して画像データ記憶部11に記憶してステップS10
6に移行する。
When the process proceeds to step S102, the image data acquisition unit 10 outputs the image data corresponding to the print instruction to the external device, a recording medium such as a CD-ROM or a DVD-ROM, and a storage device 70 such as an HDD as described above. And the process proceeds to step S104.
In step S104, the image data acquisition unit 10 performs resolution conversion and color conversion on the image data acquired in step S102 and stores it in the image data storage unit 11, and then stores the image data in step S10.
Move to 6.

ステップS106では、CPU60において、画像処理部12に対してディザ処理の実
行コマンドを送信して、画像処理部12にディザ処理を実行させてステップS108に移
行する。
ステップS108では、印刷データ生成部14において、画像処理部12からN値化デ
ータを取得したか否かを判定し、取得したと判定された場合(Yes)は、ステップS110
に移行し、そうでない場合(No)は、取得するまで判定処理を繰り返す。
ステップS110に移行した場合は、印刷データ生成部14において、ステップS10
8で取得したN値化データに基づき、印刷データを生成してステップS112に移行する
In step S106, the CPU 60 transmits a dither processing execution command to the image processing unit 12, causing the image processing unit 12 to execute the dither processing, and the process proceeds to step S108.
In step S108, the print data generation unit 14 determines whether or not N-valued data has been acquired from the image processing unit 12. If it is determined that it has been acquired (Yes), step S110 is performed.
If not (No), the determination process is repeated until acquisition.
When the process proceeds to step S110, the print data generation unit 14 performs step S10.
Print data is generated based on the N-value data acquired in step 8, and the process proceeds to step S112.

ステップS112では、印刷データ生成部14において、ステップS102で取得した
画像データに対する印刷データが完成したか否かを判定し、完成したと判定された場合(Y
es)は、ステップS114に移行し、そうでない場合(No)は、ステップS108に移行す
る。
ステップS114に移行した場合は、印刷データ生成部14において、上記完成した印
刷データを印刷部15に出力してステップS116に移行する。
ステップS116では、印刷部15において、印刷データ生成部14から入力された印
刷データに基づき、印刷処理を実行して処理を終了する。
In step S112, the print data generation unit 14 determines whether or not the print data for the image data acquired in step S102 is complete. If it is determined that the print data is complete (Y
es) proceeds to step S114, otherwise (No) proceeds to step S108.
When the process proceeds to step S114, the print data generation unit 14 outputs the completed print data to the printing unit 15, and the process proceeds to step S116.
In step S116, the printing unit 15 executes a printing process based on the print data input from the print data generation unit 14, and ends the process.

更に、図9に基づき、ステップS106のディザ処理の流れを説明する。ここで、図9
は、ディザ処理を示すフローチャートである。
ディザ処理が開始されると、図9に示すように、まずステップS200に移行し、ディ
ザ閾値メモリ制御部106において、ディザ閾値記憶部102の高速メモリに対する閾値
データの参照位置のポインタを算出してステップS202に移行する。
ステップS202では、ディザ閾値メモリ制御部106において、ステップS200で
算出した参照位置のポインタをセットしてステップS204に移行する。
Furthermore, based on FIG. 9, the flow of the dither process in step S106 will be described. Here, FIG.
These are flowcharts showing the dither processing.
When the dither processing is started, as shown in FIG. 9, first, the process proceeds to step S200, where the dither threshold memory control unit 106 calculates a pointer of the reference position of threshold data for the high-speed memory of the dither threshold storage unit 102. The process proceeds to step S202.
In step S202, the dither threshold memory control unit 106 sets the pointer of the reference position calculated in step S200, and the process proceeds to step S204.

ステップS204では、画像データ記憶部11において、画素制御部104からの読み
出しタイミング信号に応じて、画素データを読み出し、ディザ処理部108に対して読み
出した画素データを入力してステップS206に移行する。
ステップS206では、ディザ閾値記憶部102において、ディザ閾値メモリ制御部1
06からの指示に応じて、ステップS202でセットされたポインタの閾値データを、デ
ィザ処理部108に入力してステップS208に移行する。
ステップS208では、ディザ処理部108において、ステップS204で入力された
画素データと、ステップS206で入力された閾値データを用いてディザ処理を実行し、
M値の階調数の画素データを、N値の階調数の画素データに変換してステップS210に
移行する。
In step S204, the image data storage unit 11 reads the pixel data in accordance with the read timing signal from the pixel control unit 104, inputs the read pixel data to the dither processing unit 108, and proceeds to step S206.
In step S206, the dither threshold value memory control unit 1 executes the dither threshold value memory control unit 1.
In response to the instruction from 06, the threshold value data of the pointer set in step S202 is input to the dither processing unit 108, and the process proceeds to step S208.
In step S208, the dither processing unit 108 performs dither processing using the pixel data input in step S204 and the threshold data input in step S206.
The pixel data having the M-value gradation number is converted into pixel data having the N-value gradation number, and the process proceeds to step S210.

ステップS210では、ディザ処理部108において、印刷対象の画像データの全ての
画素データに対してディザ処理を終了したか否かを判定し、終了したと判定された場合(Y
es)は、ステップS212に移行し、そうでない場合(No)は、ステップS200に移行す
る。
ステップS212に移行した場合は、ディザ処理部212において、ディザ処理の結果
(N値化データ)を、印刷データ生成部14に出力し、一連の処理を終了して元の処理に
復帰する。
In step S210, the dither processing unit 108 determines whether or not the dither processing has been completed for all the pixel data of the image data to be printed. If it is determined that the dither processing has ended (Y
es) proceeds to step S212, otherwise (No) proceeds to step S200.
When the process proceeds to step S212, the dither processing unit 212 outputs the dither processing result (N-valued data) to the print data generation unit 14, ends the series of processing, and returns to the original processing.

更に、図10に基づき、基準ディザマトリックスの分類及び記憶処理の流れを説明する
。ここで、図10は、基準ディザマトリックスの分類処理及び記憶処理を示すフローチャ
ートである。
分類処理及び記憶処理は、図10に示すように、まずステップS300に移行し、ディ
ザ閾値分類部100において、基準ディザマトリックスの記憶指示があったか否かを判定
し、あったと判定された場合(Yes)は、ステップS302に移行し、そうでない場合(No)
は、指示があるまで判定処理を繰り返す。
Further, the flow of classification and storage processing of the reference dither matrix will be described with reference to FIG. Here, FIG. 10 is a flowchart showing the reference dither matrix classification processing and storage processing.
As shown in FIG. 10, in the classification process and the storage process, first, the process proceeds to step S300, where the dither threshold classification unit 100 determines whether or not there is an instruction to store the reference dither matrix, and if it is determined (Yes) ) Goes to step S302, otherwise (No)
Repeats the determination process until instructed.

ステップS302に移行した場合は、ディザ閾値分類部100において、ディザマトリ
ックス記憶部13によって記憶された、ディザ処理に用いる基準ディザマトリックスを読
み出してステップS304に移行する。
ステップS304では、ディザ閾値分類部100において、基準ディザマトリックスの
ずらし量は1(行)か否かを判定し、1であると判定された場合(Yes)は、前記読み出し
た基準ディザマトリックスをディザ閾値記憶部102に伝送して、ステップS306に移
行し、そうでない場合(No)は、ステップS308に移行する。
When the process proceeds to step S302, the dither threshold classifying unit 100 reads the reference dither matrix used for the dither process stored in the dither matrix storage unit 13, and the process proceeds to step S304.
In step S304, the dither threshold value classification unit 100 determines whether or not the shift amount of the reference dither matrix is 1 (row). It transmits to the threshold value memory | storage part 102, and it transfers to step S306, and when that is not right (No), it transfers to step S308.

ステップS306に移行した場合は、ディザ閾値記憶部102において、前記伝送され
た基準ディザマトリックスを、1つの高速メモリにおけるアドレスの連続する記憶領域に
、その閾値データの配列順に従って記憶してステップS300に移行する。
一方、ステップS304において、ずらし量が1ではなくステップS308に移行した
場合は、ディザ閾値分類部100において、分類法則「(i(i=1,2,・・・,K−
1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−1)×K)」に
基づいて、前記読み出した基準ディザマトリックスの各閾値行データを、複数のグループ
に分類し、分類した各閾値データをディザ閾値記憶部102に伝送してステップS310
に移行する。ここで、上記法則における、Kはずらし量である。
When the process proceeds to step S306, the dither threshold value storage unit 102 stores the transmitted reference dither matrix in a continuous storage area of addresses in one high-speed memory according to the arrangement order of the threshold data, and the process proceeds to step S300. Transition.
On the other hand, if the shift amount is not 1 in step S304 and the process proceeds to step S308, the dither threshold value classification unit 100 determines that the classification rule “(i (i = 1, 2,..., K−)
1, K) + j (j = 0, 1,..., (DH / K) −2, (DH / K) −1) × K) ”, each threshold row of the read reference dither matrix. The data is classified into a plurality of groups, and each of the classified threshold data is transmitted to the dither threshold storage unit 102, and step S310 is performed.
Migrate to Here, in the above law, K is a shift amount.

ステップS310では、ディザ閾値記憶部102において、記憶モードがシングルモー
ドか否かを判定し、シングルモードである場合(Yes)は、ステップS312に移行し、そ
うでない場合(マルチモードである場合)は、ステップS314に移行する。
ステップS312に移行した場合は、ディザ閾値記憶部102において、1つの高速メ
モリのアドレスの連続する記憶領域に、前記伝送された複数の閾値行のグループ(以下、
閾値行グループと称す)の各閾値データを所定の順番で記憶して、ステップS300に移
行する。具体的に、所定の順番に記憶とは、各グループの各先頭行から順に、各1つずつ
順番に閾値データを選択していくと共に、当該選択した各1つの閾値データをグループの
順(1〜Kの順)に並べながら記憶していく。
In step S310, the dither threshold value storage unit 102 determines whether or not the storage mode is the single mode. If the storage mode is the single mode (Yes), the process proceeds to step S312; otherwise (if the mode is the multimode). The process proceeds to step S314.
When the process proceeds to step S312, the dither threshold value storage unit 102 stores the plurality of threshold value row groups (hereinafter referred to as the following) in a continuous storage area of one high-speed memory address.
Each threshold value data (referred to as a threshold row group) is stored in a predetermined order, and the process proceeds to step S300. Specifically, storing in a predetermined order means that threshold data is selected one by one in order from the first row of each group, and each selected threshold data is stored in group order (1 -K) in order).

一方、ステップS310において、指定された記憶モードがマルチモードでありステッ
プS314に移行した場合は、ディザ閾値記憶部102において、ずらし量と同数の高速
メモリに、分類された各閾値行グループを、それぞれ別々に、且つ基準ディザマトリック
スの配列順に従って記憶して、ステップS300に移行する。
次に、図11〜図18に基づき、本実施の形態の動作を説明する。
On the other hand, if the designated storage mode is the multi-mode in step S310 and the process proceeds to step S314, the dither threshold value storage unit 102 stores the classified threshold row groups in the same number of high-speed memories as the shift amount. The data is stored separately and in accordance with the arrangement order of the reference dither matrix, and the process proceeds to step S300.
Next, the operation of the present embodiment will be described with reference to FIGS.

ここで、図11は、ずらし量1のときの基準ディザマトリックスの画像上の配置例を示
す図である。また、図12は、ずらし量1のときの基準ディザマトリックスの記憶構成の
一例を示す図である。また、図13は、ずらし量1のときの参照ポインタの算出処理を示
すフローチャートである。また、図14は、ずらし量2のときの基準ディザマトリックス
の画像上の配置例を示す図である。また、図15は、ずらし量2のときのマルチモードに
おける基準ディザマトリックスの記憶構成の一例を示す図である。また、図16は、ずら
し量2のときのマルチモードにおける参照ポインタの算出処理を示すフローチャートであ
る。また、図17は、ずらし量2のときのシングルモードにおける基準ディザマトリック
スの記憶構成の一例を示す図である。また、図18は、ずらし量2のときのシングルモー
ドにおける参照ポインタの算出処理を示すフローチャートである。
Here, FIG. 11 is a diagram illustrating an arrangement example of the reference dither matrix on the image when the shift amount is 1. FIG. FIG. 12 is a diagram showing an example of the storage configuration of the reference dither matrix when the shift amount is 1. FIG. 13 is a flowchart showing reference pointer calculation processing when the shift amount is 1. FIG. 14 is a diagram illustrating an arrangement example of the reference dither matrix on the image when the shift amount is 2. FIG. 15 is a diagram showing an example of the storage configuration of the reference dither matrix in the multi mode when the shift amount is 2. FIG. 16 is a flowchart showing reference pointer calculation processing in the multi-mode when the shift amount is 2. FIG. 17 is a diagram showing an example of the storage configuration of the reference dither matrix in the single mode when the shift amount is 2. FIG. 18 is a flowchart showing reference pointer calculation processing in the single mode when the shift amount is 2.

ここでは、画像処理部12のディザ処理部108において、前述した図3に示す6行×
6列(DH=6、DW=6)の基準ディザマトリックスを用いるとする。
印刷装置1は、画像データ取得部10において、外部装置等から印刷指示情報を受信す
ると(ステップS100)、当該印刷指示情報に対応するM値の階調数の画像データを、
印刷指示情報の送信元である外部装置等から取得し(ステップS102)、当該取得した
画像データに対して、必要に応じて解像度変換処理及び色変換処理を施し、当該処理後の
画像データを画像データ記憶部11によって記憶装置70の所定領域に記憶する(ステッ
プS104)。印刷装置1は、画像データ記憶部11によって画像データが記憶されると
、次に、画像処理部12に対して、ディザ処理の開始コマンドを送信してディザ処理を実
行させる(ステップS106)。なお、画像処理部12が、画像データが記憶されたこと
を検知してコマンドを受けずにディザ処理を実行する構成としても良い。
Here, in the dither processing unit 108 of the image processing unit 12, the above described 6 rows × 3 shown in FIG.
It is assumed that a reference dither matrix having 6 columns (DH = 6, DW = 6) is used.
When the printing apparatus 1 receives printing instruction information from an external apparatus or the like in the image data acquisition unit 10 (step S100), the printing apparatus 1 obtains M-value gradation number image data corresponding to the printing instruction information.
Obtained from an external device or the like that is the transmission source of the print instruction information (step S102), performs resolution conversion processing and color conversion processing on the acquired image data as necessary, and outputs the processed image data to an image Data is stored in a predetermined area of the storage device 70 by the data storage unit 11 (step S104). When the image data is stored in the image data storage unit 11, the printing apparatus 1 next transmits a dither processing start command to the image processing unit 12 to execute the dither processing (step S106). Note that the image processing unit 12 may detect the storage of the image data and execute the dither process without receiving a command.

まず、図11〜図13に基づき、ずらし量1で基準ディザマトリックスをシフトしてい
く場合のディザ処理の動作を説明する。
まず、ディザ処理の実行前に、基準ディザマトリックスを、ずらし量に応じた構成で、
ディザ閾値記憶部102の高速メモリに記憶する必要があるので、印刷装置1は、ディザ
閾値分類部100に基準ディザマトリックスの記憶指示を与える。この記憶指示には、基
準ディザマトリックスの構成、ずらし量の情報当が含まれている。この記憶指示に含まれ
る情報から、基準ディザマトリックスの構成が前述した図3と同じ構成で、ずらし量は1
(即ち図11に示すように1行単位で順次ずらしていく)ということが解る。
First, the operation of the dither process when shifting the reference dither matrix by the shift amount 1 will be described with reference to FIGS.
First, before executing the dither process, the reference dither matrix is configured according to the shift amount.
Since it is necessary to store in the high-speed memory of the dither threshold value storage unit 102, the printing apparatus 1 gives the dither threshold value classification unit 100 an instruction to store the reference dither matrix. This storage instruction includes the configuration of the reference dither matrix and information on the shift amount. From the information included in this storage instruction, the reference dither matrix has the same structure as that shown in FIG.
(In other words, as shown in FIG. 11, the data is sequentially shifted in units of one line).

従って、ディザ閾値分類部100は、記憶指示が与えられると(ステップS300の「
Yes」の分岐)、まずディザマトリックス記憶部13から、ディザ処理に用いる基準デ
ィザマトリックスを読み出す(ステップS302)。ずらし量は1行(K=1)であるの
で、ディザ閾値分類部100は、分類処理を行わずに前記読み出した基準ディザマトリッ
クスをディザ閾値記憶部102に伝送する(ステップS304の「Yes」の分岐)。
Therefore, the dither threshold value classification unit 100 is given a storage instruction (“
First, a reference dither matrix used for dither processing is read from the dither matrix storage unit 13 (step S302). Since the shift amount is one row (K = 1), the dither threshold value classification unit 100 transmits the read reference dither matrix to the dither threshold value storage unit 102 without performing the classification process (“Yes” in step S304). Branch).

ディザ閾値記憶部102は、ディザ閾値分類部100から伝送された基準ディザマトリ
ックスを、その配列順に、1つの高速メモリのアドレスの連続する記憶領域に順番に記憶
する(ステップS306)。具体的に、図12に示すように、先頭アドレスからアドレス
の順番に、第1行目のa11〜a16を順番に記憶し、次に第2行目のa21〜a26、
・・・、第6行目のa61〜a66をそれぞれ順番に1次元的に記憶する。従って、閾値
a11のデータが、先頭アドレスの記憶領域に記憶され、閾値a66のデータが最後尾の
アドレスの記憶領域に記憶されることになる。
The dither threshold value storage unit 102 sequentially stores the reference dither matrix transmitted from the dither threshold value classification unit 100 in the storage area where the addresses of one high-speed memory are consecutive in the arrangement order (step S306). Specifically, as shown in FIG. 12, a11 to a16 in the first row are stored in order from the first address to the address, and then a21 to a26 in the second row,
... a61 to a66 in the sixth row are stored one-dimensionally in order. Therefore, the data of the threshold value a11 is stored in the storage area of the head address, and the data of the threshold value a66 is stored in the storage area of the last address.

つまり、閾値データの読み出しにおいては、リングバッファ構成を適用し、図12の中
央矢印線に示すように、参照ポインタからアドレスの順番に各閾値データを選択していき
、最後尾のアドレスに到達後は、先頭のアドレスへと戻って再びアドレスの順に選択する
。つまり、仮想的に先頭アドレスと最後尾アドレスとをリング状に接続し、各閾値データ
を循環的に且つ繰り返し読み出す。
そして、上記のように高速メモリに基準ディザマトリックスが記憶された状態で、ディ
ザ処理が開始されると、まず、ディザ閾値メモリ制御部106において、高速メモリに対
して閾値データを読み出すアドレス位置である参照ポインタを算出する(ステップS20
0)。
That is, in reading threshold data, a ring buffer configuration is applied, and each threshold data is selected in the order of addresses from the reference pointer, as shown by the center arrow line in FIG. 12, and after reaching the last address. Return to the first address and select again in the order of addresses. That is, the head address and the tail address are virtually connected in a ring shape, and each threshold value data is read cyclically and repeatedly.
When the dither processing is started in a state where the reference dither matrix is stored in the high speed memory as described above, first, the dither threshold memory control unit 106 is an address position for reading the threshold data from the high speed memory. A reference pointer is calculated (step S20).
0).

ずらし量が1のときの参照ポインタの算出処理が開始されると、まず、ディザ閾値メモ
リ制御部106において、現在ディザ処理途中か否かを判定する(ステップS400)。
この場合は、ディザ処理を開始したばかりなので(ステップS400の「No」の分岐)
、閾値データの読み出し開始ポインタを示す変数PLの値を「0」に初期化すると共に(
ステップS412)、画素位置を示す変数PPの値を「0」に初期化する(ステップS4
14)。初期化が終了すると、現在の画素位置が画像の先頭か否かを判定する(ステップ
S402)。この場合は、ディザ処理の開始直後なので、画像の先頭であると判定される
(ステップS402の「Yes」の分岐)。そして、画像の先頭位置(PP=0)を参照
ポインタとしてディザ閾値記憶部102に出力する(ステップS404)。つまり、画像
データの1行目の先頭画素に対して、高速メモリに対する閾値データの参照ポインタは、
画像の先頭画素と同じ、ポインタ(0)と算出される。
When the reference pointer calculation process when the shift amount is 1 is started, first, the dither threshold memory control unit 106 determines whether or not the current dither process is in progress (step S400).
In this case, since the dither process has just started ("No" branch in step S400).
, The value of the variable PL indicating the threshold value data reading start pointer is initialized to “0” (
In step S412), the value of the variable PP indicating the pixel position is initialized to “0” (step S4).
14). When the initialization is completed, it is determined whether or not the current pixel position is the head of the image (step S402). In this case, since it is immediately after the start of the dither processing, it is determined that it is the head of the image (“Yes” branch of step S402). Then, the head position (PP = 0) of the image is output as a reference pointer to the dither threshold value storage unit 102 (step S404). That is, for the first pixel in the first row of image data, the threshold data reference pointer for the high-speed memory is
The pointer (0), which is the same as the first pixel of the image, is calculated.

ここで、図12中の括弧で囲まれた数字は、ポインタ番号を示す。即ち、参照ポインタ
(0)の場合は、図12に示すように、高速メモリにおける、閾値データa11が記憶さ
れている先頭アドレスが、閾値データの読み出しアドレスとなる。
参照ポインタが算出されると、ディザ閾値記憶部102は、算出された参照ポインタを
セットして(ステップS202)、参照ポインタのアドレスに格納された閾値データを読
み出して、ディザ処理部108に入力する(ステップS206)。一方、画素制御部10
4は、前記閾値データの読み出し及び入力処理と同期して、画像の先頭の画素データを画
像データ記憶部11から読み出して、ディザ処理部108に入力する(ステップS204
)。
Here, the numbers in parentheses in FIG. 12 indicate pointer numbers. That is, in the case of the reference pointer (0), as shown in FIG. 12, the leading address where the threshold data a11 is stored in the high-speed memory is the threshold data read address.
When the reference pointer is calculated, the dither threshold value storage unit 102 sets the calculated reference pointer (step S202), reads the threshold value data stored at the address of the reference pointer, and inputs it to the dither processing unit 108. (Step S206). On the other hand, the pixel control unit 10
4 reads out the first pixel data of the image from the image data storage unit 11 and inputs it to the dither processing unit 108 in synchronization with the reading and input processing of the threshold data (step S204).
).

ディザ処理部108は、閾値データ及び画素データが入力されると、これら入力された
閾値データ及び画素データに対してディザ処理を実行する(ステップS208)。
ディザ処理が実行されると、ディザ処理部108は、判定処理部108aにおいて、入
力された閾値データと画素データとを比較し、画素データの示す画素値が閾値データの示
す閾値以上のときは、当該画素データに対してドットを形成すると判定し、閾値未満のと
きはドットを形成しないと判定する。次に、N値化部108bにおいて、判定処理部10
8aの判定結果から、ドットを形成すると判定されたときは画素値を印字ヘッドの形成す
るドットサイズに対応する値へと変換したN値化データを生成する。具体的に、印字ヘッ
ドが1種類のサイズのドットしか形成できないときは、そのドットサイズに対応する値か
、ドットを形成することを示す「1」などの値に画素値を変換してN値化データを生成す
る。一方、ドットを形成しないと判定されたときは画素値を「0」に変換したN値化デー
タを生成する。
When threshold data and pixel data are input, the dither processing unit 108 performs dither processing on the input threshold data and pixel data (step S208).
When the dither processing is executed, the dither processing unit 108 compares the input threshold data with the pixel data in the determination processing unit 108a, and when the pixel value indicated by the pixel data is equal to or greater than the threshold indicated by the threshold data, It is determined that dots are to be formed for the pixel data, and it is determined that dots are not formed when the pixel data is less than the threshold value. Next, in the N-value conversion unit 108b, the determination processing unit 10
If it is determined from the determination result of 8a that a dot is to be formed, N-valued data is generated by converting the pixel value to a value corresponding to the dot size formed by the print head. Specifically, when the print head can form only one type of dot, the pixel value is converted into a value corresponding to the dot size or a value such as “1” indicating formation of a dot, and an N value Generate data. On the other hand, when it is determined that no dot is to be formed, N-valued data in which the pixel value is converted to “0” is generated.

入力された閾値データ及び画素データに対するディザ処理が終了すると、画像データの
全ての画素データに対してディザ処理が終了したか否かを判定する(ステップS210)
。まだ、画像の先頭の画素データに対してしかディザ処理を行っていないので(ステップ
S210の「No」の分岐)、引き続き、次の画素データに対する参照ポインタの算出処
理を行う(ステップS200)。
When the dither processing for the input threshold data and pixel data is completed, it is determined whether or not the dither processing has been completed for all the pixel data of the image data (step S210).
. Since the dither processing is still performed only for the top pixel data of the image (“No” branch of step S210), the reference pointer calculation processing for the next pixel data is subsequently performed (step S200).

この場合、参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップ
S400の「Yes」の分岐)、且つ次の画素位置は先頭位置ではないと判定される(ス
テップS402の「No」の分岐)。このような判定がなされると、更に、読み出した閾
値データは画像の改行位置のものか否かを判定する(ステップS406)。画像データの
各行は、少なくとも18画素以上はあるので、改行位置ではないと判定される(ステップ
S406の「No」の分岐)。従って、PPの値に1を加算し(ステップS410)、加
算後の値(1)を参照ポインタとして出力する(ステップS404)。但し、PPの値は
35を上限とし、PPの値が35のときは、その値に「1」を加算せずにPPの値を「0
」とする。
In this case, in the reference pointer calculation process, it is determined that the dither process is in progress (“Yes” branch in step S400), and the next pixel position is determined not to be the head position (“No” in step S402). Branch). When such a determination is made, it is further determined whether or not the read threshold value data is at the line feed position of the image (step S406). Since each line of the image data has at least 18 pixels or more, it is determined that the line is not a line feed position ("No" branch in step S406). Therefore, 1 is added to the value of PP (step S410), and the value (1) after the addition is output as a reference pointer (step S404). However, the upper limit of the value of PP is 35. When the value of PP is 35, the value of PP is changed to “0” without adding “1” to the value.
"

参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。そして、ディザ処理が全ての画素データに対して終了するまで、ステップ
S200〜ステップS210の処理を繰り返す。
また、ステップS200〜ステップS210の処理を繰り返し行うことで、閾値データ
は、先頭アドレスからアドレス順に、a11〜a66に向かって1つずつ順番に読み出さ
れ、ディザ処理が実行される。また、参照ポインタが閾値データa66のポインタまで到
達すると、読み出し位置を循環的にa11のポインタに戻して再びアドレス順に閾値デー
タを読み出す。
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above. Then, the processes in steps S200 to S210 are repeated until the dither process is completed for all pixel data.
In addition, by repeatedly performing the processing from step S200 to step S210, the threshold data is read one by one from the top address in the order of addresses toward a11 to a66, and the dither processing is executed. When the reference pointer reaches the pointer of the threshold data a66, the reading position is cyclically returned to the pointer of a11, and the threshold data is read again in the order of addresses.

つまり、参照ポインタがa66のアドレス位置となった時点で、PPの値は35となっ
ているので、PPの値が35のときは、次の参照ポインタを「0」とするために、PPの
値に「1」を加算せずに、「0」に変更する(ステップS410)。このように、ポイン
タ(0)から(35)までの閾値データを順番に読み出し、次にポインタ(0)に戻って
、再び(35)まで順番に読み出す処理を、画像データの1行目の画素データに対して必
要な回数分繰り返し実行する。
That is, when the reference pointer reaches the address position a66, the value of PP is 35. When the value of PP is 35, in order to set the next reference pointer to “0”, the value of PP The value is changed to “0” without adding “1” to the value (step S410). In this way, the threshold data from the pointers (0) to (35) is read in order, and then the process of returning to the pointer (0) and sequentially reading up to (35) is performed again. Repeat as many times as necessary for the data.

そして、読み出した閾値データが画像データの改行位置(一番右端の画素位置)のもの
となると(ステップS406の「Yes」の分岐)、読み出し開始ポインタを示す変数P
Lの現在の値に、基準ディザマトリックスの横幅DW(6)を加算し、画素位置を示す変
数PPに、この加算後のPLの値を代入して(ステップS408)、この代入後のPPの
値を参照ポインタとして出力する(ステップS404)。但し、PLの値は30を上限と
し、PLの値が30のときは、その値にDWを加算せずにPLの値を「0」とする。
Then, when the read threshold data comes to the line feed position (rightmost pixel position) of the image data (“Yes” branch in step S406), the variable P indicating the read start pointer
The width DW (6) of the reference dither matrix is added to the current value of L, and the value of PL after the addition is substituted for the variable PP indicating the pixel position (step S408). The value is output as a reference pointer (step S404). However, the upper limit of the PL value is 30, and when the PL value is 30, the PL value is set to “0” without adding DW to the value.

つまり、画像データの2行目に対して、閾値データの読み出し開始位置は、参照ポイン
タ(6)となり、閾値データa21の記憶されたアドレス位置となる。この開始位置から
、上記同様に、ステップS200〜ステップS210の処理を繰り返し実行し、改行位置
となる毎に、開始位置を横幅DW分ずつずらしていくことで、画像データの各行に対して
、読み出し開始位置がポインタ(6)ずつずれていく。
That is, for the second line of the image data, the threshold data read start position is the reference pointer (6), which is the address position where the threshold data a21 is stored. Similarly to the above, the processing from step S200 to step S210 is repeatedly executed from this start position, and the start position is shifted by the horizontal width DW every time a line feed position is reached, thereby reading out each row of image data. The start position is shifted by the pointer (6).

つまり、上記したように、まず、読み出し開始ポインタから順に、閾値データを順番に
読み出す処理を、高速メモリの連続するアドレスに対して、循環的に且つ繰り返し実行す
る。更に、画像データの改行位置の画素データに対する閾値データが読み出される毎に、
読み出し開始ポインタの位置をDW分(基準ディザマトリックスの1行)ずつ循環的にず
らす。これにより、図11に示すように、基準ディザマトリックスを主走査方向にシフト
する毎に、そのシフト前後の基準ディザマトリックスの配置関係が、シフト前に対して、
シフト後が副走査方向とは反対方向に1行単位でずれた状態で閾値データの読み出しが順
次行われることになる。
That is, as described above, first, the process of reading the threshold data in order from the read start pointer is cyclically and repeatedly performed on consecutive addresses in the high-speed memory. Furthermore, each time threshold data for pixel data at the line feed position of image data is read,
The position of the read start pointer is cyclically shifted by DW (one line of the reference dither matrix). Thereby, as shown in FIG. 11, every time the reference dither matrix is shifted in the main scanning direction, the positional relationship of the reference dither matrix before and after the shift is
After the shift, the threshold value data is sequentially read out in a state where it is shifted in units of one row in the direction opposite to the sub-scanning direction.

このようにして、閾値データを読み出し、ディザ処理を実行して、全ての画素データに
対するディザ処理が終了すると(ステップS210の「Yes」の分岐)、ディザ処理結
果であるN値化データを、印刷データ生成部14に出力する(ステップS212)。
一方、印刷データ生成部14は、画像処理部12からN値化データが入力されると、当
該N値化データに基づき印刷データを生成する(ステップS110)。そして、取得した
画像データ分の印刷データを生成すると(ステップS112の「Yes」の分岐)、この
印刷データを印刷部15に出力する(ステップS114)。
印刷部15は、印刷データ生成部14から印刷データが入力されると、この印刷データ
に基づき印刷処理を実行する(ステップS116)。これにより、画像データの画像が所
定の印刷媒体に印刷された印刷物が印刷部15より出力される。
In this way, the threshold data is read out, the dither process is executed, and when the dither process for all the pixel data is completed (the branch of “Yes” in step S210), the N-valued data as the dither process result is printed. It outputs to the data generation part 14 (step S212).
On the other hand, when N-valued data is input from the image processing unit 12, the print data generation unit 14 generates print data based on the N-valued data (step S110). Then, when print data for the acquired image data is generated (“Yes” branch of step S112), this print data is output to the printing unit 15 (step S114).
When the print data is input from the print data generation unit 14, the print unit 15 executes a print process based on the print data (step S116). As a result, a printed matter in which an image of the image data is printed on a predetermined print medium is output from the printing unit 15.

次に、図14〜図16に基づき、ずらし量を2とし、且つ記憶モードをマルチモードに
した場合の動作について説明する。
ずらし量が2ということは、図14に示すように、基準ディザマトリックスを主走査方
向にシフトする毎に、そのシフト前後の基準ディザマトリックスの配置関係が、シフト前
に対して、シフト後が副走査方向とは反対方向に2行単位でずれた状態で閾値データの読
み出しが順次行われることになる。
また、ずらし量が2の場合(ステップS304の「No」の分岐)は、分類法則「(i
(i=1,2,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(
DH/K)−1)×K)」に基づいて、基準ディザマトリックスを分類する(ステップS
308)。
Next, the operation when the shift amount is 2 and the storage mode is the multi-mode will be described with reference to FIGS.
When the shift amount is 2, as shown in FIG. 14, every time the reference dither matrix is shifted in the main scanning direction, the positional relationship of the reference dither matrix before and after the shift is smaller than that before the shift. The threshold value data is sequentially read in a state shifted by two rows in the direction opposite to the scanning direction.
When the shift amount is 2 (“No” branch in step S304), the classification rule “(i
(I = 1, 2,..., K-1, K) + j (j = 0, 1,..., (DH / K) -2, (
DH / K) -1) × K) ", the reference dither matrix is classified (step S
308).

具体的には、ずらし量2の場合は、K=2となるので、基準ディザマトリックスを、i
=1のグループと、i=2のグループとに分類する。
つまり、図3に示す6行×6列の基準ディザマトリックスに対して、前記法則により、
i=1に対して(1+0×2=1,1+1×2=3,1+2×2=5)が、i=2に対し
て(2+0×2=2,2+1×2=4,2+2×2=6)がそれぞれ算出される。この算
出結果は、基準ディザマトリックスの(第1行目、第3行目、第5行目)の閾値データで
1つのグループを形成し、基準ディザマトリックスの(第2行目、第4行目、第6行目)
で1つのグループを形成することを意味する。
Specifically, when the shift amount is 2, K = 2, so that the reference dither matrix is i
= 1 group and i = 2 group.
That is, with respect to the 6 rows × 6 columns reference dither matrix shown in FIG.
(1 + 0 × 2 = 1, 1 + 1 × 2 = 3, 1 + 2 × 2 = 5) for i = 1, but (2 + 0 × 2 = 2, 2 + 1 × 2 = 4, 2 + 2 × 2 = for i = 2 6) are calculated respectively. This calculation result forms a group with the threshold data of (first row, third row, fifth row) of the reference dither matrix, and (second row, fourth row) of the reference dither matrix. , Line 6)
Means that one group is formed.

従って、ずらし量が2のときは、基準ディザマトリックスは、当該基準ディザマトリッ
クスの、第1行目、第3行目及び第5行目の組み合わせからなる第1閾値行グループ、及
び第2行目、第4行目及び第6行目の組み合わせからなる第2閾値行グループの2つのグ
ループに分類されることになる。そして、ディザ閾値記憶部102は、これら分類された
2つの閾値行グループを、2つの高速メモリにそれぞれ別々に記憶する(ステップS31
4)。
Therefore, when the shift amount is 2, the reference dither matrix is the first threshold row group consisting of a combination of the first row, the third row, and the fifth row, and the second row of the reference dither matrix. The second threshold row group consisting of a combination of the fourth row and the sixth row is classified into two groups. Then, the dither threshold value storage unit 102 stores the two classified threshold row groups separately in the two high-speed memories (step S31).
4).

具体的には、第1閾値行グループの各閾値行の閾値データを、図15(a)に示すよう
に、第1高速メモリのアドレスの連続する領域に、その配列順に順番に記憶していく。つ
まり、第1行目の左端の閾値データ(a11)から順に右端の閾値データ(a16)まで
を記憶し、次いで、第3行目、第5行目の順で、同様に各閾値行の左端から右端へと順に
閾値データを1次元的に記憶する。従って、閾値a11のデータが、第1高速メモリの先
頭アドレスの記憶領域に記憶され、閾値a56のデータが最後尾のアドレスの記憶領域に
記憶されることになる。
Specifically, the threshold value data of each threshold row of the first threshold row group is sequentially stored in the order of arrangement in the continuous area of the address of the first high-speed memory as shown in FIG. . In other words, the threshold data (a11) at the left end of the first row is stored in order from the threshold data (a16) at the right end, and then the left end of each threshold row is similarly applied in the order of the third row and the fifth row. Threshold data is stored one-dimensionally in order from to the right end. Therefore, the data of the threshold value a11 is stored in the storage area of the first address of the first high-speed memory, and the data of the threshold value a56 is stored in the storage area of the last address.

一方、第2閾値行グループの各閾値行の閾値データも第1閾値行グループと同様に、図
15(b)に示すように、第2高速メモリのアドレスの連続する記憶領域に、第2行目、
第4行目、第6行目の順に、各閾値行データの左端のデータから右端のデータへと順に閾
値データを1次元的に記憶する。従って、閾値a21のデータが、第2高速メモリの先頭
アドレスの記憶領域に記憶され、閾値a66のデータが最後尾のアドレスの記憶領域に記
憶されることになる。
On the other hand, as in the first threshold row group, the threshold data of each threshold row of the second threshold row group is also stored in the storage area where the addresses of the second high-speed memory are continuous, as shown in FIG. Eye,
The threshold data is stored one-dimensionally in order from the left end data to the right end data of each threshold row data in the order of the fourth row and the sixth row. Accordingly, the data of the threshold value a21 is stored in the storage area of the first address of the second high-speed memory, and the data of the threshold value a66 is stored in the storage area of the last address.

そして、閾値データの読み出しにおいては、上記ずらし量が1のときと同様に、リング
バッファ構成を適用する。
上記したように、第1及び第2高速メモリに分類された基準ディザマトリックスがそれ
ぞれ記憶された状態で、ディザ処理が開始されると、まず、ディザ閾値メモリ制御部10
6において、第1又は第2高速メモリに対して閾値データを読み出すアドレス位置である
参照ポインタを算出する(ステップS200)。
In reading the threshold data, a ring buffer configuration is applied as in the case where the shift amount is 1.
As described above, when the dither processing is started in a state where the reference dither matrices classified into the first and second high-speed memories are stored, first, the dither threshold memory control unit 10
6, a reference pointer that is an address position for reading threshold data from the first or second high-speed memory is calculated (step S200).

ずらし量が2で且つマルチモードのときの参照ポインタの算出処理が開始されると、ま
ず、ディザ閾値メモリ制御部106において、現在ディザ処理途中か否かを判定する(ス
テップS500)。この場合は、ディザ処理を開始したばかりなので(ステップS500
の「No」の分岐)、第1高速メモリ及び第2高速メモリに対する閾値データの読み出し
開始ポインタを示す変数PL1及びPL2の値をそれぞれ「0」に初期化すると共に(ス
テップS502)、画像データの奇数行及び偶数行の画素位置を示す変数PP1及びPP
2の値をそれぞれ「0」に初期化する(ステップS504)。初期化が終了すると、画像
データの処理対象行が、奇数行目か否かを判定する(ステップS506)。この場合は、
まず画像データの第1行目から処理を行うので、奇数行目となり(ステップS506の「
Yes」の分岐)、且つ現在の画素位置は画像の1行目の先頭となるので(ステップS5
08の「Yes」の分岐)、画像の先頭位置(PP1=0)を参照ポインタとしてディザ
閾値記憶部102に出力する(ステップS510)。つまり、画像データの1行目の先頭
画素に対して、第1高速メモリに対する閾値データの参照ポインタは、画像の先頭画素と
同じ、ポインタ(0)と算出される。
When the reference pointer calculation process when the shift amount is 2 and the multi mode is started, first, the dither threshold memory control unit 106 determines whether the dither process is currently in progress (step S500). In this case, the dither process has just started (step S500).
, The values of variables PL1 and PL2 indicating threshold data read start pointers for the first high-speed memory and the second high-speed memory are initialized to “0”, respectively (step S502). Variables PP1 and PP indicating pixel positions of odd and even rows
Each value of 2 is initialized to “0” (step S504). When the initialization is completed, it is determined whether or not the processing target row of the image data is an odd-numbered row (step S506). in this case,
First, since processing is performed from the first line of the image data, it becomes an odd-numbered line (“S” in step S506).
(Yes "branch) and the current pixel position is at the beginning of the first line of the image (step S5).
(“Yes” branch of 08) and the head position (PP1 = 0) of the image is output to the dither threshold value storage unit 102 as a reference pointer (step S510). That is, for the first pixel in the first row of the image data, the threshold data reference pointer for the first high-speed memory is calculated as the same pointer (0) as the first pixel of the image.

ここで、図15(a)及び(b)中の括弧で囲まれた数字は、ポインタ番号を示す。即
ち、参照ポインタ(0)の場合は、図15(a)に示すように、第1高速メモリにおける
、閾値データa11が記憶されている先頭アドレスが、閾値データの読み出しアドレスと
なる。以降のステップS202〜S210の処理は、上記ずらし量1と同様となるので省
略する。
画像データの第1行目の先頭画素データ及び第1高速メモリのポインタ(0)の閾値デ
ータに対するディザ処理が終了すると、まだ、画像の第1行目の先頭画素データに対して
しかディザ処理を行っていないので(ステップS210の「No」の分岐)、引き続き、
次の画素データに対する参照ポインタの算出処理を行う(ステップS200)。
Here, the numbers enclosed in parentheses in FIGS. 15A and 15B indicate pointer numbers. That is, in the case of the reference pointer (0), as shown in FIG. 15A, the head address where the threshold data a11 is stored in the first high-speed memory is the read address of the threshold data. The subsequent steps S202 to S210 are the same as those for the shift amount 1 described above, and are therefore omitted.
When the dither processing for the first pixel data of the first row of the image data and the threshold data of the pointer (0) of the first high-speed memory is completed, the dither processing is still performed only for the first pixel data of the first row of the image. Since it has not been done ("No" branch of step S210),
A reference pointer calculation process for the next pixel data is performed (step S200).

この場合、参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップ
S500の「Yes」の分岐)、次の画素位置は奇数行(ステップS506の「Yes」
の分岐)且つ先頭位置ではないと判定される(ステップS508の「No」の分岐)。こ
のような判定がなされると、更に、読み出した閾値データは画像の改行位置のものか否か
を判定する(ステップS512)。画像データの各行は、少なくとも18画素以上はある
ので、改行位置ではないと判定される(ステップS512の「No」の分岐)。従って、
PP1の値に1を加算し(ステップS516)、加算後の値(1)を参照ポインタとして
出力する(ステップS510)。但し、PP1の値は17を上限とし、PP1の値が17
のときは、その値に「1」を加算せずにPP1の値を「0」とする。
In this case, in the reference pointer calculation process, it is determined that the dither process is in progress (the branch of “Yes” in Step S500), and the next pixel position is an odd row (“Yes” in Step S506).
It is determined that the current position is not the head position ("No" branch in step S508). If such a determination is made, it is further determined whether or not the read threshold value data is at the line feed position of the image (step S512). Since each line of the image data has at least 18 pixels or more, it is determined that the line is not a line feed position ("No" branch in step S512). Therefore,
1 is added to the value of PP1 (step S516), and the value (1) after the addition is output as a reference pointer (step S510). However, the value of PP1 has an upper limit of 17, and the value of PP1 is 17
In this case, the value of PP1 is set to “0” without adding “1” to the value.

参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。
また、ステップS200〜ステップS210の処理を繰り返し行うことで、閾値データ
は、先頭アドレスからアドレス順に、a11〜a56に向かって1つずつ順番に読み出さ
れ、ディザ処理が実行される。また、参照ポインタが閾値データa56のポインタまで到
達すると、上記ずらし量1のときと同様に、読み出し位置を循環的にa11のポインタに
戻して再びアドレス順に閾値データを読み出す。
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above.
Further, by repeatedly performing the processing from step S200 to step S210, the threshold data is read one by one from the head address in the order of addresses toward a11 to a56, and the dither processing is executed. When the reference pointer reaches the pointer of the threshold value data a56, similarly to the case of the shift amount 1, the reading position is cyclically returned to the pointer of a11 and the threshold value data is read again in the order of addresses.

この読み出し処理を、画像データの1行目の画素データに対して必要な回数分繰り返し
実行する。
そして、読み出した閾値データが画像データの改行位置(一番右端の画素位置)のもの
となると(ステップS512の「Yes」の分岐)、読み出し開始ポインタを示す変数P
L1の現在の値に、基準ディザマトリックスの横幅DW(6)を加算し、画素位置を示す
変数PP1に、この加算後のPL1の値を代入して(ステップS514)、この代入後の
PP1の値を参照ポインタとして出力する(ステップS510)。但し、PL1の値は1
3を上限とし、PL1の値が13のときは、その値にDWを加算せずにPL1の値を「0
」とする。
This readout process is repeatedly executed as many times as necessary for the pixel data in the first row of the image data.
When the read threshold data comes to the line feed position (rightmost pixel position) of the image data (“Yes” branch in step S512), the variable P indicating the read start pointer
The width DW (6) of the reference dither matrix is added to the current value of L1, and the value of PL1 after the addition is substituted for the variable PP1 indicating the pixel position (step S514). The value is output as a reference pointer (step S510). However, the value of PL1 is 1.
3 is the upper limit, and when the value of PL1 is 13, the value of PL1 is set to “0” without adding DW to the value.
"

つまり、画像データの3行目に対して、閾値データの読み出し開始位置は、参照ポイン
タ(6)となり、閾値データa31の記憶されたアドレス位置となる。この開始位置から
、上記同様に、ステップS200〜ステップS210の処理を繰り返し実行し、改行位置
となる毎に、開始位置を横幅DW分ずつずらしていくことで、画像データの奇数行の各行
に対して、読み出し開始位置がポインタ(6)ずつずれていく。
That is, for the third row of image data, the threshold data read start position is the reference pointer (6), which is the address position where the threshold data a31 is stored. Similar to the above, the processing from step S200 to step S210 is repeatedly executed from this start position, and the start position is shifted by the horizontal width DW each time a line feed position is reached. Thus, the reading start position is shifted by the pointer (6).

一方、画像データの処理対象行が、2行目となり(ステップS506の「No」の分岐
)、現在の画素位置が画像の2行目の先頭の場合(ステップS518の「Yes」の分岐
)、画像の先頭位置(PP2=0)を参照ポインタとしてディザ閾値記憶部102に出力
する(ステップS520)。つまり、画像データの2行目の先頭画素に対して、第2高速
メモリに対する閾値データの参照ポインタは、画像の先頭画素と同じ、ポインタ(0)と
算出される。なお、以降のステップS202〜S210の処理は、上記ずらし量1と同様
となるので省略する。
On the other hand, if the processing target row of the image data is the second row ("No" branch in step S506) and the current pixel position is the head of the second row of the image ("Yes" branch in step S518), The head position (PP2 = 0) of the image is output to the dither threshold value storage unit 102 as a reference pointer (step S520). That is, for the first pixel in the second row of the image data, the threshold data reference pointer for the second high-speed memory is calculated as the same pointer (0) as the first pixel of the image. In addition, since the process of subsequent step S202-S210 becomes the same as the said shift amount 1, it abbreviate | omits.

画像データの第2行目の先頭画素データ及び第2高速メモリのポインタ(0)の閾値デ
ータに対するディザ処理が終了すると、まだ、画像の第2行目の先頭画素データに対して
しかディザ処理を行っていないので(ステップS210の「No」の分岐)、引き続き、
次の画素データに対する参照ポインタの算出処理を行う(ステップS200)。
この場合、参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップ
S500の「Yes」の分岐)、次の画素位置は偶数行(ステップS506の「No」の
分岐)且つ先頭位置ではないと判定される(ステップS518の「No」の分岐)。この
ような判定がなされると、更に、読み出した閾値データは画像の改行位置のものか否かを
判定する(ステップS522)。画像データの各行は、少なくとも18画素以上はあるの
で、改行位置ではないと判定される(ステップS522の「No」の分岐)。従って、P
P2の値に1を加算し(ステップS526)、加算後の値(1)を参照ポインタとして出
力する(ステップS520)。但し、PP2の値は17を上限とし、PP2の値が17の
ときは、その値に「1」を加算せずにPP2の値を「0」とする。
When the dither processing for the first pixel data of the second row of the image data and the threshold data of the pointer (0) of the second high-speed memory is completed, the dither processing is still performed only for the first pixel data of the second row of the image. Since it has not been done ("No" branch of step S210),
A reference pointer calculation process for the next pixel data is performed (step S200).
In this case, in the reference pointer calculation process, it is determined that the dither process is in progress (the “Yes” branch in step S500), and the next pixel position is an even-numbered row (the “No” branch in step S506) and is not the top position. ("No" branch in step S518). If such a determination is made, it is further determined whether or not the read threshold data is at the line feed position of the image (step S522). Since each line of the image data has at least 18 pixels or more, it is determined that the line is not a line feed position ("No" branch in step S522). Therefore, P
1 is added to the value of P2 (step S526), and the value (1) after the addition is output as a reference pointer (step S520). However, the upper limit of the value of PP2 is 17, and when the value of PP2 is 17, the value of PP2 is set to “0” without adding “1” to the value.

参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。
また、ステップS200〜ステップS210の処理を繰り返し行うことで、閾値データ
は、先頭アドレスからアドレス順に、a21〜a66に向かって1つずつ順番に読み出さ
れ、ディザ処理が実行される。また、参照ポインタが閾値データa66のポインタまで到
達すると、上記ずらし量1のときと同様に、循環的にa21のポインタに戻して再びアド
レス順に閾値データを読み出す。
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above.
In addition, by repeatedly performing the processing from step S200 to step S210, the threshold data is read one by one from the top address to the a21 to a66 in order of address, and the dither processing is executed. Further, when the reference pointer reaches the pointer of the threshold data a66, similarly to the case of the shift amount 1, the threshold data is cyclically returned to the pointer of a21 and read again in the order of addresses.

この読み出し処理を、画像データの2行目の画素データに対して必要な回数分繰り返し
実行する。
つまり、上記したように、画像データの奇数行に対しては、まず、読み出し開始ポイン
タから順に、第1高速メモリから閾値データを順番に読み出す処理を、第1高速メモリの
連続するアドレスに対して、循環的に且つ繰り返し実行する。更に、画像データの改行位
置の画素データに対する閾値データが読み出される毎に、読み出し開始ポインタの位置を
DW分(基準ディザマトリックスの1行)ずつ循環的にずらす。
This readout process is repeatedly executed as many times as necessary for the pixel data in the second row of the image data.
That is, as described above, for odd-numbered rows of image data, first, processing for sequentially reading threshold data from the first high-speed memory in order from the read start pointer is performed on consecutive addresses of the first high-speed memory. Run cyclically and repeatedly. Further, every time threshold data for pixel data at the line feed position of the image data is read, the position of the read start pointer is cyclically shifted by DW (one line of the reference dither matrix).

一方、画像データの偶数行に対しては、まず、読み出し開始ポインタから順に、第2高
速メモリから閾値データを順番に読み出す処理を、第2高速メモリの連続するアドレスに
対して、循環的に且つ繰り返し実行する。更に、画像データの改行位置の画素データに対
する閾値データが読み出される毎に、読み出し開始ポインタの位置をDW分(基準ディザ
マトリックスの1行)ずつ循環的にずらす。
On the other hand, for even-numbered rows of image data, first, the process of sequentially reading threshold data from the second high-speed memory in order from the read start pointer is cyclically performed with respect to successive addresses in the second high-speed memory. Run repeatedly. Further, every time threshold data for pixel data at the line feed position of the image data is read, the position of the read start pointer is cyclically shifted by DW (one line of the reference dither matrix).

このように、第1高速メモリ及び第2高速メモリに対して交互に閾値データの読み出し
を行うことにより、図14に示すように、基準ディザマトリックスを主走査方向にシフト
する毎に、そのシフト前後の基準ディザマトリックスの配置関係が、シフト前に対して、
シフト後が副走査方向とは反対方向に2行単位でずれた状態で閾値データの読み出しが順
次行われることになる。
なお、以降の処理(ステップS110〜S116)は、上記ずらし量が1のときと同様
となるので説明を省略する。
Thus, by alternately reading out threshold data from the first high-speed memory and the second high-speed memory, as shown in FIG. 14, every time the reference dither matrix is shifted in the main scanning direction, before and after the shift. The standard dither matrix placement relationship of
After the shift, the threshold data is sequentially read out in a state where the shift is made in units of two rows in the direction opposite to the sub-scanning direction.
Since the subsequent processing (steps S110 to S116) is the same as that when the shift amount is 1, description thereof is omitted.

次に、図17〜図18に基づき、ずらし量を2とし、且つ記憶モードをシングルモード
にした場合の動作について説明する。
ずらし量が2ということは、図14に示すように、基準ディザマトリックスを主走査方
向にシフトする毎に、そのシフト前後の基準ディザマトリックスの配置関係が、シフト前
に対して、シフト後が副走査方向とは反対方向に2行単位でずれた状態で閾値データの読
み出しが順次行われることになる。
基準ディザマトリックスの分類処理については、上記ずらし量2のマルチモードのとき
と同様となるので、説明を省略する。
Next, the operation when the shift amount is 2 and the storage mode is the single mode will be described with reference to FIGS.
When the shift amount is 2, as shown in FIG. 14, every time the reference dither matrix is shifted in the main scanning direction, the positional relationship of the reference dither matrix before and after the shift is smaller than that before the shift. The threshold value data is sequentially read in a state shifted by two rows in the direction opposite to the scanning direction.
Since the reference dither matrix classification process is the same as that in the multi-mode with the shift amount of 2, the description thereof is omitted.

従って、上記同様に、ずらし量が2のときは、基準ディザマトリックスは、当該基準デ
ィザマトリックスの、第1行目、第3行目及び第5行目の組み合わせからなる第1閾値行
グループ、及び第2行目、第4行目及び第6行目の組み合わせからなる第2閾値行グルー
プの2つのグループに分類されることになる。
そして、ディザ閾値記憶部102は、記憶モードがシングルモードであるため(ステッ
プS310の「Yes」の分岐)、上記分類された2つの閾値行グループを、1つの高速
メモリに所定の順番で記憶する(ステップS312)。
Therefore, as described above, when the shift amount is 2, the reference dither matrix is a first threshold row group including a combination of the first row, the third row, and the fifth row of the reference dither matrix, and The second row, the fourth row, and the sixth row are classified into two groups, ie, a second threshold row group.
Since the storage mode is the single mode (the branch of “Yes” in step S310), the dither threshold storage unit 102 stores the two classified threshold row groups in one high-speed memory in a predetermined order. (Step S312).

具体的には、第1閾値行グループの各閾値行の閾値データを、その配列順に順番に各1
つずつ選択していくと共に、第2閾値行グループの各閾値行の閾値データを、その配列順
に順番に各1つずつ選択していく。そして、各1つずつ選択した2つのグループの閾値デ
ータを第1閾値グループ、第2閾値グループの順で並べて記憶する。つまり、第1閾値行
グループの第1行目の閾値行データの先頭a11を選択し、第2閾値行グループの第2行
目の閾値行データの先頭a21を選択したときは、これら2つの閾値データを、アドレス
の連続する記憶領域に、a11、a21の順で記憶する。
Specifically, the threshold data of each threshold row in the first threshold row group is set to 1 in order in the order of arrangement.
While selecting one by one, the threshold data of each threshold row of the second threshold row group are selected one by one in order of their arrangement. Then, the threshold data of the two groups selected one by one are arranged and stored in the order of the first threshold group and the second threshold group. That is, when the top a11 of the threshold row data of the first row of the first threshold row group is selected and the top a21 of the threshold row data of the second row of the second threshold row group is selected, these two thresholds Data is stored in the order of a11, a21 in the storage area where the addresses are continuous.

同様に、第1行目のa12、第2行目のa22、第1行目のa13、第2行目のa21
、・・・、第3行目のa31、第4行目のa41、・・・、第5行目のa51、第6行目
のa61、・・・、第5行目のa56、第6行目のa66といった順に、順次並べて記憶
すると、高速メモリには、図17に示すように、各グループの閾値データが記憶される。
従って、閾値a11のデータが、高速メモリの先頭アドレスの記憶領域に記憶され、閾
値a66のデータが最後尾のアドレスの記憶領域に記憶されることになる。
Similarly, a12 in the first row, a22 in the second row, a13 in the first row, a21 in the second row.
, ..., a31 in the third line, a41 in the fourth line, ..., a51 in the fifth line, a61 in the sixth line, ..., a56 in the fifth line, When the data are sequentially arranged and stored in the order of a66 in the row, the high-speed memory stores the threshold data of each group as shown in FIG.
Therefore, the data of the threshold value a11 is stored in the storage area of the top address of the high-speed memory, and the data of the threshold value a66 is stored in the storage area of the last address.

そして、閾値データの読み出しにおいては、上記ずらし量が1のときと同様に、リング
バッファ構成を適用する。但し、シングルモードの場合は、画像データの奇数行に対して
は、高速メモリにおける第1閾値行グループの閾値データの読み出し開始ポインタから順
に1つ飛ばしで第1閾値行グループの閾値データを順次読み出し、閾値データa56に到
達すると、その次はa11のポインタに戻る。また、画像データの偶数行に対しては、高
速メモリにおける第2閾値行グループの閾値データの読み出し開始ポインタから順に1つ
飛ばしで第2閾値行グループの閾値データを読み出し、閾値データa66に到達すると、
その次はa21のポインタに戻る。
上記したように、1つの高速メモリに上記2つのグループに分類された基準ディザマト
リックスが記憶された状態で、ディザ処理が開始されると、まず、ディザ閾値メモリ制御
部106において、高速メモリに対して閾値データを読み出すアドレス位置である参照ポ
インタを算出する(ステップS200)。
In reading the threshold data, a ring buffer configuration is applied as in the case where the shift amount is 1. However, in the single mode, for odd-numbered rows of image data, the threshold data of the first threshold row group is sequentially read by skipping one by one from the threshold data reading start pointer of the first threshold row group in the high-speed memory. When the threshold data a56 is reached, the pointer returns to a11. For even rows of image data, when the threshold data of the second threshold row group is read by skipping one by one from the read start pointer of the threshold data of the second threshold row group in the high-speed memory and reaches the threshold data a66. ,
Next, the pointer returns to a21.
As described above, when the dither processing is started in a state in which the reference dither matrix classified into the two groups is stored in one high-speed memory, first, the dither threshold memory control unit 106 performs the processing on the high-speed memory. A reference pointer that is an address position from which threshold data is read is calculated (step S200).

ずらし量が2で且つシングルモードのときの参照ポインタの算出処理が開始されると、
まず、ディザ閾値メモリ制御部106において、現在ディザ処理途中か否かを判定する(
ステップS600)。この場合は、ディザ処理を開始したばかりなので(ステップS60
0の「No」の分岐)、高速メモリに記憶された2つの閾値行グループに対する閾値デー
タの読み出し開始ポインタを示す変数PL1及びPL2の値をそれぞれ「0」に初期化す
ると共に(ステップS602)、画像データの奇数行及び偶数行の画素位置を示す変数P
P1及びPP2の値をそれぞれ「0」に初期化する(ステップS604)。初期化が終了
すると、画像データの処理対象行が、奇数行目か否かを判定する(ステップS606)。
この場合は、まず画像データの第1行目から処理を行うので、奇数行目となり(ステップ
S606の「Yes」の分岐)、且つ現在の画素位置は画像の1行目の先頭となるので(
ステップS608の「Yes」の分岐)、画像の先頭位置(PP1=0)を参照ポインタ
としてディザ閾値記憶部102に出力する(ステップS610)。つまり、画像データの
1行目の先頭画素に対して、高速メモリに対する閾値データの参照ポインタは、画像の先
頭画素と同じ、ポインタ(0)と算出される。
When the reference pointer calculation process when the shift amount is 2 and the single mode is started,
First, the dither threshold memory control unit 106 determines whether or not the current dither process is in progress (
Step S600). In this case, since the dither processing has just started (step S60).
(“No” branch of 0), the values of variables PL1 and PL2 indicating threshold value data reading start pointers for the two threshold row groups stored in the high-speed memory are initialized to “0”, respectively (step S602). Variable P indicating pixel positions of odd and even rows of image data
The values of P1 and PP2 are each initialized to “0” (step S604). When the initialization is completed, it is determined whether or not the processing target row of the image data is an odd-numbered row (step S606).
In this case, since processing is first performed from the first line of the image data, it becomes an odd line (the branch of “Yes” in step S606), and the current pixel position is the top of the first line of the image (
(“Yes” branch in step S608), the head position of the image (PP1 = 0) is output to the dither threshold value storage unit 102 as a reference pointer (step S610). That is, for the first pixel in the first row of the image data, the threshold data reference pointer for the high-speed memory is calculated as the same pointer (0) as the first pixel of the image.

ここで、図17中の括弧で囲まれた数字は、ポインタ番号を示す。即ち、参照ポインタ
(0)の場合は、図17に示すように、高速メモリにおける、閾値データa11が記憶さ
れている先頭アドレスが、閾値データの読み出しアドレスとなる。以降のステップS20
2〜S210の処理は、上記ずらし量1又はずらし量2のマルチモードと同様となるので
省略する。
画像データの第1行目の先頭画素データ及び高速メモリのポインタ(0)の閾値データ
に対するディザ処理が終了すると、まだ、画像の第1行目の先頭画素データに対してしか
ディザ処理を行っていないので(ステップS210の「No」の分岐)、引き続き、次の
画素データに対する参照ポインタの算出処理を行う(ステップS200)。
Here, the numbers enclosed in parentheses in FIG. 17 indicate pointer numbers. That is, in the case of the reference pointer (0), as shown in FIG. 17, the leading address where the threshold data a11 is stored in the high-speed memory is the threshold data read address. Subsequent step S20
The processing of 2 to S210 is the same as the multimode with the shift amount 1 or the shift amount 2 and is omitted.
When the dither processing for the first pixel data of the first row of the image data and the threshold data of the pointer (0) of the high-speed memory is completed, the dither processing is still performed only for the first pixel data of the first row of the image. Since there is no branch (“No” branch of step S210), the reference pointer calculation process for the next pixel data is subsequently performed (step S200).

この場合、参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップ
S600の「Yes」の分岐)、次の画素位置は奇数行(ステップS606の「Yes」
の分岐)且つ先頭位置ではないと判定される(ステップS608の「No」の分岐)。こ
のような判定がなされると、更に、読み出した閾値データは画像の改行位置のものか否か
を判定する(ステップS612)。画像データの各行は、少なくとも18画素以上はある
ので、改行位置ではないと判定される(ステップS612の「No」の分岐)。従って、
PP1の値に2を加算し(ステップS616)、加算後の値(2)を参照ポインタとして
出力する(ステップS610)。但し、PP1の値は34を上限とし、PP1の値が34
のときは、その値に「2」を加算せずにPP1の値を「0」とする。
In this case, in the reference pointer calculation process, it is determined that the dither process is in progress (“Yes” branch in step S600), and the next pixel position is an odd row (“Yes” in step S606).
It is determined that the current position is not the head position ("No" branch in step S608). If such a determination is made, it is further determined whether or not the read threshold data is at the line feed position of the image (step S612). Since each line of the image data has at least 18 pixels or more, it is determined that the line is not a line feed position ("No" branch in step S612). Therefore,
2 is added to the value of PP1 (step S616), and the value (2) after the addition is output as a reference pointer (step S610). However, the value of PP1 has an upper limit of 34, and the value of PP1 is 34.
In this case, the value of PP1 is set to “0” without adding “2” to the value.

参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。
また、ステップS200〜ステップS210の処理を繰り返し行うことで、閾値データ
は、先頭アドレスからポインタ1つ飛ばしでアドレス順に、a11〜a56に向かって1
つずつ順番に読み出され、ディザ処理が実行される。また、参照ポインタが閾値データa
56のポインタまで到達すると、上記ずらし量1又はずらし量2でマルチモードのときと
同様に、読み出し位置を循環的にa11のポインタに戻して再びアドレス順に1つ飛ばし
で閾値データを順次読み出す。
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above.
In addition, by repeatedly performing the processing from step S200 to step S210, the threshold data is skipped by one pointer from the head address, and the address data is incremented by 1 toward a11 to a56.
The dither processing is executed by sequentially reading the data one by one. In addition, the reference pointer is threshold data a
When reaching 56 pointers, similarly to the case of the multi-mode with the shift amount 1 or the shift amount 2 described above, the read position is cyclically returned to the pointer of a11, and the threshold data is sequentially read out by skipping one address again.

この読み出し処理を、画像データの1行目の画素データに対して必要な回数分繰り返し
実行する。
そして、読み出した閾値データが画像データの改行位置(一番右端の画素位置)のもの
となると(ステップS612の「Yes」の分岐)、読み出し開始ポインタを示す変数P
L1の現在の値に、基準ディザマトリックスの横幅DW×2(12)を加算し、画素位置
を示す変数PP1に、この加算後のPL1の値を代入して(ステップS614)、この代
入後のPP1の値を参照ポインタとして出力する(ステップS610)。但し、PL1の
値は24を上限とし、PL1の値が24のときは、その値にDW×2を加算せずにPL1
の値を「0」とする。
This readout process is repeatedly executed as many times as necessary for the pixel data in the first row of the image data.
When the read threshold data comes to the line feed position (rightmost pixel position) of the image data (the branch of “Yes” in step S612), the variable P indicating the read start pointer
The width DW × 2 (12) of the reference dither matrix is added to the current value of L1, and the value of PL1 after the addition is substituted into the variable PP1 indicating the pixel position (step S614). The value of PP1 is output as a reference pointer (step S610). However, the upper limit of the value of PL1 is 24. When the value of PL1 is 24, PL1 is added without adding DW × 2 to the value.
Is set to “0”.

つまり、画像データの3行目に対して、閾値データの読み出し開始位置は、参照ポイン
タ(12)となり、閾値データa31の記憶されたアドレス位置となる。この開始位置か
ら、上記同様に、ステップS200〜ステップS210の処理を繰り返し実行し、改行位
置となる毎に、開始位置を横幅DW分×2ずつずらしていくことで、画像データの奇数行
の各行に対して、読み出し開始位置がポインタ(12)ずつずれていく。
That is, for the third row of image data, the threshold data read start position is the reference pointer (12), which is the address position where the threshold data a31 is stored. In the same manner as described above, the processing of step S200 to step S210 is repeatedly executed from this start position, and each time a line feed position is reached, the start position is shifted by the width DW × 2, thereby each of the odd lines of the image data. On the other hand, the reading start position is shifted by the pointer (12).

一方、画像データの処理対象行が、2行目となり(ステップS606の「No」の分岐
)、現在の画素位置が画像の2行目の先頭の場合(ステップS618の「Yes」の分岐
)、画像の先頭位置(PP2=0)に1を加算して(ステップS620)、この加算結果
(PP2=1)を参照ポインタとしてディザ閾値記憶部102に出力する(ステップS6
22)。つまり、画像データの2行目の先頭画素に対して、高速メモリに対する閾値デー
タの参照ポインタは、画像の先頭画素のポインタに1を加算したポインタ(1)と算出さ
れる。なお、以降のステップS202〜S208の処理は、上記ずらし量1又はずらし量
2のマルチモードと同様となるので説明を省略する。
On the other hand, if the processing target row of the image data is the second row ("No" branch in step S606) and the current pixel position is the top of the second row of the image ("Yes" branch in step S618), 1 is added to the head position (PP2 = 0) of the image (step S620), and the addition result (PP2 = 1) is output to the dither threshold value storage unit 102 as a reference pointer (step S6).
22). That is, for the first pixel in the second row of the image data, the threshold data reference pointer for the high-speed memory is calculated as a pointer (1) obtained by adding 1 to the pointer of the first pixel of the image. In addition, since the process of subsequent step S202-S208 becomes the same as the multimode of the said shift amount 1 or the shift amount 2, description is abbreviate | omitted.

画像データの第2行目の先頭画素データ及び高速メモリのポインタ(1)の閾値データ
に対するディザ処理が終了すると、まだ、画像の第2行目の先頭画素データに対してしか
ディザ処理を行っていないので(ステップS210の「No」の分岐)、引き続き、次の
画素データに対する参照ポインタの算出処理を行う(ステップS200)。
この場合、参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップ
S600の「Yes」の分岐)、次の画素位置は偶数行(ステップS606の「No」の
分岐)且つ先頭位置ではないと判定される(ステップS618の「No」の分岐)。この
ような判定がなされると、更に、読み出した閾値データは画像の改行位置のものか否かを
判定する(ステップS624)。画像データの各行は、少なくとも18画素以上はあるの
で、改行位置ではないと判定される(ステップS624の「No」の分岐)。従って、P
P2の値に2を加算し(ステップS628)、加算後の値(3)を参照ポインタとして出
力する(ステップS622)。但し、PP2の値は35を上限とし、PP2の値が35の
ときは、その値に「2」を加算せずにPP2の値を「0」とする。
When the dither processing for the first pixel data of the second row of the image data and the threshold data of the pointer (1) of the high-speed memory is completed, the dither processing is still performed only for the first pixel data of the second row of the image. Since there is no branch (“No” branch of step S210), the reference pointer calculation process for the next pixel data is subsequently performed (step S200).
In this case, in the reference pointer calculation process, it is determined that the dither process is in progress (the “Yes” branch in step S600), and the next pixel position is an even-numbered row (the “No” branch in step S606) and is not the top position. ("No" branch in step S618). If such a determination is made, it is further determined whether or not the read threshold value data is at the line feed position of the image (step S624). Since each line of the image data has at least 18 pixels or more, it is determined that the line is not a line feed position ("No" branch in step S624). Therefore, P
2 is added to the value of P2 (step S628), and the added value (3) is output as a reference pointer (step S622). However, the upper limit of the value of PP2 is 35. When the value of PP2 is 35, the value of PP2 is set to “0” without adding “2” to the value.

参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。
また、ステップS200〜ステップS210の処理を繰り返し行うことで、閾値データ
は、先頭アドレスからアドレス順に且つ1つ飛びに、a21〜a66に向かって1つずつ
順番に読み出され、ディザ処理が実行される。また、参照ポインタが閾値データa66の
ポインタまで到達すると、上記ずらし量1又はずらし量2のマルチモードのときと同様に
、循環的にa21のポインタに戻して再びアドレス順に閾値データを読み出す。
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above.
Further, by repeatedly performing the processing from step S200 to step S210, the threshold data is read one by one from the top address in the order of the addresses in the order of the addresses toward a21 to a66, and the dither processing is executed. The Further, when the reference pointer reaches the pointer of the threshold data a66, the threshold data is cyclically returned to the pointer of a21 and read again in the order of addresses as in the multi-mode with the shift amount 1 or the shift amount 2.

この読み出し処理を、画像データの2行目の画素データに対して必要な回数分繰り返し
実行する。
つまり、画像データの奇数行に対しては、まず、読み出し開始ポインタから順に、高速
メモリから第1閾値行グループの閾値データをポインタを1つ飛ばしに変更(2インクリ
メント)しながら順番に読み出す処理を、高速メモリの連続するアドレスに対して、循環
的に且つ繰り返し実行する。更に、画像データの改行位置の画素データに対する閾値デー
タが読み出される毎に、読み出し開始ポインタの位置をDW×2(12)ずつ循環的にず
らす。
This readout process is repeatedly executed as many times as necessary for the pixel data in the second row of the image data.
That is, for odd-numbered rows of image data, first, in order from the read start pointer, the threshold data of the first threshold row group is sequentially read from the high-speed memory while changing the pointer to one (increment by 2). Executes cyclically and repeatedly for successive addresses in the high-speed memory. Furthermore, each time threshold data for pixel data at the line feed position of image data is read, the position of the read start pointer is cyclically shifted by DW × 2 (12).

一方、画像データの偶数行に対しては、まず、読み出し開始ポインタから順に、高速メ
モリから第2閾値行グループの閾値データをポインタを1つ飛ばしに変更(2インクリメ
ント)しながら順番に読み出す処理を、高速メモリの連続するアドレスに対して、循環的
に且つ繰り返し実行する。更に、画像データの改行位置の画素データに対する閾値データ
が読み出される毎に、読み出し開始ポインタの位置をDW×2(12)ずつ循環的にずら
す。
On the other hand, for even-numbered rows of image data, first, in order from the reading start pointer, the threshold data of the second threshold row group is changed from the high-speed memory to skip one pointer (increment by two) and sequentially read out. Executes cyclically and repeatedly for successive addresses in the high-speed memory. Furthermore, each time threshold data for pixel data at the line feed position of image data is read, the position of the read start pointer is cyclically shifted by DW × 2 (12).

このように、1つの高速メモリに対してポインタ1つ飛ばしで閾値データの読み出しを
行うことにより、図14に示すように、基準ディザマトリックスを主走査方向にシフトす
る毎に、そのシフト前後の基準ディザマトリックスの配置関係が、シフト前に対して、シ
フト後が副走査方向とは反対方向に2行単位でずれた状態で閾値データの読み出しが順次
行われることになる。
なお、以降の処理(ステップS110〜S116)は、上記ずらし量が1のときと同様
となるので説明を省略する。
In this way, by reading the threshold value data by skipping one pointer to one high-speed memory, as shown in FIG. 14, every time the reference dither matrix is shifted in the main scanning direction, the reference before and after the shift is changed. The threshold data is sequentially read out in a state where the arrangement relationship of the dither matrix is shifted in units of two rows in the direction opposite to the sub-scanning direction after the shift before the shift.
Since the subsequent processing (steps S110 to S116) is the same as that when the shift amount is 1, description thereof is omitted.

以上、本実施の形態の印刷装置1は、ずらし量が1の場合に、基準ディザマトリックス
をその配列順に1つの高速メモリに記憶し、画像データの各行に対しては、読み出し開始
位置から順に閾値データを、高速メモリに対してリングバッファ構成を用いて循環的且つ
繰り返し読み出すことが可能である。更に、処理対象行が変更される毎に、読み出し開始
位置をDWずつ循環的にずらしながら閾値データを読み出すことが可能である。
As described above, when the shift amount is 1, the printing apparatus 1 according to the present embodiment stores the reference dither matrix in one high-speed memory in the order of arrangement, and for each row of image data, the threshold is sequentially set from the read start position. Data can be read cyclically and repeatedly using a ring buffer configuration for high speed memory. Furthermore, each time the processing target row is changed, the threshold data can be read while cyclically shifting the read start position by DW.

また、ずらし量が2以上の場合に、基準ディザマトリックスをずらし量に応じた個数の
グループに分類し、記憶モードがマルチモードであれば、各グループの閾値データをそれ
ぞれ別々の高速メモリに配列順に記憶することが可能である。また、記憶モードがシング
ルモードであれば、各グループの閾値データを所定順に1つの高速メモリに記憶すること
が可能である。
Further, when the shift amount is 2 or more, the reference dither matrix is classified into a number of groups according to the shift amount, and if the storage mode is multi-mode, the threshold data of each group is stored in a separate high-speed memory in the order of arrangement. It is possible to memorize. If the storage mode is the single mode, the threshold data of each group can be stored in one high-speed memory in a predetermined order.

そして、マルチモードの場合は、画像データの各行に対し、これと対応する高速メモリ
の読み出し開始位置から順に閾値データを、高速メモリに対してリングバッファ構成を用
いて循環的且つ繰り返し読み出すことが可能である。更に、処理対象行が変更される毎に
、閾値データを読み出す高速メモリを処理対象行に対応するものに循環的に変更すると共
に、読み出し開始位置をDWずつ循環的にずらしながら閾値データを読み出すことが可能
である。
In the case of multi-mode, it is possible to cyclically and repeatedly read out threshold data for each row of image data in order from the reading start position of the corresponding high-speed memory using a ring buffer configuration. It is. Further, whenever the processing target row is changed, the high-speed memory for reading the threshold data is cyclically changed to one corresponding to the processing target row, and the threshold data is read while cyclically shifting the reading start position by DW. Is possible.

また、シングルモードの場合は、画像データの各行に対し、これと対応する閾値グルー
プの読み出し開始位置から順に閾値データを、高速メモリに対してリングバッファ構成を
用いて、ずらし量飛ばしでポインタを変更させながら循環的且つ繰り返し読み出すことが
可能である。更に、処理対象行が変更される毎に、DW×ずらし量ずつ読み出し開始位置
をずらしながら閾値データを読み出すことが可能である。
これにより、メモリには、基準ディザマトリックスを1つだけ記憶すれば良いので、デ
ィザマトリックスに必要なメモリ容量を低減することができる。
In the single mode, the threshold data is changed in order from the reading start position of the corresponding threshold group for each row of the image data, and the pointer is changed by skipping the shift amount using a ring buffer configuration for the high-speed memory. It is possible to read data cyclically and repeatedly. Furthermore, each time the processing target row is changed, the threshold data can be read while shifting the reading start position by DW × shift amount.
As a result, only one reference dither matrix needs to be stored in the memory, so that the memory capacity required for the dither matrix can be reduced.

また、アドレスの連続する記憶領域に、基準ディザマトリックスをその閾値データの配
列順又は所定の順番に記憶するようにし、更に、この閾値データを、その読み出し開始位
置を変更しながら前記アドレス順に循環的且つ繰り返し読み出すようにしたので閾値デー
タを高速に読み出すことができる。
また、閾値データの高速な読み出しが可能となるので、読み出した画素データに対して
、ディザ処理を連続して行うことができる。従って、これら一連の処理において、メモリ
とのアクセス回数を大幅に削減することができるので、画像データを取得してから印刷を
完了するまでの時間を短縮することができる。
Further, the reference dither matrix is stored in a storage area where addresses are continuous, in the order of arrangement of the threshold data, or in a predetermined order. In addition, the threshold data can be read at a high speed because it is repeatedly read.
In addition, since threshold data can be read at high speed, dither processing can be continuously performed on the read pixel data. Accordingly, in these series of processes, the number of accesses to the memory can be greatly reduced, so that the time from acquisition of image data to completion of printing can be shortened.

上記第1の実施の形態において、ディザ閾値分類部100は、形態6又は25の閾値行
分類手段に対応し、ディザ閾値記憶部102の高速メモリに基準ディザマトリックスを記
憶する処理は、形態1、3及び5並びに形態20、22及び24のいずれか1の基準ディ
ザマトリックス記憶手段に対応し、ディザ閾値メモリ制御部106によるディザ閾値記憶
部102の高速メモリからの閾値データの読み出し処理は、形態1、3及び5並びに形態
20、22及び24のいずれか1の閾値読出手段に対応し、ディザ閾値メモリ制御部10
6による読み出し開始ポインタの変更処理は、形態1、3、5、20、22及び24のい
ずれか1の読出開始位置設定手段に対応する。
In the first embodiment, the dither threshold classifying unit 100 corresponds to the threshold row classifying unit of mode 6 or 25, and the process of storing the reference dither matrix in the high-speed memory of the dither threshold storage unit 102 is mode 1, The threshold data read processing from the high-speed memory of the dither threshold storage unit 102 by the dither threshold memory control unit 106 corresponding to the reference dither matrix storage unit 3 and 5 and any one of the forms 20, 22, and 24 is the form 1 The dither threshold value memory control unit 10 corresponds to the threshold value reading means of any one of Nos. 3, 5 and 20, 20, and 24.
The read start pointer changing process according to 6 corresponds to the read start position setting unit of any one of the first, third, fifth, twenty, twenty-two and twenty-fourth modes.

また、上記第1の実施の形態において、画素制御部104による画像データ記憶部11
からの画素データの読み出し処理は、形態1、3、20及び22のいずれか1の画素値取
得手段に対応し、判定処理部108aは、形態1、3、20及び22のいずれか1の判定
処理手段に対応し、N値化部108bは、形態1、3、20及び22のいずれか1のN値
化手段に対応する。
また、上記第1の実施の形態において、印刷部15は、形態1又は3の印刷手段に対応
する。
また、上記第1の実施の形態において、ステップS116は、形態7、9、14及び1
6のいずれか1の印刷ステップに対応する。
Further, in the first embodiment, the image data storage unit 11 by the pixel control unit 104 is used.
The pixel data read-out process from A corresponds to the pixel value acquisition means of any one of modes 1, 3, 20, and 22, and the determination processing unit 108a determines whether any one of the modes 1, 3, 20, and 22 is determined. Corresponding to the processing means, the N-value conversion unit 108b corresponds to any one of the N-value conversion means of the first, third, twentieth and twenty-second embodiments.
In the first embodiment, the printing unit 15 corresponds to the printing unit according to the first or third aspect.
In the first embodiment, step S116 is performed in modes 7, 9, 14, and 1.
6 corresponds to one of the printing steps.

また、上記第1の実施の形態において、ステップS300,S302,S304,S3
08は、形態12、19、31及び38のいずれか1の閾値行分類ステップに対応し、ス
テップS200,ステップS202,S206は、形態7、9、11、14、16、18
、26、28、30、33、35及び37のいずれか1の閾値読出ステップに対応し、ス
テップS204は、形態7、9、14、16、26、28、33及び35のいずれか1の
画素値取得ステップに対応し、ステップS208は、形態7、9、14、16、26、2
8、33及び35のいずれか1のN値化ステップに対応し、ステップS406,S408
、ステップS512,S514,S522,S524、ステップS612,S614,S
624,S626は、形態7、9、14、16、26、28、33及び35のいずれか1
の読出開始位置設定ステップに対応する。
In the first embodiment, steps S300, S302, S304, S3
08 corresponds to the threshold row classification step of any one of forms 12, 19, 31, and 38, and steps S200, S202, and S206 are forms 7, 9, 11, 14, 16, 18
, 26, 28, 30, 33, 35, and 37, the step S204 is a pixel of any one of the forms 7, 9, 14, 16, 26, 28, 33, and 35. Corresponding to the value acquisition step, step S208 is the mode 7, 9, 14, 16, 26, 2
8 corresponds to the N-value conversion step of any one of 33, 35, and steps S406, S408.
, Steps S512, S514, S522, S524, Steps S612, S614, S
624, S626 is any one of forms 7, 9, 14, 16, 26, 28, 33 and 35.
Corresponds to the reading start position setting step.

〔第2の実施の形態〕
次に、本発明の第2の実施の形態を図面に基づき説明する。図19〜図30は、本発明
に係る印刷装置、印刷装置制御プログラム、印刷装置制御方法、画像処理装置、画像処理
プログラム及び画像処理方法、並びに前記プログラムを記憶した記憶媒体の第2の実施の
形態を示す図である。
[Second Embodiment]
Next, a second embodiment of the present invention will be described with reference to the drawings. 19 to 30 show a printing apparatus, a printing apparatus control program, a printing apparatus control method, an image processing apparatus, an image processing program and an image processing method, and a storage medium storing the program according to the second embodiment of the invention. It is a figure which shows a form.

本実施の形態は、上記第1の実施の形態における印刷装置1の画像処理部12の構成が
異なるのみで、他の構成は同様となる。そして、ディザ閾値記憶部102の高速メモリに
、基準ディザマトリックスを1つ分全て記憶するのではなく、各画像データの処理対象行
に必要な閾値データのみを記憶し、処理対象行が変更される毎に、高速メモリに記憶され
た不要な閾値データを削除し、その削除した記憶領域に不足している閾値データを補って
いく点が、主に上記第1の実施の形態と異なる。以下、上記第1の実施の印刷装置1の画
像処理部12を、画像処理部12’に変更し、印刷装置1’として、上記第1の実施の形
態と重複する部分を適宜除きながら説明する。
The present embodiment is the same except for the configuration of the image processing unit 12 of the printing apparatus 1 in the first embodiment. Then, instead of storing the entire reference dither matrix in the high-speed memory of the dither threshold storage unit 102, only the threshold data necessary for the processing target row of each image data is stored, and the processing target row is changed. The difference from the first embodiment is mainly that unnecessary threshold data stored in the high-speed memory is deleted each time, and the threshold data lacking in the deleted storage area is compensated. Hereinafter, the image processing unit 12 of the first embodiment of the printing apparatus 1 is changed to the image processing unit 12 ′, and the printing apparatus 1 ′ will be described while appropriately omitting portions overlapping with those of the first embodiment. .

まず、本発明の第2の実施の形態に係る印刷装置1’の画像処理部12’の構成を図1
9に基づき説明する。図19は、本発明の第2の実施の形態に係る画像処理部12’の構
成を示すブロック図である。
画像処理部12’は、図19に示すように、ディザ閾値分類部100と、ディザ閾値記
憶部102と、画素制御部104と、ディザ閾値メモリ制御部106と、ディザ処理部1
08と、ディザ閾値更新部110とを含んだ構成となっている。
First, the configuration of the image processing unit 12 ′ of the printing apparatus 1 ′ according to the second embodiment of the present invention is shown in FIG.
9 will be described. FIG. 19 is a block diagram showing a configuration of an image processing unit 12 ′ according to the second embodiment of the present invention.
As shown in FIG. 19, the image processing unit 12 ′ includes a dither threshold classification unit 100, a dither threshold storage unit 102, a pixel control unit 104, a dither threshold memory control unit 106, and a dither processing unit 1.
08 and a dither threshold update unit 110.

ディザ閾値記憶部102は、後述する記憶装置70と比較して非常に高速なメモリを1
〜複数個有し、ディザ閾値分類部100で分類された閾値データのグループを、画像デー
タの各処理対象行に必要な分だけ、グループ毎に別々のメモリに、且つ各メモリのアドレ
スの連続する記憶領域に基準ディザマトリックスの配列順に従って記憶する機能を提供す
るようになっている。また、本実施の形態においては、上記第1の実施の形態と同様に、
記憶モードとして、シングルモード及びマルチモードの2つのモードが選択可能となって
いる。
The dither threshold value storage unit 102 has a very high speed memory as compared with a storage device 70 described later.
A plurality of groups of threshold data classified by the dither threshold classifying unit 100 are stored in separate memories for each group as necessary for each processing target row of image data, and addresses of the respective memories are consecutive. The storage area is provided with a function of storing in accordance with the arrangement order of the reference dither matrix. In the present embodiment, as in the first embodiment,
As a storage mode, two modes, a single mode and a multi mode, can be selected.

ディザ閾値メモリ制御部106は、ディザ閾値記憶部102に記憶された閾値データの
読み出しタイミング及び読み出し開始位置などを制御する機能を提供するようになってい
る。つまり、ディザ閾値記憶部102の高速メモリには、処理対象行が変わる毎に、不要
な閾値データに代えて、新規の閾値データが記憶されていくので、各処理対象行に必要な
閾値データを正確な順番で読み出すために、読み出し開始位置の変更等のメモリからの閾
値データの読み出し制御を行う。
ディザ閾値更新部110は、処理対象行が変更される毎に、新たな処理対象行に対して
、各高速メモリから不要な閾値データを削除し、その空いたアドレス領域に、不足してい
る分の閾値データを記憶する機能を提供するようになっている。
The dither threshold memory control unit 106 provides a function of controlling the reading timing and reading start position of threshold data stored in the dither threshold storage unit 102. That is, each time the processing target row changes, new threshold data is stored in the high-speed memory of the dither threshold storage unit 102 instead of unnecessary threshold data. Therefore, the threshold data necessary for each processing target row is stored. In order to read out data in the correct order, threshold data is read out from the memory, such as changing the reading start position.
The dither threshold update unit 110 deletes unnecessary threshold data from each high-speed memory for each new processing target row every time the processing target row is changed, and there is a shortage in the empty address area. A function of storing the threshold data is provided.

次に、図20〜図31に基づき、本実施の形態の動作を説明する。
ここで、図20は、ずらし量1のときの基準ディザマトリックスの画像上の配置例を示
す図である。また、図21は、ずらし量1のときの画像データの処理対象行毎の不要な閾
値データ及び新規に必要な閾値データの関係を示す図である。また、図22は、ずらし量
1のときの参照ポインタの算出処理を示すフローチャートである。また、図23は、閾値
データの更新処理を示すフローチャートである。また、図24は、ずらし量1のときの、
高速メモリへの閾値データの記憶構成の一例を示す図である。また、図25は、ずらし量
2のときの基準ディザマトリックスの画像上の配置例を示す図である。また、図26は、
ずらし量2のときのマルチモードにおける参照ポインタの算出処理を示すフローチャート
である。また、図27は、ずらし量2のときのマルチモードにおける、高速メモリへの閾
値データの記憶構成の一例を示す図である。また、図28は、ずらし量2のときのシング
ルモードにおける参照ポインタの算出処理を示すフローチャートである。また、図29は
、ずらし量2のときのシングルモードにおける、高速メモリへの閾値データの記憶構成の
一例を示す図である。また、図30は、ずらし量2のシングルモード時の閾値データの更
新処理を示すフローチャートである。また、図31は、ずらし量2のときのシングルモー
ドにおける、高速メモリへの2行分毎の閾値データの記憶構成の一例を示す図である。
Next, the operation of the present embodiment will be described with reference to FIGS.
Here, FIG. 20 is a diagram illustrating an arrangement example of the reference dither matrix on the image when the shift amount is 1. FIG. FIG. 21 is a diagram showing a relationship between unnecessary threshold data and newly required threshold data for each processing target row of image data when the shift amount is 1. FIG. 22 is a flowchart showing reference pointer calculation processing when the shift amount is 1. FIG. 23 is a flowchart showing threshold data update processing. FIG. 24 shows the shift amount 1
It is a figure which shows an example of the storage structure of the threshold value data to a high-speed memory. FIG. 25 is a diagram illustrating an arrangement example of the reference dither matrix on the image when the shift amount is 2. FIG. In addition, FIG.
It is a flowchart which shows the calculation process of the reference pointer in the multi mode at the time of shift amount 2. FIG. 27 is a diagram showing an example of a storage configuration of threshold data in the high-speed memory in the multi mode when the shift amount is 2. FIG. 28 is a flowchart showing reference pointer calculation processing in the single mode when the shift amount is 2. FIG. 29 is a diagram showing an example of a storage configuration of threshold data in the high-speed memory in the single mode when the shift amount is 2. FIG. 30 is a flowchart showing threshold data update processing in a single mode with a shift amount of 2. FIG. 31 is a diagram showing an example of a storage configuration of threshold data for every two rows in the high-speed memory in the single mode when the shift amount is 2.

まず、図20〜図24に基づき、ずらし量1で基準ディザマトリックスをシフトしてい
く場合のディザ処理の動作を説明する。なお、基準ディザマトリックスは、上記第1の実
施の形態と同様に、図3に示す6行×6列(DH=6、DW=6)のものを用いることと
する。
まず、ディザ処理の実行前に、基準ディザマトリックスのうち最初の処理対象行のディ
ザ処理に用いる閾値データだけを、ずらし量に応じた構成で、ディザ閾値記憶部102の
高速メモリに記憶する。そのために、印刷装置1’は、ディザ閾値分類部100に基準デ
ィザマトリックスの記憶指示を与える。
First, based on FIGS. 20 to 24, the operation of the dithering process when the reference dither matrix is shifted by the shift amount 1 will be described. As in the first embodiment, a reference dither matrix having 6 rows × 6 columns (DH = 6, DW = 6) shown in FIG. 3 is used.
First, before execution of the dither processing, only threshold data used for dither processing of the first processing target row in the reference dither matrix is stored in the high-speed memory of the dither threshold storage unit 102 in a configuration corresponding to the shift amount. For this purpose, the printing apparatus 1 ′ gives an instruction to store the reference dither matrix to the dither threshold classification unit 100.

ディザ閾値分類部100は、記憶指示が与えられると、まずディザマトリックス記憶部
13から、画像データの最初の行のディザ処理に用いる閾値データを読み出す。図20に
示すように、画像の横幅IWが24(画素数24個)となっているので、基準ディザマト
リックスを、主走査方向に3回シフトすることになる。ここで、ずらし量は1なので、画
像の1行目のみに着目すると、開始時の6画素に対しては閾値データa11〜a16を、
1回目のシフトにより1行ずれるので、次の6画素に対しては閾値データa21〜a26
を、2回目のシフトで更に1行ずれるので、次の6画素に対しては閾値データa31〜a
36を、3回目のシフトで更に1行ずれるので、最後の6画素に対しては閾値データa4
1〜a46をディザ処理に用いることになる。
When a storage instruction is given, the dither threshold classification unit 100 first reads threshold data used for dither processing of the first row of image data from the dither matrix storage unit 13. As shown in FIG. 20, since the horizontal width IW of the image is 24 (the number of pixels is 24), the reference dither matrix is shifted three times in the main scanning direction. Here, since the shift amount is 1, when focusing only on the first line of the image, threshold data a11 to a16 are set for the 6 pixels at the start,
Since one line is shifted by the first shift, the threshold data a21 to a26 are applied to the next six pixels.
Is shifted by one more line in the second shift, the threshold data a31 to a for the next six pixels
36 is shifted by one more line in the third shift, so the threshold data a4 for the last six pixels.
1 to a46 are used for dither processing.

つまり、画像の各行に対して、6行×6列の基準ディザマトリックスの閾値データのう
ち、4行分の閾値データしか使用しないことになる。
従って、画像の1行目のディザ処理に必要な閾値データは、基準ディザマトリックスの
1行目〜4行目(a11〜a46)までの閾値データとなるので、ディザ閾値分類部10
0は、これらの閾値データを、ディザマトリックス記憶部13から読み出して、ディザ閾
値記憶部102に伝送する。また、ずらし量は1行(K=1)であるので、ディザ閾値分
類部100は、分類処理を行わないことになる。
That is, for each row of the image, only threshold data for four rows is used out of threshold data of the reference dither matrix of 6 rows × 6 columns.
Accordingly, the threshold data necessary for the dither processing of the first row of the image is the threshold data from the first row to the fourth row (a11 to a46) of the reference dither matrix.
0 reads these threshold data from the dither matrix storage unit 13 and transmits them to the dither threshold storage unit 102. Further, since the shift amount is one row (K = 1), the dither threshold value classification unit 100 does not perform the classification process.

ディザ閾値記憶部102は、ディザ閾値分類部100から伝送された閾値データを、基
準ディザマトリックスにおけるその配列順に従って、1つの高速メモリのアドレスの連続
する記憶領域に順番に記憶する。
具体的に、画像の横幅IWが24となっているので、先頭アドレスからアドレスの順番
に、第1行目のディザ処理に必要な、第1行目のa11〜a16を、次に第2行目のa2
1〜a26、次に第3行目のa31〜a36、最後に第4行目のa41〜a46をそれぞ
れ順番に1次元的に記憶する。従って、閾値a11のデータが、先頭アドレスの記憶領域
に記憶され、閾値a46のデータが最後尾のアドレスの記憶領域に記憶されることになる
The dither threshold storage unit 102 sequentially stores the threshold data transmitted from the dither threshold classification unit 100 in a continuous storage area of one high-speed memory address according to the arrangement order in the reference dither matrix.
Specifically, since the horizontal width IW of the image is 24, the first row a11 to a16 necessary for the dither processing of the first row in the order of the address from the top address, and then the second row Eye a2
1 to a26, then a31 to a36 in the third row, and finally a41 to a46 in the fourth row are stored one-dimensionally in order. Accordingly, the data of the threshold value a11 is stored in the storage area of the head address, and the data of the threshold value a46 is stored in the storage area of the last address.

なお、閾値データの読み出しにおいては、リングバッファ構成を適用し、参照ポインタ
からアドレスの順番に各閾値データを選択していき、最後尾のアドレスに到達後は、先頭
のアドレスへと戻って再びアドレスの順に選択する。
そして、高速メモリに画像データの第1行目に必要な閾値データだけが記憶された状態
で、ディザ処理が開始されると、まず、ディザ閾値メモリ制御部106において、高速メ
モリに対して閾値データを読み出すアドレス位置である参照ポインタを算出する(ステッ
プS200)。
In reading threshold data, a ring buffer configuration is applied, and each threshold data is selected in the order of addresses from the reference pointer. After reaching the last address, the address is returned to the first address. Select in the order.
When the dither processing is started in a state where only the threshold data necessary for the first row of the image data is stored in the high-speed memory, first, the dither threshold memory control unit 106 uses the threshold data for the high-speed memory. A reference pointer which is an address position from which is read is calculated (step S200).

ずらし量が1のときの参照ポインタの算出処理が開始されると、まず、ディザ閾値メモ
リ制御部106において、現在ディザ処理途中か否かを判定する(ステップS700)。
この場合は、ディザ処理を開始したばかりなので(ステップS700の「No」の分岐)
、閾値データの読み出し開始ポインタを示す変数PLの値を「0」に初期化すると共に(
ステップS702)、画素位置を示す変数PPの値を「0」に初期化する(ステップS7
04)。
When the reference pointer calculation process when the shift amount is 1 is started, first, the dither threshold memory control unit 106 determines whether or not the current dither process is in progress (step S700).
In this case, since the dither processing has just started ("No" branch in step S700).
, The value of the variable PL indicating the threshold value data reading start pointer is initialized to “0” (
In step S702, the value of the variable PP indicating the pixel position is initialized to “0” (step S7).
04).

初期化が終了すると、現在の画素位置が画像の先頭か否かを判定する(ステップS70
6)。この場合は、ディザ処理の開始直後なので、画像の先頭であると判定される(ステ
ップS706の「Yes」の分岐)。そして、画像の先頭位置(PP=0)を参照ポイン
タとしてディザ閾値記憶部102に出力する(ステップS708)。つまり、画像データ
の1行目の先頭画素に対して、高速メモリに対する閾値データの参照ポインタは、画像の
先頭画素と同じ、ポインタ(0)と算出される。
When the initialization is completed, it is determined whether or not the current pixel position is the head of the image (step S70).
6). In this case, since it is immediately after the start of the dither processing, it is determined that it is the head of the image ("Yes" branch in step S706). Then, the head position (PP = 0) of the image is output as a reference pointer to the dither threshold value storage unit 102 (step S708). That is, for the first pixel in the first row of the image data, the threshold data reference pointer for the high-speed memory is calculated as the same pointer (0) as the first pixel of the image.

ここで、図24中の括弧で囲まれた数字は、ポインタ番号を示す。即ち、参照ポインタ
(0)の場合は、図24に示すように、高速メモリにおける、閾値データa11が記憶さ
れている先頭アドレスが、閾値データの読み出しアドレスとなる。
なお、以降のステップS202〜S208の処理は、上記第1の実施の形態と同様とな
るので説明を省略する。
Here, the numbers enclosed in parentheses in FIG. 24 indicate pointer numbers. That is, in the case of the reference pointer (0), as shown in FIG. 24, the leading address where the threshold data a11 is stored in the high-speed memory is the threshold data read address.
In addition, since the process of subsequent step S202-S208 becomes the same as that of the said 1st Embodiment, description is abbreviate | omitted.

ディザ処理部108は、入力された閾値データ及び画素データに対するディザ処理が終
了すると、画像データの全ての画素データに対してディザ処理が終了したか否かを判定す
る(ステップS210)。ここでは、まだ画像の先頭の画素データに対してしかディザ処
理を行っていないので(ステップS210の「No」の分岐)、引き続き、次の画素デー
タに対する参照ポインタの算出処理を行う(ステップS200)。
When the dither processing for the input threshold data and pixel data is completed, the dither processing unit 108 determines whether or not the dither processing has been completed for all the pixel data of the image data (step S210). Here, since the dither processing is still performed only for the top pixel data of the image (“No” branch of step S210), the reference pointer calculation processing for the next pixel data is subsequently performed (step S200). .

この参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップS70
0の「Yes」の分岐)、且つ次の画素位置は先頭位置ではないと判定される(ステップ
S706の「No」の分岐)。このような判定がなされると、更に、読み出した閾値デー
タは画像の改行位置のものか否かを判定する(ステップS710)。ここでは、画像デー
タの各行は24画素あるので、改行位置ではないと判定される(ステップS710の「N
o」の分岐)。
In the reference pointer calculation process, it is determined that the dither process is in progress (step S70).
“Yes” branch of 0) and the next pixel position is determined not to be the head position (“No” branch of step S706). When such a determination is made, it is further determined whether or not the read threshold data is at the line feed position of the image (step S710). Here, since each line of the image data has 24 pixels, it is determined that it is not a line feed position (“N” in step S710).
o "branch).

従って、PPの値に1を加算し(ステップS716)、加算後の値(1)を参照ポイン
タとして出力する(ステップS708)。但し、PPの値は23を上限とし、PPの値が
23のときは、その値に「1」を加算せずにPPの値を「0」とする。
参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。
Therefore, 1 is added to the value of PP (step S716), and the value (1) after the addition is output as a reference pointer (step S708). However, the upper limit of the value of PP is 23. When the value of PP is 23, the value of PP is set to “0” without adding “1” to the value.
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above.

このステップS200〜ステップS210の処理を繰り返し行うことで、閾値データは
、先頭アドレスからアドレス順に、a11〜a46に向かって1つずつ順番に読み出され
、ディザ処理が順次実行される。
そして、閾値データa46まで読み出されると、画像の1行目に対するディザ処理に必
要な分の閾値データが全て読み出されたことになり、ディザ処理は、画像の2行目へと移
行する。
By repeatedly performing the processing from step S200 to step S210, the threshold data is read one by one from the head address in the order of addresses toward a11 to a46, and the dither processing is sequentially executed.
When the threshold data a46 is read, all the threshold data necessary for the dither processing for the first line of the image has been read, and the dither processing shifts to the second line of the image.

つまり、読み出した閾値データが画像データの改行位置(一番右端の画素位置)のもの
となるので(ステップS710の「Yes」の分岐)、この場合に、更新ポインタを示す
変数PRにPLの値(0)を代入し、このPRを参照ポインタとしてディザ閾値更新部1
10に入力する(ステップS712)。
次いで、読み出し開始ポインタを示す変数PLの現在の値に、基準ディザマトリックス
の横幅DW(6)を加算し、画素位置を示す変数PPに、この加算後のPLの値を代入し
て(ステップS714)、この代入後のPPの値を参照ポインタとして出力する(ステッ
プS708)。但し、PLの値は18を上限とし、PLの値が18のときは、その値にD
Wを加算せずにPLの値を「0」とする。
That is, since the read threshold data is the line feed position (rightmost pixel position) of the image data (“Yes” branch in step S710), in this case, the value of PL is set to the variable PR indicating the update pointer. (0) is substituted, and this PR is used as a reference pointer to the dither threshold update unit 1
10 (step S712).
Next, the horizontal width DW (6) of the reference dither matrix is added to the current value of the variable PL indicating the read start pointer, and the value of PL after the addition is substituted for the variable PP indicating the pixel position (step S714). ), And outputs the value of PP after the substitution as a reference pointer (step S708). However, the PL value has an upper limit of 18, and when the PL value is 18, the value is D
The value of PL is set to “0” without adding W.

一方、ディザ閾値更新部110は、参照ポインタPRが入力されると(ステップS80
0の「Yes」の分岐)、高速メモリに対する参照位置のポインタをセットする。また、
画像の2行目のディザ処理に必要な閾値データのうち、現在高速メモリに記憶されている
閾値データに対して不足しているものをディザマトリックス記憶部13から取得する(ス
テップS804)。
On the other hand, when the reference pointer PR is input, the dither threshold update unit 110 (step S80).
0 branch of “Yes”), the pointer of the reference position for the high-speed memory is set. Also,
Of the threshold data necessary for the dither processing of the second row of the image, the data that is insufficient with respect to the threshold data currently stored in the high-speed memory is acquired from the dither matrix storage unit 13 (step S804).

ここで、図24に示すように、ライン番号1(画像の1行目)に対して、現在、高速メ
モリには、閾値データa11〜a46が記憶されている。一方、図21の第2行目の右方
の斜線部に示すように、画像の2行目に対して新規に必要な閾値データは、閾値データa
51〜a56となる。一方、不要なデータは、図21の第1行目の左方に示す閾値データ
a11〜a16となる。つまり、画像の2行目に対して、基準ディザマトリックスにおけ
る1行分の閾値データが不要となり、同様に1行分の閾値データが不足していることにな
る。
Here, as shown in FIG. 24, threshold data a11 to a46 are currently stored in the high-speed memory for line number 1 (the first line of the image). On the other hand, as indicated by the hatched portion on the right side of the second row in FIG. 21, the threshold data newly required for the second row of the image is the threshold data a.
51 to a56. On the other hand, unnecessary data is threshold data a11 to a16 shown on the left side of the first row in FIG. That is, the threshold data for one line in the reference dither matrix is not necessary for the second line of the image, and similarly, the threshold data for one line is insufficient.

従って、ディザ閾値更新部110は、まず、新規に必要な閾値データa51を取得し(
ステップS804)、参照ポインタPRの示す位置(0)に記憶された不要な閾値データ
a11を、前記取得した閾値データa51に書き換える(ステップS806)。そして、
更新後は、変数PRの値に1を加算する(ステップS808)。これにより、PRの値は
1となる。
Accordingly, the dither threshold update unit 110 first acquires the newly required threshold data a51 (
In step S804, unnecessary threshold value data a11 stored at the position (0) indicated by the reference pointer PR is rewritten to the acquired threshold value data a51 (step S806). And
After the update, 1 is added to the value of the variable PR (step S808). As a result, the value of PR becomes 1.

一方、新規に必要な閾値データa52〜a56がまだ残っているので(ステップS81
0の「No」の分岐)、次に、ディザマトリックス記憶部13から閾値データa52を取
得し(ステップS804)、参照ポインタPRの示すポインタ(1)に記憶された閾値デ
ータa12を、前記取得した閾値データa52に書き換える(ステップS806)。
このような更新処理(ステップS802〜S808)を、高速メモリのポインタ(0)
〜(5)までに記憶された閾値データa11〜a16が、新規に必要な閾値データa51
〜a56に全て書き換えられる(更新される)まで繰り返し行う。
On the other hand, the newly required threshold data a52 to a56 still remain (step S81).
Next, the threshold data a52 is acquired from the dither matrix storage unit 13 (step S804), and the threshold data a12 stored in the pointer (1) indicated by the reference pointer PR is acquired. The threshold data is rewritten to a52 (step S806).
Such update processing (steps S802 to S808) is performed by using the high-speed memory pointer (0).
Threshold data a11 to a16 stored up to (5) are newly required threshold data a51.
The process is repeated until all are rewritten (updated) to .about.a56.

上記更新処理によって、図24のライン番号2に対する記憶内容に示すように、高速メ
モリのポインタ(0)〜ポインタ(5)の記憶領域に閾値データa51〜a56が記憶さ
れる。それ以外は、ライン番号1に対する記憶内容と同様のままとなる。
そして、1行分の閾値データの更新が終了すると(ステップS810の「Yes」の分
岐)、画像データの2行目に対するディザ処理が実行される。
Through the above update process, as shown in the stored contents for line number 2 in FIG. Other than that, it remains the same as the stored contents for line number 1.
When the update of the threshold data for one row is completed (“Yes” branch in step S810), the dither processing for the second row of image data is executed.

画像データの2行目に対しては、閾値データの読み出し開始位置が、参照ポインタ(6
)となっており、閾値データa21の記憶されたアドレス位置となる。この開始位置から
、上記同様に、ステップS200〜ステップS210の処理を繰り返し実行し、改行位置
となる毎に、ステップS800〜S810の処理を行い、高速メモリに記憶された、次の
処理対象行に対して不要な閾値データを、次の処理対象行に対して新規に必要な閾値デー
タへと書き換える。これと並行して、読み出し開始位置を横幅DW分ずつずらしていくこ
とで、画像データの各行に対して、高速メモリに対する読み出し開始位置がポインタ(6
)ずつずれていく。
For the second line of image data, the threshold data read start position is the reference pointer (6
), Which is the address position where the threshold data a21 is stored. Similar to the above, the processing of step S200 to step S210 is repeatedly executed from this start position, and each time a line feed position is reached, the processing of steps S800 to S810 is performed, and the next processing target line stored in the high-speed memory is processed. On the other hand, unnecessary threshold data is rewritten to newly required threshold data for the next processing target row. In parallel with this, by shifting the read start position by the width DW, the read start position for the high-speed memory is pointer (6) for each row of image data.
) It shifts gradually.

つまり、上記したように、まず、読み出し開始ポインタから順に、閾値データを1つず
つ順番に読み出す処理を、高速メモリの連続するアドレスに対して循環的に実行する。更
に、画像データの改行位置の画素データに対する閾値データが読み出される毎に、高速メ
モリに記憶された次の処理対象行に不要な閾値データを行単位で、次の処理対象行に対し
て新規に必要な閾値データへと書き換える。これと並行して、読み出し開始ポインタの位
置をDW分(基準ディザマトリックスの1行)ずつ循環的にずらす。
That is, as described above, first, the process of sequentially reading the threshold value data one by one in order from the read start pointer is cyclically executed for consecutive addresses of the high-speed memory. Further, every time the threshold data for the pixel data at the line feed position of the image data is read, unnecessary threshold data for the next processing target row stored in the high-speed memory is newly added to the next processing target row. Rewrite to the required threshold data. In parallel with this, the position of the read start pointer is cyclically shifted by DW (one row of the reference dither matrix).

これにより、図24に示すように、高速メモリの記憶内容の一部及び読み出し開始ポイ
ンタの位置が、画像の行毎に入れ替わり、基準ディザマトリックスを主走査方向にシフト
する毎に、そのシフト前後の基準ディザマトリックスの配置関係が、シフト前に対して、
シフト後が副走査方向とは反対方向に1行単位でずれた状態で閾値データの読み出しが順
次行われることになる。
As a result, as shown in FIG. 24, a part of the storage contents of the high-speed memory and the position of the read start pointer are switched for each row of the image, and each time the reference dither matrix is shifted in the main scanning direction, The arrangement of the reference dither matrix is
After the shift, the threshold value data is sequentially read out in a state where it is shifted in units of one row in the direction opposite to the sub-scanning direction.

このようにして、閾値データを読み出し、ディザ処理を実行して、全ての画素データに
対するディザ処理が終了すると(ステップS210の「Yes」の分岐)、ディザ処理結
果であるN値化データを、印刷データ生成部14に出力する(ステップS212)。
なお、以降の処理(ステップS110〜S116)は、上記第1の実施の形態と同様と
なるので説明を省略する。
In this way, the threshold data is read out, the dither process is executed, and when the dither process for all the pixel data is completed (the branch of “Yes” in step S210), the N-valued data as the dither process result is printed. It outputs to the data generation part 14 (step S212).
Since the subsequent processing (steps S110 to S116) is the same as that of the first embodiment, description thereof is omitted.

次に、図25〜図27に基づき、ずらし量を2とし、且つ記憶モードをマルチモードに
した場合の動作について説明する。なお、ここでは、図3の基準ディザマトリックスを1
6行×16列(DH=16,DW=16)に拡張した構成の基準ディザマトリックスを用
いることとする。
ずらし量が2ということは、図25に示すように、基準ディザマトリックスを主走査方
向にシフトする毎に、そのシフト前後の基準ディザマトリックスの配置関係が、シフト前
に対して、シフト後が副走査方向とは反対方向に2行単位でずれた状態で閾値データの読
み出しが順次行われることになる。
Next, an operation when the shift amount is 2 and the storage mode is the multi-mode will be described with reference to FIGS. Here, the reference dither matrix of FIG.
A reference dither matrix having a configuration expanded to 6 rows × 16 columns (DH = 16, DW = 16) is used.
As shown in FIG. 25, when the shift amount is 2, every time the reference dither matrix is shifted in the main scanning direction, the positional relationship of the reference dither matrix before and after the shift is smaller than that before the shift. The threshold value data is sequentially read in a state shifted by two rows in the direction opposite to the scanning direction.

また、ずらし量が2の場合(ステップS304の「No」の分岐)は、分類法則「(i
(i=1,2,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(
DH/K)−1)×K)」に基づいて、基準ディザマトリックスを分類する(ステップS
308)。
具体的には、ずらし量2の場合は、K=2となるので、基準ディザマトリックスを、i
=1のグループと、i=2のグループとに分類する。
When the shift amount is 2 (“No” branch in step S304), the classification rule “(i
(I = 1, 2,..., K-1, K) + j (j = 0, 1,..., (DH / K) -2, (
DH / K) -1) × K) ", the reference dither matrix is classified (step S
308).
Specifically, when the shift amount is 2, K = 2, so that the reference dither matrix is i
= 1 group and i = 2 group.

つまり、図3に示す16行×16列の基準ディザマトリックスに対して、前記法則によ
り、i=1に対して(1+0×2=1,1+1×2=3,1+2×2=5,1+3×2=
7,1+4×2=9,・・・,1+6×2=13,1+7×2=15)が算出される。
また、i=2に対して(2+0×2=2,2+1×2=4,2+2×2=6,2+3×
2=8,2+4×2=10,・・・,2+6×2=14,2+7×2=16)が算出され
る。
That is, for the reference dither matrix of 16 rows × 16 columns shown in FIG. 2 =
7, 1 + 4 × 2 = 9,..., 1 + 6 × 2 = 13, 1 + 7 × 2 = 15).
For i = 2, (2 + 0 × 2 = 2, 2 + 1 × 2 = 4, 2 + 2 × 2 = 6, 2 + 3 ×
2 = 8, 2 + 4 × 2 = 10,..., 2 + 6 × 2 = 14, 2 + 7 × 2 = 16).

この算出結果は、基準ディザマトリックスの(第1行目、第3行目、第5行目、・・・
、第11行目、第13行目、第15行目)の閾値データで1つのグループを形成し、基準
ディザマトリックスの(第2行目、第4行目、第6行目、・・・、第12行目、第14行
目、第16行目)で1つのグループを形成することを意味する。
従って、ずらし量が2のときは、基準ディザマトリックスは、当該基準ディザマトリッ
クスの、第1行目、第3行目、・・・、第13行目、第15行目の8つの閾値行の組み合
わせからなる第1閾値行グループ、及び第2行目、第4行目、・・・、第14行目、第1
6行目の8つの行の組み合わせからなる第2閾値行グループの2つのグループに分類され
ることになる。
This calculation result is obtained from the reference dither matrix (first line, third line, fifth line,...
, 11th row, 13th row, 15th row) form one group, and the reference dither matrix (2nd row, 4th row, 6th row,...). , 12th row, 14th row, 16th row) means that one group is formed.
Therefore, when the shift amount is 2, the reference dither matrix is the eight threshold rows of the first row, the third row,..., The thirteenth row, the fifteenth row of the reference dither matrix. 1st threshold row group consisting of combinations, 2nd row, 4th row,..., 14th row, 1st row
It is classified into two groups of the second threshold row group consisting of a combination of eight rows of the sixth row.

そして、ディザ閾値記憶部102は、最初に、これら分類された2つの閾値行グループ
のうち、画像の1行目及び2行目のディザ処理に必要な分だけ、閾値行グループ毎に、2
つの高速メモリ(第1高速メモリ及び第2高速メモリ)にそれぞれ別々に記憶する(ステ
ップS314)。
具体的には、まず、第1閾値行グループのうち、画像の1行目のディザ処理に必要な閾
値データのみを、第1高速メモリのアドレスの連続する領域に、その配列順に順番に記憶
する。図25の斜線部に示すように、画像の第1行目に対しては、第1閾値行グループに
おける、第1行目の閾値データa11〜a1f、第3行目の閾値データa31〜a3f及
び第5行目の閾値データa51〜a5fが必要となる。
Then, the dither threshold value storage unit 102 first sets 2 for each threshold row group by the amount necessary for the dither processing of the first row and the second row of the image among the two threshold row groups thus classified.
Each of the high-speed memories (first high-speed memory and second high-speed memory) is stored separately (step S314).
Specifically, first, in the first threshold row group, only the threshold data necessary for the dither processing of the first row of the image is stored in order in the arrangement order in the continuous area of the address of the first high-speed memory. . As indicated by the hatched portion in FIG. 25, for the first row of the image, threshold data a11 to a1f on the first row, threshold data a31 to a3f on the third row in the first threshold row group, and Threshold data a51 to a5f on the fifth row are required.

つまり、画像の横幅IWは48であり、画像の各行に対して、16行×16列の基準デ
ィザマトリックスの閾値データのうち、3行分の閾値データしか使用しないことになる。
従って、ディザ閾値分類部100は、画像の1行目に対して、閾値データa11〜a1
f、a31〜a3f及びa51〜a5fを、ディザマトリックス記憶部13から読み出し
て、ディザ閾値記憶部102に伝送する。
That is, the horizontal width IW of the image is 48, and only the threshold data for three rows is used for the threshold data of the reference dither matrix of 16 rows × 16 columns for each row of the image.
Therefore, the dither threshold value classification unit 100 applies the threshold data a11 to a1 to the first line of the image.
f, a31 to a3f, and a51 to a5f are read from the dither matrix storage unit 13 and transmitted to the dither threshold storage unit 102.

次に、第2閾値行グループのうち、画像の2行目のディザ処理に必要な閾値データのみ
を、第2高速メモリのアドレスの連続する領域に、その配列順に順番に記憶していく。図
25の斜線部に示すように、画像の第2行目に対しては、第2閾値行グループにおける、
第2行目の閾値データa21〜a2f、第4行目の閾値データa41〜a4f及び第6行
目の閾値データa61〜a6fが必要となる。
Next, in the second threshold row group, only threshold data necessary for the dither processing of the second row of the image is stored in order in the arrangement order in the continuous area of the address of the second high-speed memory. As indicated by the hatched portion in FIG. 25, for the second row of the image, in the second threshold row group,
Threshold data a21 to a2f on the second row, threshold data a41 to a4f on the fourth row, and threshold data a61 to a6f on the sixth row are required.

従って、ディザ閾値分類部100は、画像の2行目に対して、閾値データa21〜a2
f、a41〜a4f及びa61〜a6fを、ディザマトリックス記憶部13から読み出し
て、ディザ閾値記憶部102に伝送する。
ディザ閾値記憶部102は、ディザ閾値分類部100から上記各閾値データが伝送され
てくると、閾値データa11〜a1f、a31〜a3f及びa51〜a5fを、この順番
で、第1高速メモリのアドレスの連続する記憶領域に記憶する。同様に、閾値データa2
1〜a2f、a41〜a4f及びa61〜a6fを、この順番で、第2高速メモリのアド
レスの連続する記憶領域に記憶する。
Therefore, the dither threshold value classification unit 100 applies the threshold data a21 to a2 to the second line of the image.
f, a41 to a4f, and a61 to a6f are read from the dither matrix storage unit 13 and transmitted to the dither threshold storage unit 102.
When each of the threshold data is transmitted from the dither threshold classification unit 100, the dither threshold storage unit 102 stores the threshold data a11 to a1f, a31 to a3f, and a51 to a5f in this order in the addresses of the first high-speed memory. Store in consecutive storage areas. Similarly, threshold data a2
1 to a2f, a41 to a4f, and a61 to a6f are stored in this order in a storage area where addresses of the second high-speed memory are continuous.

従って、閾値a11のデータが、第1高速メモリの先頭アドレスの記憶領域に記憶され
、閾値a5fのデータが最後尾のアドレスの記憶領域に記憶されることになる。
また、閾値a21のデータが、第2高速メモリの先頭アドレスの記憶領域に記憶され、
閾値a6fのデータが最後尾のアドレスの記憶領域に記憶されることになる。
そして、閾値データの読み出しにおいては、上記ずらし量が1のときと同様に、リング
バッファ構成を適用する。
Accordingly, the data of the threshold value a11 is stored in the storage area of the first address of the first high-speed memory, and the data of the threshold value a5f is stored in the storage area of the last address.
Further, the data of the threshold value a21 is stored in the storage area of the start address of the second high speed memory,
The data of the threshold value a6f is stored in the storage area of the last address.
In reading the threshold data, a ring buffer configuration is applied as in the case where the shift amount is 1.

第1及び第2高速メモリに、上記分類された基準ディザマトリックスがそれぞれ記憶さ
れた状態で、ディザ処理が開始されると、まず、ディザ閾値メモリ制御部106において
、第1又は第2高速メモリに対して閾値データを読み出すアドレス位置である参照ポイン
タを算出する(ステップS200)。
ずらし量が2で且つマルチモードのときの参照ポインタの算出処理が開始されると、ま
ず、ディザ閾値メモリ制御部106において、現在ディザ処理途中か否かを判定する(ス
テップS900)。この場合は、ディザ処理を開始したばかりなので(ステップS900
の「No」の分岐)、第1高速メモリ及び第2高速メモリに対する閾値データの読み出し
開始ポインタを示す変数PL1及びPL2の値をそれぞれ「0」に初期化すると共に(ス
テップS902)、画像データの奇数行及び偶数行の画素位置を示す変数PP1及びPP
2の値をそれぞれ「0」に初期化する(ステップS904)。
When the dither processing is started with the classified reference dither matrix stored in the first and second high-speed memories, first, the dither threshold memory control unit 106 first stores the first or second high-speed memory in the first or second high-speed memory. On the other hand, a reference pointer that is an address position from which threshold data is read is calculated (step S200).
When the reference pointer calculation process when the shift amount is 2 and the multi mode is started, first, the dither threshold memory control unit 106 determines whether or not the current dither process is in progress (step S900). In this case, the dither process has just started (step S900).
, The values of variables PL1 and PL2 indicating the threshold data read start pointers for the first high-speed memory and the second high-speed memory are initialized to “0”, respectively (step S902). Variables PP1 and PP indicating pixel positions of odd and even rows
Each value of 2 is initialized to “0” (step S904).

初期化が終了すると、画像データの処理対象行が、奇数行目か否かを判定する(ステッ
プS906)。この場合は、まず画像データの第1行目から処理を行うので、奇数行目と
なり(ステップS906の「Yes」の分岐)、且つ現在の画素位置は画像の1行目の先
頭となるので(ステップS908の「Yes」の分岐)、画像の先頭位置(PP1=0)
を参照ポインタとしてディザ閾値記憶部102に出力する(ステップS910)。
つまり、画像データの1行目の先頭画素に対して、第1高速メモリに対する閾値データ
の参照ポインタは、画像の先頭画素と同じ、ポインタ(0)と算出される。
When the initialization is completed, it is determined whether or not the processing target row of the image data is an odd-numbered row (step S906). In this case, since processing is first performed from the first line of the image data, it becomes an odd line (the branch of “Yes” in step S906), and the current pixel position is the top of the first line of the image ( “Yes” branch of step S908), the top position of the image (PP1 = 0)
Is output to the dither threshold storage unit 102 as a reference pointer (step S910).
That is, for the first pixel in the first row of the image data, the threshold data reference pointer for the first high-speed memory is calculated as the same pointer (0) as the first pixel of the image.

ここで、図27中の括弧で囲まれた数字は、ポインタ番号を示す。即ち、参照ポインタ
(0)の場合は、第1高速メモリにおける、閾値データa11が記憶されている先頭アド
レスが、閾値データの読み出しアドレスとなる。以降のステップS202〜S210の処
理は、上記ずらし量1と同様となるので省略する。
画像データの第1行目の先頭画素データ及び第1高速メモリのポインタ(0)の閾値デ
ータに対するディザ処理が終了すると、まだ、画像の第1行目の先頭画素データに対して
しかディザ処理を行っていないので(ステップS210の「No」の分岐)、引き続き、
次の画素データに対する参照ポインタの算出処理を行う(ステップS200)。
Here, the numbers in parentheses in FIG. 27 indicate pointer numbers. That is, in the case of the reference pointer (0), the head address where the threshold data a11 is stored in the first high-speed memory is the threshold data read address. The subsequent steps S202 to S210 are the same as those for the shift amount 1 described above, and are therefore omitted.
When the dither processing for the first pixel data of the first row of the image data and the threshold data of the pointer (0) of the first high-speed memory is completed, the dither processing is still performed only for the first pixel data of the first row of the image. Since it has not been done ("No" branch of step S210),
A reference pointer calculation process for the next pixel data is performed (step S200).

この参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップS90
0の「Yes」の分岐)、次の画素位置は奇数行(ステップS906の「Yes」の分岐
)且つ先頭位置ではないと判定される(ステップS908の「No」の分岐)。このよう
な判定がなされると、更に、読み出した閾値データは画像の改行位置のものか否かを判定
する(ステップS912)。画像データの各行は、48画素あるので、改行位置ではない
と判定される(ステップS912の「No」の分岐)。従って、PP1の値に1を加算し
(ステップS916)、加算後の値(1)を参照ポインタとして出力する(ステップS9
10)。但し、PP1の値は47を上限とし、PP1の値が47のときは、その値に「1
」を加算せずにPP1の値を「0」とする。
In this reference pointer calculation process, it is determined that the dither process is in progress (step S90).
It is determined that the next pixel position is an odd-numbered row (“Yes” branch in step S906) and not the top position (“No” branch in step S908). When such a determination is made, it is further determined whether or not the read threshold value data is at the line feed position of the image (step S912). Since each line of the image data has 48 pixels, it is determined that the line is not a line feed position ("No" branch in step S912). Therefore, 1 is added to the value of PP1 (step S916), and the value (1) after the addition is output as a reference pointer (step S9).
10). However, the upper limit of the value of PP1 is 47. When the value of PP1 is 47, the value is “1”.
The value of PP1 is set to “0” without adding “”.

参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。
また、ステップS200〜ステップS210の処理を繰り返し行うことで、閾値データ
は、第1高速メモリにおける先頭アドレスからアドレス順に、a11〜a56に向かって
1つずつ順番に読み出され、ディザ処理が実行される。
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above.
In addition, by repeatedly performing the processing from step S200 to step S210, the threshold data is read one by one from the top address in the first high-speed memory in order of addresses toward a11 to a56, and the dither processing is executed. The

そして、読み出した閾値データが画像データの改行位置(一番右端の画素位置)のもの
となると(ステップS912の「Yes」の分岐)、この場合に、第1高速メモリにおけ
る更新ポインタを示す変数PR1にPL1の値(0)を代入し、このPR1を参照ポイン
タとしてディザ閾値更新部110に入力する(ステップS914)。
次いで、読み出し開始ポインタを示す変数PL1の現在の値に、基準ディザマトリック
スの横幅DW(16)を加算し、画素位置を示す変数PP1に、この加算後のPL1の値
を代入して(ステップS916)、この代入後のPP1の値を参照ポインタとして出力す
る(ステップS910)。但し、PL1の値は32を上限とし、PL1の値が32のとき
は、その値にDWを加算せずにPL1の値を「0」とする。
Then, when the read threshold data comes to the line feed position (rightmost pixel position) of the image data (“Yes” branch of step S912), in this case, the variable PR1 indicating the update pointer in the first high-speed memory Is substituted with the value of PL1 (0), and this PR1 is input to the dither threshold update unit 110 as a reference pointer (step S914).
Next, the horizontal width DW (16) of the reference dither matrix is added to the current value of the variable PL1 indicating the read start pointer, and the value of PL1 after the addition is substituted for the variable PP1 indicating the pixel position (step S916). ), And outputs the value of PP1 after this substitution as a reference pointer (step S910). However, the upper limit of the value of PL1 is 32. When the value of PL1 is 32, the value of PL1 is set to “0” without adding DW to the value.

一方、ディザ閾値更新部110は、参照ポインタPR1が入力されると(ステップS8
00の「Yes」の分岐)、第1高速メモリに対する参照位置のポインタをセットする。
また、画像の3行目のディザ処理に必要な閾値データのうち、現在第1高速メモリに記憶
されている閾値データに対して不足しているものをディザマトリックス記憶部13から取
得する(ステップS804)。
On the other hand, when the reference pointer PR1 is input, the dither threshold update unit 110 (step S8).
00 "Yes" branch), the pointer of the reference position for the first high-speed memory is set.
Further, among the threshold data necessary for the dither processing of the third line of the image, the data that is insufficient with respect to the threshold data currently stored in the first high-speed memory is acquired from the dither matrix storage unit 13 (step S804). ).

ここで、図27に示すように、ライン番号1(画像の1行目)に対して、現在、第1高
速メモリには、閾値データa11〜a1f、a31〜a3f及びa51〜a5fが記憶さ
れている。一方、図25の第3行目の右方の斜線部に示すように、画像の3行目に対して
新規に必要な閾値データは、閾値データa71〜a7fとなる。一方、不要なデータは、
閾値データa11〜a1fとなる。
Here, as shown in FIG. 27, the threshold data a11 to a1f, a31 to a3f, and a51 to a5f are currently stored in the first high-speed memory for the line number 1 (first line of the image). Yes. On the other hand, as indicated by the hatched portion on the right side of the third row in FIG. 25, the threshold data newly required for the third row of the image are threshold data a71 to a7f. On the other hand, unnecessary data
The threshold data are a11 to a1f.

従って、ディザ閾値更新部110は、まず、新規に必要な閾値データa71を取得し(
ステップS804)、第1高速メモリにおける参照ポインタPR1の示す位置(0)に記
憶された不要な閾値データa11を、前記取得した閾値データa71に書き換える(ステ
ップS806)。そして、更新後は、変数PR1の値に1を加算する(ステップS808
)。これにより、PR1の値は1となる。
Accordingly, the dither threshold update unit 110 first acquires the newly required threshold data a71 (
In step S804, the unnecessary threshold data a11 stored at the position (0) indicated by the reference pointer PR1 in the first high-speed memory is rewritten to the acquired threshold data a71 (step S806). After updating, 1 is added to the value of the variable PR1 (step S808).
). As a result, the value of PR1 becomes 1.

このような更新処理を、上記ずらし量が1のときと同様に繰り返し行う。
上記更新処理によって、図27のライン番号3に対する記憶内容に示すように、第1高
速メモリのポインタ(0)〜ポインタ(15)の記憶領域に閾値データa71〜a7fが
記憶される。それ以外は、ライン番号1に対する記憶内容と同様のままとなる。
また、図27に示すように、第1高速メモリに記憶された閾値データ(つまり、第1閾
値行グループの閾値データ)が画像の奇数行のディザ処理に用いられ、第2高速メモリに
記憶された閾値データ(つまり、第2閾値行グループの閾値データ)が画像の偶数行のデ
ィザ処理に用いられる。
そして、1行分の閾値データの更新が終了すると(ステップS810の「Yes」の分
岐)、画像データの2行目に対するディザ処理が実行される。
Such an update process is repeated in the same manner as when the shift amount is 1.
As a result of the update process, threshold data a71 to a7f are stored in the storage areas of the pointer (0) to the pointer (15) of the first high-speed memory, as shown in the storage contents for line number 3 in FIG. Other than that, it remains the same as the stored contents for line number 1.
In addition, as shown in FIG. 27, the threshold data stored in the first high-speed memory (that is, the threshold data of the first threshold row group) is used for dither processing of the odd-numbered rows of the image and stored in the second high-speed memory. The threshold data (that is, the threshold data of the second threshold row group) is used for dithering the even rows of the image.
When the update of the threshold data for one row is completed (“Yes” branch in step S810), the dither processing for the second row of image data is executed.

画像データの処理対象行が、2行目(偶数行)に移行すると(ステップS906の「N
o」の分岐)、現在の画素位置が画像の2行目の先頭の場合(ステップS920の「Ye
s」の分岐)、画素位置変数PP2の値(0)を参照ポインタとしてディザ閾値記憶部1
02に出力する(ステップS910)。つまり、画像データの2行目の先頭画素に対して
、第2高速メモリに対する閾値データの参照ポインタは、画像の第2行目の先頭画素と同
じ、ポインタ(0)と算出される。なお、以降のステップS202〜S210の処理は、
上記ずらし量1と同様となるので説明を省略する。
画像データの第2行目の先頭画素データ及び第2高速メモリのポインタ(0)の閾値デ
ータに対するディザ処理が終了すると、まだ、画像の第2行目の先頭画素データに対して
しかディザ処理を行っていないので(ステップS210の「No」の分岐)、引き続き、
次の画素データに対する参照ポインタの算出処理を行う(ステップS200)。
When the processing target row of the image data shifts to the second row (even row) (“N” in step S906).
o ”branch), if the current pixel position is the top of the second row of the image (“ Yes ”in step S920)
dither threshold value storage unit 1 using the value (0) of the pixel position variable PP2 as a reference pointer
It outputs to 02 (step S910). That is, for the first pixel in the second row of the image data, the threshold data reference pointer for the second high-speed memory is calculated as the same pointer (0) as the first pixel in the second row of the image. In addition, the process of subsequent steps S202-S210 is as follows.
Since it becomes the same as the said shift amount 1, description is abbreviate | omitted.
When the dither processing for the first pixel data of the second row of the image data and the threshold data of the pointer (0) of the second high-speed memory is completed, the dither processing is still performed only for the first pixel data of the second row of the image. Since it has not been done ("No" branch of step S210),
A reference pointer calculation process for the next pixel data is performed (step S200).

この参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップS90
0の「Yes」の分岐)、次の画素位置は偶数行(ステップS906の「No」の分岐)
且つ先頭位置ではないと判定される(ステップS920の「No」の分岐)。このような
判定がなされると、更に、読み出した閾値データは画像の改行位置のものか否かを判定す
る(ステップS922)。ここでは、画像データの各行は、48画素あるので、改行位置
ではないと判定される(ステップS924の「No」の分岐)。従って、PP2の値に1
を加算し(ステップS926)、加算後の値(1)を参照ポインタとして出力する(ステ
ップS922)。但し、PP2の値は47を上限とし、PP2の値が47のときは、その
値に「1」を加算せずにPP2の値を「0」とする。
In this reference pointer calculation process, it is determined that the dither process is in progress (step S90).
“Yes” branch of 0), the next pixel position is an even row (“No” branch of step S906)
In addition, it is determined that the position is not the head position ("No" branch in step S920). If such a determination is made, it is further determined whether or not the read threshold data is at the line feed position of the image (step S922). Here, since each line of the image data has 48 pixels, it is determined that the line is not a line feed position ("No" branch in step S924). Therefore, the value of PP2 is 1
Are added (step S926), and the added value (1) is output as a reference pointer (step S922). However, the upper limit of the value of PP2 is 47. When the value of PP2 is 47, the value of PP2 is set to “0” without adding “1” to the value.

参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。
また、ステップS200〜ステップS210の処理を繰り返し行うことで、閾値データ
は、先頭アドレスからアドレス順に、a21〜a66に向かって1つずつ順番に読み出さ
れ、ディザ処理が実行される。
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above.
In addition, by repeatedly performing the processing from step S200 to step S210, the threshold data is read one by one from the top address to the a21 to a66 in order of address, and the dither processing is executed.

そして、読み出した閾値データが画像データの改行位置(一番右端の画素位置)のもの
となると(ステップS924の「Yes」の分岐)、この場合に、第2高速メモリにおけ
る更新ポインタを示す変数PR2にPL2の値(0)を代入し、このPR2を参照ポイン
タとしてディザ閾値更新部110に入力する(ステップS926)。
次いで、読み出し開始ポインタを示す変数PL2の現在の値に、基準ディザマトリック
スの横幅DW(16)を加算し、画素位置を示す変数PP2に、この加算後のPL2の値
を代入して(ステップS928)、この代入後のPP2の値を参照ポインタとして出力す
る(ステップS922)。但し、PL2の値は32を上限とし、PL2の値が32のとき
は、その値にDWを加算せずにPL2の値を「0」とする。
Then, when the read threshold data comes to the line feed position (rightmost pixel position) of the image data (“Yes” branch in step S924), in this case, the variable PR2 indicating the update pointer in the second high-speed memory The value (0) of PL2 is substituted for and this PR2 is input to the dither threshold update unit 110 as a reference pointer (step S926).
Next, the horizontal width DW (16) of the reference dither matrix is added to the current value of the variable PL2 indicating the read start pointer, and the value of PL2 after the addition is substituted for the variable PP2 indicating the pixel position (step S928). ), And outputs the value of PP2 after this substitution as a reference pointer (step S922). However, the upper limit of the value of PL2 is 32. When the value of PL2 is 32, the value of PL2 is set to “0” without adding DW to the value.

一方、ディザ閾値更新部110は、参照ポインタPR2が入力されると(ステップS8
00の「Yes」の分岐)、第2高速メモリに対して参照位置のポインタをセットする。
また、画像の4行目のディザ処理に必要な閾値データのうち、現在第2高速メモリに記憶
されている閾値データに対して不足しているものをディザマトリックス記憶部13から取
得する(ステップS804)。
On the other hand, when the reference pointer PR2 is input, the dither threshold update unit 110 (step S8).
00 "Yes" branch), the pointer of the reference position is set for the second high-speed memory.
Further, among the threshold data necessary for the dither processing of the fourth line of the image, the data that is insufficient with respect to the threshold data currently stored in the second high-speed memory is acquired from the dither matrix storage unit 13 (step S804). ).

ここで、図27に示すように、ライン番号2(画像の2行目)に対して、現在、第2高
速メモリには、閾値データa21〜a2f、a41〜a4f及びa61〜a6fが記憶さ
れている。一方、図25の第4行目の右方の斜線部に示すように、画像の4行目に対して
新規に必要な閾値データは、閾値データa81〜a8fとなる。一方、不要なデータは、
閾値データa21〜a2fとなる。
Here, as shown in FIG. 27, the threshold data a21 to a2f, a41 to a4f, and a61 to a6f are currently stored in the second high-speed memory for the line number 2 (second line of the image). Yes. On the other hand, as indicated by the hatched portion on the right side of the fourth row in FIG. 25, the threshold data newly required for the fourth row of the image are threshold data a81 to a8f. On the other hand, unnecessary data
The threshold data are a21 to a2f.

従って、ディザ閾値更新部110は、まず、新規に必要な閾値データa81を取得し(
ステップS804)、第2高速メモリにおける参照ポインタPR2の示す位置(0)に記
憶された不要な閾値データa21を、前記取得した閾値データa81に書き換える(ステ
ップS806)。そして、書き換え後(更新後)は、変数PR2の値に1を加算する(ス
テップS808)。これにより、PR2の値は1となる。
Accordingly, the dither threshold update unit 110 first acquires the newly required threshold data a81 (
In step S804, unnecessary threshold data a21 stored at the position (0) indicated by the reference pointer PR2 in the second high speed memory is rewritten to the acquired threshold data a81 (step S806). Then, after rewriting (after updating), 1 is added to the value of the variable PR2 (step S808). As a result, the value of PR2 becomes 1.

このような更新処理を、上記ずらし量が1のときと同様に繰り返し行う。
上記更新処理によって、図27のライン番号4に対する記憶内容に示すように、第2高
速メモリのポインタ(0)〜ポインタ(15)の記憶領域に閾値データa81〜a8fが
記憶される。それ以外は、ライン番号2に対する記憶内容と同様のままとなる。
そして、1行分の閾値データの更新が終了すると(ステップS810の「Yes」の分
岐)、画像データの3行目に対するディザ処理が実行される。
Such an update process is repeated in the same manner as when the shift amount is 1.
As a result of the update process, threshold data a81 to a8f are stored in the storage areas of the pointer (0) to the pointer (15) of the second high-speed memory, as shown in the stored contents for line number 4 in FIG. Other than that, it is the same as the stored contents for the line number 2.
When the update of the threshold data for one row is completed (“Yes” branch in step S810), the dither processing for the third row of the image data is executed.

一方、画像データの3行目に対しては、閾値データの読み出し開始位置は、第1高速メ
モリにおける参照ポインタ(12)となり、図27のライン番号3の記憶内容に示すよう
に、閾値データa31の記憶されたアドレス位置となる。この開始位置から、上記同様に
、ステップS200〜ステップS210の処理を繰り返し実行し、改行位置の閾値データ
が読み出される毎に、不要な1行分の閾値データを、新規に必要な閾値データへと更新し
、且つ、読み出し開始位置を横幅DW分ずつずらす。これにより、必要な閾値データが随
時更新され、且つ画像データの奇数行の各行に対して、読み出し開始位置が閾値12個分
(ポインタ数でも12)ずつずれていく。
On the other hand, for the third row of image data, the threshold data read start position is the reference pointer (12) in the first high-speed memory, and as shown in the stored contents of line number 3 in FIG. Stored address position. Similar to the above, the processing from step S200 to step S210 is repeatedly executed from this start position, and each time the threshold value data at the line feed position is read, the unnecessary threshold data for one line is changed to newly required threshold data. Updating is performed, and the reading start position is shifted by the width DW. As a result, necessary threshold data is updated as needed, and the read start position is shifted by 12 thresholds (12 pointers) for each odd-numbered row of image data.

また、画像データの4行目に対しては、閾値データの読み出し開始位置は、第2高速メ
モリにおける参照ポインタ(12)となり、図27のライン番号4の記憶内容に示すよう
に、閾値データa41の記憶されたアドレス位置となる。この開始位置から、上記同様に
、ステップS200〜ステップS210の処理を繰り返し実行し、改行位置の閾値データ
が読み出される毎に、不要な1行分の閾値データを、新規に必要な閾値データへと更新し
、且つ、読み出し開始位置を横幅DW分ずつずらす。これにより、必要な閾値データが随
時更新され、且つ画像データの偶数行の各行に対して、読み出し開始位置が閾値12個分
(ポインタ数でも12)ずつずれていく。
For the fourth line of the image data, the threshold data read start position is the reference pointer (12) in the second high-speed memory, and as shown in the stored content of line number 4 in FIG. Stored address position. Similar to the above, the processing from step S200 to step S210 is repeatedly executed from this start position, and each time the threshold value data at the line feed position is read, the unnecessary threshold data for one line is changed to newly required threshold data. Updating is performed, and the reading start position is shifted by the width DW. As a result, necessary threshold data is updated as needed, and the reading start position is shifted by 12 thresholds (12 pointers) for each even-numbered row of image data.

なお、第1高速メモリ及び第2高速メモリのからの閾値データの読み出しは、上記第1
の実施の形態と同様に、リングバッファ構成で行われる。従って、最後尾のポインタまで
到達すると、次に先頭ポインタへと戻り、再び先頭ポインタから順に閾値データを読み出
すことになる。
つまり、上記したように、画像データの奇数行に対しては、まず、読み出し開始ポイン
タから順に、第1高速メモリから閾値データを順番に読み出す処理を、第1高速メモリの
連続するアドレスに対して循環的に実行する。更に、画像データの改行位置の画素データ
に対する閾値データが読み出される毎に、第1高速メモリにおける不要な閾値データを、
次の奇数行のディザ処理に対して新規に必要な閾値データに更新すると共に、読み出し開
始ポインタの位置をDW分(基準ディザマトリックスの1行)ずつ循環的にずらす。
Note that the threshold data is read from the first high-speed memory and the second high-speed memory as the first high-speed memory.
As in the first embodiment, the ring buffer configuration is used. Accordingly, when the last pointer is reached, the process returns to the first pointer, and the threshold data is read again sequentially from the first pointer.
That is, as described above, for odd-numbered rows of image data, first, the process of sequentially reading threshold data from the first high-speed memory in order from the read start pointer is performed for consecutive addresses in the first high-speed memory. Run cyclically. Further, every time the threshold data for the pixel data at the line feed position of the image data is read, unnecessary threshold data in the first high-speed memory is
The threshold data is newly updated for dither processing for the next odd-numbered row, and the position of the read start pointer is cyclically shifted by DW (one row of the reference dither matrix).

一方、画像データの偶数行に対しては、まず、読み出し開始ポインタから順に、第2高
速メモリから閾値データを順番に読み出す処理を、第2高速メモリの連続するアドレスに
対して循環的に実行する。更に、画像データの改行位置の画素データに対する閾値データ
が読み出される毎に、第2高速メモリにおける不要な閾値データを、次の奇数行のディザ
処理に対して新規に必要な閾値データに更新すると共に、読み出し開始ポインタの位置を
DW分(基準ディザマトリックスの1行)ずつ循環的にずらす。
On the other hand, for even-numbered rows of image data, first, the process of sequentially reading threshold data from the second high-speed memory in order from the read start pointer is cyclically executed for successive addresses in the second high-speed memory. . Further, every time the threshold data for the pixel data at the line feed position of the image data is read, the unnecessary threshold data in the second high-speed memory is updated to the threshold data that is newly required for the dither processing of the next odd line. The position of the read start pointer is cyclically shifted by DW (one row of the reference dither matrix).

このように、第1高速メモリ及び第2高速メモリを奇数行及び偶数行に分けて、処理対
象行毎に、閾値データの更新をしながら交互に閾値データの読み出しを行うことにより、
図25に示すように、基準ディザマトリックスを主走査方向にシフトする毎に、そのシフ
ト前後の基準ディザマトリックスの配置関係が、シフト前に対して、シフト後が副走査方
向とは反対方向に2行単位でずれた状態で閾値データの読み出しが順次行われることにな
る。
In this way, by dividing the first high-speed memory and the second high-speed memory into odd-numbered rows and even-numbered rows and alternately reading out threshold data while updating threshold data for each processing target row,
As shown in FIG. 25, every time the reference dither matrix is shifted in the main scanning direction, the positional relationship of the reference dither matrix before and after the shift is 2 in the direction opposite to the sub-scanning direction after the shift compared to before the shift. The threshold data is sequentially read out in a state of being shifted in line units.

なお、以降の処理(ステップS210〜S216)は、上記第1の実施の形態と同様と
なるので説明を省略する。
次に、図25並びに図28〜図31に基づき、ずらし量を2とし、且つ記憶モードをシ
ングルモードにした場合の動作について説明する。ここで、基準ディザマトリックスは、
上記ずらし量2のマルチモードのときと同様に、16行×16列(DH=16,DW=1
6)の構成のものを用いることとする。
Since the subsequent processing (steps S210 to S216) is the same as that of the first embodiment, description thereof is omitted.
Next, the operation when the shift amount is 2 and the storage mode is the single mode will be described based on FIG. 25 and FIGS. Where the reference dither matrix is
16 rows × 16 columns (DH = 16, DW = 1) as in the multi-mode with the shift amount 2 described above.
6) is used.

ずらし量が2ということは、図25に示すように、基準ディザマトリックスを主走査方
向にシフトする毎に、そのシフト前後の基準ディザマトリックスの配置関係が、シフト前
に対して、シフト後が副走査方向とは反対方向に2行単位でずれた状態で閾値データの読
み出しが順次行われることになる。
基準ディザマトリックスの分類処理については、上記ずらし量2のマルチモードのとき
と同様となるので、説明を省略する。
As shown in FIG. 25, when the shift amount is 2, every time the reference dither matrix is shifted in the main scanning direction, the positional relationship of the reference dither matrix before and after the shift is smaller than that before the shift. The threshold value data is sequentially read in a state shifted by two rows in the direction opposite to the scanning direction.
Since the reference dither matrix classification process is the same as that in the multi-mode with the shift amount of 2, the description thereof is omitted.

従って、上記同様に、ずらし量が2のときは、基準ディザマトリックスは、当該基準デ
ィザマトリックスの、第1行目、第3行目、・・・、第13行目、第15行目の8つの閾
値行の組み合わせからなる第1閾値行グループ、及び第2行目、第4行目、・・・、第1
4行目、第16行目の8つの行の組み合わせからなる第2閾値行グループの2つのグルー
プに分類されることになる。
Accordingly, as described above, when the shift amount is 2, the reference dither matrix is the first row, the third row,..., The 13th row, the 15th row 8 of the reference dither matrix. A first threshold row group consisting of a combination of two threshold rows, a second row, a fourth row,.
It is classified into two groups of the second threshold row group composed of combinations of eight rows of the 4th row and the 16th row.

そして、ディザ閾値記憶部102は、記憶モードがシングルモードであるため(ステッ
プS310の「Yes」の分岐)、上記分類された2つの閾値行グループを、1つの高速
メモリに所定の順番で記憶する(ステップS312)。具体的な記憶方法は、上記第1の
実施の形態と同様となるが、本実施の形態においては、各閾値行グループにおいて、画像
の1行目及び2行目のディザ処理に使用する分だけを記憶する。
Since the storage mode is the single mode (the branch of “Yes” in step S310), the dither threshold storage unit 102 stores the two classified threshold row groups in one high-speed memory in a predetermined order. (Step S312). The specific storage method is the same as in the first embodiment, but in this embodiment, in each threshold row group, only the amount used for the dither processing of the first and second rows of the image is used. Remember.

つまり、画像の1行目のディザ処理に必要な、第1閾値行グループにおける、基準ディ
ザマトリックスの第1行目、第3行目及び第5行目の閾値データを、その配列順に順番に
各1つずつ選択していくと共に、画像の2行目のディザ処理に必要な、第2閾値行グルー
プにおける、基準ディザマトリックスの第2行目、第4行目及び第6行目の閾値データを
、その配列順に順番に各1つずつ選択していく。そして、各1つずつ選択した2つのグル
ープの閾値データを第1閾値グループ、第2閾値グループの順で並べて記憶する。これに
より、高速メモリには、図29のライン番号1、2(画像の1行目及び2行目)に対する
順番で閾値データが記憶される。
That is, the threshold data of the first row, the third row, and the fifth row of the reference dither matrix in the first threshold row group necessary for the dither processing of the first row of the image are sequentially arranged in the order of arrangement. The threshold data for the second, fourth, and sixth rows of the reference dither matrix in the second threshold row group, which are selected one by one and necessary for the dither processing of the second row of the image, are selected. , One by one in order of the arrangement order. Then, the threshold data of the two groups selected one by one are arranged and stored in the order of the first threshold group and the second threshold group. As a result, the threshold data is stored in the high-speed memory in the order of line numbers 1 and 2 (first and second lines of the image) in FIG.

そして、閾値データの読み出しにおいては、上記ずらし量が1のときと同様に、リング
バッファ構成を適用する。但し、シングルモードの場合は、画像データの奇数行に対して
は、高速メモリにおける第1閾値行グループの閾値データの読み出し開始ポインタから順
に1つ飛ばしで第1閾値行グループの閾値データを順次読み出し、最後尾のポインタに到
達すると、その次は先頭のポインタに戻る。また、画像データの偶数行に対しては、高速
メモリにおける第2閾値行グループの閾値データの読み出し開始ポインタから順に1つ飛
ばしで第2閾値行グループの閾値データを読み出し、最後尾のポインタに到達すると、そ
の次は先頭のポインタに戻る。
In reading the threshold data, a ring buffer configuration is applied as in the case where the shift amount is 1. However, in the single mode, for odd-numbered rows of image data, the threshold data of the first threshold row group is sequentially read by skipping one by one from the threshold data reading start pointer of the first threshold row group in the high-speed memory. When the last pointer is reached, the next pointer is returned to. In addition, for even rows of image data, the threshold data of the second threshold row group is read by skipping one by one from the reading start pointer of the threshold data of the second threshold row group in the high-speed memory, and reaches the last pointer. Then, it returns to the top pointer.

上記したように、1つの高速メモリに上記2つのグループに分類された基準ディザマト
リックスのうち、画像の1行目及び2行目のディザ処理に必要な閾値データのみが記憶さ
れた状態でディザ処理が開始されると、まず、ディザ閾値メモリ制御部106において、
高速メモリに対して閾値データを読み出すアドレス位置である参照ポインタを算出する(
ステップS200)。
As described above, dither processing is performed in a state in which only threshold data necessary for dither processing of the first and second rows of the image is stored in one high-speed memory among the reference dither matrices classified into the two groups. Is started, first, in the dither threshold memory control unit 106,
A reference pointer that is an address position for reading threshold data from the high-speed memory is calculated (
Step S200).

ずらし量が2で且つシングルモードのときの参照ポインタの算出処理が開始されると、
まず、ディザ閾値メモリ制御部106において、現在ディザ処理途中か否かを判定する(
ステップS1000)。この場合は、ディザ処理を開始したばかりなので(ステップS1
000の「No」の分岐)、高速メモリに記憶された2つの閾値行グループに対する閾値
データの読み出し開始ポインタを示す変数PL1及びPL2の値をそれぞれ「0」に初期
化すると共に(ステップS1002)、画像データの奇数行及び偶数行の画素位置を示す
変数PP1及びPP2の値をそれぞれ「0」に初期化する(ステップS1004)。
When the reference pointer calculation process when the shift amount is 2 and the single mode is started,
First, the dither threshold memory control unit 106 determines whether or not the current dither process is in progress (
Step S1000). In this case, since the dither processing has just started (step S1
000 “No” branch), and initializes the values of variables PL1 and PL2 indicating the threshold value data reading start pointers for the two threshold row groups stored in the high-speed memory to “0”, respectively (step S1002). The values of the variables PP1 and PP2 indicating the pixel positions of the odd and even rows of the image data are initialized to “0” (step S1004).

初期化が終了すると、画像データの処理対象行が、奇数行目か否かを判定する(ステッ
プS1006)。この場合は、まず画像データの第1行目から処理を行うので、奇数行目
となり(ステップS1006の「Yes」の分岐)、且つ現在の画素位置は画像の1行目
の先頭となるので(ステップS1008の「Yes」の分岐)、画像の先頭位置(PP1
=0)を参照ポインタとしてディザ閾値記憶部102に出力する(ステップS1010)

つまり、画像データの1行目の先頭画素に対して、高速メモリに対する閾値データの参
照ポインタは、画像の先頭画素と同じ、ポインタ(0)と算出される。
When the initialization is completed, it is determined whether or not the processing target row of the image data is an odd-numbered row (step S1006). In this case, since processing is first performed from the first line of the image data, it becomes an odd line (the branch of “Yes” in step S1006), and the current pixel position is the top of the first line of the image ( “Yes” branch of step S1008), the top position of the image (PP1)
= 0) as a reference pointer is output to the dither threshold value storage unit 102 (step S1010).
.
That is, for the first pixel in the first row of the image data, the threshold data reference pointer for the high-speed memory is calculated as the same pointer (0) as the first pixel of the image.

ここで、図29中の括弧で囲まれた数字は、ポインタ番号を示す。即ち、参照ポインタ
(0)の場合は、図29に示すように、高速メモリにおける、閾値データa11が記憶さ
れている先頭アドレスが閾値データの読み出しアドレスとなる。以降のステップS202
〜S210の処理は、上記ずらし量1又はずらし量2のマルチモードと同様となるので省
略する。
画像データの第1行目の先頭画素データ及び高速メモリのポインタ(0)の閾値データ
に対するディザ処理が終了すると、まだ、画像の第1行目の先頭画素データに対してしか
ディザ処理を行っていないので(ステップS210の「No」の分岐)、次の画素データ
に対する参照ポインタの算出処理を行う(ステップS200)。
Here, the numbers in parentheses in FIG. 29 indicate pointer numbers. That is, in the case of the reference pointer (0), as shown in FIG. 29, the leading address where the threshold data a11 is stored in the high-speed memory is the threshold data read address. Subsequent step S202
The processing of ~ S210 is the same as in the multi-mode with the shift amount 1 or the shift amount 2 described above, and is therefore omitted.
When the dither processing for the first pixel data of the first row of the image data and the threshold data of the pointer (0) of the high-speed memory is completed, the dither processing is still performed only for the first pixel data of the first row of the image. Since there is no branch (“No” branch of step S210), a calculation process of a reference pointer for the next pixel data is performed (step S200).

この場合、参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップ
S1000の「Yes」の分岐)、次の画素位置は奇数行(ステップS1006の「Ye
s」の分岐)且つ先頭位置ではないと判定される(ステップS1008の「No」の分岐
)。このような判定がなされると、更に、読み出した閾値データは画像の改行位置のもの
か否かを判定する(ステップS1012)。画像データの各行は、48画素あるので、改
行位置ではないと判定される(ステップS1012の「No」の分岐)。従って、PP1
の値に2を加算し(ステップS1018)、加算後の値(2)を参照ポインタとして出力
する(ステップS1010)。但し、PP1の値は78を上限とし、PP1の値が78の
ときは、その値に「2」を加算せずにPP1の値を「0」とする。
In this case, in the reference pointer calculation process, it is determined that the dither process is in progress (the branch of “Yes” in step S1000), and the next pixel position is an odd row (“Yes” in step S1006).
s "branch) and not the head position (" No "branch in step S1008). When such a determination is made, it is further determined whether or not the read threshold data is at the line feed position of the image (step S1012). Since each line of the image data has 48 pixels, it is determined that the line is not a line feed position ("No" branch in step S1012). Therefore, PP1
2 is added to the value (step S1018), and the added value (2) is output as a reference pointer (step S1010). However, the upper limit of the value of PP1 is 78. When the value of PP1 is 78, the value of PP1 is set to “0” without adding “2” to the value.

参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。
また、ステップS200〜ステップS210の処理を繰り返し行うことで、閾値データ
は、先頭アドレスからポインタ1つ飛ばしでアドレス順に、a11〜a5fに向かって1
つずつ順番に読み出され、ディザ処理が実行される。
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above.
Further, by repeatedly performing the processing from step S200 to step S210, the threshold value data is skipped by one pointer from the head address and is incremented by 1 toward a11 to a5f in the order of addresses.
The dither processing is executed by sequentially reading the data one by one.

そして、読み出した閾値データが画像データの改行位置(一番右端の画素位置)のもの
となると(ステップS1012の「Yes」の分岐)、この場合に、高速メモリにおける
更新ポインタを示す変数PR1にPL1の値(0)を代入し、このPR1を参照ポインタ
としてディザ閾値更新部110に入力する(ステップS1014)。
次いで、読み出し開始ポインタを示す変数PL1の現在の値に、基準ディザマトリック
スの横幅DW×2(32)を加算し、画素位置を示す変数PP1に、この加算後のPL1
の値を代入して(ステップS1016)、この代入後のPP1の値を参照ポインタとして
出力する(ステップS1010)。但し、PL1の値は64を上限とし、PL1の値が6
4のときは、その値にDW×2を加算せずにPL1の値を「0」とする。
Then, when the read threshold data comes to the line feed position (rightmost pixel position) of the image data (“Yes” branch in step S1012), in this case, PL1 is set to the variable PR1 indicating the update pointer in the high-speed memory. Is substituted into the dither threshold update unit 110 as a reference pointer (step S1014).
Next, the horizontal width DW × 2 (32) of the reference dither matrix is added to the current value of the variable PL1 indicating the read start pointer, and PL1 after this addition is added to the variable PP1 indicating the pixel position.
Is substituted (step S1016), and the value of PP1 after the substitution is output as a reference pointer (step S1010). However, the upper limit of the value of PL1 is 64, and the value of PL1 is 6
When the value is 4, the value of PL1 is set to “0” without adding DW × 2 to the value.

なお、ここでは、ディザ閾値更新部110は、PR1が入力された段階では、閾値デー
タの更新処理を行わず、PR2が入力されるのを待つ(ステップS1100の「No」の
分岐)。つまり、画像の2行目に対する処理を閾値データの更新処理よりも先に実行する

画像データの処理対象行が、2行目(偶数行)となると(ステップS1006の「No
」の分岐)、現在の画素位置が画像の2行目の先頭の場合(ステップS1020の「Ye
s」の分岐)、画像の先頭位置(PP2=0)に1を加算して(ステップS1022)、
この加算結果(PP2=1)を参照ポインタとしてディザ閾値記憶部102に出力する(
ステップS1024)。つまり、画像データの2行目の先頭画素に対して、高速メモリに
対する閾値データの参照ポインタは、画像の先頭画素のポインタに1を加算したポインタ
(1)と算出される。なお、以降のステップS202〜S208の処理は、上記ずらし量
1又はずらし量2のマルチモードと同様となるので説明を省略する。
Here, the dither threshold update unit 110 waits for the input of PR2 without performing the threshold data update process when PR1 is input (the branch of “No” in step S1100). That is, the process for the second line of the image is executed before the threshold data update process.
When the processing target row of the image data is the second row (even row) (“No” in step S1006)
), When the current pixel position is the top of the second row of the image (“Ye” in step S1020).
s ”), 1 is added to the head position (PP2 = 0) of the image (step S1022),
The addition result (PP2 = 1) is output to the dither threshold value storage unit 102 as a reference pointer (
Step S1024). That is, for the first pixel in the second row of the image data, the threshold data reference pointer for the high-speed memory is calculated as a pointer (1) obtained by adding 1 to the pointer of the first pixel of the image. In addition, since the process of subsequent step S202-S208 becomes the same as the multimode of the said shift amount 1 or the shift amount 2, description is abbreviate | omitted.

画像データの第2行目の先頭画素データ及び高速メモリのポインタ(1)の閾値データ
に対するディザ処理が終了すると、まだ、画像の第2行目の先頭画素データに対してしか
ディザ処理を行っていないので(ステップS210の「No」の分岐)、次の画素データ
に対する参照ポインタの算出処理を行う(ステップS200)。
この場合、参照ポインタの算出処理においては、ディザ処理途中と判定され(ステップ
S1000の「Yes」の分岐)、次の画素位置は偶数行(ステップS1006の「No
」の分岐)且つ先頭位置ではないと判定される(ステップS1020の「No」の分岐)
。このような判定がなされると、更に、読み出した閾値データは画像の改行位置のものか
否かを判定する(ステップS1026)。画像データの各行は、48画素あるので、改行
位置ではないと判定される(ステップS1026の「No」の分岐)。従って、PP2の
値に2を加算し(ステップS1032)、加算後の値(3)を参照ポインタとして出力す
る(ステップS1024)。但し、PP2の値は79を上限とし、PP2の値が79のと
きは、その値に「2」を加算せずにPP2の値を「0」とする。
When the dither processing for the first pixel data of the second row of the image data and the threshold data of the pointer (1) of the high-speed memory is completed, the dither processing is still performed only for the first pixel data of the second row of the image. Since there is no branch (“No” branch of step S210), a calculation process of a reference pointer for the next pixel data is performed (step S200).
In this case, in the reference pointer calculation process, it is determined that the dither process is in progress (the branch of “Yes” in step S1000), and the next pixel position is an even row (“No” in step S1006).
"Branch") and it is determined not to be the head position ("No" branch of step S1020).
. When such a determination is made, it is further determined whether or not the read threshold data is at the line feed position of the image (step S1026). Since each line of image data has 48 pixels, it is determined that the line is not a line feed position ("No" branch of step S1026). Therefore, 2 is added to the value of PP2 (step S1032), and the value (3) after the addition is output as a reference pointer (step S1024). However, the upper limit of the value of PP2 is 79, and when the value of PP2 is 79, the value of PP2 is set to “0” without adding “2” to the value.

参照ポインタが算出されると、上記同様に、ステップS202〜ステップS210の処
理を実行する。
そして、読み出した閾値データが画像データの改行位置(一番右端の画素位置)のもの
となると(ステップS1026の「Yes」の分岐)、この場合に、高速メモリにおける
更新ポインタを示す変数PR2にPL2の値(1)を代入し、このPR2を参照ポインタ
としてディザ閾値更新部110に入力する(ステップS1028)。
When the reference pointer is calculated, the processing from step S202 to step S210 is executed as described above.
Then, when the read threshold data comes to the line feed position (rightmost pixel position) of the image data (“Yes” branch of step S1026), in this case, the variable PR2 indicating the update pointer in the high-speed memory is set to PL2. (1) is substituted, and this PR2 is input to the dither threshold update unit 110 as a reference pointer (step S1028).

次いで、読み出し開始ポインタを示す変数PL2の現在の値に、基準ディザマトリック
スの横幅DW×2(32)を加算し、画素位置を示す変数PP2に、この加算後のPL2
の値を代入して(ステップS1030)、この代入後のPP2の値を参照ポインタとして
出力する(ステップS1024)。但し、PL2の値は65を上限とし、PL2の値が6
5のときは、その値にDW×2を加算せずにPL1の値を「1」とする。
Next, the width DW × 2 (32) of the reference dither matrix is added to the current value of the variable PL2 indicating the read start pointer, and PL2 after this addition is added to the variable PP2 indicating the pixel position.
Is substituted (step S1030), and the value of PP2 after the substitution is output as a reference pointer (step S1024). However, the PL2 value is up to 65, and the PL2 value is 6
In the case of 5, the value of PL1 is set to “1” without adding DW × 2 to the value.

一方、ディザ閾値更新部110は、参照ポインタPR1に加えPR2が入力されると(
ステップS1100の「Yes」の分岐)、高速メモリに対して参照位置のポインタをセ
ットする(ステップS1102)。また、画像の3行目及び4行目のディザ処理に必要な
閾値データのうち、現在高速メモリに記憶されている閾値データに対して不足しているも
のをディザマトリックス記憶部13から取得する(ステップS1104)。
On the other hand, the dither threshold update unit 110 receives PR2 in addition to the reference pointer PR1 (
In step S1100, “Yes” branch), a pointer at the reference position is set in the high-speed memory (step S1102). Further, among the threshold data necessary for the dither processing of the third and fourth lines of the image, the data that is insufficient with respect to the threshold data currently stored in the high-speed memory is acquired from the dither matrix storage unit 13 ( Step S1104).

ここで、図29に示すように、ライン番号1、2に対して、現在、高速メモリには、閾
値データa11〜a1f、a31〜a3f及びa51〜a5f並びにa21〜a2f、a
41〜a4f及びa61〜a6fが記憶されている。一方、図25の第3行目及び第4行
目の右方の斜線部に示すように、画像の3行目に対して新規に必要な閾値データは、閾値
データa71〜a7fとなり、画像の第4行目に対して新規に必要な閾値データは、閾値
データa81〜a8fとなる。一方、不要なデータは、閾値データa11〜a1f及び閾
値データa21〜a2fとなる。
Here, as shown in FIG. 29, the threshold data a11 to a1f, a31 to a3f and a51 to a5f and a21 to a2f, a are currently stored in the high-speed memory for the line numbers 1 and 2.
41 to a4f and a61 to a6f are stored. On the other hand, the threshold data a71 to a7f that are newly required for the third row of the image are the threshold data a71 to a7f as shown in the hatched portions on the right side of the third and fourth rows in FIG. The threshold data newly required for the fourth row is threshold data a81 to a8f. On the other hand, unnecessary data are threshold data a11 to a1f and threshold data a21 to a2f.

従って、ディザ閾値更新部110は、まず、新規に必要な閾値データa71及びa81
を取得し、高速メモリにおける参照ポインタPR1の示す位置(0)に記憶された不要な
閾値データa11を、前記取得した閾値データa71に書き換えると共に、参照ポインタ
PR2の示す位置(1)に記憶された不要な閾値データa21を、前記取得した閾値デー
タa81に書き換える(ステップS1106)。そして、更新後は、変数PR1及びPR
2の値にそれぞれ2を加算する(ステップS1108)。これにより、PR1の値は2に
、PR2の値は3となる。
Accordingly, the dither threshold update unit 110 firstly sets the newly required threshold data a71 and a81
And the unnecessary threshold data a11 stored at the position (0) indicated by the reference pointer PR1 in the high-speed memory is rewritten to the acquired threshold data a71 and stored at the position (1) indicated by the reference pointer PR2. Unnecessary threshold data a21 is rewritten to the acquired threshold data a81 (step S1106). And after the update, variables PR1 and PR
2 is added to each value of 2 (step S1108). As a result, the value of PR1 becomes 2 and the value of PR2 becomes 3.

このような更新処理(ステップS1102〜S1108)を、高速メモリにおける不要
な閾値データa11〜a1f及びa21〜a2fが、全てa71〜a7f及びa81〜a
8fに更新されるまで繰り返し行う。
上記更新処理によって、図29のライン番号3、4に対する記憶内容に示すように、高
速メモリのポインタ(0)〜ポインタ(31)の記憶領域に閾値データa71〜a7f及
びa81〜a8fが交互に順番に記憶される。それ以外は、ライン番号1、2に対する記
憶内容と同様のままとなる。
Such update processing (steps S1102 to S1108) is performed by replacing unnecessary threshold data a11 to a1f and a21 to a2f in the high-speed memory with a71 to a7f and a81 to a.
Repeat until updated to 8f.
As a result of the above update process, as shown in the stored contents for line numbers 3 and 4 in FIG. Is remembered. Other than that, it is the same as the stored contents for the line numbers 1 and 2.

そして、各1行分の閾値データの更新が終了すると(ステップS1010の「Yes」
の分岐)、画像データの3行目に対するディザ処理が実行される。
つまり、画像データの奇数行に対しては、まず、読み出し開始ポインタから順に、高速
メモリから第1閾値行グループの閾値データをポインタを1つ飛ばしに変更(2インクリ
メント)しながら順番に読み出す処理を、高速メモリの連続するアドレスに対して循環的
に実行する。更に、画像データの改行位置の画素データに対する閾値データが読み出され
る毎に、第1閾値行グループの閾値データに対する読み出し開始ポインタの位置をDW×
2(32)ずつ循環的にずらす。
Then, when the update of the threshold data for each row is completed (“Yes” in step S1010)
Dithering), the dither processing for the third line of the image data is executed.
That is, for odd-numbered rows of image data, first, in order from the reading start pointer, the threshold data of the first threshold row group is changed from the high-speed memory to skip one pointer (increment by two) and sequentially read out. Executes cyclically for successive addresses in high-speed memory. Further, every time the threshold data for the pixel data at the line feed position of the image data is read, the position of the read start pointer for the threshold data of the first threshold row group is set to DW ×
Shift by 2 (32) cyclically.

一方、画像データの偶数行に対しては、まず、読み出し開始ポインタから順に、高速メ
モリから第2閾値行グループの閾値データをポインタを1つ飛ばしに変更(2インクリメ
ント)しながら順番に読み出す処理を、高速メモリの連続するアドレスに対して循環的に
実行する。更に、画像データの偶数行の改行位置の画素データに対する閾値データが読み
出される毎に、高速メモリにおける不要な閾値データを、次の奇数行及び偶数行のディザ
処理に対して新規に必要な閾値データに更新すると共に、第2閾値行グループの閾値デー
タに対する読み出し開始ポインタの位置をDW×2(32)ずつ循環的にずらす。
On the other hand, for even-numbered rows of image data, first, in order from the read start pointer, the threshold data of the second threshold row group is changed from the high-speed memory to skip one pointer (increment by two) and sequentially read out. Executes cyclically for consecutive addresses in high-speed memory. Further, every time the threshold data for the pixel data at the line feed position of the even line of the image data is read, unnecessary threshold data in the high-speed memory is newly obtained for the next odd line and even line dither processing. And the position of the read start pointer with respect to the threshold data of the second threshold row group is cyclically shifted by DW × 2 (32).

このように、1つの高速メモリに対してポインタ1つ飛ばしで閾値データの読み出し及
び閾値データの更新を順次行うことにより、図25に示すように、基準ディザマトリック
スを主走査方向にシフトする毎に、そのシフト前後の基準ディザマトリックスの配置関係
が、シフト前に対して、シフト後が副走査方向とは反対方向に2行単位でずれた状態で閾
値データの読み出しが順次行われることになる。
Thus, by sequentially reading out the threshold data and updating the threshold data by skipping one pointer with respect to one high-speed memory, as shown in FIG. 25, every time the reference dither matrix is shifted in the main scanning direction. The threshold data is sequentially read out in a state where the arrangement relationship of the reference dither matrix before and after the shift is shifted in units of two rows in the direction opposite to the sub-scanning direction after the shift.

なお、以降の処理(ステップS110〜S116)は、上記ずらし量が1又はずらし量
2のマルチモードと同様となるので説明を省略する。
また、上記ずらし量2のシングルモードにおいては、閾値データの更新を、画像の2行
単位で行うようにしたが、これに限らず、図31に示すように、画像の1行単位で行うよ
うにしても良い。この場合は、奇数行又は偶数行の改行位置の画素データに対する閾値デ
ータが読み出される毎に、高速メモリに記憶されている、次の奇数行又は偶数行のディザ
処理に不要な閾値データを順次、新規に必要な閾値データに更新する。
The subsequent processing (steps S110 to S116) is the same as in the multimode in which the shift amount is 1 or 2, and the description thereof is omitted.
Further, in the single mode with the shift amount of 2, the threshold data is updated in units of two lines of the image. However, the present invention is not limited to this, and as shown in FIG. 31, it is performed in units of one line of the image. Anyway. In this case, every time the threshold data for the pixel data at the line break position in the odd or even row is read, the threshold data unnecessary for the dither processing in the next odd or even row stored in the high-speed memory is sequentially Update to newly required threshold data.

以上、本実施の形態の印刷装置1’は、ずらし量が1の場合に、基準ディザマトリック
スのうち、各処理対象行のディザ処理に必要な閾値データのみを、その配列順に1つの高
速メモリに記憶し、画像データの各行に対しては、読み出し開始位置から順に閾値データ
を、高速メモリに対してリングバッファ構成を用いて循環的に読み出すことが可能である

更に、処理対象行が変更される毎に、高速メモリに記憶されている閾値データのうち、
次の処理対象行に対して不要なデータを、次の処理対象行に対して新規に必要な閾値デー
タに更新すると共に、高速メモリに対する読み出し開始位置をDWずつ循環的にずらしな
がら閾値データを読み出すことが可能である。
As described above, when the shift amount is 1, the printing apparatus 1 ′ according to the present embodiment stores only threshold data necessary for dither processing of each processing target row in the reference dither matrix in one high-speed memory in the arrangement order. For each row of stored image data, threshold data can be cyclically read from the high-speed memory using a ring buffer configuration in order from the read start position.
Furthermore, whenever the processing target row is changed, among the threshold data stored in the high-speed memory,
Data unnecessary for the next processing target row is updated to newly required threshold data for the next processing target row, and the threshold data is read while cyclically shifting the read start position for the high speed memory by DW. It is possible.

また、ずらし量が2以上の場合に、基準ディザマトリックスをずらし量に応じた個数の
グループに分類し、記憶モードがマルチモードであれば、各グループの閾値データのうち
最初の処理対象行のディザ処理に必要な分だけを、それぞれ別々の高速メモリに配列順に
記憶することが可能である。また、記憶モードがシングルモードであれば、各グループの
閾値データのうち、最初の処理対象行のディザ処理に必要な分だけを所定順に1つの高速
メモリに記憶することが可能である。
そして、マルチモードの場合は、画像データの各行に対し、これと対応する高速メモリ
の読み出し開始位置から順に閾値データを、高速メモリに対してリングバッファ構成を用
いて循環的に読み出すことが可能である。
In addition, when the shift amount is 2 or more, the reference dither matrix is classified into a number of groups corresponding to the shift amount, and if the storage mode is multi-mode, the dither of the first processing target row in the threshold data of each group. Only the amount necessary for processing can be stored in separate high-speed memories in the order of arrangement. Further, if the storage mode is the single mode, it is possible to store only the amount necessary for the dither processing of the first processing target row among the threshold data of each group in one high-speed memory in a predetermined order.
In the case of multi-mode, it is possible to cyclically read out threshold data for each row of image data in order from the reading start position of the corresponding high-speed memory to the high-speed memory using a ring buffer configuration. is there.

更に、処理対象行が変更される毎に、対象の高速メモリに記憶されている閾値データの
うち、次の処理対象行に対して不要なデータを、次の処理対象行に対して新規に必要な閾
値データに更新すると共に、その高速メモリに対する読み出し開始位置をDWずつ循環的
にずらしながら閾値データを読み出すことが可能である。
また、シングルモードの場合は、画像データの各行に対し、これと対応する閾値グルー
プの読み出し開始位置から順に閾値データを、高速メモリに対してリングバッファ構成を
用いて、ずらし量飛ばしでポインタを変更させながら循環的に読み出すことが可能である
Furthermore, each time the processing target row is changed, the unnecessary data for the next processing target row among the threshold data stored in the target high-speed memory is newly required for the next processing target row. It is possible to read the threshold data while updating the threshold data to the correct threshold data and cyclically shifting the read start position for the high speed memory by DW.
In the single mode, the threshold data is changed in order from the reading start position of the corresponding threshold group for each row of the image data, and the pointer is changed by skipping the shift amount using a ring buffer configuration for the high-speed memory. It is possible to read out in a cyclic manner.

更に、1行分又は2行分の処理対象行が変更される毎に、高速メモリに記憶されている
閾値データのうち、次の処理対象行に対して不要なデータを、次の処理対象行に対して新
規に必要な閾値データに更新すると共に、高速メモリに対する読み出し開始位置をDW×
ずらし量ずつずらしながら閾値データを読み出すことが可能である。
これにより、メモリには、基準ディザマトリックスのうち、各処理対象行に必要な分だ
けを随時更新しながら記憶すれば良いので、閾値データの記憶に必要なメモリ容量を低減
することができる。特に、サイズの大きいディザマトリックスを用いる場合に、閾値デー
タの記憶に必要なメモリ容量を大幅に低減することができる。
Further, every time the processing target row for one or two rows is changed, unnecessary data for the next processing target row among the threshold data stored in the high-speed memory is changed to the next processing target row. Is updated to the newly required threshold data, and the read start position for the high-speed memory
It is possible to read the threshold value data while shifting each shift amount.
As a result, only the amount necessary for each processing target row in the reference dither matrix needs to be updated and stored in the memory, so that the memory capacity necessary for storing threshold data can be reduced. In particular, when a large dither matrix is used, the memory capacity required for storing threshold data can be greatly reduced.

また、アドレスの連続する記憶領域に、必要な分の閾値データをその配列順又は所定の
順番に記憶するようにし、更に、この閾値データを、その読み出し開始位置を変更しなが
ら前記アドレス順に循環的に読み出すようにしたので閾値データを高速に読み出すことが
できる。
また、閾値データの高速な読み出しが可能となるので、読み出した画素データに対して
、ディザ処理を連続して行うことができる。従って、これら一連の処理において、メモリ
とのアクセス回数を大幅に削減することができるので、画像データを取得してから印刷を
完了するまでの時間を短縮することができる。
In addition, necessary threshold data is stored in a storage area where addresses are continuous in the order of arrangement or in a predetermined order, and the threshold data is cyclically changed in the order of the addresses while changing the reading start position. Thus, the threshold data can be read at high speed.
In addition, since threshold data can be read at high speed, dither processing can be continuously performed on the read pixel data. Accordingly, in these series of processes, the number of accesses to the memory can be greatly reduced, so that the time from acquisition of image data to completion of printing can be shortened.

上記第2の実施の形態において、ディザ閾値分類部100は、形態6又は25の閾値行
分類手段に対応し、ディザ閾値記憶部102の高速メモリに基準ディザマトリックスを記
憶する処理は、形態2、4及び5並びに形態21、23及び24のいずれか1の基準ディ
ザマトリックス記憶手段に対応し、ディザ閾値メモリ制御部106によるディザ閾値記憶
部102の高速メモリからの閾値データの読み出し処理は、形態2、4及び5並びに形態
21、23及び24のいずれか1の閾値読出手段に対応し、ディザ閾値メモリ制御部10
6による読み出し開始ポインタの変更処理は、形態2、4、5、21、23及び24のい
ずれか1の読出開始位置設定手段に対応し、ディザ閾値更新部110は、形態2又は4の
閾値更新手段に対応する。
In the second embodiment, the dither threshold classifying unit 100 corresponds to the threshold row classifying means of mode 6 or 25, and the process of storing the reference dither matrix in the high-speed memory of the dither threshold storage unit 102 is mode 2, Corresponding to the reference dither matrix storage unit 4 and 5 and any one of forms 21, 23 and 24, the dither threshold memory control unit 106 reads threshold data from the high-speed memory of the dither threshold storage unit 102. 4 and 5, and the dither threshold value memory control unit 10 corresponding to the threshold value reading means of any one of forms 21, 23 and 24.
6 corresponds to the read start position setting means of any one of modes 2, 4, 5, 21, 23, and 24, and the dither threshold value update unit 110 updates the threshold value of mode 2 or 4. Corresponds to the means.

また、上記第2の実施の形態において、画素制御部104による画像データ記憶部11
からの画素データの読み出し処理は、形態2、4、21及び23のいずれか1の画素値取
得手段に対応し、判定処理部108aは、形態2、4、21及び23のいずれか1の判定
処理手段に対応し、N値化部108bは、形態2、4、21及び23のいずれか1のN値
化手段に対応する。
また、上記第2の実施の形態において、印刷部15は、形態2又は4の印刷手段に対応
する。
また、上記第2の実施の形態において、ステップS116は、形態8、10、15及び
17のいずれか1の印刷ステップに対応する。
Further, in the second embodiment, the image data storage unit 11 by the pixel control unit 104 is used.
The pixel data read-out process from A corresponds to the pixel value acquisition unit of any one of modes 2, 4, 21, and 23, and the determination processing unit 108a determines whether any one of the modes 2, 4, 21, and 23 is determined. Corresponding to the processing means, the N-value conversion unit 108b corresponds to any one of the N-value conversion means in the modes 2, 4, 21, and 23.
In the second embodiment, the printing unit 15 corresponds to the printing unit according to the second or fourth aspect.
In the second embodiment, step S116 corresponds to the printing step of any one of forms 8, 10, 15 and 17.

また、上記第2の実施の形態において、ステップS300,S302,S304,S3
08は、形態12、19、31及び38のいずれか1の閾値行分類ステップに対応し、ス
テップS200,ステップS202,S206は、形態8、10、11、15、17、1
8、27、29、30、34、36及び37のいずれか1の閾値読出ステップに対応し、
ステップS204は、形態8、10、15、17、27、29、34及び36のいずれか
1の画素値取得ステップに対応し、ステップS208は、形態8、10、15、17、2
7、29、34及び36のいずれか1のN値化ステップに対応し、ステップS800〜S
810、ステップS1100〜S1110は、形態8、10、15、17、27、29、
34及び36のいずれか1の閾値更新ステップに対応し、ステップS710,S714、
ステップS912,S916、S924,S928、ステップS1012,S1016,
S1026,S1030は、形態8、10、15、17、27、29、34及び36のい
ずれか1の読出開始位置設定ステップに対応する。
In the second embodiment, steps S300, S302, S304, S3
08 corresponds to the threshold row classification step of any one of forms 12, 19, 31, and 38, and steps S200, S202, and S206 are forms 8, 10, 11, 15, 17, 1,
Corresponding to the threshold reading step of any one of 8, 27, 29, 30, 34, 36 and 37,
Step S204 corresponds to the pixel value acquisition step of any one of forms 8, 10, 15, 17, 27, 29, 34, and 36, and step S208 includes forms 8, 10, 15, 17, 2,
Corresponding to the N-value conversion step of any one of 7, 29, 34 and 36, steps S800 to S800
810, steps S1100 to S1110 are the forms 8, 10, 15, 17, 27, 29,
Corresponding to the threshold update step of any one of 34 and 36, Steps S710, S714,
Steps S912, S916, S924, S928, Steps S1012, S1016
S1026 and S1030 correspond to the read start position setting step of any one of forms 8, 10, 15, 17, 27, 29, 34 and 36.

なお、上記第1及び第2の実施の形態においては、ずらし量Kが1及び2のときの例を
説明したが、これに限らず、ずらし量Kを3以上にしても良い。但し、ずらし量Kを3以
上にする場合は、ずらし量KがDH/2以下の範囲となるように設定する。つまり、ずら
し量Kを4にする場合は、ディザマトリックスの行数DHが8以上である必要がある。
また、上記第1及び第2の実施の形態における印刷装置1及び1’の特徴は、既存の印
刷装置そのものには殆ど手を加えることなく、ディザマトリックスデータのメモリへの記
憶構成及び読み出し方法などを工夫して画像データからN値化データを生成するようにし
たため、印刷部15として特に専用のものを用意する必要はなく、従来から既存のインク
ジェット方式のプリンタをそのまま利用することができる。また、上記実施の形態におけ
る印刷装置1及び1’から印刷データ生成部14及び印刷部15を分離すれば、その機能
はPCなどの汎用の印刷指示端末又はプリンタサーバ(これらは画像処理装置に対応する
)等において実現することも可能となる。
In the first and second embodiments, the example in which the shift amount K is 1 and 2 has been described. However, the present invention is not limited to this, and the shift amount K may be 3 or more. However, when the shift amount K is set to 3 or more, the shift amount K is set to be in a range of DH / 2 or less. That is, when the shift amount K is set to 4, the number of rows DH of the dither matrix needs to be 8 or more.
Further, the features of the printing apparatuses 1 and 1 'in the first and second embodiments described above are the storage configuration of the dither matrix data in the memory, the reading method, etc., with little modification to the existing printing apparatus itself. Since the N-ary data is generated from the image data by devising the above, it is not necessary to prepare a special printer as the printing unit 15, and an existing inkjet printer can be used as it is. Further, if the print data generation unit 14 and the print unit 15 are separated from the printing apparatuses 1 and 1 ′ in the above embodiment, the function is a general-purpose print instruction terminal such as a PC or a printer server (these correspond to the image processing apparatus). Etc.) can also be realized.

なお、上記第1及び第2の実施形態において、図8、図9、図10及び図13のフロー
チャートに示す処理を実行するにあたっては、ROM64に予め格納されている制御プロ
グラムを実行する場合について説明したが、これに限らず、これらの手順を示したプログ
ラムが記録された記憶媒体から、そのプログラムをRAM62に組み込んで実行するよう
にしても良い。あるいは、そのプログラムをネットワークから取得しても良い。
In the first and second embodiments, the case where the control program stored in advance in the ROM 64 is executed when executing the processing shown in the flowcharts of FIGS. 8, 9, 10 and 13 will be described. However, the present invention is not limited to this, and the program may be incorporated into the RAM 62 and executed from a storage medium on which a program showing these procedures is recorded. Alternatively, the program may be acquired from a network.

ここで、記憶媒体とは、RAM、ROM等の半導体記憶媒体、FD、HD等の磁気記憶
型記憶媒体、CD、CDV、LD、DVD等の光学的読取方式記憶媒体、MO等の磁気記
憶型/光学的読取方式記憶媒体であって、電子的、磁気的、光学的等の読み取り方法のい
かんにかかわらず、コンピュータで読み取り可能な記憶媒体であれば、あらゆる記憶媒体
を含むものである。
Here, the storage medium is a semiconductor storage medium such as RAM or ROM, a magnetic storage type storage medium such as FD or HD, an optical reading type storage medium such as CD, CDV, LD, or DVD, or a magnetic storage type such as MO. / Optical reading type storage media, including any storage media that can be read by a computer regardless of electronic, magnetic, optical, or other reading methods.

本発明の第1の実施の形態に係る印刷装置1の構成を示すブロック図である。1 is a block diagram showing a configuration of a printing apparatus 1 according to a first embodiment of the present invention. 画像処理部12の詳細な機能構成を示すブロック図である。3 is a block diagram illustrating a detailed functional configuration of an image processing unit 12. FIG. DH6×DW6(6行×6列)の基準ディザマトリックスの一例を示す図である。It is a figure which shows an example of the reference | standard dither matrix of DH6xDW6 (6 rows x 6 columns). 画像に対する、印刷時の印字ヘッドの位置、及び本実施の形態に係るディザ処理時の走査方向を示す図である。It is a figure which shows the position of the print head at the time of printing with respect to an image, and the scanning direction at the time of the dither process which concerns on this Embodiment. 本実施の形態のディザ処理に係るずらし量の説明図である。It is explanatory drawing of the shift amount which concerns on the dither process of this Embodiment. ディザ処理部108の詳細構成を示すブロック図である。3 is a block diagram showing a detailed configuration of a dither processing unit 108. FIG. 印刷装置1のハードウェア構成を示す図である。2 is a diagram illustrating a hardware configuration of the printing apparatus 1. FIG. 印刷装置1における印刷処理を示すフローチャートである。4 is a flowchart showing a printing process in the printing apparatus 1. ディザ処理を示すフローチャートである。It is a flowchart which shows a dither process. 基準ディザマトリックスの分類処理及び記憶処理を示すフローチャートである。It is a flowchart which shows the classification | category process and memory | storage process of a reference | standard dither matrix. ずらし量1のときの基準ディザマトリックスの画像上の配置例を示す図である。It is a figure which shows the example of arrangement | positioning on the image of the reference | standard dither matrix in the case of shift amount 1. FIG. ずらし量1のときの基準ディザマトリックスの記憶構成の一例を示す図である。It is a figure which shows an example of the memory | storage structure of a reference | standard dither matrix in case of the shift amount of 1. FIG. ずらし量1のときの参照ポインタの算出処理を示すフローチャートである。It is a flowchart which shows the calculation process of the reference pointer at the time of the shift amount of 1. ずらし量2のときの基準ディザマトリックスの画像上の配置例を示す図である。It is a figure which shows the example of arrangement | positioning on the image of the reference | standard dither matrix in the case of shift amount 2. FIG. ずらし量2のときのマルチモードにおける基準ディザマトリックスの記憶構成の一例を示す図である。It is a figure which shows an example of the memory | storage structure of the reference | standard dither matrix in multi mode in case of the shift amount of 2. FIG. ずらし量2のときのマルチモードにおける参照ポインタの算出処理を示すフローチャートである。It is a flowchart which shows the calculation process of the reference pointer in the multi mode at the time of shift amount 2. ずらし量2のときのシングルモードにおける基準ディザマトリックスの記憶構成の一例を示す図である。It is a figure which shows an example of the memory | storage structure of the reference | standard dither matrix in a single mode when the shift amount is 2. FIG. ずらし量2のときのシングルモードにおける参照ポインタの算出処理を示すフローチャートである。It is a flowchart which shows the calculation process of the reference pointer in the single mode when the shift amount is 2. 本発明の第2の実施の形態に係る画像処理部12’の構成を示すブロック図である。It is a block diagram which shows the structure of the image process part 12 'which concerns on the 2nd Embodiment of this invention. ずらし量1のときの基準ディザマトリックスの画像上の配置例を示す図である。It is a figure which shows the example of arrangement | positioning on the image of the reference | standard dither matrix in case of the shift amount of 1. FIG. ずらし量1のときの画像データの処理対象行毎の不要な閾値データ及び新規に必要な閾値データの関係を示す図である。It is a figure which shows the relationship between the unnecessary threshold value data and the newly required threshold value data for every process target line of the image data in case of the shift amount of 1. ずらし量1のときの参照ポインタの算出処理を示すフローチャートである。It is a flowchart which shows the calculation process of the reference pointer at the time of the shift amount of 1. 閾値データの更新処理を示すフローチャートである。It is a flowchart which shows the update process of threshold value data. ずらし量1のときの、高速メモリへの閾値データの記憶構成の一例を示す図である。It is a figure which shows an example of the storage structure of the threshold value data to a high-speed memory in case of the shift amount of 1. ずらし量2のときの基準ディザマトリックスの画像上の配置例を示す図である。It is a figure which shows the example of arrangement | positioning on the image of the reference | standard dither matrix in the case of shift amount 2. FIG. ずらし量2のときのマルチモードにおける参照ポインタの算出処理を示すフローチャートである。It is a flowchart which shows the calculation process of the reference pointer in the multi mode at the time of shift amount 2. ずらし量2のときのマルチモードにおける、高速メモリへの閾値データの記憶構成の一例を示す図である。It is a figure which shows an example of the storage structure of the threshold value data to a high-speed memory in the multi mode in case of the shift amount of 2. ずらし量2のときのシングルモードにおける参照ポインタの算出処理を示すフローチャートである。It is a flowchart which shows the calculation process of the reference pointer in the single mode when the shift amount is 2. ずらし量2のときのシングルモードにおける、高速メモリへの閾値データの記憶構成の一例を示す図である。It is a figure which shows an example of the storage structure of the threshold value data to a high-speed memory in the single mode at the time of the shift amount of 2. ずらし量2のシングルモード時の閾値データの更新処理を示すフローチャートである。It is a flowchart which shows the update process of the threshold value data at the time of single mode of shift amount 2. ずらし量2のときのシングルモードにおける、高速メモリへの2行分毎の閾値データの記憶構成の一例を示す図である。It is a figure which shows an example of the memory | storage structure of the threshold value data for every 2 rows to the high-speed memory in the single mode when the shift amount is 2.

符号の説明Explanation of symbols

1,1’…印刷装置、10…画像データ取得部、11…画像データ記憶部、12,12’
…画像処理部、13…ディザマトリックス記憶部、14…印刷データ生成部、15…印刷
部、100…ディザ閾値分類部、102…ディザ閾値記憶部、104…画素制御部、10
6…ディザ閾値メモリ制御部、108…ディザ処理部、108a…判定処理部、108b
…N値化部、110…ディザ閾値更新部、60…CPU、62…RAM、64…ROM、
66…インターフェース、70…記憶装置、72…出力装置、74…入力装置
DESCRIPTION OF SYMBOLS 1,1 '... Printing apparatus, 10 ... Image data acquisition part, 11 ... Image data storage part, 12, 12'
... Image processing unit, 13 ... Dither matrix storage unit, 14 ... Print data generation unit, 15 ... Printing unit, 100 ... Dither threshold classification unit, 102 ... Dither threshold storage unit, 104 ... Pixel control unit, 10
6: Dither threshold memory control unit, 108: Dither processing unit, 108a: Determination processing unit, 108b
... N-value conversion unit, 110 ... Dither threshold value update unit, 60 ... CPU, 62 ... RAM, 64 ... ROM,
66 ... Interface, 70 ... Storage device, 72 ... Output device, 74 ... Input device

Claims (18)

M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、アドレスの連続す
るそれぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に
1次元的に記憶する基準ディザマトリックス記憶手段と、
前記記憶領域に記憶された各行の前記閾値をその読出開始行から順に、前記画像データ
の各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出す閾値読出手段と、
前記閾値読出手段において、前記記憶領域からの前記閾値の読出処理が前記必要な回数
分行われる毎に、前記記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、
前記N値化手段で変換後の画素値から構成される画像データに基づき印刷処理を実行す
る印刷手段と、を備えることを特徴とする印刷装置。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data having the M number of gradations Is converted to image data having a gradation number of N (M> N ≧ 2) values, and a printing process is performed based on the converted image data,
Reference dither matrix storage means for storing the threshold values of the first to DH rows constituting the reference dither matrix in a one-dimensional manner in the order of arrangement of the threshold values in the reference dither matrix in separate storage areas having consecutive addresses. When,
Threshold reading means for cyclically and repeatedly reading out the threshold value of each row stored in the storage area, in order from the reading start row, the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading means, a reading start position setting means for sequentially shifting the position of the reading start line in the storage area in units of one line each time the threshold value is read from the storage area for the required number of times.
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing means;
And a printing unit that executes a printing process based on the image data formed by the pixel values converted by the N-ary unit.
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行だけを、アドレスの連続する記憶
領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶する基
準ディザマトリックス記憶手段と、
前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出手段と、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新手段と、
前記閾値更新手段において、前記不足している前記閾値の行が前記記憶領域に記憶され
る毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位置設
定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、
前記N値化手段で変換後の画素値から構成される画像データに基づき印刷処理を実行す
る印刷手段と、を備えることを特徴とする印刷装置。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data having the M number of gradations Is converted to image data having a gradation number of N (M> N ≧ 2) values, and a printing process is performed based on the converted image data,
In the threshold value of the first row to the DH row constituting the reference dither matrix, only the threshold row for the one row to be processed of the image data is stored in the storage area where the addresses are continuous. Reference dither matrix storage means for storing one-dimensionally in the order of arrangement of the threshold values in the dither matrix;
Threshold reading means for cyclically reading out the threshold value of each row stored in the storage area, in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, each time the threshold value for the necessary amount is read from the storage area, the next row of the image data in the threshold row stored in the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. Threshold update means for sequentially storing in the storage area of the deleted address;
In the threshold update means, a read start position setting means for sequentially shifting the position of the read start line in the storage area in units of one line every time the insufficient threshold line is stored in the storage area;
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing means;
And a printing unit that executes a printing process based on the image data formed by the pixel values converted by the N-ary unit.
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH>DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループを、アドレスの連続する
それぞれ別々の記憶領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1
次元的に記憶する基準ディザマトリックス記憶手段と、
前記副走査方向の走査に対して、前記第1閾値行グループから第K閾値行グループに向
けて順に各閾値行グループの記憶された記憶領域を循環的に且つ繰り返し選択すると共に
、当該選択した各記憶領域に記憶された各グループの各行の閾値をその読出開始行から順
に、前記画像データの各行の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出
す閾値読出手段と、
前記閾値読出手段において、前記各記憶領域からの前記閾値の読出処理が前記必要な回
数分行われる毎に、前記各記憶領域における読出開始行の位置をK−1行単位で順次ずら
す読出開始位置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、
前記N値化手段で変換後の画素値から構成される画像データに基づき印刷処理を実行す
る印刷手段と、を備えることを特徴とする印刷装置。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH> DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the number of gradations of the M value is converted into image data having the number of gradations of N (M> N ≧ 2), and the converted image A printing apparatus that performs a printing process based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of xK), each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K is consecutive in address. 1 in the order of arrangement of the threshold values in the reference dither matrix
Reference dither matrix storage means for storing dimensionally;
For the scanning in the sub-scanning direction, the storage areas stored in the respective threshold row groups are selected cyclically and repeatedly in order from the first threshold row group to the Kth threshold row group. Threshold reading means for reading the threshold value of each row of each group stored in the storage area in order from the read start row, repeatedly and repeatedly for the number of times necessary for the determination processing of each row of the image data;
In the threshold value reading means, every time the threshold value is read out from each storage area for the required number of times, a reading start position setting is performed in which the position of the reading start line in each storage area is sequentially shifted by K-1 lines. Means,
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing means;
And a printing unit that executes a printing process based on image data composed of pixel values converted by the N-value conversion unit.
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行を、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶する基準ディザマトリックス記憶手段と、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出手段と、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新手段と、
前記閾値更新手段において、前記不足している前記閾値の行が前記各記憶領域に記憶さ
れる毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、
前記N値化手段で変換後の画素値から構成される画像データに基づき印刷処理を実行す
る印刷手段と、を備えることを特徴とする印刷装置。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the number of gradations of the M value is converted into image data having the number of gradations of N (M> N ≧ 2), and the converted image A printing apparatus that performs a printing process based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) The image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, according to the rule of 1) × K) Reference dither matrix storage means for storing one-dimensionally the row of the threshold used for one processing target row in separate storage areas having consecutive addresses;
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Means,
Each time the threshold value is read out from each storage area for scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete the threshold rows unnecessary for the processing target row and select the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, Threshold update means for sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting unit that sequentially shifts the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area; ,
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
N-value conversion means for converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing means;
And a printing unit that executes a printing process based on the image data formed by the pixel values converted by the N-ary unit.
前記基準ディザマトリックス記憶手段は、前記第1〜第K閾値行グループの各閾値行グ
ループの先頭行から順に、行毎に、各行の先頭の閾値から各行の最後尾の閾値まで順に各
閾値行グループの閾値を1つずつ、第1閾値行グループのものから第K閾値行グループの
ものに向けて順に並べながらアドレスの連続する1つの記憶領域に記憶し、
前記閾値読出手段は、前記副走査方向の走査に対して、前記各記憶領域に並べて記憶さ
れた前記各閾値行グループの閾値の読出開始位置を、1つ前の読出開始位置に対して前記
並び順に1つずつずらすと共に、前記主査方向の走査に対して、前記記憶領域に記憶され
た前記閾値を、前記読出開始位置からK個ずつスキップしながら、前記画像データの各行
の前記判定処理に必要な回数分、循環的に且つ繰り返し読み出し、
前記読出開始位置設定手段は、前記閾値読出手段において、前記記憶領域に記憶された
前記第1〜第K閾値行グループの前記閾値に対して、前記必要な回数分の読み出しを行う
毎に、前記各記憶領域における前記読出開始位置をK−1行単位で順次ずらすことを特徴
とする請求項3又は請求項4記載の印刷装置。
The reference dither matrix storage means sequentially stores each threshold row group in order from the first row of each threshold row group of the first to Kth threshold row groups, from the first threshold of each row to the last threshold of each row. Are stored in one storage area where addresses are continuous while sequentially arranging the thresholds of the first threshold row group toward the Kth threshold row group,
The threshold reading means sets the threshold reading start positions of the threshold row groups stored side by side in the storage areas for the scanning in the sub-scanning direction relative to the previous reading start position. Necessary for the determination process for each row of the image data while sequentially shifting the threshold values stored in the storage area one by one from the read start position while shifting by one in order. Read out cyclically and repeatedly for a certain number of times,
The reading start position setting unit is configured to read the necessary number of times for the threshold value of the first to Kth threshold row groups stored in the storage area in the threshold value reading unit. 5. The printing apparatus according to claim 3, wherein the reading start position in each storage area is sequentially shifted in units of K-1 rows.
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値を、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類する閾値行分類手段を備えることを特徴とする請求項3
乃至請求項5のいずれか1項に記載の印刷装置。
The threshold values of the first to DH rows constituting the reference dither matrix are set as (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) A threshold row classification means for classifying into K threshold row groups of first to Kth threshold row groups corresponding to i = 1 to K, respectively, according to the rule of 1) × K). 3
The printing apparatus according to any one of claims 5 to 5.
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置を制御するのに使用する印刷装置制御プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続する記憶領域
に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶されており

前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出ステップと、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新ステップと

前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記記憶領域に記憶
される毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップとからなる処理をコンピュータに実行させるのに使用するプログラム
を含むことを特徴とする印刷装置制御プログラム。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted in the main scanning direction by the width of the entire column for the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data of the M number of gradations Is a printing apparatus control program used to convert image data of N (M> N ≧ 2) number of gradations and to control a printing apparatus that performs printing processing based on the converted image data,
Among the threshold values of the first to DH rows constituting the reference dither matrix, the threshold rows for the one row to be processed of the image data are stored in the storage area where the addresses are continuous in the reference dither matrix. Stored one-dimensionally in the order of arrangement of the threshold values in the matrix;
A threshold value reading step for cyclically reading out the threshold value of each row stored in the storage area in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, every time the required threshold value is read from the storage area, the next row of the image data in the threshold row stored at the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. A threshold update step for sequentially storing in the storage area of the deleted address;
In the threshold update step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line each time the insufficient threshold line is stored in the storage area;
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
A printing apparatus control comprising: a program used for causing a computer to execute a process including a printing step for executing a printing process based on image data composed of pixel values converted in the N-value conversion step. program.
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
を制御するのに使用する印刷装置制御プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶されており、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出ステップと、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新ステップと、
前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記各記憶領域に記
憶される毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップとからなる処理をコンピュータに実行させるのに使用するプログラム
を含むことを特徴とする印刷装置制御プログラム。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the M number of gradations is converted into image data having the gradation number of N (M> N ≧ 2), and the converted image A printing apparatus control program used to control a printing apparatus that performs printing processing based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of × K), the image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively. The threshold rows for one processing target row are stored one-dimensionally in separate storage areas with consecutive addresses,
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Steps,
Each time the threshold value is read out from each storage area for the scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete unnecessary threshold rows for the processing target row, and select each of the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, A threshold update step of sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting step of sequentially shifting the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area in the threshold update step; ,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
A printing apparatus control comprising: a program used for causing a computer to execute a process including a printing step for executing a printing process based on image data composed of pixel values converted in the N-value conversion step. program.
請求項7又は請求項8記載の印刷装置制御プログラムを記憶したことを特徴とするコン
ピュータ読み取り可能な記憶媒体。
A computer-readable storage medium storing the printing apparatus control program according to claim 7 or 8.
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換し、当該変換後の画像データに基づ
き印刷処理を行う印刷装置を制御するのに使用する印刷装置制御方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続する記憶領域
に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶されており

前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出ステップと、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新ステップと

前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記記憶領域に記憶
される毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップと、を含むことを特徴とする印刷装置制御方法。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data having the M number of gradations Is converted to image data having N (M> N ≧ 2) gradations, and a printing apparatus control method used to control a printing apparatus that performs printing processing based on the converted image data,
Among the threshold values of the first to DH rows constituting the reference dither matrix, the threshold rows for the one row to be processed of the image data are stored in the storage area where the addresses are continuous in the reference dither matrix. Stored one-dimensionally in the order of arrangement of the threshold values in the matrix;
A threshold value reading step for cyclically reading out the threshold value of each row stored in the storage area in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, every time the required threshold value is read from the storage area, the next row of the image data in the threshold row stored at the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. A threshold update step for sequentially storing in the storage area of the deleted address;
In the threshold update step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line each time the insufficient threshold line is stored in the storage area;
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a printing step of executing a printing process based on the image data composed of the pixel values converted in the N-value conversion step.
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換し、当該変換後の画像データに基づき印刷処理を行う印刷装置
を制御するのに使用する印刷装置制御方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶されており、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出ステップと、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新ステップと、
前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記各記憶領域に記
憶される毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、
前記N値化ステップで変換後の画素値から構成される画像データに基づき印刷処理を実
行する印刷ステップと、を含むことを特徴とする印刷装置制御方法。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The dot on / off state is sequentially determined according to the above, and the image data having the M number of gradations is converted into image data having the gradation number of N (M> N ≧ 2), and the converted image A printing apparatus control method used to control a printing apparatus that performs printing processing based on data,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of × K), the image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively. The threshold rows for one processing target row are stored one-dimensionally in separate storage areas with consecutive addresses,
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Steps,
Each time the threshold value is read out from each storage area for the scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete unnecessary threshold rows for the processing target row, and select each of the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, A threshold update step of sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting step of sequentially shifting the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area in the threshold update step; ,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on the determination result of the determination processing step;
And a printing step of executing a printing process based on the image data composed of the pixel values converted in the N-value conversion step.
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対して1行単位で
前記副走査方向とは反対方向にずらし、前記読み出した各閾値とこれに対応する各画素値
との大小関係に応じてドットのオン・オフを順次判定して、前記M値の階調数の画像デー
タをN(M>N≧2)値の階調数の画像データに変換する画像処理装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行だけを、アドレスの連続する記憶
領域に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶する基
準ディザマトリックス記憶手段と、
前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出手段と、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新手段と、
前記閾値更新手段において、前記不足している前記閾値の行が前記記憶領域に記憶され
る毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位置設
定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、を備えることを特徴とする画像処理装置。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is changed to the subdivision in units of one row with respect to the arrangement before the shift. The image data is shifted in the direction opposite to the scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, and the image data having the M number of gradations Is converted into image data having N (M> N ≧ 2) number of gradations,
In the threshold value of the first row to the DH row constituting the reference dither matrix, only the threshold row for the one row to be processed of the image data is stored in the storage area where the addresses are continuous. Reference dither matrix storage means for storing one-dimensionally in the order of arrangement of the threshold values in the dither matrix;
Threshold reading means for cyclically reading out the threshold value of each row stored in the storage area, in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, each time the threshold value for the necessary amount is read from the storage area, the next row of the image data in the threshold row stored in the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. Threshold update means for sequentially storing in the storage area of the deleted address;
In the threshold update means, a read start position setting means for sequentially shifting the position of the read start line in the storage area in units of one line every time the insufficient threshold line is stored in the storage area;
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
An image processing apparatus comprising: an N-value conversion unit configured to convert a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on a determination result of the determination processing unit. .
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された
行数DH(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)
の基準ディザマトリックスを備え、前記画像データをラスタ走査するときに、当該画像デ
ータの列数方向を主走査方向、行数方向を副走査方向とし、前記基準ディザマトリックス
全体を、その全列数幅分及びその全行数幅分、前記主走査方向及び前記副走査方向にそれ
ぞれ順次シフトしながら前記画像データ全体の各画素値に対する閾値を読み出すと共に、
前記画像データに対して、前記基準ディザマトリックス全体をその全列数幅分、前記主走
査方向にシフトするときに、そのシフト後の配置を、シフト前の配置に対してK行単位(
Kは、DH/2≧K≧2且つDH/Kの余りが0の自然数)で前記副走査方向とは反対方
向にずらし、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドッ
トのオン・オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の
階調数の画像データに変換する画像処理装置であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行を、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶する基準ディザマトリックス記憶手段と、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出手段と、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新手段と、
前記閾値更新手段において、前記不足している前記閾値の行が前記各記憶領域に記憶さ
れる毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定手段と、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得手段と、
前記閾値読出手段で順次読み出される前記閾値と、前記画素値取得手段で順次取得され
る前記画素値とを用いて、前記判定処理を順次行う判定処理手段と、
前記判定処理手段の判定結果に基づき、前記M値の階調数の画素値を前記N値の階調数
の画素値に変換するN値化手段と、を備えることを特徴とする画像処理装置。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. The number of rows DH (DH is a natural number of IH <DH) and the number of columns DW (DW is IW) are commonly used for image data of IW ≧ 2 and are arranged in a two-dimensional matrix. > DW natural number)
When the image data is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix has the width of the total number of columns. And a threshold for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction, respectively, for the entire number and the width of the entire row,
When the entire reference dither matrix is shifted by the total number of columns in the main scanning direction with respect to the image data, the arrangement after the shift is expressed in units of K rows (
K is a natural number of DH / 2 ≧ K ≧ 2 and the remainder of DH / K is 0) and is shifted in the direction opposite to the sub-scanning direction, and the magnitude relationship between each read threshold and each corresponding pixel value The image processing apparatus converts the image data having the M number of gradations into the image data having the number of gradations of N (M> N ≧ 2) by sequentially determining whether the dots are turned on or off according to ,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) The image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively, according to the rule of 1) × K) Reference dither matrix storage means for storing one-dimensionally the row of the threshold used for one processing target row in separate storage areas having consecutive addresses;
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Means,
Each time the threshold value is read out from each storage area for scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete the threshold rows unnecessary for the processing target row and select the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, Threshold update means for sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting unit that sequentially shifts the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area; ,
Pixel value acquisition means for sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
Determination processing means for sequentially performing the determination processing using the threshold value sequentially read by the threshold value reading means and the pixel value sequentially acquired by the pixel value acquisition means;
An image processing apparatus comprising: an N-value conversion unit configured to convert a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on a determination result of the determination processing unit. .
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対して1行単位で前記副走査方向とは反対方向にずらし
、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドットのオン・
オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の階調数の画
像データに変換する画像処理プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続する記憶領域
に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶されており

前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出ステップと、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新ステップと

前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記記憶領域に記憶
される毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップとからなる処理をコンピュータに実行させるのに
使用するプログラムを含むことを特徴とする画像処理プログラム。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH <DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the width of the entire column, Is shifted in the direction opposite to the sub-scanning direction in units of one line with respect to the arrangement before the shift, and the dot on / off state is changed according to the magnitude relationship between the read threshold values and the corresponding pixel values.
An image processing program for sequentially determining OFF and converting the image data having the number of gradations of the M value into image data having the number of gradations of N (M> N ≧ 2).
Among the threshold values of the first to DH rows constituting the reference dither matrix, the threshold rows for the one row to be processed of the image data are stored in the storage area where the addresses are continuous in the reference dither matrix. Stored one-dimensionally in the order of arrangement of the threshold values in the matrix;
A threshold value reading step for cyclically reading out the threshold value of each row stored in the storage area in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, every time the required threshold value is read from the storage area, the next row of the image data in the threshold row stored at the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. A threshold update step for sequentially storing in the storage area of the deleted address;
In the threshold update step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line each time the insufficient threshold line is stored in the storage area;
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
Based on the determination result of the determination processing step, it is used for causing a computer to execute a process including an N-value conversion step of converting the pixel value having the M-value gradation number into the pixel value having the N-value gradation number. An image processing program comprising:
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対してK行単位(Kは、DH/2≧K≧2且つDH/K
の余りが0の自然数)で前記副走査方向とは反対方向にずらし、前記読み出した各閾値と
これに対応する各画素値との大小関係に応じてドットのオン・オフを順次判定して、前記
M値の階調数の画像データをN(M>N≧2)値の階調数の画像データに変換する画像処
理プログラムであって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶されており、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出ステップと、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新ステップと、
前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記各記憶領域に記
憶される毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップとからなる処理をコンピュータに実行させるのに
使用するプログラムを含むことを特徴とする画像処理プログラム。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH <DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the entire column width, after the shift For the arrangement before shifting, in units of K rows (K is DH / 2 ≧ K ≧ 2 and DH / K
(The remainder is a natural number of 0) and is shifted in the direction opposite to the sub-scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, An image processing program for converting the image data having the number of gradations of the M value into image data having the number of gradations of N (M> N ≧ 2).
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of × K), the image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively. The threshold rows for one processing target row are stored one-dimensionally in separate storage areas with consecutive addresses,
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Steps,
Each time the threshold value is read out from each storage area for the scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete unnecessary threshold rows for the processing target row, and select each of the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, A threshold update step of sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting step of sequentially shifting the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area in the threshold update step; ,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
Based on the determination result of the determination processing step, it is used for causing a computer to execute a process including an N-value conversion step of converting the pixel value having the M-value gradation number into the pixel value having the N-value gradation number. An image processing program comprising:
請求項14又は請求項15記載の画像処理プログラムを記憶したことを特徴とするコン
ピュータ読み取り可能な記憶媒体。
A computer-readable storage medium storing the image processing program according to claim 14 or 15.
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対して1行単位で前記副走査方向とは反対方向にずらし
、前記読み出した各閾値とこれに対応する各画素値との大小関係に応じてドットのオン・
オフを順次判定して、前記M値の階調数の画像データをN(M>N≧2)値の階調数の画
像データに変換する画像処理方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値における、前記画像デ
ータの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続する記憶領域
に、前記基準ディザマトリックスにおける前記閾値の配列順に1次元的に記憶されており

前記記憶領域に記憶された各行の前記閾値を読出開始行から順に、前記画像データの各
処理対象行の前記判定処理に必要な分、循環的に読み出す閾値読出ステップと、
前記画像データの各処理対象行に対して、前記記憶領域から前記必要な分の閾値が読み
出される毎に、前記記憶領域の前記連続するアドレスに記憶された閾値の行のうち画像デ
ータの次の処理対象行に対して不要な前記閾値の行を削除すると共に、前記基準ディザマ
トリックスから前記次の処理対象行に対して不足している前記閾値の行を選択して、当該
選択した閾値の行を前記削除したアドレスの記憶領域に順次記憶する閾値更新ステップと

前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記記憶領域に記憶
される毎に、当該記憶領域における読出開始行の位置を1行単位で順次ずらす読出開始位
置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、を含むことを特徴とする画像処理方法。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH <DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the width of the entire column, Is shifted in the direction opposite to the sub-scanning direction in units of one line with respect to the arrangement before the shift, and the dot on / off state is changed according to the magnitude relationship between the read threshold values and the corresponding pixel values.
An image processing method for sequentially determining OFF and converting the image data having the number of gradations of the M value into image data having the number of gradations of N (M> N ≧ 2).
Among the threshold values of the first to DH rows constituting the reference dither matrix, the threshold rows for the one row to be processed of the image data are stored in the storage area where the addresses are continuous in the reference dither matrix. Stored one-dimensionally in the order of arrangement of the threshold values in the matrix;
A threshold value reading step for cyclically reading out the threshold value of each row stored in the storage area in order from the reading start row, in an amount necessary for the determination processing of each processing target row of the image data;
For each processing target row of the image data, every time the required threshold value is read from the storage area, the next row of the image data in the threshold row stored at the continuous address of the storage area. The unnecessary threshold line for the processing target line is deleted, and the threshold line that is insufficient for the next processing target line is selected from the reference dither matrix, and the selected threshold line is selected. A threshold update step for sequentially storing in the storage area of the deleted address;
In the threshold update step, a reading start position setting step of sequentially shifting the position of the reading start row in the storage area in units of one line each time the insufficient threshold line is stored in the storage area;
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on a determination result of the determination processing step. .
M(Mは、M≧3の自然数)値の階調数を有する画素値が2次元マトリックス状に配列
された行数IH(IHは、IH≧2の自然数)及び列数IW(IWは、IW≧2の自然数
)の画像データをラスタ走査するときに、当該画像データの列数方向を主走査方向、行数
方向を副走査方向とし、前記基準ディザマトリックス全体を、その全列数幅分及びその全
行数幅分、前記主走査方向及び前記副走査方向にそれぞれ順次シフトしながら前記画像デ
ータ全体の各画素値に対する閾値を読み出すと共に、前記画像データに対して、当該画像
データに共通に用いられ、且つ所定の閾値が2次元マトリックス状に配列された行数DH
(DHは、IH<DHの自然数)及び列数DW(DWは、IW>DWの自然数)の基準デ
ィザマトリックス全体がその全列数幅分、前記主走査方向にシフトするときに、そのシフ
ト後の配置を、シフト前の配置に対してK行単位(Kは、DH/2≧K≧2且つDH/K
の余りが0の自然数)で前記副走査方向とは反対方向にずらし、前記読み出した各閾値と
これに対応する各画素値との大小関係に応じてドットのオン・オフを順次判定して、前記
M値の階調数の画像データをN(M>N≧2)値の階調数の画像データに変換する画像処
理方法であって、
前記基準ディザマトリックスを構成する第1行〜第DH行の閾値が、(i(i=1,2
,・・・,K−1,K)+j(j=0,1,・・・,(DH/K)−2,(DH/K)−
1)×K)の法則に従って、前記i=1〜Kにそれぞれ対応する第1〜第K閾値行グルー
プのK個の閾値行グループに分類された、当該各閾値行グループにおける、それぞれ前記
画像データの処理対象の1行に対して用いる分の前記閾値の行が、アドレスの連続するそ
れぞれ別々の記憶領域に1次元的に記憶されており、
前記副走査方向の走査に対して、前記各記憶領域を、前記第1閾値行グループの閾値の
行が記憶されているものから前記第K閾値行グループの閾値の行が記憶されているものへ
と順に、循環的に且つ繰り返し選択すると共に、当該選択した記憶領域に記憶された各行
の前記閾値を、前記画像データの各処理対象行の前記判定処理に必要な分、循環的に読み
出す閾値読出ステップと、
前記副走査方向の走査に対する前記各記憶領域からの前記閾値の読出処理が前記必要な
分行われる毎に、前記各記憶領域に記憶された前記閾値の行のうち、それぞれの前記画像
データの新たな処理対象行に対して不要な前記閾値の行を削除すると共に、前記第1〜第
K閾値行グループから前記新たな処理対象行に対して不足している前記閾値の行をそれぞ
れ選択して、当該選択した前記閾値の行を前記各記憶領域における前記削除したアドレス
の記憶領域に順次記憶する閾値更新ステップと、
前記閾値更新ステップにおいて、前記不足している前記閾値の行が前記各記憶領域に記
憶される毎に、当該各記憶領域における読出開始行の位置を1行単位で順次ずらす読出開
始位置設定ステップと、
前記画像データにおける取得開始位置の画素値から順番に前記ラスタ走査を行って各行
の画素値を順次取得する画素値取得ステップと、
前記閾値読出ステップで順次読み出される前記閾値と、前記画素値取得ステップで順次
取得される前記画素値とを用いて、前記判定処理を順次行う判定処理ステップと、
前記判定処理ステップの判定結果に基づき、前記M値の階調数の画素値を前記N値の階
調数の画素値に変換するN値化ステップと、を含むことを特徴とする画像処理方法。
The number of rows IH (IH is a natural number of IH ≧ 2) and the number of columns IW (IW is IW is a pixel number having M (M is a natural number of M ≧ 3) values arranged in a two-dimensional matrix. When the image data of IW ≧ 2) is raster-scanned, the column number direction of the image data is the main scanning direction, the row number direction is the sub-scanning direction, and the entire reference dither matrix is equal to the total number of columns. And a threshold value for each pixel value of the entire image data while sequentially shifting in the main scanning direction and the sub-scanning direction by the total number of rows, and common to the image data with respect to the image data Number of rows DH that is used and a predetermined threshold value is arranged in a two-dimensional matrix
When the entire reference dither matrix (DH is a natural number of IH <DH) and the number of columns DW (DW is a natural number of IW> DW) is shifted in the main scanning direction by the entire column width, after the shift For the arrangement before shifting, in units of K rows (K is DH / 2 ≧ K ≧ 2 and DH / K
(The remainder is a natural number of 0) and is shifted in the direction opposite to the sub-scanning direction, and dot on / off is sequentially determined according to the magnitude relationship between the read threshold values and the corresponding pixel values, An image processing method for converting the image data having the number of gradations of M value into image data having the number of gradations of N (M> N ≧ 2) values,
The threshold values of the first to DH rows constituting the reference dither matrix are (i (i = 1, 2).
, ..., K-1, K) + j (j = 0, 1, ..., (DH / K) -2, (DH / K)-
1) According to the rule of × K), the image data in each threshold row group classified into K threshold row groups of the first to Kth threshold row groups corresponding to i = 1 to K, respectively. The threshold rows for one processing target row are stored one-dimensionally in separate storage areas with consecutive addresses,
With respect to scanning in the sub-scanning direction, each storage area is changed from one storing threshold rows of the first threshold row group to one storing threshold rows of the Kth threshold row group. And sequentially reading out the threshold value of each row stored in the selected storage area in an amount necessary for the determination process of each processing target row of the image data. Steps,
Each time the threshold value is read out from each storage area for the scanning in the sub-scanning direction, the new value of each image data in the threshold row stored in each storage area is updated. Delete unnecessary threshold rows for the processing target row, and select each of the threshold rows that are insufficient for the new processing target row from the first to Kth threshold row groups, A threshold update step of sequentially storing the selected threshold row in the storage area of the deleted address in each storage area;
A reading start position setting step of sequentially shifting the position of the reading start row in each storage area in units of one line each time the insufficient threshold row is stored in each storage area in the threshold update step; ,
A pixel value acquisition step of sequentially acquiring the pixel values of each row by performing the raster scanning in order from the pixel value of the acquisition start position in the image data;
A determination processing step for sequentially performing the determination processing using the threshold value sequentially read in the threshold value reading step and the pixel value sequentially acquired in the pixel value acquisition step;
An N-value conversion step of converting a pixel value having the number of gradations of the M value into a pixel value having the number of gradations of the N value based on a determination result of the determination processing step. .
JP2006293636A 2006-10-30 2006-10-30 Printing device, printing device control program, printing device control method, image processor, image processing program, image processing method, and storage medium stored with the program Withdrawn JP2008113114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006293636A JP2008113114A (en) 2006-10-30 2006-10-30 Printing device, printing device control program, printing device control method, image processor, image processing program, image processing method, and storage medium stored with the program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006293636A JP2008113114A (en) 2006-10-30 2006-10-30 Printing device, printing device control program, printing device control method, image processor, image processing program, image processing method, and storage medium stored with the program

Publications (1)

Publication Number Publication Date
JP2008113114A true JP2008113114A (en) 2008-05-15

Family

ID=39445411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006293636A Withdrawn JP2008113114A (en) 2006-10-30 2006-10-30 Printing device, printing device control program, printing device control method, image processor, image processing program, image processing method, and storage medium stored with the program

Country Status (1)

Country Link
JP (1) JP2008113114A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115643110A (en) * 2022-12-22 2023-01-24 河北新龙科技集团股份有限公司 Application software safety detection method based on running data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115643110A (en) * 2022-12-22 2023-01-24 河北新龙科技集团股份有限公司 Application software safety detection method based on running data

Similar Documents

Publication Publication Date Title
JP7005314B2 (en) Image processing equipment, image processing methods, and programs
JP2012010089A (en) Image processing apparatus, control method, and program
US9786250B2 (en) Control apparatus, image processing apparatus, control method, and non-transitory computer-readable storage medium
US20090033766A1 (en) Image processing apparatus and method
JP4594042B2 (en) Image processing method, image processing apparatus, and computer program
JP2008067044A (en) Image processor, image reader, image processing method, and image processing program
CN102164226B (en) Image processing apparatus,image processing circuit and image processing method
JP2008113114A (en) Printing device, printing device control program, printing device control method, image processor, image processing program, image processing method, and storage medium stored with the program
EP1758368A1 (en) Image processing device, image processing method, and program
JP4892247B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP3669081B2 (en) Image processing device
JP4802853B2 (en) Image processing apparatus and image processing program
JP3512462B2 (en) Black isolated point removal device
US20070188812A1 (en) Image processing device, image reading device and image processing method
JP5599033B2 (en) Image processing apparatus and method, and program
JP3949642B2 (en) Image processing device
JP3997851B2 (en) Image coding apparatus and image coding program
JPH09200540A (en) Picture compression device
JP2004213100A (en) Color conversion processor and color conversion processing method
JP2001078049A (en) Method and device for picture processing
JP2005065147A (en) Image processing apparatus, image processing system, compressed image processing data generating apparatus, image processing method, compressed image processing data generating method, and image processing program
JP3967175B2 (en) Image processing system
JP4337670B2 (en) Image processing apparatus, image processing method, and program
JP2007194955A (en) Image processing device
JPH091769A (en) Image data generating device for making gravure printing plate

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100105