JP2002135583A - Image processing apparatus, image processing method and storage medium - Google Patents

Image processing apparatus, image processing method and storage medium

Info

Publication number
JP2002135583A
JP2002135583A JP2000325242A JP2000325242A JP2002135583A JP 2002135583 A JP2002135583 A JP 2002135583A JP 2000325242 A JP2000325242 A JP 2000325242A JP 2000325242 A JP2000325242 A JP 2000325242A JP 2002135583 A JP2002135583 A JP 2002135583A
Authority
JP
Japan
Prior art keywords
error
image processing
quantization
error diffusion
diffusion coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000325242A
Other languages
Japanese (ja)
Inventor
Takeshi Makita
剛 蒔田
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 JP2000325242A priority Critical patent/JP2002135583A/en
Publication of JP2002135583A publication Critical patent/JP2002135583A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image processing apparatus, an image processing method and a storage medium that can vary an error spread coefficient depending on an output resolution, especially its error spread range so as to preferably generate an output dot arrangement thereby obtaining an image with high quality even when any output resolution is employed. SOLUTION: The image processing apparatus is provided with a spread coefficient revision section 18 that conducts control of revising an error spared coefficient in response to the output resolution, that is, decreasingly controls the error spread range when the output resolution is low or increasingly controls the error spread range when the output resolution is high.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置、画
像処理方法及び記憶媒体に関し、特に、入力画像の階調
数よりも少ない階調数の出力装置へ画像を出力するため
に階調数変換を行う画像処理装置、画像処理方法及び記
憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, an image processing method, and a storage medium, and more particularly, to a method for outputting an image to an output device having a smaller number of tones than an input image. The present invention relates to an image processing device that performs conversion, an image processing method, and a storage medium.

【0002】[0002]

【従来の技術】従来より、プリンタ、複写機、ファクシ
ミリ等の画像処理装置においては、階調再現性の高い疑
似中間調処理方式として、誤差拡散法が広く用いられて
いる。上記誤差拡散法は、1975年にFloyd及び
Steinbergにより、「An Adaptive
Algorithm for Spatial Gr
ay Scale」SID 75 Digestという
論文に開示されている方法であり、注目画素の多値画像
データを二値化し、該二値化レベルと二値化前の多値画
像データとの誤差に所定の重み付けをして、注目画素近
傍の画素のデータに加算するものである。
2. Description of the Related Art Conventionally, an error diffusion method has been widely used as a pseudo halftone processing method having high tone reproducibility in image processing apparatuses such as printers, copiers, and facsimile machines. The error diffusion method was described by Floyd and Steinberg in 1975 as “An Adaptive.
Algorithm for Spatial Gr
ay Scale "SID 75 Digest, which binarizes the multi-valued image data of the pixel of interest and sets a predetermined error in the error between the binarization level and the multi-valued image data before binarization. The weight is added to the data of the pixels near the target pixel.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来技術においては下記のような問題があった。即
ち、上記誤差拡散法の誤差拡散係数、特に誤差拡散範囲
は出力解像度が異なっても一定のため、例えば300D
PI(Dot Per Inch)の出力解像度で好ましく出力でき
たとしても、それ以外の解像度で同様に好ましく出力で
きるとは限らない。この主要因としては、出力解像度が
変わったにも関わらず、誤差拡散法の誤差拡散範囲が一
定であるため、出力紙上の誤差拡散範囲が異なったこと
が挙げられる。
However, the above-mentioned prior art has the following problems. That is, the error diffusion coefficient of the error diffusion method, especially the error diffusion range is constant even if the output resolution is different.
Even if the output can be preferably performed at the output resolution of PI (Dot Per Inch), it is not always possible to preferably output at other resolutions. The main factor is that the error diffusion range on the output paper is different because the error diffusion range of the error diffusion method is constant despite the change in output resolution.

【0004】このため、ある出力解像度で好ましく出力
されたドット配置が、出力解像度を変えた瞬間にドット
配置を乱し、著しい画質の低下を招いてしまうケースに
よく遭遇する。つまり、例えば600DPIの出力解像
度で300DPI相当の画質を得るためには、誤差拡散
法の誤差拡散範囲を300DPIの場合に比べて2倍に
しなければならない。言い換えれば、誤差拡散法の誤差
拡散範囲は出力解像度に比例して可変させなければなら
ず、上記ケースの場合、300DPIで5画素×2画素
の誤差拡散範囲は600DPIで10画素×4画素に設
定しなければならないという問題があった。
[0004] For this reason, it is often encountered that the dot arrangement that is preferably output at a certain output resolution disturbs the dot arrangement at the moment when the output resolution is changed, resulting in a significant reduction in image quality. That is, to obtain an image quality equivalent to 300 DPI at an output resolution of 600 DPI, for example, the error diffusion range of the error diffusion method must be doubled as compared with the case of 300 DPI. In other words, the error diffusion range of the error diffusion method must be varied in proportion to the output resolution. In the above case, the error diffusion range of 5 pixels × 2 pixels at 300 DPI is set to 10 pixels × 4 pixels at 600 DPI. There was a problem that had to be done.

【0005】本発明は、上述した点に鑑みなされたもの
であり、出力解像度に応じて誤差拡散係数、特にその誤
差拡散範囲を可変させることで、出力ドット配置を好ま
しく生成し、どのような出力解像度に対しても高品位な
画像を得ることを可能とした画像処理装置、画像処理方
法及び記憶媒体を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and preferably generates an output dot arrangement by changing an error diffusion coefficient, particularly an error diffusion range, according to an output resolution. It is an object of the present invention to provide an image processing device, an image processing method, and a storage medium that can obtain a high-quality image with respect to resolution.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明は、誤差拡散法に基づく画像量
子化を行う機能を有する画像処理装置であって、出力解
像度に応じて誤差の拡散係数を変更する拡散係数変更手
段を有することを特徴とする。
According to an aspect of the present invention, there is provided an image processing apparatus having a function of performing image quantization based on an error diffusion method. Characterized in that it has a diffusion coefficient changing means for changing the diffusion coefficient.

【0007】上記目的を達成するため、請求項2記載の
発明は、前記拡散係数変更手段は、出力解像度に応じて
誤差の拡散係数を切り替えることを特徴とする。
In order to achieve the above object, the invention according to claim 2 is characterized in that the diffusion coefficient changing means switches an error diffusion coefficient according to an output resolution.

【0008】上記目的を達成するため、請求項3記載の
発明は、前記拡散係数変更手段は、出力解像度が低い場
合は誤差の拡散範囲を小さくし、出力解像度が高い場合
は誤差の拡散範囲を大きくすることを特徴とする。
In order to achieve the above object, the invention according to claim 3 is characterized in that the diffusion coefficient changing means reduces the error diffusion range when the output resolution is low, and decreases the error diffusion range when the output resolution is high. It is characterized in that it is increased.

【0009】上記目的を達成するため、請求項4記載の
発明は、更に、量子化誤差を格納する格納手段と、入力
された画素データに前記量子化誤差を加算する加算手段
と、前記量子化誤差加算後の画素データと予め設定され
た量子化の閾値とを比較し出力画素値を決定する量子化
手段と、前記量子化誤差加算後の画素データと出力画素
値との差分に相当する量子化誤差を計算する演算手段
と、前記拡散係数変更手段による誤差の拡散係数変更に
基づき誤差の拡散処理を行う誤差拡散手段とを有するこ
とを特徴とする。
In order to achieve the above object, the invention according to claim 4 further includes a storage unit for storing a quantization error, an addition unit for adding the quantization error to input pixel data, and the quantization unit. A quantizing unit that compares the pixel data after the error addition with a preset quantization threshold to determine an output pixel value; and a quantizer corresponding to a difference between the pixel data after the quantization error addition and the output pixel value. And an error diffusion means for performing an error diffusion process based on the error diffusion coefficient change by the diffusion coefficient change means.

【0010】上記目的を達成するため、請求項5記載の
発明は、前記誤差拡散法に基づく画像量子化を行う機能
を有するプリンタ或いは複写機或いはファクシミリに適
用可能であることを特徴とする。
In order to achieve the above object, the invention according to claim 5 is characterized in that it can be applied to a printer, a copying machine, or a facsimile having a function of performing image quantization based on the error diffusion method.

【0011】上記目的を達成するため、請求項6記載の
発明は、誤差拡散法に基づく画像量子化を行う機能を有
する画像処理装置に適用される画像処理方法であって、
出力解像度に応じて誤差の拡散係数を変更する拡散係数
変更工程を有することを特徴とする。
In order to achieve the above object, an invention according to claim 6 is an image processing method applied to an image processing apparatus having a function of performing image quantization based on an error diffusion method,
The method further comprises a diffusion coefficient changing step of changing an error diffusion coefficient according to the output resolution.

【0012】上記目的を達成するため、請求項7記載の
発明は、前記拡散係数変更工程では、出力解像度に応じ
て誤差の拡散係数を切り替えることを特徴とする。
In order to achieve the above object, the invention according to claim 7 is characterized in that in the diffusion coefficient changing step, an error diffusion coefficient is switched according to an output resolution.

【0013】上記目的を達成するため、請求項8記載の
発明は、前記拡散係数変更工程では、出力解像度が低い
場合は誤差の拡散範囲を小さくし、出力解像度が高い場
合は誤差の拡散範囲を大きくすることを特徴とする。
In order to achieve the above object, the invention according to claim 8 is characterized in that in the diffusion coefficient changing step, the error diffusion range is reduced when the output resolution is low, and the error diffusion range is reduced when the output resolution is high. It is characterized in that it is increased.

【0014】上記目的を達成するため、請求項9記載の
発明は、更に、量子化誤差を格納する格納工程と、入力
された画素データに前記量子化誤差を加算する加算工程
と、前記量子化誤差加算後の画素データと予め設定され
た量子化の閾値とを比較し出力画素値を決定する量子化
工程と、前記量子化誤差加算後の画素データと出力画素
値との差分に相当する量子化誤差を計算する演算工程
と、前記拡散係数変更工程による誤差の拡散係数変更に
基づき誤差の拡散処理を行う誤差拡散工程とを有するこ
とを特徴とする。
In order to achieve the above object, the invention according to claim 9 further includes a storing step of storing a quantization error, an adding step of adding the quantization error to input pixel data, and A quantizing step of comparing the pixel data after the error addition with a preset quantization threshold to determine an output pixel value; and a quantization step corresponding to a difference between the pixel data after the quantization error addition and the output pixel value. And an error diffusion step of performing an error diffusion process based on the error diffusion coefficient change in the diffusion coefficient change step.

【0015】上記目的を達成するため、請求項10記載
の発明は、前記誤差拡散法に基づく画像量子化を行う機
能を有するプリンタ或いは複写機或いはファクシミリに
適用可能であることを特徴とする。
In order to achieve the above object, the invention according to claim 10 is characterized in that it can be applied to a printer, a copying machine or a facsimile having a function of performing image quantization based on the error diffusion method.

【0016】上記目的を達成するため、請求項11記載
の発明は、誤差拡散法に基づく画像量子化を行う機能を
有する画像処理装置に適用される画像処理方法を実行す
るプログラムを記憶したコンピュータにより読み出し可
能な記憶媒体であって、前記画像処理方法は、出力解像
度に応じて誤差の拡散係数を変更する拡散係数変更ステ
ップを有することを特徴とする。
According to another aspect of the present invention, there is provided a computer which stores a program for executing an image processing method applied to an image processing apparatus having a function of performing image quantization based on an error diffusion method. A readable storage medium, wherein the image processing method includes a diffusion coefficient changing step of changing an error diffusion coefficient according to an output resolution.

【0017】上記目的を達成するため、請求項12記載
の発明は、前記拡散係数変更ステップでは、出力解像度
に応じて誤差の拡散係数を切り替えることを特徴とす
る。
In order to achieve the above object, a twelfth aspect of the present invention is characterized in that in the step of changing the diffusion coefficient, the error diffusion coefficient is switched according to the output resolution.

【0018】上記目的を達成するため、請求項13記載
の発明は、前記拡散係数変更ステップでは、出力解像度
が低い場合は誤差の拡散範囲を小さくし、出力解像度が
高い場合は誤差の拡散範囲を大きくすることを特徴とす
る。
According to a thirteenth aspect of the present invention, in the diffusion coefficient changing step, the error diffusion range is reduced when the output resolution is low, and the error diffusion range is reduced when the output resolution is high. It is characterized in that it is increased.

【0019】上記目的を達成するため、請求項14記載
の発明は、更に、量子化誤差を格納する格納ステップ
と、入力された画素データに前記量子化誤差を加算する
加算ステップと、前記量子化誤差加算後の画素データと
予め設定された量子化の閾値とを比較し出力画素値を決
定する量子化ステップと、前記量子化誤差加算後の画素
データと出力画素値との差分に相当する量子化誤差を計
算する演算ステップと、前記拡散係数変更ステップによ
る誤差の拡散係数変更に基づき誤差の拡散処理を行う誤
差拡散ステップとを有することを特徴とする。
In order to achieve the above object, the invention according to claim 14 further includes a storing step of storing a quantization error, an adding step of adding the quantization error to input pixel data, and A quantization step of comparing the pixel data after error addition with a preset quantization threshold to determine an output pixel value; and a quantization step corresponding to a difference between the pixel data after the quantization error addition and the output pixel value. A calculation step of calculating a quantization error, and an error diffusion step of performing an error diffusion process based on the change of the error diffusion coefficient by the diffusion coefficient change step.

【0020】上記目的を達成するため、請求項15記載
の発明は、前記誤差拡散法に基づく画像量子化を行う機
能を有するプリンタ或いは複写機或いはファクシミリに
適用可能であることを特徴とする。
In order to achieve the above object, the invention according to claim 15 is characterized in that it can be applied to a printer, a copying machine or a facsimile having a function of performing image quantization based on the error diffusion method.

【0021】[0021]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0022】図1は本発明の実施の形態に係る画像処理
装置の要部の構成を示すブロック図である。本発明の実
施の形態に係る画像処理装置は、画素データ入力端子1
0、累積誤差加算部11(加算手段)、固定閾値設定端
子12、量子化部13(量子化手段)、画像データ出力
端子14、誤差演算部15(演算手段)、誤差拡散部1
6(誤差拡散手段)、累積誤差メモリ17(格納手
段)、拡散係数変更部18(拡散係数変更手段)を備え
ている。
FIG. 1 is a block diagram showing a configuration of a main part of an image processing apparatus according to an embodiment of the present invention. The image processing device according to the embodiment of the present invention has a pixel data input terminal 1
0, cumulative error adder 11 (adder), fixed threshold setting terminal 12, quantizer 13 (quantizer), image data output terminal 14, error calculator 15 (calculator), error diffusion unit 1.
6 (error diffusion means), a cumulative error memory 17 (storage means), and a diffusion coefficient changing unit 18 (diffusion coefficient changing means).

【0023】上記構成を詳述すると、画素データ入力端
子10は、画素データが入力される端子である。累積誤
差加算部11は、画素データ入力端子10から入力され
た画素データに、累積誤差メモリ17の画素位置に対応
する値を加算する。固定閾値設定端子12は、量子化の
閾値を設定するための端子である。量子化部13は、累
積誤差加算部11による誤差加算後の画素データと、固
定閾値設定端子12を介して設定された閾値とを比較
し、出力画素値を決定する。画像データ出力端子14
は、処理後の画像データが出力される端子である。
The pixel data input terminal 10 is a terminal to which pixel data is input. The cumulative error adder 11 adds a value corresponding to a pixel position of the cumulative error memory 17 to the pixel data input from the pixel data input terminal 10. The fixed threshold setting terminal 12 is a terminal for setting a quantization threshold. The quantization unit 13 compares the pixel data after error addition by the cumulative error addition unit 11 with a threshold value set via the fixed threshold value setting terminal 12 to determine an output pixel value. Image data output terminal 14
Is a terminal to which the processed image data is output.

【0024】誤差演算部15は、累積誤差加算部11に
よる誤差加算後の画素データと、出力画素値との差分
(量子化誤差)を計算する。誤差拡散部16は、拡散係
数変更部18による誤差の拡散係数変更に基づき、誤差
の拡散処理を行う。累積誤差メモリ17は、図3に示す
構成を有するものであり、累積量子化誤差を格納する。
拡散係数変更部(拡散係数切替部)18は、出力解像度
に応じて誤差の拡散係数(特にその誤差拡散範囲)を変
更するものであり、出力解像度が低い場合は誤差の拡散
範囲を小さくし、出力解像度が高い場合は誤差の拡散範
囲を大きくする制御を行う。
The error calculator 15 calculates a difference (quantization error) between the pixel data after the error addition by the cumulative error adder 11 and the output pixel value. The error diffusion unit 16 performs an error diffusion process based on the error diffusion coefficient change by the diffusion coefficient change unit 18. The cumulative error memory 17 has the configuration shown in FIG. 3, and stores the cumulative quantization error.
The diffusion coefficient changing unit (diffusion coefficient switching unit) 18 changes the error diffusion coefficient (especially, the error diffusion range) according to the output resolution. When the output resolution is low, the error diffusion range is reduced. If the output resolution is high, control is performed to increase the error diffusion range.

【0025】図6は本発明の画像処理方法を実行するプ
ログラム及び関連データが記憶媒体から装置に供給され
る概念例を示す説明図である。本発明の画像処理方法を
実行するプログラム及び関連データは、フロッピディス
クやCD−ROM等の記憶媒体61をコンピュータ等の
装置62に装備された記憶媒体ドライブ挿入口63に挿
入することで供給される。その後、本発明の画像処理方
法を実行するプログラム及び関連データを、記憶媒体6
1から一旦ハードディスクにインストールしハードディ
スクからRAMにロードするか、或いはハードディスク
にインストールせずに直接RAMにロードすることで、
当該プログラム及び関連データを実行することが可能と
なる。
FIG. 6 is an explanatory diagram showing a conceptual example in which a program for executing the image processing method of the present invention and related data are supplied from a storage medium to the apparatus. A program for executing the image processing method of the present invention and related data are supplied by inserting a storage medium 61 such as a floppy disk or a CD-ROM into a storage medium drive insertion slot 63 provided in a device 62 such as a computer. . Thereafter, the program for executing the image processing method of the present invention and related data are stored in the storage medium 6.
By installing from 1 to the hard disk and loading from the hard disk to RAM, or loading directly to RAM without installing to the hard disk,
The program and related data can be executed.

【0026】この場合、本発明の実施の形態に係る画像
処理装置において、本発明の画像処理方法を実行するプ
ログラムを実行する場合は、例えば上記図6を参照して
説明したような手順で画像処理装置に当該プログラム及
び関連データを供給するか、或いは画像処理装置に予め
当該プログラム及び関連データを格納しておくことで、
プログラム実行が可能となる。
In this case, in the image processing apparatus according to the embodiment of the present invention, when executing a program for executing the image processing method of the present invention, for example, the image is processed according to the procedure described with reference to FIG. By supplying the program and related data to the processing device, or storing the program and related data in the image processing device in advance,
Program execution becomes possible.

【0027】図5は本発明の画像処理方法を実行するプ
ログラム及び関連データを記憶した記憶媒体の記憶内容
の構成例を示す説明図である。記憶媒体は、例えばボリ
ューム情報51、ディレクトリ情報52、プログラム実
行ファイル53、プログラム関連データファイル54等
の記憶内容で構成される。本発明の画像処理方法を実行
するプログラムは、後述の図2のフローチャートに基づ
きプログラムコード化されたものである。尚、図2のフ
ローチャートに示す処理は、画像処理装置に装備されて
いるCPUの制御により実行される。
FIG. 5 is an explanatory diagram showing a configuration example of the storage contents of a storage medium storing a program for executing the image processing method of the present invention and related data. The storage medium includes storage contents such as volume information 51, directory information 52, a program execution file 53, and a program-related data file 54. A program for executing the image processing method of the present invention is a program code based on a flowchart of FIG. 2 described later. Note that the processing shown in the flowchart of FIG. 2 is executed under the control of a CPU provided in the image processing apparatus.

【0028】次に、上記の如く構成された本発明の実施
の形態に係る画像処理装置の動作を図1〜図4に基づき
詳細に説明する。
Next, the operation of the image processing apparatus according to the embodiment of the present invention configured as described above will be described in detail with reference to FIGS.

【0029】先ず、画像処理装置において、出力解像度
をプリンタドライバ等から入手し(ステップS21)、
拡散係数変更部18により、出力解像度に合わせ、予め
用意していた出力解像度毎の誤差拡散係数を設定する
(ステップS22)。図4に出力解像度毎の誤差拡散係
数の例を示す。図4(a)は出力解像度が300DPI
の誤差拡散係数を示す説明図、図4(b)は出力解像度
が600DPIの誤差拡散係数を示す説明図である。図
4から、600DPIの誤差拡散係数の誤差拡散範囲が
300DPIの場合の2倍になっていることが分かる。
但し、600DPIに使用される誤差拡散係数に0が多
いのは、300DPIの場合と比較して処理スピードの
低下を回避させようとしているためである。
First, in the image processing apparatus, the output resolution is obtained from a printer driver or the like (step S21).
The diffusion coefficient changing unit 18 sets an error diffusion coefficient for each output resolution prepared in advance according to the output resolution (step S22). FIG. 4 shows an example of the error diffusion coefficient for each output resolution. FIG. 4A shows an output resolution of 300 DPI.
FIG. 4B is an explanatory diagram showing an error diffusion coefficient having an output resolution of 600 DPI. From FIG. 4, it can be seen that the error diffusion range of the error diffusion coefficient of 600 DPI is twice that of the case of 300 DPI.
However, the reason why the error diffusion coefficient used for 600 DPI is often 0 is to avoid a reduction in processing speed as compared with the case of 300 DPI.

【0030】不図示の画像走査部により入力画像が順次
走査され、各画素データが画素データ入力端子10より
入力される(ステップS23)。画像の走査は、画像領
域の左上画素から開始し右方向に一画素毎進み、右端に
達したら一画素下の左端画素から順に右方向に進み、右
下画素まで行う。次に、累積誤差加算部11において、
画素データ入力端子10から入力された画素データに、
累積誤差メモリ17の画素位置に対応する値が加算され
る(ステップS24)。累積誤差メモリ17は、上記図
3に示したように、1個の記憶領域E0と、画像の横画
素Wと同数の記憶領域E(x)(x=1〜W)があり、
後述する方法で量子化誤差が格納されている。尚、累積
誤差メモリ17は、処理開始前に全て初期値0で初期化
されているものとする。
The input image is sequentially scanned by an image scanning unit (not shown), and each pixel data is input from the pixel data input terminal 10 (step S23). The scanning of the image starts from the upper left pixel of the image area and proceeds rightward one pixel at a time, and when it reaches the right end, it proceeds rightward sequentially from the leftmost pixel one pixel below, to the lower right pixel. Next, in the cumulative error adding unit 11,
The pixel data input from the pixel data input terminal 10 includes
A value corresponding to the pixel position of the accumulated error memory 17 is added (Step S24). As shown in FIG. 3, the accumulated error memory 17 has one storage area E0 and storage areas E (x) (x = 1 to W) equal in number to the horizontal pixels W of the image.
The quantization error is stored by a method described later. It is assumed that the accumulated error memory 17 has been all initialized to the initial value 0 before the processing is started.

【0031】累積誤差加算部11では、入力画素データ
に、横画素位置xに対応した累積誤差メモリ17の記憶
領域E(x)の値が加算される。即ち、入力画素データ
をI、誤差加算後の画素データをI’とすれば、 I’=I+E(x) となる。次に、量子化部13において、誤差加算後の画
素データI’と、固定閾値設定端子12を介して設定さ
れた閾値とを比較し、出力画素値を決定する(ステップ
S25)。
The cumulative error adder 11 adds the value of the storage area E (x) of the cumulative error memory 17 corresponding to the horizontal pixel position x to the input pixel data. That is, if the input pixel data is I and the pixel data after error addition is I ', then I' = I + E (x). Next, the quantization unit 13 compares the pixel data I ′ after the error addition with a threshold value set via the fixed threshold value setting terminal 12 to determine an output pixel value (step S25).

【0032】上記閾値は、通常、最大入力画素値と最小
入力画素値の中央値に設定される。即ち、入力画素値が
0から255の範囲の整数値とすれば、閾値Tは127
乃至128に設定される。出力画素値Oは次式により決
定される。
The threshold value is usually set to a median value between the maximum input pixel value and the minimum input pixel value. That is, if the input pixel value is an integer in the range of 0 to 255, the threshold T is 127
To 128. The output pixel value O is determined by the following equation.

【0033】O=0 (I’<T) O=255 (I’≧T) 次に、誤差演算部15において、誤差加算後の画素デー
タI’と出力画素値との差分、即ち量子化誤差Eを計算
する(ステップS26)。
O = 0 (I ′ <T) O = 255 (I ′ ≧ T) Next, the error calculator 15 calculates the difference between the pixel data I ′ after error addition and the output pixel value, that is, the quantization error. E is calculated (step S26).

【0034】E=I’−O 次に、誤差拡散部16において、拡散係数変更部18に
よる誤差の拡散係数変更に基づき、誤差の拡散処理が行
われる(ステップS27)。以上で、1画素分の処理が
完了する。
E = I'-O Next, the error diffusion unit 16 performs an error diffusion process based on the error diffusion coefficient change by the diffusion coefficient change unit 18 (step S27). Thus, the processing for one pixel is completed.

【0035】以上説明したように、本発明の実施の形態
に係る画像処理装置によれば、出力解像度に応じて誤差
の拡散係数を変更する制御、即ち、出力解像度が低い場
合は誤差の拡散範囲を小さくし、出力解像度が高い場合
は誤差の拡散範囲を大きくする制御を行う拡散係数変更
部18を備えているため、下記のような効果を奏する。
As described above, according to the image processing apparatus according to the embodiment of the present invention, the control for changing the error diffusion coefficient according to the output resolution, that is, when the output resolution is low, the error diffusion range Is provided, and the diffusion coefficient changing unit 18 that performs control to increase the error diffusion range when the output resolution is high is provided.

【0036】上記構成において、出力解像度に応じて誤
差拡散係数、特にその誤差拡散範囲を可変させるため、
出力ドット配置が好ましく生成され、この結果、どのよ
うな出力解像度に対しても高品位な画像が得られるとい
う効果を奏する。
In the above configuration, in order to vary the error diffusion coefficient, particularly the error diffusion range according to the output resolution,
The output dot arrangement is preferably generated, and as a result, there is an effect that a high-quality image can be obtained for any output resolution.

【0037】[他の実施の形態]上述した本発明の実施
の形態においては、画像処理装置の具体例については特
に言及しなかったが、本発明は、プリンタ、複写機、フ
ァクシミリなど各種画像処理装置に適用することが可能
である。
[Other Embodiments] In the above-described embodiment of the present invention, a specific example of the image processing apparatus has not been particularly described. However, the present invention relates to various image processing apparatuses such as a printer, a copying machine, and a facsimile. It is possible to apply to the device.

【0038】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器からなる装置に適用
してもよい。上述した実施形態の機能を実現するソフト
ウエアのプログラムコードを記憶した記憶媒体を、シス
テム或いは装置に供給し、そのシステム或いは装置のコ
ンピュータ(またはCPUやMPU)が記憶媒体等の媒
体に格納されたプログラムコードを読み出し実行するこ
とによっても、達成されることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. A storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus is stored in a medium such as a storage medium. It goes without saying that this can also be achieved by reading and executing the program code.

【0039】この場合、記憶媒体等の媒体から読み出さ
れたプログラムコード自体が上述した実施形態の機能を
実現することになり、そのプログラムコードを記憶した
記憶媒体等の媒体は本発明を構成することになる。プロ
グラムコードを供給するための記憶媒体等の媒体として
は、例えば、フロッピディスク、ハードディスク、光デ
ィスク、光磁気ディスク、CD−ROM、CD−R、磁
気テープ、不揮発性のメモリカード、ROM、或いはネ
ットワークを介したダウンロードなどを用いることがで
きる。
In this case, the program code itself read from a medium such as a storage medium realizes the functions of the above-described embodiment, and the medium such as a storage medium storing the program code constitutes the present invention. Will be. Examples of a medium such as a storage medium for supplying the program code include a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, and a network. For example, download via the Internet can be used.

【0040】また、コンピュータが読み出したプログラ
ムコードを実行することにより、上述した実施形態の機
能が実現されるだけでなく、そのプログラムコードの指
示に基づき、コンピュータ上で稼働しているOSなどが
実際の処理の一部または全部を行い、その処理によって
上述した実施形態の機能が実現される場合も含まれるこ
とは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS and the like running on the computer are actually executed based on the instructions of the program code. It goes without saying that a part or all of the above-described processing is performed, and the functions of the above-described embodiments are realized by the processing.

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

【0042】[0042]

【発明の効果】以上説明したように、請求項1〜5記載
の画像処理装置によれば、誤差拡散法に基づく画像量子
化を行う機能を有する画像処理装置において、出力解像
度に応じて誤差の拡散係数を変更する拡散係数変更手段
を備え、拡散係数変更手段は、出力解像度が低い場合は
誤差の拡散範囲を小さくし、出力解像度が高い場合は誤
差の拡散範囲を大きくする制御を行うため、即ち、出力
解像度に応じて誤差拡散係数、特にその誤差拡散範囲を
可変させるため、出力ドット配置が好ましく生成され、
この結果、どのような出力解像度に対しても高品位な画
像が得られるという効果を奏する。
As described above, according to the image processing apparatus according to the first to fifth aspects, in an image processing apparatus having a function of performing image quantization based on an error diffusion method, an error of an image is determined according to an output resolution. Diffusion coefficient changing means for changing the diffusion coefficient is provided.The diffusion coefficient changing means performs control to reduce the error diffusion range when the output resolution is low and to increase the error diffusion range when the output resolution is high. That is, in order to vary the error diffusion coefficient, particularly the error diffusion range according to the output resolution, an output dot arrangement is preferably generated,
As a result, there is an effect that a high-quality image can be obtained for any output resolution.

【0043】また、請求項6〜10記載の画像処理方法
によれば、画像処理方法を画像処理装置で実行すること
で、上記と同様に、出力ドット配置が好ましく生成さ
れ、この結果、どのような出力解像度に対しても高品位
な画像が得られるという効果を奏する。
According to the image processing method of the present invention, by executing the image processing method in the image processing apparatus, the output dot arrangement is preferably generated in the same manner as described above. There is an effect that a high-quality image can be obtained even at a high output resolution.

【0044】また、請求項11〜15記載の記憶媒体に
よれば、記憶媒体から画像処理方法を読み出して画像処
理装置で実行することで、上記と同様に、出力ドット配
置が好ましく生成され、この結果、どのような出力解像
度に対しても高品位な画像が得られるという効果を奏す
る。
According to the storage medium of the present invention, the image processing method is read from the storage medium and executed by the image processing apparatus, so that the output dot arrangement is preferably generated similarly to the above. As a result, there is an effect that a high-quality image can be obtained for any output resolution.

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

【図1】本発明の実施の形態に係る画像処理装置の要部
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a main part of an image processing apparatus according to an embodiment of the present invention.

【図2】本発明の実施の形態に係る画像処理装置の動作
を示すフローチャートである。
FIG. 2 is a flowchart illustrating an operation of the image processing apparatus according to the embodiment of the present invention.

【図3】本発明の実施の形態に係る画像処理装置の累積
誤差メモリの構成例を示す説明図である。
FIG. 3 is an explanatory diagram showing a configuration example of a cumulative error memory of the image processing device according to the embodiment of the present invention.

【図4】本発明の実施の形態に係る画像処理装置の各出
力解像度に対する誤差拡散係数の一例を示す説明図であ
り、(a)は出力解像度が300DPIの誤差拡散係数
を示す説明図、(b)は出力解像度が600DPIの誤
差拡散係数を示す説明図である。
FIG. 4 is an explanatory diagram showing an example of an error diffusion coefficient with respect to each output resolution of the image processing apparatus according to the embodiment of the present invention; FIG. 4 (a) is an explanatory diagram showing an error diffusion coefficient with an output resolution of 300 DPI; FIG. 4B is an explanatory diagram illustrating an error diffusion coefficient having an output resolution of 600 DPI.

【図5】本発明の画像処理方法を実行するプログラム及
び関連データを記憶した記憶媒体の記憶内容の構成例を
示す説明図である。
FIG. 5 is an explanatory diagram showing a configuration example of storage contents of a storage medium storing a program for executing the image processing method of the present invention and related data.

【図6】本発明の画像処理方法を実行するプログラム及
び関連データが記憶媒体から装置に供給される概念例を
示す説明図である。
FIG. 6 is an explanatory diagram showing a conceptual example in which a program for executing an image processing method of the present invention and related data are supplied from a storage medium to an apparatus.

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

10 画素データ入力端子 11 累積誤差加算部 12 固定閾値設定端子 13 量子化部 14 画像データ出力端子 15 誤差演算部 16 誤差拡散部 17 累積誤差メモリ 18 拡散係数変更部 DESCRIPTION OF SYMBOLS 10 Pixel data input terminal 11 Cumulative error addition part 12 Fixed threshold value setting terminal 13 Quantization part 14 Image data output terminal 15 Error calculation part 16 Error diffusion part 17 Cumulative error memory 18 Diffusion coefficient change part

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 誤差拡散法に基づく画像量子化を行う機
能を有する画像処理装置であって、 出力解像度に応じて誤差の拡散係数を変更する拡散係数
変更手段を有することを特徴とする画像処理装置。
An image processing apparatus having a function of performing image quantization based on an error diffusion method, comprising: a diffusion coefficient changing unit that changes a diffusion coefficient of an error according to an output resolution. apparatus.
【請求項2】 前記拡散係数変更手段は、出力解像度に
応じて誤差の拡散係数を切り替えることを特徴とする請
求項1記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein said diffusion coefficient changing unit switches an error diffusion coefficient according to an output resolution.
【請求項3】 前記拡散係数変更手段は、出力解像度が
低い場合は誤差の拡散範囲を小さくし、出力解像度が高
い場合は誤差の拡散範囲を大きくすることを特徴とする
請求項1又は2記載の画像処理装置。
3. The diffusion coefficient changing unit according to claim 1, wherein the error diffusion range is reduced when the output resolution is low, and the error diffusion range is widened when the output resolution is high. Image processing device.
【請求項4】 更に、量子化誤差を格納する格納手段
と、入力された画素データに前記量子化誤差を加算する
加算手段と、前記量子化誤差加算後の画素データと予め
設定された量子化の閾値とを比較し出力画素値を決定す
る量子化手段と、前記量子化誤差加算後の画素データと
出力画素値との差分に相当する量子化誤差を計算する演
算手段と、前記拡散係数変更手段による誤差の拡散係数
変更に基づき誤差の拡散処理を行う誤差拡散手段とを有
することを特徴とする請求項1乃至3の何れかに記載の
画像処理装置。
4. A storage means for storing a quantization error, an addition means for adding the quantization error to input pixel data, and a pixel data after the addition of the quantization error and a predetermined quantization. And a calculating means for calculating a quantization error corresponding to a difference between the pixel data after the addition of the quantization error and the output pixel value, and a calculating means for calculating the diffusion coefficient. 4. The image processing apparatus according to claim 1, further comprising an error diffusion unit configured to perform an error diffusion process based on a change in an error diffusion coefficient by the unit.
【請求項5】 前記誤差拡散法に基づく画像量子化を行
う機能を有するプリンタ或いは複写機或いはファクシミ
リに適用可能であることを特徴とする請求項1乃至4の
何れかに記載の画像処理装置。
5. The image processing apparatus according to claim 1, wherein the image processing apparatus is applicable to a printer, a copying machine, or a facsimile having a function of performing image quantization based on the error diffusion method.
【請求項6】 誤差拡散法に基づく画像量子化を行う機
能を有する画像処理装置に適用される画像処理方法であ
って、 出力解像度に応じて誤差の拡散係数を変更する拡散係数
変更工程を有することを特徴とする画像処理方法。
6. An image processing method applied to an image processing device having a function of performing image quantization based on an error diffusion method, comprising a diffusion coefficient changing step of changing an error diffusion coefficient according to an output resolution. An image processing method comprising:
【請求項7】 前記拡散係数変更工程では、出力解像度
に応じて誤差の拡散係数を切り替えることを特徴とする
請求項6記載の画像処理方法。
7. The image processing method according to claim 6, wherein in the diffusion coefficient changing step, an error diffusion coefficient is switched according to an output resolution.
【請求項8】 前記拡散係数変更工程では、出力解像度
が低い場合は誤差の拡散範囲を小さくし、出力解像度が
高い場合は誤差の拡散範囲を大きくすることを特徴とす
る請求項6又は7記載の画像処理方法。
8. The diffusion coefficient changing step, wherein the error diffusion range is reduced when the output resolution is low, and the error diffusion range is increased when the output resolution is high. Image processing method.
【請求項9】 更に、量子化誤差を格納する格納工程
と、入力された画素データに前記量子化誤差を加算する
加算工程と、前記量子化誤差加算後の画素データと予め
設定された量子化の閾値とを比較し出力画素値を決定す
る量子化工程と、前記量子化誤差加算後の画素データと
出力画素値との差分に相当する量子化誤差を計算する演
算工程と、前記拡散係数変更工程による誤差の拡散係数
変更に基づき誤差の拡散処理を行う誤差拡散工程とを有
することを特徴とする請求項6乃至8の何れかに記載の
画像処理方法。
9. A storage step of storing a quantization error, an addition step of adding the quantization error to input pixel data, and a step of adding the pixel data after the addition of the quantization error to a predetermined quantization. A quantization step of comparing an output pixel value with a threshold value of the pixel data, calculating a quantization error corresponding to a difference between the pixel data after the addition of the quantization error and the output pixel value, and changing the diffusion coefficient. 9. The image processing method according to claim 6, further comprising: an error diffusion step of performing an error diffusion process based on a change in an error diffusion coefficient in the step.
【請求項10】 前記誤差拡散法に基づく画像量子化を
行う機能を有するプリンタ或いは複写機或いはファクシ
ミリに適用可能であることを特徴とする請求項6乃至9
の何れかに記載の画像処理方法。
10. A printer, a copying machine, or a facsimile having a function of performing image quantization based on the error diffusion method.
The image processing method according to any one of the above.
【請求項11】 誤差拡散法に基づく画像量子化を行う
機能を有する画像処理装置に適用される画像処理方法を
実行するプログラムを記憶したコンピュータにより読み
出し可能な記憶媒体であって、前記画像処理方法は、出
力解像度に応じて誤差の拡散係数を変更する拡散係数変
更ステップを有することを特徴とする記憶媒体。
11. A computer-readable storage medium storing a program for executing an image processing method applied to an image processing apparatus having a function of performing image quantization based on an error diffusion method, wherein the image processing method includes the steps of: Comprises a diffusion coefficient changing step of changing a diffusion coefficient of an error according to an output resolution.
【請求項12】 前記拡散係数変更ステップでは、出力
解像度に応じて誤差の拡散係数を切り替えることを特徴
とする請求項11記載の記憶媒体。
12. The storage medium according to claim 11, wherein in the diffusion coefficient changing step, an error diffusion coefficient is switched according to an output resolution.
【請求項13】 前記拡散係数変更ステップでは、出力
解像度が低い場合は誤差の拡散範囲を小さくし、出力解
像度が高い場合は誤差の拡散範囲を大きくすることを特
徴とする請求項11又は12記載の記憶媒体。
13. The diffusion coefficient changing step according to claim 11, wherein the error diffusion range is reduced when the output resolution is low, and the error diffusion range is increased when the output resolution is high. Storage media.
【請求項14】 更に、量子化誤差を格納する格納ステ
ップと、入力された画素データに前記量子化誤差を加算
する加算ステップと、前記量子化誤差加算後の画素デー
タと予め設定された量子化の閾値とを比較し出力画素値
を決定する量子化ステップと、前記量子化誤差加算後の
画素データと出力画素値との差分に相当する量子化誤差
を計算する演算ステップと、前記拡散係数変更ステップ
による誤差の拡散係数変更に基づき誤差の拡散処理を行
う誤差拡散ステップとを有することを特徴とする請求項
11乃至13の何れかに記載の記憶媒体。
14. A storage step of storing a quantization error, an addition step of adding the quantization error to input pixel data, and a step of adding the pixel data after the addition of the quantization error to a predetermined quantization. A quantization step of comparing the threshold value with the threshold value to determine an output pixel value; an operation step of calculating a quantization error corresponding to a difference between the pixel data after the addition of the quantization error and the output pixel value; 14. The storage medium according to claim 11, further comprising: an error diffusion step of performing an error diffusion process based on a change in an error diffusion coefficient by the step.
【請求項15】 前記誤差拡散法に基づく画像量子化を
行う機能を有するプリンタ或いは複写機或いはファクシ
ミリに適用可能であることを特徴とする請求項11乃至
14の何れかに記載の記憶媒体。
15. The storage medium according to claim 11, wherein the storage medium is applicable to a printer, a copying machine, or a facsimile having a function of performing image quantization based on the error diffusion method.
JP2000325242A 2000-10-25 2000-10-25 Image processing apparatus, image processing method and storage medium Pending JP2002135583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000325242A JP2002135583A (en) 2000-10-25 2000-10-25 Image processing apparatus, image processing method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000325242A JP2002135583A (en) 2000-10-25 2000-10-25 Image processing apparatus, image processing method and storage medium

Publications (1)

Publication Number Publication Date
JP2002135583A true JP2002135583A (en) 2002-05-10

Family

ID=18802636

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000325242A Pending JP2002135583A (en) 2000-10-25 2000-10-25 Image processing apparatus, image processing method and storage medium

Country Status (1)

Country Link
JP (1) JP2002135583A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015050245A1 (en) 2013-10-04 2015-04-09 富士フイルム株式会社 Image processing device, printing apparatus, image processing method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015050245A1 (en) 2013-10-04 2015-04-09 富士フイルム株式会社 Image processing device, printing apparatus, image processing method, and program
US9571695B2 (en) 2013-10-04 2017-02-14 Fujifilm Corporation Image processing device adapting halftone process to plural printing modes with different resolution and dot arrangement
US9894245B2 (en) 2013-10-04 2018-02-13 Fujifilm Corporation Image processing device including image size adjustment unit

Similar Documents

Publication Publication Date Title
US7206002B2 (en) Image processing apparatus and method that avoid generation of moire
EP1298916B1 (en) Rank-order error diffusion image processing
US7961962B2 (en) Method, apparatus and computer program for halftoning digital images
JP4236804B2 (en) Image processing method, apparatus and storage medium
US8379270B2 (en) Apparatus and method for controlling printing
JP2003174555A (en) Image processing apparatus and method and recording medium
JP4783566B2 (en) System and method for processing color image data
US6333793B1 (en) Image quality in error diffusion scheme
EP0715450A2 (en) A system and apparatus for tonal reproduction adjustment in an error diffusion process
US6717696B1 (en) Systems and methods for moiré-reduced halftoning
JP2002135583A (en) Image processing apparatus, image processing method and storage medium
EP0786741B1 (en) Method and apparatus for binary coding of image data
JP2005182824A (en) Method for processing image data
JPH0738767A (en) Image binarizing processor
JPH1127528A (en) Pseudo-medium gradation processing method, device and record medium therefor
JP2003179749A (en) Data converting method
JP2005039483A (en) Apparatus and method for image processing, and program for making computer execute the method
JP2002051212A (en) Device and method for processing image
JP2002094788A (en) Image processing unit and its processing method
JP4510696B2 (en) Image processing apparatus and image processing method
JP2003220727A (en) Image processing apparatus, image processing method, computer readable storage medium, and program
JP2006254408A (en) Image forming apparatus and image forming method
US7612916B2 (en) Image processing device, image processing method, and computer program
JPH11155064A (en) Picture processing method and device thereof
JP2000078408A (en) Device and method for processing image and storage medium

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060330

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20070626