JP2001157050A - Image-processing method, image processor and control method therefor - Google Patents

Image-processing method, image processor and control method therefor

Info

Publication number
JP2001157050A
JP2001157050A JP34083799A JP34083799A JP2001157050A JP 2001157050 A JP2001157050 A JP 2001157050A JP 34083799 A JP34083799 A JP 34083799A JP 34083799 A JP34083799 A JP 34083799A JP 2001157050 A JP2001157050 A JP 2001157050A
Authority
JP
Japan
Prior art keywords
error
propagation
value
valued
storage means
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
JP34083799A
Other languages
Japanese (ja)
Inventor
Shigeru Sakamoto
茂 坂本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP34083799A priority Critical patent/JP2001157050A/en
Publication of JP2001157050A publication Critical patent/JP2001157050A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image processing method, an image processor and its controlling method for n-ary coding at high speed, using a simple constitution. SOLUTION: This method/device has an adder 104 for adding a propagating error based on the binarizing errors of plural peripheral pixels, which are already binarized to the input value of an image element under consideration to be a processing object, a comparator 101 for comparing the input value added with the propagating error by the adder 104 with a prescribed threshold and outputting binary data, a subtracter 105 for calculating the error of the input value and output value of the comparator 101, and a propagating error table 103 for relating and storing the combination of an n-ary error as the output of the subtracter 105, concerning plural peripheral pixels and the propagating error corresponding to the combination.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、第1階調数mの画
像データを、誤差拡散法を用いて、該第1階調数mより
も少ない第2階調数nの画像データにn値化する画像処
理方法、画像処理装置、及びその制御方法に関するもの
である。
The present invention relates to a method for converting image data of a first gradation number m into image data of a second gradation number n smaller than the first gradation number m by using an error diffusion method. The present invention relates to an image processing method, an image processing apparatus, and a control method for converting a value into a value.

【0002】[0002]

【従来の技術】従来、このような誤差拡散法を用いた画
像処理装置は、図6に示すように構成されていた。図
中、1101は入力値と閾値を比較してn値の出力値を
決定するための比較器であり、1102は出力値と、誤
差が重畳された入力値との差分を格納しておくための誤
差バッファである。また、1103は誤差バッファ11
02に格納された誤差と、あらかじめ決定された拡散マ
トリックスとの積和演算を行うための伝播誤差算出部で
あり、複数の乗算器と加算器の組み合わせにより積和演
算を行うよう構成されている。1104は伝播誤差算出
部1103で算出された伝播誤差を入力画像データに加
算する加算器、1105は、比較器1101の入出力の
差を算出する減算器である。
2. Description of the Related Art Conventionally, an image processing apparatus using such an error diffusion method has been configured as shown in FIG. In the figure, reference numeral 1101 denotes a comparator for comparing an input value with a threshold value to determine an n-value output value, and 1102 stores a difference between an output value and an input value on which an error is superimposed. Is an error buffer. 1103 is the error buffer 11
02 is a propagation error calculation unit for performing a product-sum operation of the error stored in 02 and a predetermined diffusion matrix, and is configured to perform a product-sum operation by a combination of a plurality of multipliers and adders. . Reference numeral 1104 denotes an adder for adding the propagation error calculated by the propagation error calculation unit 1103 to the input image data, and reference numeral 1105 denotes a subtractor for calculating a difference between input and output of the comparator 1101.

【0003】(x,y)に位置する注目画素の画像デー
タf(x,y)が入力されると、誤差バッファ1102
から所定の位置にある複数の周辺画素のn値化誤差が読
出され、伝播誤差算出部1103に入力される。
When image data f (x, y) of a target pixel located at (x, y) is input, an error buffer 1102
, The n-valued errors of a plurality of peripheral pixels at a predetermined position are read out and input to the propagation error calculating unit 1103.

【0004】伝播誤差算出部1103では、入力画像デ
ータf(x,y)に加算すべき伝播誤差が次式に基づい
て算出される。
The propagation error calculation unit 1103 calculates a propagation error to be added to the input image data f (x, y) based on the following equation.

【0005】[0005]

【数1】 (Equation 1)

【0006】ここで、e(x+i,y+j)は、注目画
素(x,y)の周辺に存在する周辺画素(x+i,y+
j)のn値化誤差である。また、w(i,j)は周辺画
素の2値化誤差に対して注目画素との距離で重み付けす
るための係数である。ただし、平均濃度を保存するた
め、
Here, e (x + i, y + j) is a peripheral pixel (x + i, y +) existing around the pixel of interest (x, y).
j) is an n-ary error. Further, w (i, j) is a coefficient for weighting the binarization error of the peripheral pixel by the distance from the target pixel. However, to save the average concentration,

【0007】[0007]

【数2】 という関係になっている。(Equation 2) It is a relationship.

【0008】このように重み付けしたn値化誤差を、注
目画素の周辺に存在する周辺画素にわたって加算するこ
とによって、伝播誤差Aを得る。
[0008] The propagation error A is obtained by adding the weighted n-valued errors over peripheral pixels existing around the target pixel.

【0009】加算器1104では、伝播誤差Aと入力値
f(x,y)との和がとられ、その結果のf’(x,
y)が比較器1101に入力される。比較器1101で
は、入力された値とあらかじめ設定された閾値との大小
関係を調べ、その結果に応じてn値化(nは2以上で入
力値の階調数より小さい任意の整数)を行った値g
(x,y)を出力する。最後に、比較器1101の出力
g(x,y)と伝播誤差を重畳された入力値f’(x,
y)との差分e(x,y)が所定のビット精度で計算さ
れ、その結果が、誤差バッファに格納される。
In the adder 1104, the sum of the propagation error A and the input value f (x, y) is obtained, and the result f '(x,
y) is input to the comparator 1101. The comparator 1101 checks the magnitude relationship between the input value and a preset threshold value, and converts the value into n-values (n is an integer of 2 or more and smaller than the number of gradations of the input value) according to the result. Value g
(X, y) is output. Finally, the output g (x, y) of the comparator 1101 and the input value f ′ (x,
The difference e (x, y) from y) is calculated with a predetermined bit precision, and the result is stored in an error buffer.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、上記従
来の技術では、伝播誤差算出部1103において、
(1)式の演算を一画素毎に全てのn値化誤差について
行っていたので、処理が複雑になり処理速度が遅いとい
う欠点があった。
However, according to the above-described conventional technique, the propagation error calculation unit 1103 requires
Since the calculation of equation (1) is performed for all n-valued errors for each pixel, the processing is complicated and the processing speed is slow.

【0011】本発明は、この従来技術の課題を解決する
ためになされたもので、その目的とするところは、簡易
な構成で高速にn値化可能な画像処理方法及び画像処理
装置並びにその制御方法を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the problems of the prior art, and it is an object of the present invention to provide an image processing method and an image processing apparatus capable of high-speed n-value conversion with a simple configuration and its control. It is to provide a method.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するた
め、本発明にあっては、第1階調数mの画像データを、
誤差拡散法を用いて、該第1階調数mよりも少ない第2
階調数nの画像データにn値化する画像処理装置であっ
て、既にn値化を終えた複数の周辺画素のn値化誤差に
基づく伝播誤差を、処理対象となる注目画素の入力値に
加算する加算手段と、該加算手段で前記伝播誤差を加算
された入力値と、所定のしきい値とを比較し、n個の値
を出力する比較手段と、前記比較手段の前記入力値と出
力値の誤差を算出する誤差算出手段と、前記複数の周辺
画素についての前記誤差算出手段の出力としてのn値化
誤差の組み合わせと、該組み合わせに対応する前記伝播
誤差と、を関連させて記憶した記憶手段と、を有するこ
とを特徴とする。
In order to achieve the above object, according to the present invention, image data of the first number of gradations m is
Using an error diffusion method, the second gradation number smaller than the first gradation number m
An image processing apparatus for converting an n-value into n-valued image data into an n-valued image data, comprising: An input value obtained by adding the propagation error to the input value, comparing the input value with a predetermined threshold value, and outputting n values, the input value of the comparing means And an error calculating means for calculating an error between the output values, a combination of an n-valued error as an output of the error calculating means for the plurality of peripheral pixels, and the propagation error corresponding to the combination. Storage means for storing.

【0013】前記誤差算出手段によって算出された前記
複数の周辺画素のn値化誤差を一時的に記憶する一時記
憶手段を更に有することを特徴とする。
[0013] The image processing apparatus may further include temporary storage means for temporarily storing the n-valued errors of the plurality of peripheral pixels calculated by the error calculation means.

【0014】前記記憶手段は、前記一時記憶手段に格納
された前記複数の周辺画素のn値化誤差を、直列に並べ
て形成される数列をアドレスとして用いたLUTである
ことを特徴とする。
The storage means is an LUT using, as an address, a sequence formed by serially arranging n-value errors of the plurality of peripheral pixels stored in the temporary storage means.

【0015】既にn値化を終えた複数の周辺画素のn値
化誤差に基づいて、伝播誤差を算出する算出手段を更に
有し、前記n値化誤差の一部を該算出手段に入力して伝
播誤差の一部を算出し、前記n値化誤差の残りの部分か
ら前記記憶手段を参照して伝播誤差の残りの部分を導出
し、前記算出手段の出力及び前記記憶手段の出力を組合
せて、全伝播誤差を求め、前記加算手段に入力すること
を特徴とする。
[0015] Further, there is provided calculating means for calculating a propagation error based on the n-value errors of a plurality of peripheral pixels which have already been n-valued, and a part of the n-value errors is input to the calculating means. Calculating a part of the propagation error, deriving the remaining part of the propagation error by referring to the storage means from the remaining part of the n-valued error, and combining the output of the calculation means and the output of the storage means. Then, a total propagation error is obtained and input to the adding means.

【0016】前記n値化誤差は、所定数の上位ビット
と、残りの下位ビットとに分割され、上位ビット又は下
位ビットのいずれか一方が前記記憶媒体に入力され、他
方が前記算出手段に入力されることを特徴とする。
The n-valued error is divided into a predetermined number of upper bits and the remaining lower bits, and one of the upper bits and the lower bits is input to the storage medium, and the other is input to the calculating means. It is characterized by being performed.

【0017】入力値をそれより小さいビット幅を持つ出
力に変換する画像処理装置において、誤差拡散処理を行
う誤差拡散手段と、組織的ディザ処理を行う組織的ディ
ザ手段と、前記誤差拡散手段と、前記組織的ディザ手段
と、が参照する情報を格納し得る記憶手段と、予め複数
の周辺画素についてのn値化誤差の組み合わせと、該組
み合わせに対応する伝播誤差と、を関連させて記憶した
第1不揮発メモリと、予めしきい値テーブルを格納した
第2不揮発メモリと、誤差拡散処理を行う時には、前記
第1不揮発メモリの内容に基づいて、前記記憶手段に伝
播誤差LUTが作成され、前記誤差拡散手段が前記記憶
手段に格納された伝播誤差LUTを参照して誤差拡散処
理を行ない、組織ディザ処理を行うときには、前記第2
不揮発メモリの内容に基づいて、しきい値LUTが作成
され、前記組織的ディザ手段が前記記憶手段に格納され
たしきい値LUTを参照して組織的ディザ処理を行なう
ように、前記記憶手段の内容を切替える切替手段と、を
有することを特徴とする。
In an image processing apparatus for converting an input value into an output having a smaller bit width, an error diffusion means for performing error diffusion processing, an organized dither means for performing systematic dither processing, the error diffusion means, A storage means capable of storing information referred to by the systematic dither means, a combination of n-valued errors for a plurality of peripheral pixels, and a propagation error corresponding to the combination stored in advance. When performing an error diffusion process, a propagation error LUT is created in the storage unit based on the contents of the first nonvolatile memory, and the error is stored in the storage unit. When the diffusion means performs the error diffusion processing with reference to the propagation error LUT stored in the storage means and performs the tissue dither processing,
A threshold LUT is created based on the contents of the non-volatile memory, and the systematic dithering means performs systematic dither processing with reference to the threshold LUT stored in the storage means. Switching means for switching contents.

【0018】第1階調数mの画像データを、誤差拡散法
を用いて、該第1階調数mよりも少ない第2階調数nの
画像データにn値化する画像処理方法であって、既にn
値化を終えた複数の周辺画素のn値化誤差に基づく伝播
誤差を、処理対象となる注目画素の入力値に加算する加
算工程と、該加算工程で前記伝播誤差を加算された入力
値と、所定のしきい値とを比較し、n個の値を出力する
比較工程と、前記比較工程の前記入力値と出力値の誤差
を算出する誤差算出工程と、前記複数の周辺画素につい
ての前記誤差算出工程での出力としてのn値化誤差の組
み合わせと、該組み合わせに対応する前記伝播誤差と、
を関連させて記憶した記憶手段を制御して、前記n値化
誤差の組合せに対応した前記伝播誤差を読出す制御工程
と、を有することを特徴とする。
An image processing method for converting image data of a first gradation number m into n-valued image data of a second gradation number n smaller than the first gradation number m using an error diffusion method. And already n
An addition step of adding a propagation error based on the n-valued error of the plurality of peripheral pixels that have been converted to the input value of the target pixel to be processed, and an input value obtained by adding the propagation error in the addition step. Comparing a predetermined threshold value and outputting n values; an error calculating step of calculating an error between the input value and the output value of the comparing step; and A combination of the n-ary error as an output in the error calculation step, and the propagation error corresponding to the combination;
And a control step of controlling a storage means storing the propagation error corresponding to the combination of the n-valued errors.

【0019】誤差拡散処理を行う誤差拡散手段と、組織
的ディザ処理を行う組織的ディザ手段と、前記誤差拡散
手段と、前記組織的ディザ手段と、が参照する情報を格
納し得る記憶手段と、予め複数の周辺画素についてのn
値化誤差の組み合わせと、該組み合わせに対応する伝播
誤差と、を関連させて記憶した第1不揮発メモリと、予
めしきい値テーブルを格納した第2不揮発メモリと、を
有する画像処理装置の制御方法において、誤差拡散処理
を行う時には、前記第1不揮発メモリの内容に基づいて
前記記憶手段に伝播誤差LUTを作成し、前記誤差拡散
手段が前記記憶手段に格納された伝播誤差LUTを参照
して誤差拡散処理を行ない、組織ディザ処理を行うとき
には、前記第2不揮発メモリの内容に基づいて前記記憶
手段にしきい値LUTを作成し、前記組織的ディザ手段
が前記記憶手段に格納されたしきい値LUTを参照して
組織的ディザ処理を行なうように前記画像処理装置を制
御することを特徴とする。
Error diffusion means for performing error diffusion processing, systematic dither means for performing systematic dither processing, storage means capable of storing information referred to by the error diffusion means and the systematic dither means, N for a plurality of peripheral pixels in advance
A control method for an image processing apparatus, comprising: a first nonvolatile memory storing a combination of a binarization error and a propagation error corresponding to the combination, and a second nonvolatile memory storing a threshold table in advance. In performing the error diffusion process, a propagation error LUT is created in the storage unit based on the contents of the first nonvolatile memory, and the error diffusion unit refers to the propagation error LUT stored in the storage unit to determine an error. When performing a diffusion process and performing a tissue dither process, a threshold LUT is created in the storage unit based on the contents of the second nonvolatile memory, and the systematic dither unit is configured to store the threshold LUT stored in the storage unit. And controlling the image processing apparatus so as to perform organized dither processing with reference to FIG.

【0020】第1階調数mの画像データを、誤差拡散法
を用いて、該第1階調数mよりも少ない第2階調数nの
画像データにn値化する画像処理プログラムを格納した
コンピュータ可読メモリであって、前記画像処理プログ
ラムは、既にn値化を終えた複数の周辺画素のn値化誤
差に基づく伝播誤差を、処理対象となる注目画素の入力
値に加算する加算工程のプログラムコードと、該加算工
程で前記伝播誤差を加算された入力値と、所定のしきい
値とを比較し、n個の値を出力する比較工程のプログラ
ムコードと、前記比較工程の前記入力値と出力値の誤差
を算出する誤差算出工程のプログラムコードと、前記複
数の周辺画素についての前記誤差算出工程での出力とし
てのn値化誤差の組み合わせと、該組み合わせに対応す
る前記伝播誤差と、を関連させて記憶した記憶手段を制
御して、前記n値化誤差の組合せに対応した前記伝播誤
差を読出す制御工程のプログラムコードと、を含むこと
を特徴とする。
An image processing program for converting the image data of the first gradation number m into image data of the second gradation number n smaller than the first gradation number m by using an error diffusion method is stored. A computer-readable memory, wherein the image processing program adds a propagation error based on an n-value error of a plurality of peripheral pixels that have already been n-valued to an input value of a target pixel to be processed. And a program code of a comparing step of comparing the input value obtained by adding the propagation error in the adding step with a predetermined threshold value and outputting n values, and the input code of the comparing step A program code of an error calculation step of calculating an error between a value and an output value, a combination of an n-ary error as an output in the error calculation step for the plurality of peripheral pixels, and the propagation error corresponding to the combination. And controls the storage means for storing in association with, characterized in that it comprises a program code reading control step the propagation error corresponding to a combination of the n-valued error.

【0021】誤差拡散処理を行う誤差拡散手段と、組織
的ディザ処理を行う組織的ディザ手段と、前記誤差拡散
手段と、前記組織的ディザ手段と、が参照する情報を格
納し得る記憶手段と、予め複数の周辺画素についてのn
値化誤差の組み合わせと、該組み合わせに対応する伝播
誤差と、を関連させて記憶した第1不揮発メモリと、予
めしきい値テーブルを格納した第2不揮発メモリと、を
有する画像処理装置の制御プログラムを格納したコンピ
ュータ可読メモリであって、前記制御プログラムは、誤
差拡散処理を行う時には、前記第1不揮発メモリの内容
に基づいて前記記憶手段に伝播誤差LUTを作成し、前
記誤差拡散手段が前記記憶手段に格納された伝播誤差L
UTを参照して誤差拡散処理を行なうように制御する誤
差拡散工程のプログラムコードと、組織ディザ処理を行
うときには、前記第2不揮発メモリの内容に基づいて前
記記憶手段にしきい値LUTを作成し、前記組織的ディ
ザ手段が前記記憶手段に格納されたしきい値LUTを参
照して組織的ディザ処理を行なうように制御する組織的
ディザ処理工程のプログラムコードと、を含むことを特
徴とする。
Error diffusion means for performing error diffusion processing; systematic dither means for performing systematic dither processing; storage means capable of storing information referred to by the error diffusion means and the systematic dither means; N for a plurality of peripheral pixels in advance
A control program for an image processing apparatus, comprising: a first non-volatile memory storing a combination of a binarization error and a propagation error corresponding to the combination, and a second non-volatile memory storing a threshold table in advance Wherein the control program creates a propagation error LUT in the storage means based on the contents of the first non-volatile memory when performing the error diffusion processing, and the error diffusion means Propagation error L stored in the means
A program code of an error diffusion process for controlling to perform an error diffusion process with reference to a UT, and when performing a tissue dither process, a threshold LUT is created in the storage unit based on the contents of the second nonvolatile memory. And a program code for an organized dither processing step of controlling the organized dither means to perform the organized dither processing with reference to the threshold value LUT stored in the storage means.

【0022】[0022]

【発明の実施の形態】以下に、図面を参照して、この発
明の好適な実施の形態を例示的に詳しく説明する。ただ
し、この実施の形態に記載されている構成要素の相対配
置、数式、数値等は、特に特定的な記載がない限りは、
この発明の範囲をそれらのみに限定する趣旨のものでは
ない。
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, the relative arrangement of components described in this embodiment, formulas, numerical values, etc., unless otherwise specified,
It is not intended to limit the scope of the present invention only to them.

【0023】(第1の実施の形態)まず、図1乃至図3
を用いて、本発明の第1の実施の形態としてのプリンタ
について説明する。本実施の形態では、例として、25
6階調の多値画像データに対して2値化処理を行なう場
合について説明する。
(First Embodiment) First, FIGS.
The printer according to the first embodiment of the present invention will be described with reference to FIG. In the present embodiment, for example, 25
A case in which binarization processing is performed on multi-level image data of six gradations will be described.

【0024】図2は、本実施の形態を適用可能なプリン
タの概略構成を示すブロック図である。プリンタ200
は、プリントコントローラ201とプリントエンジン2
02から構成されており、ホストコンピュータ203か
ら入力した図形や文字などのベクトルデータを、画素
(ドット)の集合で構成されるラスタデータに変換し、
1ページ分のページメモリ205に展開する。そして、
このラスタデータをページメモリ205から出力する際
に、変換部204で2値化し、変換後の2値データに基
づいて、プリントエンジン202にて記録材にトナーや
インクを付着させることにより印字を行う。
FIG. 2 is a block diagram showing a schematic configuration of a printer to which the present embodiment can be applied. Printer 200
Are the print controller 201 and the print engine 2
And converts vector data such as figures and characters input from the host computer 203 into raster data composed of a set of pixels (dots).
The data is expanded in the page memory 205 for one page. And
When the raster data is output from the page memory 205, the conversion unit 204 binarizes the raster data, and based on the converted binary data, performs printing by causing the print engine 202 to attach toner or ink to the recording material. .

【0025】図1は、変換部204の内部構成を概略的
に示す図である。
FIG. 1 is a diagram schematically showing the internal configuration of the conversion unit 204.

【0026】図において、101は入力値と閾値を比較
して2値の出力値を決定するための比較器であり、10
2は出力値と、誤差が重畳された入力値との差分である
2値化誤差を一時的に格納する誤差バッファである。ま
た、103は誤差バッファ102からの出力から、伝播
誤差を得るための伝播誤差テーブルであり、LUTによ
り構成されている。104は伝播誤差テーブル103で
算出された伝播誤差を入力画像データに加算する加算
器、105は、比較器101の入出力の差を算出する減
算器である。
In the figure, reference numeral 101 denotes a comparator for comparing an input value with a threshold value to determine a binary output value.
An error buffer 2 temporarily stores a binarization error which is a difference between the output value and the input value on which the error is superimposed. Reference numeral 103 denotes a propagation error table for obtaining a propagation error from the output from the error buffer 102, and is configured by an LUT. 104 is an adder that adds the propagation error calculated by the propagation error table 103 to the input image data, and 105 is a subtractor that calculates the difference between the input and output of the comparator 101.

【0027】伝播誤差テーブル103は、周辺画素の2
値化誤差の組合せをアドレスとし、周辺画素の2値化誤
差がその組合せとなるときの、伝播誤差の値をその内容
とするLUTである。
The propagation error table 103 stores the 2
This LUT has a combination of a binarization error as an address, and a value of a propagation error when the binarization error of a peripheral pixel is the combination.

【0028】たとえば、図3のようなマトリクスを用い
て、(x,y)に位置する注目画素の画像データf
(x,y)に対して、0〜7で示された周辺画素の2値
化誤差に基づく伝播誤差を加算するものとすると、ま
ず、8つの周辺画素の2値化誤差が e(x+i,y+j) (−2≦i,j≦0;execpti=j=0) (3) で表せる。
For example, using a matrix as shown in FIG. 3, the image data f of the pixel of interest located at (x, y)
Assuming that the propagation error based on the binarization error of the peripheral pixels indicated by 0 to 7 is added to (x, y), first, the binarization error of the eight peripheral pixels is e (x + i, y + j) (−2 ≦ i, j ≦ 0; execpti = j = 0) (3)

【0029】このような2値化誤差(pビット)を周辺
画素0から周辺画素7まで順番に並べた数列a(8pビ
ット)は、
A sequence a (8p bits) in which such binarization errors (p bits) are arranged in order from peripheral pixel 0 to peripheral pixel 7 is as follows:

【0030】[0030]

【数3】 となる。この数列が伝播誤差テーブル103のアドレス
となる。
(Equation 3) Becomes This sequence becomes the address of the propagation error table 103.

【0031】そして、8つの周辺画素の位置情報をl
(0〜7)とすると、アドレスaの伝播誤差A(a)
は、
Then, the position information of the eight peripheral pixels is represented by l
(0-7), the propagation error A (a) of address a
Is

【0032】[0032]

【数4】 となる。(Equation 4) Becomes

【0033】即ち、伝播誤差テーブル103には、aを
アドレスとする伝播誤差A(a)が格納される。
That is, the propagation error table 103 stores a propagation error A (a) having address a.

【0034】(x,y)に位置する注目画素の画像デー
タf(x,y)が入力されると、誤差バッファ102か
ら複数の周辺画素(0〜7)の2値化誤差が読出され
る。
When the image data f (x, y) of the pixel of interest located at (x, y) is input, the binarization errors of a plurality of peripheral pixels (0 to 7) are read from the error buffer 102. .

【0035】、誤差バッファ102から読出された周辺
画素(0〜7)の2値化誤差は、数列aの形式で伝播誤
差テーブル103に入力され、伝播誤差テーブル103
から伝播誤差A(a)が読出される。更に、加算器10
4では、伝播誤差A(a)と入力値f(x,y)との和
がとられ、その結果のf’(x,y)が比較器1101
に入力される。比較器1101では、入力された値とあ
らかじめ設定された閾値との大小関係を調べ、その結果
に応じてn値化(nは2以上で入力値の階調数より小さ
い任意の整数)を行った値g(x,y)を出力する。最
後に、比較器1101の出力g(x,y)と伝播誤差を
重畳された入力値f’(x,y)との差分e(x,y)
がpビット精度で計算され、その結果が、誤差バッファ
に格納される。
The binarization errors of the peripheral pixels (0 to 7) read from the error buffer 102 are input to the propagation error table 103 in the form of a sequence a.
Is read from the propagation error A (a). Further, the adder 10
4, the sum of the propagation error A (a) and the input value f (x, y) is calculated, and the resulting f ′ (x, y) is compared with the comparator 1101.
Is input to The comparator 1101 checks the magnitude relationship between the input value and a preset threshold value, and converts the value into n-values (n is an integer of 2 or more and smaller than the number of gradations of the input value) according to the result. The value g (x, y) is output. Finally, the difference e (x, y) between the output g (x, y) of the comparator 1101 and the input value f ′ (x, y) on which the propagation error is superimposed.
Is calculated with p-bit precision, and the result is stored in the error buffer.

【0036】このように、画素毎に計算することなく、
LUTからの読出しによって伝播誤差が求められるの
で、簡易な構成で高速にn値化可能となる。
As described above, without calculating for each pixel,
Since a propagation error is obtained by reading from the LUT, n-value can be quickly converted to a simple value with a simple configuration.

【0037】なお、通常の処理では、入力値fが8ビッ
ト精度である場合、誤差の精度pも8ビットである事が
一般的である。この時、上述した原理をそのまま用いる
と、かなり大きなアドレス空間を持ったテーブルが必要
となる(上述した例では64ビットのアドレス空間が必
要である)。RAM容量などのリソースが制限された環
境では、上述したアドレス数列を作成するときにそれぞ
れの誤差を間引いてもよい(例えば、上述した例では、
誤差を2ビットに間引けば、必要なアドレス空間は16
ビットに削減される)。この手法を適用する時は、伝播
誤差テーブル103に格納すべきデータは、次のように
求められる。(ただし、pビットからmビットに間引く
ものとする。)
In the ordinary processing, when the input value f has 8-bit precision, the error precision p is generally 8-bit. At this time, if the above principle is used as it is, a table having a considerably large address space is required (in the above example, a 64-bit address space is required). In an environment where resources such as RAM capacity are limited, each error may be thinned out when creating the above-mentioned address sequence (for example, in the above-described example,
If the error is reduced to 2 bits, the required address space becomes 16
Reduced to a bit). When this method is applied, data to be stored in the propagation error table 103 is obtained as follows. (However, it shall be decimated from p bits to m bits.)

【0038】[0038]

【数5】 (ただし、2nを掛けることはnビット左シフトを表し
nで割る事はnビット右シフトを表すものとする。) (第2の実施の形態)本発明の第2の実施の形態を図4
を用いて説明する。
(Equation 5) (However, applying the 2 n is divisible by 2 n represents the n-bit left shift denote the n-bit right shift.) The second embodiment (second embodiment) the present invention FIG.
This will be described with reference to FIG.

【0039】上記第1の実施の形態では、2値化誤差の
全てを伝播誤差テーブルに入力し、テーブルを参照して
伝播誤差を求めていたが、本実施の形態では、2値化誤
差を分割し、その一部を伝播誤差テーブルに、残りを伝
播誤差算出部に入力し、それぞれの出力を組合せて伝播
誤差を求めるものである。伝播誤差テーブル303に並
列に伝播誤差算出部304が設けられていること以外
は、第1の実施の形態と同様であるため、同じ構成要素
には同じ符号を付してその説明は省略する。
In the first embodiment, all of the binarization errors are input to the propagation error table, and the propagation errors are obtained with reference to the table. In the present embodiment, the binarization errors are calculated. The division is performed, a part of which is input to the propagation error table, and the rest is input to the propagation error calculation unit, and the outputs are combined to determine the propagation error. The configuration is the same as that of the first embodiment except that the propagation error calculation section 304 is provided in parallel with the propagation error table 303. Therefore, the same components are denoted by the same reference numerals and description thereof will be omitted.

【0040】図において、303、及び304はそれぞ
れ伝播誤差テーブル、伝播誤差算出部であり、伝播誤差
テーブル303はRAMで構成され、伝播誤差算出部3
04は積和演算器で構成されている。この構成では、伝
播誤差算出のために用いられる誤差データは、上位nビ
ットと下位mビットに分割され、それぞれ伝播誤差テー
ブル303と伝播誤差算出部304に入力される。拡散
ウインドとして図3に示したものが用いられていると仮
定すると、伝播誤差テーブルには、
In the figure, reference numerals 303 and 304 denote a propagation error table and a propagation error calculation unit, respectively.
Reference numeral 04 denotes a product-sum operation unit. In this configuration, error data used for calculating a propagation error is divided into upper n bits and lower m bits, and input to the propagation error table 303 and the propagation error calculator 304, respectively. Assuming that the diffusion window shown in FIG. 3 is used, the propagation error table contains

【0041】[0041]

【数6】 ここで、(Equation 6) here,

【0042】[0042]

【数7】 なる値A(a)が各アドレスaに格納されている。従っ
て、伝播誤差テーブル303から出力される値Aと、伝
播誤差算出部304で下位mビットの誤差を(1)式で
演算した結果Bとを、下式を用いて加算すれば、最終的
な伝播誤差A’を得る。
(Equation 7) The following value A (a) is stored at each address a. Therefore, by adding the value A output from the propagation error table 303 and the result B obtained by calculating the lower m-bit error in the propagation error calculation unit 304 using the expression (1) using the following expression, the final value is obtained. A propagation error A 'is obtained.

【0043】A’=2mA+B (10) 後は、(10)式で算出した値を用いて通常の誤差拡散
処理を行うことが出来る。
A ′ = 2 mA + B (10) After that, normal error diffusion processing can be performed using the value calculated by equation (10).

【0044】本実施の形態では、伝播誤差を算出するた
めに誤差を上位nビットと下位mビットに分割し、上位
nビットでテーブルを参照し下位mビットで積和演算処
理を行っているので、誤差の間引きに伴う処理精度の悪
化を防ぐと同時に、伝播誤差算出部を構成する積和演算
部のビット幅を削減し、演算規模を小さく出来るという
効果が生じる。
In this embodiment, in order to calculate a propagation error, the error is divided into upper n bits and lower m bits, and a product sum operation is performed with lower m bits by referring to a table with the upper n bits. In addition, it is possible to prevent the processing accuracy from deteriorating due to the thinning out of the error, and at the same time, reduce the bit width of the product-sum operation unit included in the propagation error calculation unit, thereby reducing the operation scale.

【0045】(第3の実施の形態)本発明の第3の実施
の形態を図5を用いて説明する。
(Third Embodiment) A third embodiment of the present invention will be described with reference to FIG.

【0046】上記第1の実施の形態では、入力した画像
データに対し、誤差拡散処理のみを行い、2値化して出
力していたが、本実施の形態では、誤差拡散処理と、組
織的ディザ処理とを選択することができる。
In the first embodiment, only the error diffusion processing is performed on the input image data and the image data is binarized and output. However, in the present embodiment, the error diffusion processing and the systematic dithering are performed. Processing and can be selected.

【0047】図において、401は上記第1、第2の実
施の形態に記載した誤差拡散処理部である。誤差拡散処
理部401は、その伝播誤差テーブルとしてRAM40
5を用いる。また、402は、組織的ディザ処理を行う
組織的ディザ処理部であり、閾値テーブルとしてRAM
405を用いる。ROM403、404は、それぞれ誤
差拡散処理に用いる伝播誤差テーブルと、組織的ディザ
処理の際に用いる閾値テーブルを常に保持している。
In the figure, reference numeral 401 denotes the error diffusion processing unit described in the first and second embodiments. The error diffusion processing unit 401 uses the RAM 40
5 is used. Reference numeral 402 denotes an organized dither processing unit that performs organized dither processing, and a RAM is used as a threshold table.
405 is used. The ROMs 403 and 404 always hold a propagation error table used for error diffusion processing and a threshold table used for systematic dither processing, respectively.

【0048】即ち、本実施の形態では、RAM405を
2つの異なる処理で共有している。誤差拡散処理を行な
うときは図中の各スイッチ406、407、408がA
側に接続されると共に、RAM405にROM403か
ら、保持されている伝播誤差テーブルがロードされる。
また、組織ディザ処理を行う時は、各スイッチはB側に
接続されると共にRAM405に、ROMから、保持さ
れている閾値テーブルがロードされる。こうして、選択
された方式を用いた処理が可能になる。本実施の形態で
は、誤差拡散処理と組織ディザ処理を同一のRAM資源
を用いて行う様に構成されているので、例えば画像に応
じて最適な処理方式を選択するような用途では、装置の
規模、即ちコストを削減する効果が生じる。
That is, in this embodiment, the RAM 405 is shared by two different processes. When the error diffusion process is performed, the switches 406, 407, and 408 in FIG.
And the stored propagation error table is loaded from the ROM 403 into the RAM 405.
When the tissue dither processing is performed, each switch is connected to the B side, and the stored threshold table is loaded from the ROM into the RAM 405. Thus, processing using the selected method becomes possible. In the present embodiment, the error diffusion processing and the tissue dither processing are configured to be performed using the same RAM resource. That is, the effect of reducing costs is produced.

【0049】[0049]

【他の実施形態】なお、本発明は、複数の機器(例えば
ホストコンピュータ、インタフェイス機器、リーダ、プ
リンタなど)から構成されるシステムに適用しても、一
つの機器からなる装置(例えば、複写機、ファクシミリ
装置など)に適用してもよい。
[Other Embodiments] Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), an apparatus (for example, a copying machine) Machine, facsimile machine, etc.).

【0050】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体(または記録媒体)を、システムあるい
は装置に供給し、そのシステムあるいは装置のコンピュ
ータ(またはCPUやMPU)が記憶媒体に格納されたプログ
ラムコードを読み出し実行することによっても、達成さ
れることは言うまでもない。この場合、記憶媒体から読
み出されたプログラムコード自体が前述した実施形態の
機能を実現することになり、そのプログラムコードを記
憶した記憶媒体は本発明を構成することになる。また、
コンピュータが読み出したプログラムコードを実行する
ことにより、前述した実施形態の機能が実現されるだけ
でなく、そのプログラムコードの指示に基づき、コンピ
ュータ上で稼働しているオペレーティングシステム(OS)
などが実際の処理の一部または全部を行い、その処理に
よって前述した実施形態の機能が実現される場合も含ま
れることは言うまでもない。
Further, an object of the present invention is to supply a storage medium (or a recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or an apparatus, and a computer (a computer) of the system or apparatus. It is needless to say that the present invention can also be achieved by a CPU or an MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. Also,
When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also the operating system (OS) running on the computer based on the instructions of the program code.
It goes without saying that a case where the functions of the above-described embodiments are implemented by performing some or all of the actual processing, and the processing performs the functions of the above-described embodiments.

【0051】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張カー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書込まれた後、そのプログラムコードの指示
に基づき、その機能拡張カードや機能拡張ユニットに備
わるCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into the memory provided in the function expansion card inserted into the computer or the function expansion unit connected to the computer, the program code is read based on the instruction of the program code. Needless to say, the CPU included in the function expansion card or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0052】[0052]

【発明の効果】以上、説明したように誤差拡散処理を行
う画像処理装置において、伝播誤差算出に記憶手段を用
いることにより、次のような効果が生じる。
As described above, in the image processing apparatus which performs the error diffusion processing as described above, the following effects are produced by using the storage means for calculating the propagation error.

【0053】・複雑な積和演算が不要になるので処理速
度が向上する。
The processing speed is improved because a complicated product-sum operation is not required.

【0054】・必要に応じてテーブルの容量を設定する
ことで処理精度、装置コスト、処理速度などのパラメー
タを最適化した設計が可能になる。
By setting the capacity of the table as needed, it is possible to perform a design in which parameters such as processing accuracy, apparatus cost, and processing speed are optimized.

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

【図1】本発明に係る画像処置装置の第1の実施の形態
の構成を示す図である。
FIG. 1 is a diagram showing a configuration of a first embodiment of an image processing apparatus according to the present invention.

【図2】本発明に係る画像処理装置を適用可能なプリン
タの構成を示す図である。
FIG. 2 is a diagram illustrating a configuration of a printer to which the image processing apparatus according to the present invention can be applied.

【図3】誤差拡散ウインドーの一例を示す図である。FIG. 3 is a diagram illustrating an example of an error diffusion window.

【図4】本発明に係る画像処理装置の第2の実施の形態
の構成を示す図である。
FIG. 4 is a diagram illustrating a configuration of an image processing apparatus according to a second embodiment of the present invention.

【図5】本発明に係る画像処理装置の第3の実施の形態
の構成を示す図である。
FIG. 5 is a diagram illustrating a configuration of an image processing apparatus according to a third embodiment of the present invention.

【図6】従来の画像処理装置の構成を示す図である。FIG. 6 is a diagram illustrating a configuration of a conventional image processing apparatus.

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

101 比較器 102 誤差バッファ 103、303 伝播誤差テーブル 104 加算器 105 減算器 304 伝播誤差算出部位 401 誤差拡散処理部 402 組織的ディザ処理部 403、404 ROM 405 RAM 406、407、408 スイッチ 101 Comparator 102 Error buffer 103, 303 Propagation error table 104 Adder 105 Subtractor 304 Propagation error calculation unit 401 Error diffusion processing unit 402 Systematic dither processing unit 403, 404 ROM 405 RAM 406, 407, 408 Switch

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】第1階調数mの画像データを、誤差拡散法
を用いて、該第1階調数mよりも少ない第2階調数nの
画像データにn値化する画像処理装置であって、 既にn値化を終えた複数の周辺画素のn値化誤差に基づ
く伝播誤差を、処理対象となる注目画素の入力値に加算
する加算手段と、 該加算手段で前記伝播誤差を加算された入力値と、所定
のしきい値とを比較し、n個の値を出力する比較手段
と、 前記比較手段の前記入力値と出力値の誤差を算出する誤
差算出手段と、 前記複数の周辺画素についての前記誤差算出手段の出力
としてのn値化誤差の組み合わせと、該組み合わせに対
応する前記伝播誤差と、を関連させて記憶した記憶手段
と、 を有することを特徴とする画像処理装置。
An image processing apparatus for converting image data having a first gradation number m into image data having a second gradation number n smaller than the first gradation number m using an error diffusion method. Adding means for adding a propagation error based on the n-value error of a plurality of peripheral pixels that have already been n-valued to an input value of a pixel of interest to be processed; A comparing unit that compares the added input value with a predetermined threshold value and outputs n values; an error calculating unit that calculates an error between the input value and the output value of the comparing unit; Storage means for storing a combination of an n-valued error as an output of the error calculation means for the peripheral pixel of and a propagation error corresponding to the combination, apparatus.
【請求項2】前記誤差算出手段によって算出された前記
複数の周辺画素のn値化誤差を一時的に記憶する一時記
憶手段を更に有することを特徴とする請求項1に記載の
画像処理装置。
2. The image processing apparatus according to claim 1, further comprising a temporary storage unit for temporarily storing the n-valued errors of the plurality of peripheral pixels calculated by the error calculation unit.
【請求項3】前記記憶手段は、前記一時記憶手段に格納
された前記複数の周辺画素のn値化誤差を、直列に並べ
て形成される数列をアドレスとして用いたLUTである
ことを特徴とする請求項1に記載の画像処理装置。
3. The storage device according to claim 2, wherein the storage means is an LUT using, as an address, a sequence formed by serializing the n-valued errors of the plurality of peripheral pixels stored in the temporary storage means. The image processing device according to claim 1.
【請求項4】既にn値化を終えた複数の周辺画素のn値
化誤差に基づいて、伝播誤差を算出する算出手段を更に
有し、 前記n値化誤差の一部を該算出手段に入力して伝播誤差
の一部を算出し、前記n値化誤差の残りの部分から前記
記憶手段を参照して伝播誤差の残りの部分を導出し、前
記算出手段の出力及び前記記憶手段の出力を組合せて、
全伝播誤差を求め、前記加算手段に入力することを特徴
とする請求項1に記載の画像処理装置。
4. A calculating means for calculating a propagation error based on n-value errors of a plurality of peripheral pixels which have already been n-valued, wherein a part of the n-value error is provided to the calculating means. Input, calculate a part of the propagation error, derive the remaining part of the propagation error by referring to the storage means from the remaining part of the n-valued error, output the calculation means and the output of the storage means By combining
2. The image processing apparatus according to claim 1, wherein a total propagation error is obtained and input to said adding means.
【請求項5】前記n値化誤差は、所定数の上位ビット
と、残りの下位ビットとに分割され、上位ビット又は下
位ビットのいずれか一方が前記記憶媒体に入力され、他
方が前記算出手段に入力されることを特徴とする請求項
4に記載の画像処理装置。
5. The n-valued error is divided into a predetermined number of upper bits and the remaining lower bits, one of the upper bits and the lower bits is input to the storage medium, and the other is the calculating means. The image processing apparatus according to claim 4, wherein the image is input to the image processing apparatus.
【請求項6】入力値をそれより小さいビット幅を持つ出
力に変換する画像処理装置において、 誤差拡散処理を行う誤差拡散手段と、 組織的ディザ処理を行う組織的ディザ手段と、 前記誤差拡散手段と、前記組織的ディザ手段と、が参照
する情報を格納し得る記憶手段と、 予め複数の周辺画素についてのn値化誤差の組み合わせ
と、該組み合わせに対応する伝播誤差と、を関連させて
記憶した第1不揮発メモリと、 予めしきい値テーブルを格納した第2不揮発メモリと、 誤差拡散処理を行う時には、前記第1不揮発メモリの内
容に基づいて、前記記憶手段に伝播誤差LUTが作成さ
れ、前記誤差拡散手段が前記記憶手段に格納された伝播
誤差LUTを参照して誤差拡散処理を行ない、 組織ディザ処理を行うときには、前記第2不揮発メモリ
の内容に基づいて、しきい値LUTが作成され、前記組
織的ディザ手段が前記記憶手段に格納されたしきい値L
UTを参照して組織的ディザ処理を行なうように、前記
記憶手段の内容を切替える切替手段と、 を有することを特徴とする画像処理装置。
6. An image processing apparatus for converting an input value to an output having a smaller bit width, comprising: an error diffusion unit for performing an error diffusion process; an organized dither unit for performing an organized dither process; A storage unit capable of storing information referred to by the systematic dither unit; a combination of n-ary errors for a plurality of peripheral pixels and a propagation error corresponding to the combination stored in advance. A first non-volatile memory, a second non-volatile memory in which a threshold table is stored in advance, and when performing an error diffusion process, a propagation error LUT is created in the storage means based on the contents of the first non-volatile memory; When the error diffusion means performs error diffusion processing with reference to the propagation error LUT stored in the storage means and performs tissue dither processing, the second nonvolatile memory A threshold LUT is created based on the content of the threshold, and the systematic dithering means stores the threshold LUT stored in the storage means.
An image processing apparatus comprising: a switching unit that switches contents of the storage unit so as to perform systematic dither processing with reference to a UT.
【請求項7】第1階調数mの画像データを、誤差拡散法
を用いて、該第1階調数mよりも少ない第2階調数nの
画像データにn値化する画像処理方法であって、 既にn値化を終えた複数の周辺画素のn値化誤差に基づ
く伝播誤差を、処理対象となる注目画素の入力値に加算
する加算工程と、 該加算工程で前記伝播誤差を加算された入力値と、所定
のしきい値とを比較し、n個の値を出力する比較工程
と、 前記比較工程の前記入力値と出力値の誤差を算出する誤
差算出工程と、 前記複数の周辺画素についての前記誤差算出工程での出
力としてのn値化誤差の組み合わせと、該組み合わせに
対応する前記伝播誤差と、を関連させて記憶した記憶手
段を制御して、前記n値化誤差の組合せに対応した前記
伝播誤差を読出す制御工程と、 を有することを特徴とする画像処理方法。
7. An image processing method for converting image data having a first gradation number m into image data having a second gradation number n smaller than the first gradation number m using an error diffusion method. An addition step of adding a propagation error based on an n-value error of a plurality of peripheral pixels that have already been n-valued to an input value of a pixel of interest to be processed; A comparing step of comparing the added input value with a predetermined threshold value and outputting n values; an error calculating step of calculating an error between the input value and the output value in the comparing step; Controlling the storage means for storing a combination of the n-valued error as an output in the error calculation step for the peripheral pixel and the propagation error corresponding to the combination in association with the n-valued error. Controlling the reading of the propagation error corresponding to the combination of Image processing method comprising and.
【請求項8】誤差拡散処理を行う誤差拡散手段と、 組織的ディザ処理を行う組織的ディザ手段と、 前記誤差拡散手段と、前記組織的ディザ手段と、が参照
する情報を格納し得る記憶手段と、 予め複数の周辺画素についてのn値化誤差の組み合わせ
と、該組み合わせに対応する伝播誤差と、を関連させて
記憶した第1不揮発メモリと、 予めしきい値テーブルを格納した第2不揮発メモリと、 を有する画像処理装置の制御方法において、 誤差拡散処理を行う時には、前記第1不揮発メモリの内
容に基づいて前記記憶手段に伝播誤差LUTを作成し、
前記誤差拡散手段が前記記憶手段に格納された伝播誤差
LUTを参照して誤差拡散処理を行ない、 組織ディザ処理を行うときには、前記第2不揮発メモリ
の内容に基づいて前記記憶手段にしきい値LUTを作成
し、前記組織的ディザ手段が前記記憶手段に格納された
しきい値LUTを参照して組織的ディザ処理を行なうよ
うに前記画像処理装置を制御することを特徴とする画像
処理装置の制御方法。
8. An error diffusion means for performing error diffusion processing, an organized dither means for performing systematic dither processing, a storage means capable of storing information referred to by the error diffusion means and the systematic dither means. A first nonvolatile memory in which a combination of n-valued errors for a plurality of peripheral pixels and a propagation error corresponding to the combination are stored in advance, and a second nonvolatile memory in which a threshold value table is stored in advance In the method for controlling an image processing apparatus having the following, when performing an error diffusion process, a propagation error LUT is created in the storage unit based on the content of the first nonvolatile memory;
When the error diffusion means performs error diffusion processing with reference to the propagation error LUT stored in the storage means and performs tissue dither processing, a threshold LUT is stored in the storage means based on the contents of the second nonvolatile memory. And controlling the image processing apparatus so that the organized dither means performs an organized dither process with reference to a threshold LUT stored in the storage means. .
【請求項9】第1階調数mの画像データを、誤差拡散法
を用いて、該第1階調数mよりも少ない第2階調数nの
画像データにn値化する画像処理プログラムを格納した
コンピュータ可読メモリであって、 前記画像処理プログラムは、 既にn値化を終えた複数の周辺画素のn値化誤差に基づ
く伝播誤差を、処理対象となる注目画素の入力値に加算
する加算工程のプログラムコードと、 該加算工程で前記伝播誤差を加算された入力値と、所定
のしきい値とを比較し、n個の値を出力する比較工程の
プログラムコードと、 前記比較工程の前記入力値と出力値の誤差を算出する誤
差算出工程のプログラムコードと、 前記複数の周辺画素についての前記誤差算出工程での出
力としてのn値化誤差の組み合わせと、該組み合わせに
対応する前記伝播誤差と、を関連させて記憶した記憶手
段を制御して、前記n値化誤差の組合せに対応した前記
伝播誤差を読出す制御工程のプログラムコードと、 を含むことを特徴とするコンピュータ可読メモリ。
9. An image processing program for converting image data having a first gradation number m into image data having a second gradation number n smaller than the first gradation number m using an error diffusion method. Wherein the image processing program adds a propagation error based on an n-value error of a plurality of peripheral pixels that have already been n-valued to an input value of a target pixel to be processed. A program code of an adding step, a program code of a comparing step of comparing the input value obtained by adding the propagation error in the adding step with a predetermined threshold value, and outputting n values, A program code for an error calculation step of calculating an error between the input value and the output value; a combination of an n-valued error as an output in the error calculation step for the plurality of peripheral pixels; and the propagation corresponding to the combination Mistake If, by controlling the storage means for storing in association with, a computer-readable memory, characterized in that it comprises a program code for reading control step the propagation error corresponding to a combination of the n-valued error.
【請求項10】誤差拡散処理を行う誤差拡散手段と、 組織的ディザ処理を行う組織的ディザ手段と、 前記誤差拡散手段と、前記組織的ディザ手段と、が参照
する情報を格納し得る記憶手段と、 予め複数の周辺画素についてのn値化誤差の組み合わせ
と、該組み合わせに対応する伝播誤差と、を関連させて
記憶した第1不揮発メモリと、 予めしきい値テーブルを格納した第2不揮発メモリと、 を有する画像処理装置の制御プログラムを格納したコン
ピュータ可読メモリであって、 前記制御プログラムは、 誤差拡散処理を行う時には、前記第1不揮発メモリの内
容に基づいて前記記憶手段に伝播誤差LUTを作成し、
前記誤差拡散手段が前記記憶手段に格納された伝播誤差
LUTを参照して誤差拡散処理を行なうように制御する
誤差拡散工程のプログラムコードと、 組織ディザ処理を行うときには、前記第2不揮発メモリ
の内容に基づいて前記記憶手段にしきい値LUTを作成
し、前記組織的ディザ手段が前記記憶手段に格納された
しきい値LUTを参照して組織的ディザ処理を行なうよ
うに制御する組織的ディザ処理工程のプログラムコード
と、 を含むことを特徴とするコンピュータ可読メモリ。
10. An error diffusion means for performing error diffusion processing, an organized dither means for performing systematic dither processing, a storage means capable of storing information referred to by the error diffusion means and the systematic dither means. A first nonvolatile memory in which a combination of n-valued errors for a plurality of peripheral pixels and a propagation error corresponding to the combination are stored in advance, and a second nonvolatile memory in which a threshold value table is stored in advance A computer-readable memory storing a control program for an image processing apparatus, comprising: a control unit that, when performing an error diffusion process, transmits a propagation error LUT to the storage unit based on contents of the first nonvolatile memory. make,
A program code for an error diffusion step for controlling the error diffusion means to perform an error diffusion process by referring to a propagation error LUT stored in the storage means; and a content of the second nonvolatile memory for performing a tissue dither process. Generating a threshold LUT in the storage means based on the threshold value, and controlling the systematic dither means to perform the systematic dither processing with reference to the threshold LUT stored in the storage means. A computer readable memory comprising:
JP34083799A 1999-11-30 1999-11-30 Image-processing method, image processor and control method therefor Withdrawn JP2001157050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34083799A JP2001157050A (en) 1999-11-30 1999-11-30 Image-processing method, image processor and control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34083799A JP2001157050A (en) 1999-11-30 1999-11-30 Image-processing method, image processor and control method therefor

Publications (1)

Publication Number Publication Date
JP2001157050A true JP2001157050A (en) 2001-06-08

Family

ID=18340774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34083799A Withdrawn JP2001157050A (en) 1999-11-30 1999-11-30 Image-processing method, image processor and control method therefor

Country Status (1)

Country Link
JP (1) JP2001157050A (en)

Similar Documents

Publication Publication Date Title
US8331731B2 (en) Image processing method and image processing apparatus
JP4272880B2 (en) Color correction method, image processing apparatus, and lookup table
JP2001157050A (en) Image-processing method, image processor and control method therefor
US20100027037A1 (en) Image Processing Controller and Image Processing Apparatus
JPH0738767A (en) Image binarizing processor
JP2005086598A (en) Device, method, program, and circuit for processing image
US5291308A (en) Image processing apparatus using tonal degree conversion
JP3997808B2 (en) Drawing processing apparatus and drawing processing method
US6903842B2 (en) Method for generating full-page print data
US6985624B2 (en) Image processing apparatus and its method
JPS5892072A (en) Printer
JP2005092757A (en) Image processor
JP3114289B2 (en) Character pattern generator
JPH053540A (en) Image processor
JP4152337B2 (en) Image processing device
JPH11185035A (en) Image processing device and method
JP5205364B2 (en) Image forming apparatus and image forming method
JP2001333277A (en) Device and method for processing image
JPH1044530A (en) Printing control apparatus, information-processing apparatus, printing apparatus, and method for processing print information
JPH07154600A (en) Image processor
JP2000238347A (en) Printer control device
JP2000244734A (en) Image processor and multi-valuing processing method
JP2004295598A (en) Image processing method and image processor using it
JPH07141510A (en) Image processor
JPH11154229A (en) Image processor and its method

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: 20070206