JP2011015241A - Method and apparatus for processing image, program, recording medium and image forming apparatus - Google Patents

Method and apparatus for processing image, program, recording medium and image forming apparatus Download PDF

Info

Publication number
JP2011015241A
JP2011015241A JP2009158269A JP2009158269A JP2011015241A JP 2011015241 A JP2011015241 A JP 2011015241A JP 2009158269 A JP2009158269 A JP 2009158269A JP 2009158269 A JP2009158269 A JP 2009158269A JP 2011015241 A JP2011015241 A JP 2011015241A
Authority
JP
Japan
Prior art keywords
image
processing
value
halftone
input
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.)
Granted
Application number
JP2009158269A
Other languages
Japanese (ja)
Other versions
JP5332966B2 (en
Inventor
Masanori Hirano
政徳 平野
Toshihito Kamei
稔人 亀井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2009158269A priority Critical patent/JP5332966B2/en
Publication of JP2011015241A publication Critical patent/JP2011015241A/en
Application granted granted Critical
Publication of JP5332966B2 publication Critical patent/JP5332966B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To reduce the degradation in image quality in composite type halftone processing for switching error diffusion processing and dither processing corresponding to a gradation part.SOLUTION: Whether an original image (input image) is a dot original or a continuous tone original is determined. When it is the dot original, the threshold matrix set of a first size is selected from the number of dots and an output resolution. When it is the continuous tone original, the threshold matrix set of a second size is selected from the output resolution. Whether or not a gradation is a dither processing part is discriminated. When it is the dither processing part, a dither processing threshold in the selected matrix set is used to perform the dither processing. When it is an error diffusion processing part, an error diffusion processing threshold in the selected matrix set is used to perform the error diffusion processing.

Description

本発明は画像処理方法、画像処理装置、プログラム、記録媒体、画像形成装置に関する。   The present invention relates to an image processing method, an image processing apparatus, a program, a recording medium, and an image forming apparatus.

プリンタ、ファクシミリ、複写装置、これらの複合機等の画像形成装置として、例えば、記録液(液体)の液滴を吐出する液体吐出ヘッド(液滴吐出ヘッド)で構成した記録ヘッドを含む液体吐出装置を用いて、媒体(以下「用紙」ともいうが材質を限定するものではなく、また、被記録媒体、記録媒体、転写材、記録紙なども同義で使用する。)を搬送しながら、液体としての記録液(以下、インクという。)を用紙に付着させて画像形成(記録、印刷、印写、印字も同義語で用いる。)を行なうものがある。また、画像形成装置としては電子写真プロセスを用いて画像形成を行うものもある。   As an image forming apparatus such as a printer, a facsimile machine, a copying apparatus, and a multifunction machine of these, for example, a liquid ejection apparatus including a recording head composed of a liquid ejection head (droplet ejection head) that ejects liquid droplets of a recording liquid (liquid) As a liquid while transporting a medium (hereinafter also referred to as “paper”, but the material is not limited, and a recording medium, a recording medium, a transfer material, recording paper, etc. are also used synonymously). The recording liquid (hereinafter referred to as ink) is attached to a sheet to form an image (recording, printing, printing, and printing are also used synonymously). Some image forming apparatuses perform image formation using an electrophotographic process.

なお、液体吐出方式の画像形成装置は、紙、糸、繊維、布帛、皮革、金属、プラスチック、ガラス、木材、セラミックス等の媒体に液体を吐出して画像形成を行う装置を意味し、また、「画像形成」とは、文字や図形等の意味を持つ画像を媒体に対して付与することだけでなく、パターン等の意味を持たない画像を媒体に付与することをも意味し、捺染装置や金属配線を形成する装置なども含みものである。また、液体とは画像形成を行うことができる液体であれば特に限定されるものではない。   The liquid discharge type image forming apparatus means an apparatus for forming an image by discharging liquid onto a medium such as paper, thread, fiber, fabric, leather, metal, plastic, glass, wood, ceramics, etc. “Image formation” means not only giving an image having a meaning such as a character or a figure to a medium, but also giving an image having no meaning such as a pattern to the medium. It also includes a device for forming metal wiring. The liquid is not particularly limited as long as it is a liquid that can form an image.

このような画像形成装置においては、閾値を用いて多階調画像を入力データよりも少ない多値数(3値以上)の出力データに変換する中間調処理として、ディザ処理や誤差拡散処理が用いられている。   In such an image forming apparatus, dither processing or error diffusion processing is used as halftone processing for converting a multi-tone image into output data having a multi-value number (three or more values) smaller than input data using a threshold value. It has been.

この場合、原稿画像を読取る画像読取装置を備えたものにおいて、コピー処理を行う場合、入力される画像データは、全てイメージデータとして取り込まれるため、高品位な出画像を得るために、一度、イメージデータを像域分離し、入力原稿の各要素(文字なのか、連続調なのか、網点なのか)に応じた補正処理を施すようにしている(特許文献1ないし3)。   In this case, when a copy process is performed in an apparatus equipped with an image reading device that reads an original image, all input image data is captured as image data. Therefore, in order to obtain a high-quality output image, the image is once processed. The image area is separated and correction processing is performed according to each element (whether it is a character, continuous tone, or halftone dot) of the input document (Patent Documents 1 to 3).

しかしながら、スタンドアロンで使用されることが前提であるコピー機(複写装置)では、画像処理を複写装置に搭載されたコントローラで行わなければならないため、誤差拡散処理の重さは無視できない課題であることから、これを解決するために、粒状性が余り問題とならないシャドー部において、分散型のディザ処理へと切り換える方法が知られている(特許文献4)。   However, in a copier (copying apparatus) that is supposed to be used stand-alone, image processing must be performed by a controller installed in the copying apparatus, and thus the weight of error diffusion processing is a problem that cannot be ignored. In order to solve this problem, there is known a method of switching to distributed dither processing in a shadow portion where the granularity is not a problem (Patent Document 4).

特許第3164400号公報Japanese Patent No. 3164400 特開平06−176144号公報Japanese Patent Laid-Open No. 06-176144 特開2006−157331号公報JP 2006-157331 A 特開2008−162197号公報JP 2008-162197 A

しかしながら、上述したように誤差拡散処理と分散ディザを組み合わせた複合型中間調処理を行った場合、処理原稿画像(網点あるいは連続調)によっては、原稿の網点と中間調処理が干渉してモアレが発生し、コピー画像の粒状感が悪化してしまうという課題が生じることが確認された。   However, as described above, when composite halftone processing combining error diffusion processing and dispersion dither is performed, depending on the processed document image (halftone or continuous tone), the halftone processing of the document interferes with halftone processing. It has been confirmed that moiré occurs and the problem that the graininess of the copy image deteriorates occurs.

本発明は上記の課題に鑑みてなされたものであり、中間調処理を切替えることによる演算負荷を低減しつつ、複合型中間調処理におけるモアレ、ぼそつきなどの画像品質の劣化を低減することを目的とする。   The present invention has been made in view of the above problems, and reduces image quality degradation such as moire and blurring in composite halftone processing while reducing the computation load caused by switching halftone processing. With the goal.

上記の課題を解決するため、本発明に係る画像処理方法は、
閾値を用いて多階調画像を入力データよりも少ない3値以上の多値数の出力データに変換する中間調処理方法において、
前記多値数のうち最小の出力値のみで表現されるハイライト部及び前記多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、
前記最小の出力値よりも一段階以上大きい出力値であって、かつ前記最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、
入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える
構成とした。
In order to solve the above problems, an image processing method according to the present invention includes:
In a halftone processing method for converting a multi-tone image into multi-valued output data of three or more values smaller than input data using a threshold value,
For the highlight portion expressed by only the minimum output value of the multi-value number and the shadow portion expressed only by the maximum output value of the multi-value number, a pair comparison of the input value and the threshold matrix is performed. Apply dithering to quantize,
A quantization error around the pixel of interest is added to the middle portion that is expressed by an output value that is one or more steps larger than the minimum output value and one or more steps smaller than the maximum output value. Applying an error diffusion process that performs quantization,
The size of the dispersion threshold matrix used for error diffusion processing and dither processing is switched according to the halftone dot pitch of the input image or the presence or absence of halftone dots.

ここで、入力画像に対して入力画像が網点画像か否かを判定する画像判定処理を行い、
前記判定処理の結果、前記入力画像が網点画像であるときには、次の第1のサイズの分散型閾値マトリクスを、前記入力画像が網点画像でないときには、次の第2のサイズの分散型閾値マトリクスを、誤差拡散処理及びディザ処理閾値として各々使用し、
前記第1のサイズ=(網点ピッチ/出力解像度ピッチ)に最も近い整数、
前記第2のサイズ=(1mm/出力解像度ピッチ)に最も近い整数、
である構成とできる。
Here, an image determination process for determining whether or not the input image is a halftone image is performed on the input image,
If the input image is a halftone dot image as a result of the determination process, the next first-size distributed threshold matrix is displayed. If the input image is not a halftone image, the second second size distributed threshold matrix is displayed. Using the matrix as the error diffusion and dither threshold respectively
The first size = an integer closest to (halftone pitch / output resolution pitch),
The second size = an integer closest to (1 mm / output resolution pitch),
It can be set as this.

また、前記画像判定処理は、外部からの入力又は入力画像の周波数特性に基づいて判定する構成とできる。   The image determination process may be determined based on an external input or a frequency characteristic of the input image.

また、前記誤差拡散処理における量子化判定に使用する閾値マトリクスがg×h(g、hともに2以上の整数)のサイズを有し、当該閾値マトリクスのサイズ及び閾値配置順とディザ処理における閾値マトリクスのサイズ及び閾値配置順とが共通化されている構成とできる。   The threshold matrix used for quantization determination in the error diffusion processing has a size of g × h (both g and h are integers of 2 or more), the threshold matrix size and threshold arrangement order, and the threshold matrix in dither processing. The size and the threshold arrangement order can be made common.

また、
入力値が0又は誤差拡散処理を行う階調範囲以外の場合には、ディザ処理の結果にかかわらず、着目画素の量子化誤差値を0とする構成とできる。
Also,
When the input value is 0 or outside the gradation range where error diffusion processing is performed, the quantization error value of the pixel of interest can be set to 0 regardless of the result of dither processing.

本発明に係る画像処理装置は、
閾値を用いて多階調画像を入力データよりも少ない3値以上の多値数の出力データに変換する中間調処理を行う画像処理装置において、
前記多値数のうち最小の出力値のみで表現されるハイライト部及び前記多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、
前記最小の出力値よりも一段階以上大きい出力値であって、かつ前記最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、
入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える手段を備えている
構成とした。
An image processing apparatus according to the present invention includes:
In an image processing apparatus that performs halftone processing for converting a multi-tone image into multi-valued output data of three or more values smaller than input data using a threshold value,
For the highlight portion expressed by only the minimum output value of the multi-value number and the shadow portion expressed only by the maximum output value of the multi-value number, a pair comparison of the input value and the threshold matrix is performed. Apply dithering to quantize,
A quantization error around the pixel of interest is added to the middle portion that is expressed by an output value that is one or more steps larger than the minimum output value and one or more steps smaller than the maximum output value. Applying an error diffusion process that performs quantization,
A configuration is provided that includes means for switching the size of a dispersion threshold matrix used for error diffusion processing and dither processing according to the halftone dot pitch of the input image or the presence or absence of halftone dots.

本発明に係るプログラムは、
閾値を用いて多階調画像を入力データよりも少ない3値以上の多値数の出力データに変換する中間調処理をコンピュータに行わせるプログラムにおいて、
前記多値数のうち最小の出力値のみで表現されるハイライト部及び前記多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、
前記最小の出力値よりも一段階以上大きい出力値であって、かつ前記最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、
入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える処理を前記コンピュータに行わせる
構成とした。
The program according to the present invention is:
In a program for causing a computer to perform halftone processing for converting a multi-tone image into multi-valued output data of three or more values smaller than input data using a threshold value,
For the highlight portion expressed by only the minimum output value of the multi-value number and the shadow portion expressed only by the maximum output value of the multi-value number, a pair comparison of the input value and the threshold matrix is performed. Apply dithering to quantize,
A quantization error around the pixel of interest is added to the middle portion that is expressed by an output value that is one or more steps larger than the minimum output value and one or more steps smaller than the maximum output value. Applying an error diffusion process that performs quantization,
The computer is configured to perform processing for switching the size of the dispersion threshold value matrix used for error diffusion processing and dither processing according to the halftone dot pitch of the input image or the presence or absence of halftone dots.

本発明に係る記録媒体は、本発明に係るプログラムを記録したものである。   The recording medium according to the present invention records the program according to the present invention.

本発明に係る画像形成装置は、
閾値を用いて多階調画像を入力データよりも少ない3値以上の多値数の出力データに変換する中間調処理を行って画像を形成する画像形成装置において、
前記多値数のうち最小の出力値のみで表現されるハイライト部及び前記多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、
前記最小の出力値よりも一段階以上大きい出力値であって、かつ前記最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、
入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える手段を備えている
構成とした。
An image forming apparatus according to the present invention includes:
In an image forming apparatus that forms an image by performing halftone processing that converts a multi-tone image into multi-valued output data that is three or more values smaller than input data using a threshold value,
For the highlight portion expressed by only the minimum output value of the multi-value number and the shadow portion expressed only by the maximum output value of the multi-value number, a pair comparison of the input value and the threshold matrix is performed. Apply dithering to quantize,
A quantization error around the pixel of interest is added to the middle portion that is expressed by an output value that is one or more steps larger than the minimum output value and one or more steps smaller than the maximum output value. Applying an error diffusion process that performs quantization,
A configuration is provided that includes means for switching the size of a dispersion threshold matrix used for error diffusion processing and dither processing according to the halftone dot pitch of the input image or the presence or absence of halftone dots.

本発明に係る画像処理方法、画像処理装置、プログラム、記憶媒体、画像形成装置によれば、多値数のうち最小の出力値のみで表現されるハイライト部及び多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、最小の出力値よりも一段階以上大きい出力値であって、かつ最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える構成としたので、中間調処理を切替えることによる演算負荷を低減しつつ、複合型中間調処理における画像品質の劣化を低減することができる。   According to the image processing method, the image processing apparatus, the program, the storage medium, and the image forming apparatus according to the present invention, the highlight portion expressed only by the minimum output value among the multi-value numbers and the maximum output among the multi-value numbers. For the shadow part expressed only by the value, a dithering process that performs quantization by pairwise comparison of the input value and the threshold matrix is applied, and the output value is one or more steps larger than the minimum output value, and the maximum For the middle part expressed by an output value that is smaller by one or more steps than the output value of the input pixel, an error diffusion process is performed in which quantization is performed by adding a quantization error around the pixel of interest, and the halftone dot pitch or halftone Since the configuration is such that the size of the dispersion threshold matrix used for error diffusion processing and dither processing is switched according to the presence or absence of points, the calculation load by switching halftone processing is reduced, and combined halftone processing is performed. It is possible to reduce the deterioration of the kick image quality.

本発明に係る画像処理方法を行う本発明に係る画像処理装置及びプログラムを含む本発明に係る画像形成装置の一例を示す外観斜視説明図である。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is an external perspective view illustrating an example of an image forming apparatus according to the present invention including an image processing apparatus according to the present invention and a program for performing an image processing method according to the present invention. 同装置の機構部の側面説明図である。It is side surface explanatory drawing of the mechanism part of the apparatus. 同じく平面説明図である。It is a plane explanatory drawing similarly. 同装置の制御部の概要を示すブロック図である。It is a block diagram which shows the outline | summary of the control part of the apparatus. 一般的なコピーモードにおける画像処理の流れの説明に供する説明図である。It is explanatory drawing with which it uses for description of the flow of the image processing in a general copy mode. 一般的なディザ処理の説明に供する説明図である。It is explanatory drawing with which it uses for description of a general dither process. 網点画像とディザマトリクスの基調が一致した場合のモアレの発生の説明に供する説明図である。It is explanatory drawing with which it uses for description of generation | occurrence | production of a moire when the basics of a halftone image and a dither matrix correspond. 一般的な誤差拡散処理の説明に供する説明図である。It is explanatory drawing with which it uses for description of a general error diffusion process. ミドル階調部の出力ドットパターンの一例を示す説明図である。It is explanatory drawing which shows an example of the output dot pattern of a middle gradation part. 多値ディザの説明に供する説明図である。It is explanatory drawing with which it uses for description of multi-value dither. ハイライト部における入力画像と誤差拡散処理後画像、ディザ処理後画像の説明に供する説明図である。It is explanatory drawing with which it uses for description of the input image in a highlight part, the image after an error diffusion process, and the image after a dither process. 本発明における階調区間と中間調処理の切替えの説明に供する説明図である。It is explanatory drawing with which it uses for description of the switching of the gradation area and halftone process in this invention. 誤差拡散処理における閾値マトリクスのパターン傾向と画像劣化の説明に供する説明図である。It is explanatory drawing with which it uses for description of the pattern tendency of a threshold value matrix and image degradation in an error diffusion process. 網点画像の拡大説明図である。It is an enlarged explanatory view of a halftone image. 階調表現における線数と水平画素ピッチの説明に供する説明図である。It is explanatory drawing with which it uses for description of the number of lines in a gradation expression, and a horizontal pixel pitch. 閾値マトリクスによる分散性が高められている場合と不足している場合の画像の説明に供する説明図である。It is explanatory drawing with which it uses for description of the image when the dispersibility by a threshold value matrix is improved, and when it is insufficient. 本発明に係る中間調処理の全体的な流れの説明に供するフロー図である。It is a flowchart with which it uses for description of the whole flow of the halftone process which concerns on this invention.

以下、本発明の実施の形態について添付図面を参照して説明する。本発明に係る画像処理方法を行う本発明に係る画像処理装置及びプログラムを含む本発明に係る画像形成装置の一例について図1ないし図3を参照して説明する。なお、図1は同画像形成装置の外観斜視説明図、図2は同装置の機構部の側面説明図、図3は同じく平面説明図である。   Embodiments of the present invention will be described below with reference to the accompanying drawings. An example of an image processing apparatus according to the present invention for performing an image processing method according to the present invention and an image forming apparatus according to the present invention including a program will be described with reference to FIGS. 1 is an external perspective view of the image forming apparatus, FIG. 2 is a side view of the mechanism of the apparatus, and FIG. 3 is a plan view of the same.

この画像形成装置は、図1に示すように、画像形成を行う装置本体1の上部に画像を読取る画像読取り手段(スキャナ手段)2を備えている。装置本体1には、機構部に給紙する用紙をストックする給紙カセット3が着脱自在に装着され、給紙カセット3の上方には画像が形成されて排出される用紙をストックする排紙トレイ4が装着されている。また、装置本体1の前面側にはインクカートリッジを装着するカートリッジ装着部5を有し、更に各種操作信号の入力や表示情報を表示する操作/表示部(操作パネル)6が配置されている。   As shown in FIG. 1, the image forming apparatus includes an image reading unit (scanner unit) 2 that reads an image on an upper part of an apparatus main body 1 that performs image formation. The apparatus main body 1 is detachably mounted with a paper feed cassette 3 for stocking paper to be fed to the mechanism unit, and a paper discharge tray for stocking paper to be discharged after an image is formed above the paper feed cassette 3. 4 is installed. Further, on the front side of the apparatus main body 1, there is a cartridge mounting portion 5 for mounting an ink cartridge, and an operation / display portion (operation panel) 6 for inputting various operation signals and displaying display information is arranged.

そして、装置本体1の内部には、図2及び図3に示すように、装置本体1の左右の側板21A、21Bに横架したガイド部材である主従のガイドロッド31、32でキャリッジ33を主走査方向に摺動自在に保持し、図示しない主走査モータによってタイミングベルトを介して矢示方向(キャリッジ主走査方向)に移動走査する。   As shown in FIGS. 2 and 3, the main body 1 has a carriage 33 with main and slave guide rods 31 and 32 which are guide members horizontally mounted on the left and right side plates 21 </ b> A and 21 </ b> B of the main body 1. It is slidably held in the scanning direction, and is moved and scanned in the direction indicated by the arrow (carriage main scanning direction) via a timing belt by a main scanning motor (not shown).

このキャリッジ33には、イエロー(Y)、シアン(C)、マゼンタ(M)、ブラック(K)の各色のインク滴を吐出するための液体吐出ヘッドからなる記録ヘッド34a、34b(区別しないときは「記録ヘッド34」という。)を複数のノズルからなるノズル列を主走査方向と直交する副走査方向に配列し、インク滴吐出方向を下方に向けて装着している。   The carriage 33 is provided with recording heads 34a and 34b composed of liquid ejection heads for ejecting ink droplets of yellow (Y), cyan (C), magenta (M), and black (K). The “recording head 34” is arranged in a sub-scanning direction orthogonal to the main scanning direction, and the ink droplet ejection direction is directed downward.

記録ヘッド34は、それぞれ2つのノズル列を有し、記録ヘッド34aの一方のノズル列はブラック(K)の液滴を、他方のノズル列はシアン(C)の液滴を、記録ヘッド34bの一方のノズル列はマゼンタ(M)の液滴を、他方のノズル列はイエロー(Y)の液滴を、それぞれ吐出する。なお、記録ヘッド34としては、1つのノズル面に複数のノズルを並べた各色のノズル列を備えるものなどを用いることもできる。   Each of the recording heads 34 has two nozzle rows. One nozzle row of the recording head 34a has black (K) droplets, the other nozzle row has cyan (C) droplets, and the recording head 34b has one nozzle row. One nozzle row ejects magenta (M) droplets, and the other nozzle row ejects yellow (Y) droplets. As the recording head 34, a recording head having a nozzle row of each color in which a plurality of nozzles are arranged on one nozzle surface can be used.

また、キャリッジ33には、記録ヘッド34のノズル列に対応して各色のインクを供給するための第2インク供給部としてのサブタンクであるサブタンク35a、35b(区別しないときは「サブタンク35」という。)を搭載している。このサブタンク35には、カートリッジ装填部4に着脱自在に装着される各色のインクカートリッジ(メインタンク)10y、10m、10c、10kから、供給ポンプユニット24によって各色の供給チューブ36を介して、各色の記録液が補充供給される。   Further, the sub tanks 35a and 35b, which are sub tanks as the second ink supply unit for supplying ink of each color corresponding to the nozzle row of the recording head 34, are referred to as the “sub tank 35” when they are not distinguished. ) Is installed. In the sub tank 35, ink cartridges (main tanks) 10y, 10m, 10c, and 10k of various colors that are detachably attached to the cartridge loading unit 4 are supplied from the ink supply tubes 36 of the respective colors by the supply pump unit 24. The recording liquid is replenished and supplied.

一方、給紙トレイ2の用紙積載部(圧板)41上に積載した用紙42を給紙するための給紙部として、用紙積載部41から用紙42を1枚ずつ分離給送する半月コロ(給紙コロ)43及び給紙コロ43に対向し、摩擦係数の大きな材質からなる分離パッド44を備え、この分離パッド44は給紙コロ43側に付勢されている。   On the other hand, as a paper feeding unit for feeding the papers 42 stacked on the paper stacking unit (pressure plate) 41 of the paper feeding tray 2, a half-moon roller (feeding) that separates and feeds the papers 42 one by one from the paper stacking unit 41. A separation pad 44 made of a material having a large friction coefficient is provided facing the paper roller 43) and the paper feed roller 43, and the separation pad 44 is urged toward the paper feed roller 43 side.

そして、この給紙部から給紙された用紙42を記録ヘッド34の下方側に送り込むために、用紙42を案内するガイド部材45と、カウンタローラ46と、搬送ガイド部材47と、先端加圧コロ49を有する押さえ部材48とを備えるとともに、給送された用紙42を静電吸着して記録ヘッド34に対向する位置で搬送する搬送ベルト51を備えている。   In order to feed the paper 42 fed from the paper feeding unit to the lower side of the recording head 34, a guide member 45 for guiding the paper 42, a counter roller 46, a transport guide member 47, and a tip pressure roller. And a conveying belt 51 that electrostatically attracts the fed paper 42 and conveys it at a position facing the recording head 34.

この搬送ベルト51は、無端状ベルトであり、搬送ローラ52とテンションローラ53との間に掛け渡されて、ベルト搬送方向(副走査方向)に周回するように構成している。また、この搬送ベルト51の表面を帯電させるための帯電手段である帯電ローラ56を備えている。この帯電ローラ56は、搬送ベルト51の表層に接触し、搬送ベルト51の回動に従動して回転するように配置されている。この搬送ベルト51は、図示しない副走査モータによってタイミングを介して搬送ローラ52が回転駆動されることによってベルト搬送方向に周回移動する。   The transport belt 51 is an endless belt, and is configured to wrap around the transport roller 52 and the tension roller 53 and circulate in the belt transport direction (sub-scanning direction). Further, a charging roller 56 that is a charging unit for charging the surface of the transport belt 51 is provided. The charging roller 56 is disposed so as to come into contact with the surface layer of the transport belt 51 and to rotate following the rotation of the transport belt 51. The transport belt 51 rotates in the belt transport direction when the transport roller 52 is rotationally driven through timing by a sub-scanning motor (not shown).

さらに、記録ヘッド34で記録された用紙42を排紙するための排紙部として、搬送ベルト51から用紙42を分離するための分離爪61と、排紙ローラ62及び排紙コロである拍車63とを備え、排紙ローラ62の下方に排紙トレイ3を備えている。   Further, as a paper discharge unit for discharging the paper 42 recorded by the recording head 34, a separation claw 61 for separating the paper 42 from the conveying belt 51, a paper discharge roller 62, and a spur 63 that is a paper discharge roller. And a paper discharge tray 3 below the paper discharge roller 62.

また、装置本体1の背面部には両面ユニット71が着脱自在に装着されている。この両面ユニット71は搬送ベルト51の逆方向回転で戻される用紙42を取り込んで反転させて再度カウンタローラ46と搬送ベルト51との間に給紙する。   A duplex unit 71 is detachably mounted on the back surface of the apparatus body 1. The duplex unit 71 takes in the paper 42 returned by the reverse rotation of the conveyance belt 51, reverses it, and feeds it again between the counter roller 46 and the conveyance belt 51.

さらに、キャリッジ33の走査方向一方側の非印字領域には、記録ヘッド34のノズルの状態を維持し、回復するための維持回復機構81を配置している。この維持回復機構81には、記録ヘッド34の各ノズル面をキャピングするための各キャップ部材(以下「キャップ」という。)82a、82b(区別しないときは「キャップ82」という。)と、ノズル面をワイピングするためのワイパ部材(ワイパブレード)83と、増粘した記録液を排出するために記録に寄与しない液滴を吐出させる空吐出を行うときの液滴を受ける空吐出受け84と、キャリッジ33をロックするキャリッジロック87などとを備えている。また、このヘッドの維持回復機構81の下方側には維持回復動作によって生じる廃液を収容するための廃液タンク100が装置本体に対して交換可能に装着される。   Further, a maintenance / recovery mechanism 81 for maintaining and recovering the nozzle state of the recording head 34 is disposed in the non-printing area on one side of the carriage 33 in the scanning direction. The maintenance / recovery mechanism 81 includes cap members (hereinafter referred to as “caps”) 82a and 82b (hereinafter referred to as “caps 82” when not distinguished from each other) for capping the nozzle surfaces of the recording head 34, and nozzle surfaces. A wiper member (wiper blade) 83 for wiping the recording medium, an empty discharge receiver 84 for receiving liquid droplets when performing empty discharge for discharging liquid droplets that do not contribute to recording in order to discharge the thickened recording liquid, and a carriage And a carriage lock 87 for locking 33. A waste liquid tank 100 for storing waste liquid generated by the maintenance recovery operation is mounted on the lower side of the head recovery mechanism 81 in a replaceable manner with respect to the apparatus main body.

また、キャリッジ33の走査方向他方側の非印字領域には、記録中などに増粘した記録液を排出するために記録に寄与しない液滴を吐出させる空吐出を行うときの液滴を受ける空吐出受け88を配置し、この空吐出受け88には記録ヘッド34のノズル列方向に沿った開口部89などを備えている。   Further, in the non-printing area on the other side of the carriage 33 in the scanning direction, there is an empty space for receiving liquid droplets when performing empty discharge for discharging liquid droplets that do not contribute to recording in order to discharge the recording liquid thickened during recording or the like. A discharge receiver 88 is disposed, and the idle discharge receiver 88 includes an opening 89 along the nozzle row direction of the recording head 34.

このように構成したこの画像形成装置においては、給紙トレイ2から用紙42が1枚ずつ分離給紙され、略鉛直上方に給紙された用紙42はガイド45で案内され、搬送ベルト51とカウンタローラ46との間に挟まれて搬送され、更に先端を搬送ガイド37で案内されて先端加圧コロ49で搬送ベルト51に押し付けられ、略90°搬送方向を転換される。そして、帯電された搬送ベルト51に用紙42が吸着され、搬送ベルト51の周回移動によって用紙42が副走査方向に搬送される。   In this image forming apparatus configured as described above, the sheets 42 are separated and fed one by one from the sheet feed tray 2, and the sheet 42 fed substantially vertically upward is guided by the guide 45, and includes the transport belt 51 and the counter. It is sandwiched between the rollers 46 and conveyed, and the leading end is guided by the conveying guide 37 and pressed against the conveying belt 51 by the leading end pressing roller 49, and the conveying direction is changed by approximately 90 °. Then, the sheet 42 is attracted to the charged conveyance belt 51, and the sheet 42 is conveyed in the sub-scanning direction by the circular movement of the conveyance belt 51.

そこで、キャリッジ33を移動させながら画像信号に応じて記録ヘッド34を駆動することにより、停止している用紙42にインク滴を吐出して1行分を記録し、用紙42を所定量搬送後、次の行の記録を行う。記録終了信号又は用紙42の後端が記録領域に到達した信号を受けることにより、記録動作を終了して、用紙42を排紙トレイ3に排紙する。   Therefore, by driving the recording head 34 according to the image signal while moving the carriage 33, ink droplets are ejected onto the stopped paper 42 to record one line, and after the paper 42 is conveyed by a predetermined amount, Record the next line. Upon receiving a recording end signal or a signal that the trailing edge of the paper 42 has reached the recording area, the recording operation is finished and the paper 42 is discharged onto the paper discharge tray 3.

そして、記録ヘッド34のノズルの維持回復を行うときには、キャリッジ33をホーム位置である維持回復機構81に対向する位置に移動して、キャップ部材82によるキャッピングを行ってノズルからの吸引を行うノズル吸引、画像形成に寄与しない液滴を吐出する空吐出などの維持回復動作を行うことにより、安定した液滴吐出による画像形成を行うことができる。   When performing the maintenance and recovery of the nozzles of the recording head 34, the nozzle 33 performs the suction from the nozzles by moving the carriage 33 to a position facing the maintenance and recovery mechanism 81 which is the home position and performing capping by the cap member 82. By performing a maintenance and recovery operation such as idle ejection for ejecting droplets that do not contribute to image formation, image formation by stable droplet ejection can be performed.

次に、この画像形成装置の制御部の概要について図4を参照して説明する。なお、同図は同制御部の全体ブロック説明図である。
この制御部500は、この装置全体の制御を司る本発明に係る中間調処理に係る制御を行う手段を兼ねたCPU511と、CPU511が実行する本発明に係る中間調処理を行うプログラムを含むプログラム、その他の固定データを格納するROM502と、画像データ等を一時格納するRAM503と、装置の電源が遮断されている間もデータを保持するための書き換え可能な不揮発性メモリ504と、画像データに対する各種信号処理、並び替え等を行う画像処理やその他装置全体を制御するための入出力信号を処理するASIC505、スキャナ手段2を制御するスキャナ制御部516とを備えている。
Next, an outline of the control unit of the image forming apparatus will be described with reference to FIG. This figure is an overall block diagram of the control unit.
The control unit 500 includes a CPU 511 that also serves as a unit that performs control related to halftone processing according to the present invention that controls the entire apparatus, and a program that includes a program that performs halftone processing according to the present invention executed by the CPU 511, ROM 502 for storing other fixed data, RAM 503 for temporarily storing image data and the like, rewritable nonvolatile memory 504 for retaining data even while the apparatus is powered off, and various signals for image data ASIC 505 for processing input / output signals for controlling image processing for processing, rearrangement, etc. and other control of the entire apparatus, and scanner control unit 516 for controlling scanner means 2 are provided.

また、記録ヘッド34を駆動制御するためのデータ転送手段、駆動信号発生手段を含む印刷制御部508と、キャリッジ33側に設けた記録ヘッド34を駆動するためのヘッドドライバ(ドライバIC)509と、キャリッジ33を移動走査する主走査モータ554、搬送ベルト51を周回移動させる副走査モータ555、維持回復機構81の維持回復モータ556を駆動するためのモータ駆動部510と、帯電ローラ56にACバイアスを供給するACバイアス供給部511などを備えている。   Further, a print control unit 508 including a data transfer unit for driving and controlling the recording head 34 and a driving signal generating unit, a head driver (driver IC) 509 for driving the recording head 34 provided on the carriage 33 side, An AC bias is applied to the charging roller 56, a main scanning motor 554 that moves and scans the carriage 33, a sub-scanning motor 555 that rotates the conveyance belt 51, a motor drive unit 510 that drives the maintenance / recovery motor 556 of the maintenance / recovery mechanism 81. An AC bias supply unit 511 and the like are provided.

また、この制御部500には、この装置に必要な情報の入力及び表示を行うための操作パネル514が接続されている。   The control unit 500 is connected to an operation panel 514 for inputting and displaying information necessary for the apparatus.

この制御部500は、ホスト側とのデータ、信号の送受を行うためのI/F506を持っていて、パーソナルコンピュータ等の情報処理装置、デジタルカメラなどの撮像装置などのホスト600側から、ケーブル或いはネットワークを介してI/F506で受信する。また、スキャナ2からの原稿画像の読取り情報をスキャナ制御部516を介して取り込む。   The control unit 500 has an I / F 506 for transmitting and receiving data and signals to and from the host side. From the host 600 side such as an information processing device such as a personal computer and an imaging device such as a digital camera, a cable or The data is received by the I / F 506 via the network. Further, reading information of the original image from the scanner 2 is taken in via the scanner control unit 516.

そして、制御部500のCPU501は、ホスト側からの受信データに関しては、I/F506に含まれる受信バッファ内の印刷データを読み出して解析し、ASIC505にて必要な画像処理、データの並び替え処理等を行い、この画像データを印刷制御部508に転送する。なお、画像出力するためのドットパターンデータの生成はホスト600側のプリンタドライバ601で行っている。また、スキャナ2からの原稿画像の読取りデータについては、後述するように必要な入力補正処理、出力処理を行って画像データを生成し、印刷制御部508に転送する。   The CPU 501 of the control unit 500 reads and analyzes the print data in the reception buffer included in the I / F 506 for the reception data from the host side, and performs necessary image processing, data rearrangement processing, and the like in the ASIC 505. The image data is transferred to the print control unit 508. Note that generation of dot pattern data for image output is performed by the printer driver 601 on the host 600 side. As for the read data of the original image from the scanner 2, necessary input correction processing and output processing are performed as will be described later, image data is generated, and transferred to the print control unit 508.

印刷制御部508は、上述した画像データをヘッドドライバ509にシリアルデータで転送するとともに、この画像データの転送及び転送の確定などに必要な転送クロックやラッチ信号、制御信号などをヘッドドライバ509に出力する以外にも、ROM502に格納されている駆動パルスのパターンデータをD/A変換するD/A変換器及び電圧増幅器、電流増幅器等で構成される駆動信号生成部を含み、1の駆動パルス或いは複数の駆動パルスで構成される駆動信号をヘッドドライバ509に対して出力する。   The print control unit 508 transfers the above-described image data to the head driver 509 as serial data, and outputs a transfer clock, a latch signal, a control signal, and the like necessary for transferring the image data and confirming the transfer to the head driver 509. In addition to the above, it includes a D / A converter that performs D / A conversion on the drive pulse pattern data stored in the ROM 502, and a drive signal generation unit including a voltage amplifier, a current amplifier, and the like. A drive signal composed of a plurality of drive pulses is output to the head driver 509.

ヘッドドライバ509は、シリアルに入力される記録ヘッド34の1行分に相当する画像データに基づいて印刷制御部508から与えられる駆動信号を構成する駆動パルスを選択的に記録ヘッド34の液滴を吐出させるエネルギーを発生する駆動素子(例えば圧電素子)に対して印加することで記録ヘッド7を駆動する。このとき、駆動信号を構成する駆動パルスを選択することによって、例えば、大滴、中滴、小滴など、大きさの異なるドットを打ち分けることができる。   The head driver 509 selectively selects a drive pulse that constitutes a drive signal provided from the print control unit 508 based on image data corresponding to one line of the print head 34 that is input serially, and drops droplets on the print head 34. The recording head 7 is driven by applying it to a driving element (for example, a piezoelectric element) that generates energy to be discharged. At this time, by selecting a driving pulse constituting the driving signal, for example, dots having different sizes such as a large droplet, a medium droplet, and a small droplet can be sorted.

I/O部513は、装置に装着されている各種のセンサ群515からの情報を取得し、プリンタの制御に必要な情報を抽出し、印刷制御部508やモータ制御部510、ACバイアス供給部511の制御に使用する。センサ群515は、用紙の位置を検出するための光学センサや、機内の温度を監視するためのサーミスタ、帯電ベルトの電圧を監視するセンサ、カバーの開閉を検出するためのインターロックスイッチなどがあり、I/O部513は様々のセンサ情報を処理することができる。   The I / O unit 513 acquires information from various sensor groups 515 mounted on the apparatus, extracts information necessary for controlling the printer, and print control unit 508, motor control unit 510, AC bias supply unit Used to control 511. The sensor group 515 includes an optical sensor for detecting the position of the paper, a thermistor for monitoring the temperature in the machine, a sensor for monitoring the voltage of the charging belt, an interlock switch for detecting opening and closing of the cover, and the like. The I / O unit 513 can process various sensor information.

次に、この画像形成装置における本発明に係る画像処理方法について説明する。
先ず、一般的に画像読取装置(スキャナ)で原稿画像を読み取って画像形成装置(プリンタ部)で出力するまでの画像処理の流れは、図5に示すように、スキャナ11で読み取った原稿画像データに対し、入力補正処理部401において、スキャナγ補正部411、RGB→YUV変換部412、平滑化部413、エッジ強調部414、YUV→RGB変換部415、地肌除去部416、エッジ強調部417によって、入力される原稿画像データ(入力画像)に対する補正を行う。
Next, an image processing method according to the present invention in this image forming apparatus will be described.
First, generally, the flow of image processing from reading an original image with an image reading device (scanner) to outputting it with an image forming device (printer unit) is as shown in FIG. On the other hand, in the input correction processing unit 401, the scanner γ correction unit 411, the RGB → YUV conversion unit 412, the smoothing unit 413, the edge enhancement unit 414, the YUV → RGB conversion unit 415, the background removal unit 416, and the edge enhancement unit 417. Then, the input document image data (input image) is corrected.

つまり、原稿画像を複写してプリント出力するコピーの場合、入力される画像データは、全て「イメージ」データとして取り込まれるが、このとき、スキャナの性能、入力原稿の状態(記録品質、汚れや破損、表面光沢)などにより、原稿よりも劣化した状態でデータが取り込まれることになる。そこで、入力補正処理部401では、スキャナから取り込まれた画像データを、像域分離によりオブジェクト要素毎に分解し、エッジ強調や地肌除去、色補正等、様々な補正処理を適用している。なお、オブジェクト要素とは、入力された画像データが、「文字」、「細線」、「イメージ」、「グラフィックス」の何れに分類されるのかを指す。   In other words, in the case of a copy in which a manuscript image is copied and printed out, all input image data is captured as “image” data. At this time, the scanner performance, the state of the input manuscript (recording quality, dirt and damage, etc.) , Surface gloss) and the like, the data is captured in a state of deterioration from the original. Therefore, the input correction processing unit 401 decomposes the image data captured from the scanner into object elements by image area separation, and applies various correction processes such as edge enhancement, background removal, and color correction. The object element indicates whether the input image data is classified as “character”, “thin line”, “image”, or “graphics”.

この入力補正処理部401から出力される補正後の画像データを入力する出力処理部402においては、色空間への変換(RGB表色系→CMY表色系)を行なうCMM処理部421、CMYの値から黒生成/下色除去を行なうBG/UCR処理部422、解像度に合わせて拡大処理を行なう変倍処理部423、装置の特性やユーザーの嗜好を反映した入出力補正を行なうプリンタγ補正部424、画像データを画像形成装置から噴射するドットのパターン配置に置き換えるディザマトリクスを含む中間調処理部425によって、所要の処理を行ない、図示しないが、中間調処理で得られた印刷画像データであるドットパターンデータを各スキャン毎のデータに分割し、更に記録を行なう各ノズル位置に合わせてデータ展開するラスタライジングを行って、印刷制御部508(プリンタ出力)に送出する。   In the output processing unit 402 for inputting the corrected image data output from the input correction processing unit 401, a CMM processing unit 421 that performs conversion into a color space (RGB color system → CMY color system), BG / UCR processing unit 422 that performs black generation / under color removal from values, scaling processing unit 423 that performs enlargement processing according to resolution, and printer γ correction unit that performs input / output correction reflecting device characteristics and user preferences 424, a necessary process is performed by the halftone processing unit 425 including a dither matrix that replaces the image data with the dot pattern arrangement ejected from the image forming apparatus. Although not shown, the print image data is obtained by the halftone process. A raster pattern that divides the dot pattern data into data for each scan and further develops the data in accordance with the position of each nozzle for recording. Performing grayed, and sends the print control unit 508 (printer output).

この出力処理部402におけるB/UCR処理部422、プリンタγ補正部423、中間調処理部425では像域分離部218の分離結果に応じた処理が行なわれる。   In the output processing unit 402, the B / UCR processing unit 422, the printer γ correction unit 423, and the halftone processing unit 425 perform processing according to the separation result of the image area separation unit 218.

ところで、像域分離部418による像域分離の結果は、上述した入力補正処理部401や出力処理部402の処理をなす上で重要な情報となり、像域分離結果が間違っていると、そのまま間違った処理が行われて、結果として異常画像の発生に繋がることから、像域分離を行う部分には高い処理能力と性能が要求される。   By the way, the result of the image area separation by the image area separation unit 418 becomes important information in performing the processing of the input correction processing unit 401 and the output processing unit 402 described above. As a result, an abnormal image is generated, so that a high processing capability and performance are required for the image area separation portion.

このように像域分離を高速で正確に行うことができるかは画像処理コントローラの性能に左右され、十分な処理能力を備えていない画像処理コントローラを用いた場合には、パターンマッチングや周波数解析等を駆使する像域分離の演算は負荷が大きく、スループットが大きく低下してしまうことになるが、他方、十分な処理能力を備える画像処理コントローラを備えることは画像形成装置や画像処理装置などのコストが高くなるという問題を生じる。   Whether image separation can be performed accurately at high speed depends on the performance of the image processing controller. When an image processing controller that does not have sufficient processing capability is used, pattern matching, frequency analysis, etc. The image area separation calculation that makes full use of the image processing is heavy and results in a significant reduction in throughput. On the other hand, having an image processing controller with sufficient processing capability is costly for image forming apparatuses and image processing apparatuses. Cause the problem of high.

そこで、低コスト化を図る画像形成装置では、像域分離を省略し、最低限の補正処理(弱い平滑化や、地肌除去程度)のみを適用する構成が採用され、更に、出力処理側でも中間調処理部425においても、中間調処理として、入力補正処理の低さを誤差拡散処理で補うようにしている。   In view of this, an image forming apparatus designed to reduce costs employs a configuration in which image area separation is omitted and only minimum correction processing (weak smoothing and background removal) is applied. The tone processing unit 425 also compensates for low input correction processing by error diffusion processing as halftone processing.

ディザ処理は、図6に示すように、同図(a)に示す入力された多値画像データを、同図(b)に示すディザマトリクスの閾値と比較し、同図(c)に示すようにドットパターンの配置に置き換える処理である。ディザ処理は、ディザマトリクスと入力データの一対比較でドットのON/OFFを決定することから、非常に処理が軽く、演算に必要なメモリも少量で済む。   As shown in FIG. 6, the dithering process compares the input multi-value image data shown in FIG. 6A with the threshold value of the dither matrix shown in FIG. This is a process of replacing with a dot pattern arrangement. Since the dither processing determines the ON / OFF of the dots by comparing the dither matrix with the input data, the processing is very light and a small amount of memory is required for the calculation.

しかしながら、コピーモードにおいて、ディザ処理を採用した場合、原稿の網点パターンとの干渉によるモアレが発生する。つまり、図6に示したように、原稿画像上にいくらデータが存在したとしても、ディザマトリクスの閾値を超えない限り、ドットは生成されない。網点原稿のようにデータの分布が規則的な配置で構成されている場合、ディザ処理によるドットの欠損が逆に規則性を持ち、モアレとして現れる可能性がある。例えば図7(a)に示すような網点の原稿データを、万線基調を有するディザマトリクスでディザ処理を行なった場合、同図(b)に示すように、そのまま万線基調との干渉によるモアレが出力画像に現出することになる。   However, when dither processing is employed in the copy mode, moire occurs due to interference with the halftone dot pattern of the document. That is, as shown in FIG. 6, no matter how much data exists on the document image, no dot is generated unless the threshold value of the dither matrix is exceeded. When the data distribution is configured in a regular arrangement like a halftone document, the dot loss due to the dither processing may have regularity and appear as moire. For example, when halftone dot original data as shown in FIG. 7A is dithered with a dither matrix having a line tone, as shown in FIG. Moire appears in the output image.

これに対して、誤差拡散処理は、例えば図8に示す処理を行うものであり、ドットのON/OFFの判定に周辺の量子化誤差を反映して演算を行うため、画素単位で入力原稿との差が生じても、その差が周辺の画素におけるドットの発生し易さとして反映される結果、ドットの欠け等も補填され、優れた画像再現性が得られる。しかしながら、反面、演算数が多く処理速度への影響が大きくなる。   On the other hand, the error diffusion process performs, for example, the process shown in FIG. 8, and the calculation is performed by reflecting the peripheral quantization error in the ON / OFF determination of the dots. Even if the difference occurs, the difference is reflected as the ease of occurrence of dots in the surrounding pixels. As a result, missing dots are compensated for, and excellent image reproducibility is obtained. However, on the other hand, the number of operations is large and the influence on the processing speed becomes large.

この場合、コンピュータ処理能力の向上により、画像処理装置をホストPC上で構成して、画像形成装置は単にプリンタとして利用するだけであれば、誤差拡散処理自体、それほど重い処理とは言えなくなってきているが、スタンドアロンで使用されることが前提のコピー機としての画像形成装置では、装置本体に搭載されたコントローラで処理する必要があり、誤差拡散処理の重さは無視できない課題となっている。   In this case, if the image processing apparatus is configured on the host PC and the image forming apparatus is simply used as a printer by improving the computer processing capability, it cannot be said that the error diffusion process itself is a very heavy process. However, in an image forming apparatus as a copier that is assumed to be used stand-alone, it is necessary to perform processing by a controller mounted on the apparatus body, and the weight of error diffusion processing is a problem that cannot be ignored.

そこで、本発明における複合型中間調処理では、まず、階調区間毎にディザ処理と誤差拡散処理を切り替えることで演算負荷を軽減している。
ここでは、階調区間を、多値数のうち最小の出力値のみで表現されるハイライト部と、値数のうち最大の出力値のみで表現されるシャドー部と、最小の出力値よりも一段階以上大きい出力値であって、かつ最大の出力値より一段階以上小さい出力値で表現されるミドル部に分けている。
Therefore, in the composite halftone processing according to the present invention, first, the calculation load is reduced by switching between dither processing and error diffusion processing for each gradation section.
Here, the gradation section is represented by a highlight portion represented by only the minimum output value among the multi-valued number, a shadow portion represented by only the maximum output value among the number of values, and the minimum output value. The output value is divided into middle parts that are expressed by output values that are one or more steps larger and that are one or more steps smaller than the maximum output value.

そして、ハイライト部及びシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、ミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用している。   Then, a dither process that performs quantization by paired comparison of the input value and the threshold matrix is applied to the highlight part and the shadow part, and a quantization error around the pixel of interest is added to the middle part to add a quantum error. An error diffusion process is applied.

まず、図9に2値誤差拡散処理によるシャドー階調部の出力ドットパターン例を示しているが、濃い階調を表現するためにドットが密に発生することで、紙面が埋め尽くされるため、原稿のパターン(網点原稿等)との干渉(モアレ)も目立ちにくくなる。   First, FIG. 9 shows an example of an output dot pattern of a shadow gradation portion by binary error diffusion processing. However, since dots are generated densely to express a dark gradation, the paper surface is filled up. Interference (moire) with an original pattern (such as a halftone original) is also less noticeable.

また、出力ドットサイズや濃淡インクを切り替える多値出力可能な画像形成装置では、異なったサイズや濃度のドットを入れ替えて階調を表現することになり、よりモアレを目立ち難くすることができる。   Also, in an image forming apparatus capable of multi-value output that switches between output dot size and light and dark ink, gradations are expressed by replacing dots of different sizes and densities, making moire less noticeable.

次に、図10を参照して、大中小の3種類のドットサイズとディザ処理を用いて、多値を表現する方法について説明すると、滴サイズに応じて、それぞれ再現階調区間を設定し、ディザマトリクスの閾値の順序に応じてドットを配置して階調表現を行う。なお、以下では、ドットサイズを切り換える多値化方式について説明するが、濃度の異なる色剤を切り換える多値化方式でも同様である。   Next, with reference to FIG. 10, a description will be given of a method for expressing multi-values using three types of large, medium, and small dot sizes and dither processing. Tone expression is performed by arranging dots according to the threshold order of the dither matrix. In the following, a multi-value method for switching dot sizes will be described, but the same applies to a multi-value method for switching colorants having different densities.

この場合、小ドットに割り当てられた階調区間が、「0<小ドット区間≦階調レベルn」の場合、階調レベルnでは、小ドットで紙面が埋め尽くされることになる。そして、階調レベルn+1では、埋め尽くされた小ドットの何れかが中ドットに置き換わり、階調の上昇に合わせて中ドットの比率が高くなっていく(中ドットと大ドットの切替も同じである。)。   In this case, when the gradation section assigned to the small dots is “0 <small dot section ≦ gradation level n”, the paper surface is filled with small dots at the gradation level n. At gradation level n + 1, any of the filled small dots is replaced with medium dots, and the ratio of medium dots increases as the gradation rises (the same is true for switching between medium dots and large dots). is there.).

上記の様な多値による中間調処理を用いれば、大ドットが適用されるようなシャドー側の階調レベルでは、元々の白地以外の部分では必ずいずれかのサイズのドットが割り当てられることになり、モアレはドットの密度の中に埋もれてしまう。   If halftone processing with multiple values as described above is used, dots of any size will always be assigned to the shadow side gradation level where large dots are applied, except for the original white background. Moire is buried in the density of dots.

また、最小ドットしか使用しないハイライト部においては、仮に原稿画像の規則性があったとしても、誤差拡散処理及びディザ処理のいずれでも、完全に原稿画質を再現するのは困難である。これは、入力データが小さく且つ範囲が狭いデータ(例えば図12(a)に示す小網点等のデータ)に対しては、誤差拡散処理では、十分に誤差の蓄積ができずに(図12(b))、ディザ処理ではディザ閾値マトリクスと同期しないパターンは強制的にOFFとなる(図12(c))ため、狭い画像ほど出力時に欠落し易くなるからである。   Further, in the highlight portion where only the minimum dots are used, even if there is regularity of the original image, it is difficult to completely reproduce the original image quality by either error diffusion processing or dither processing. This is because the error diffusion process cannot sufficiently accumulate errors for data having a small input data and a narrow range (for example, data such as small dots shown in FIG. 12A) (FIG. 12). (B)) In the dither processing, a pattern that is not synchronized with the dither threshold matrix is forcibly turned off (FIG. 12C), and therefore, a narrower image is likely to be lost during output.

すなわち、個々のドットの分散性が目立たない階調では、モアレが画質に及ぼす影響が小さくなるため、モアレに弱いディザ処理であっても使用することが可能となり、ディザ処理及び誤差拡散処理の何れを使っても画質的に大差がないハイライト部においても、ディザ処理を使用することが可能である。   In other words, since the influence of moiré on image quality is reduced at gradations where the dispersibility of individual dots is not noticeable, it can be used even with dither processing that is weak against moiré. Either dither processing or error diffusion processing can be used. It is possible to use dither processing even in a highlight portion where there is no great difference in image quality even when using.

そこで、本発明では、このハイライト部及びシャドー部に対して多値ディザ処理を適用すると共に、その間の階調に対しては、多値誤差拡散処理を適用することで、大幅な処理の高速化を図っている。   Therefore, in the present invention, multi-level dither processing is applied to the highlight portion and the shadow portion, and multi-level error diffusion processing is applied to the gradation between the highlight portion and the shadow portion. We are trying to make it.

例えば、図12(a)に示す例は4値の場合であり、同図(b)に示す例は5値の場合である。5値の場合には、中区間1と中区間2に分けている。   For example, the example shown in FIG. 12A is a four-value case, and the example shown in FIG. 12B is a five-value case. In the case of five values, it is divided into a middle section 1 and a middle section 2.

このとき、入力値が0の場合とディザ処理が適用される階調区間では、誤差値の演算は省略(誤差値=0)とする。入力が0の場合は、元々画像が無い部分であるため、余計な演算処理を省くと共に、原画像にないドットが生成されて画質が低下することを防止する。   At this time, the calculation of the error value is omitted (error value = 0) in the case where the input value is 0 and the gradation interval to which the dither processing is applied. When the input is 0, it is a portion that originally has no image, and therefore, unnecessary calculation processing is omitted, and it is possible to prevent the image quality from being deteriorated due to generation of a dot that is not in the original image.

また、シャドー部では着目画素の入力値自体が十分な大きさを持ち、周辺画素へ量子化誤差を伝搬させても影響が小さく、ハイライト部では蓄積される誤差自体が小さく、やはり周辺画素へ伝搬させても影響が出にくいため、ディザ処理が適用されるハイライト部及びシャドー部においても、誤差値の演算は省略する。これによって更なる高速化が図れる。   In addition, the input value of the target pixel itself is sufficiently large in the shadow portion, and the influence is small even if the quantization error is propagated to the peripheral pixels, and the accumulated error itself is small in the highlight portion. Since the influence is difficult to occur even if it is propagated, the calculation of the error value is omitted even in the highlight portion and the shadow portion to which the dither processing is applied. This can further increase the speed.

また、連続した階調の中で異なる中間調処理を使用する場合、処理の切替え部分でドットパターンの連続性が途絶え、トーンジャンプとして目についてしまう場合がある。   Further, when different halftone processing is used in continuous gradations, the continuity of the dot pattern may be interrupted at the processing switching portion, and the tone jump may be noticed.

このような問題を改善する方法として、誤差拡散処理内部で使用する閾値をマトリクス化し、ミドル部、シャドー部で切り替えを行うディザ処理におけるディザマトリクスと同じサイズ、且つ、閾値の割り振りの規則性を同じにすることでトーンジャンプを目立たなくすることができる。   As a method for solving such a problem, the threshold values used in the error diffusion process are made into a matrix, the same size as the dither matrix in the dither process in which switching is performed in the middle part and the shadow part, and the regularity of the threshold value allocation is the same To make tone jump inconspicuous.

これは、誤差拡散処理の分散性に閾値マトリクスの規則性が影響を及ぼすためであり、閾値の振幅に応じて、ディザの規則性の顕現状態をコントロールすることも可能である。切り替えを行うべきディザ処理のディザマトリクスと閾値マトリクスの規則性を揃えておくことで、切り替え階調付近では、ディザ処理を行った場合とほぼ同じドット配置を形成することが可能となり、ディザ処理パターンへの連結がスムーズに行われることになる。   This is because the regularity of the threshold matrix affects the dispersibility of the error diffusion processing, and the manifestation state of the dither regularity can be controlled according to the amplitude of the threshold. By aligning the regularity of the dither matrix and threshold matrix of the dither processing to be switched, it is possible to form the same dot arrangement near the switching gradation as when dither processing is performed, and the dither processing pattern Will be smoothly connected.

ただし、このように閾値マトリクスのパターン傾向が強くなると、本来、誤差拡散処理では改善されたハズの原稿網点との干渉が、再度、問題となってくる。ランダム性の高い分散マトリクスを使用することで、特定の干渉パターンが発生するモアレこそ防ぐことができるが、ランダムにドットが配置されるため、本来網点があるべき所でドットが欠落することがあり、粒状感が悪化して、ぼそついた画像となってしまう。例えば図13(a)に示す網点画像を分散マトリクス閾値による誤差拡散処理を行った場合、画像は同図(b)に示すようになる。   However, when the pattern tendency of the threshold value matrix becomes strong in this way, the interference with the original halftone dot, which is originally improved in the error diffusion process, becomes a problem again. By using a highly random dispersion matrix, it is possible to prevent moiré that generates a specific interference pattern, but since dots are randomly arranged, dots may be lost where there should originally be halftone dots. Yes, the graininess deteriorates and the image becomes blurred. For example, when an error diffusion process using a dispersion matrix threshold is performed on the halftone image shown in FIG. 13A, the image is as shown in FIG.

これは、ランダム性を確保するためにはある程度のマトリクスサイズ(好ましくは256×256画素程度)が必要であり、そのマトリクスサイズ全域を使ってドットを分散させようとすると、網点が形成されるべき位置でドットがONとなる確率が小さくなってしまうためである。もちろん、網点では無い連続調原稿の場合は、規則性が見えない方が滑らかな画像が再現できるため、閾値マスクサイズは大きければ大きい程良い。   This requires a certain amount of matrix size (preferably about 256 × 256 pixels) in order to ensure randomness, and when dots are dispersed using the entire matrix size, halftone dots are formed. This is because the probability of the dot being turned on at the power position is reduced. Of course, in the case of a continuous tone original that is not a halftone dot, a smoother image can be reproduced if the regularity is not visible. Therefore, the larger the threshold mask size, the better.

そこで、本発明では、原稿画像(入力)が網点画像であるか否か、ここでは、網点画像であるか連続調画像であるかによって、サイズの異なる分散閾値マトリクスを、誤差拡散処理の閾値並びにディザ処理の閾値に適用することで、粒状感を改善している。   Therefore, in the present invention, dispersion threshold matrices having different sizes are subjected to error diffusion processing depending on whether the original image (input) is a halftone image or not, here, whether it is a halftone image or a continuous tone image. The graininess is improved by applying the threshold value and the threshold value of the dither processing.

図14は600dpiにおける原稿網点画像の部分拡大説明図である(ただし、K版、スクリーン角45°)。網点原稿(網点画像)は、特定のピッチで配置されたドットが徐々に大きくなることで、階調を表現する。配置されるピッチは、600dpiの出力解像度で計算すると、図15に示すようになる。一般的な印刷では、175線が良く使用されるが、この場合だと一つの網点が被覆する領域は、ほぼ5×5画素分となる。この網点を過不足なく出力ドットに置き換えるには、5×5画素分をカバーする閾値マトリクスがあれば良い。これ以上サイズが大きくなると、ドットを分散させる特性から、網点部が欠ける可能性が高まる(図16(a))。また、小さくなると分散性が低くなり、誤差拡散処理において幾何学的なテクスチャが発生しやすくなる(図16(b))。   FIG. 14 is a partially enlarged explanatory view of an original halftone image at 600 dpi (however, K plate, screen angle 45 °). A halftone original (halftone image) expresses gradation by gradually increasing the dots arranged at a specific pitch. When the pitch to be arranged is calculated with an output resolution of 600 dpi, it is as shown in FIG. In general printing, 175 lines are often used. In this case, the area covered by one halftone dot is approximately 5 × 5 pixels. In order to replace the halftone dots with output dots without excess or deficiency, a threshold matrix covering 5 × 5 pixels is sufficient. If the size is further increased, there is a higher possibility that the halftone dot portion is missing due to the property of dispersing the dots (FIG. 16A). Further, when the value becomes smaller, the dispersibility becomes lower, and a geometric texture is likely to be generated in the error diffusion process (FIG. 16B).

そこで、原稿画像(入力画像)が網点画像であるときには、次の第1サイズの分散型閾値マトリクスを、誤差拡散処理及びディザ処理の閾値として使用する。
第1のサイズ=(網点ピッチ/出力解像度ピッチ)に最も近い整数
Therefore, when the original image (input image) is a halftone image, the following distributed threshold matrix of the first size is used as a threshold value for error diffusion processing and dither processing.
1st size = an integer closest to (halftone pitch / output resolution pitch)

例えば、175線網点原稿(画像)を出力解像度600dpiの画像形成装置で出力する場合、
閾値マトリクスサイズ=(25.4/175×√2)/(25.4/600)
=4.84873
となり、これに最も近い整数である5画素のマトリクスサイズのマトリクスを用いる。
For example, when outputting a 175-line halftone original (image) with an image forming apparatus having an output resolution of 600 dpi,
Threshold matrix size = (25.4 / 175 × √2) / (25.4 / 600)
= 4.88473
Thus, a matrix having a matrix size of 5 pixels, which is an integer closest thereto, is used.

一方、網点との干渉を考慮しなくて良い連続調画像においては、第1のサイズで規定される閾値マトリクスでは、やはりドットの分散性が低下する。   On the other hand, in a continuous tone image in which interference with a halftone dot need not be considered, the dispersibility of dots is also lowered in the threshold value matrix defined by the first size.

そこで、入力画像が連続調画像であるときには、次の第2のサイズの分散型閾値マトリクスを、誤差拡散処理及びディザ処理の閾値として使用する。
第2のサイズ=(1mm/出力解像度ピッチ)に最も近い整数
Therefore, when the input image is a continuous tone image, the following distributed threshold matrix of the second size is used as a threshold value for error diffusion processing and dither processing.
2nd size = integer closest to (1mm / output resolution pitch)

例えば、連続調原稿(画像)出力解像度600dpiの画像形成装置で出力する場合、
閾値マトリクスサイズ= 1/(25.4/600)
=23.622
となり、これに最も近い整数である24画素のマトリクスサイズのマトリクスを用いる。
For example, when outputting with an image forming apparatus having a continuous tone document (image) output resolution of 600 dpi,
Threshold matrix size = 1 / (25.4 / 600)
= 23.622
A matrix having a matrix size of 24 pixels, which is an integer closest thereto, is used.

網点画像に対しては、網点ピッチに近いマトリクスサイズとすることで、マトリクスの特性によって分散処理が行われても、それは本来網点が成長する範囲内での分散となり、原稿の網点の再現性が高まり、網点の欠落によるモアレやぼそつきが改善される。   For a halftone image, by setting the matrix size close to the halftone dot pitch, even if dispersion processing is performed depending on the characteristics of the matrix, it will be distributed within the range where the halftone dot grows, and the halftone dot of the original Reproducibility is improved, and moire and blurring due to missing halftone dots are improved.

また、連続調画像に対しては、基本的にモアレは考慮する必要が無く、粒状性を向上させるには、閾値マトリクスは大きければ大きい程良い。つまり、ドットがランダム且つ均等に分散している程、粒状性は良好になるため、サイズが大きい方が、ドット配置の自由度が高まるのである。   For continuous tone images, it is basically unnecessary to consider moiré, and a larger threshold matrix is better for improving graininess. That is, the more the dots are dispersed uniformly and more uniformly, the better the graininess. Therefore, the larger the size, the greater the degree of freedom of dot arrangement.

しかし、実際には装置やシステムに搭載する以上、サイズの制限はあり、演算速度やメモリ容量から、大きなサイズの閾値マトリクスは搭載し難い。その場合、閾値マトリクスの品質次第では、かえって閾値マトリクスのサイズ周期でテクスチャが発生してしまう場合がある。   However, as long as it is actually mounted in an apparatus or system, there is a size limitation, and it is difficult to mount a large threshold matrix due to the calculation speed and memory capacity. In this case, depending on the quality of the threshold matrix, a texture may be generated in the threshold matrix size cycle.

そこで、連続調原稿時には、人間の視覚感度が落ち込む1mm以下の第2のサイズに閾値マスクサイズを設定することでで、閾値マトリクスの品質が多少悪くても、周期的なテクスチャが目に付かない様にすることができる。   Therefore, when a continuous tone manuscript is set, by setting the threshold mask size to a second size of 1 mm or less where human visual sensitivity falls, periodic textures are not noticeable even if the quality of the threshold matrix is somewhat poor. Can be done.

これらの第1のサイズの閾値マトリクスと第2のサイズの閾値マトリクスとの切替えは上述したように入力画像が網点画像であるか否か(網点画像か連続調画像)によって行う。   Switching between the first size threshold matrix and the second size threshold matrix is performed according to whether or not the input image is a halftone image (halftone image or continuous tone image) as described above.

ここで、入力画像が網点画像であるか連続調画像であるかは、入力画像の周波数特性に基づいて判別(判定)することができる。網点画像であれば、網点ピッチの周期成分が突出し、逆に連続調画像であれば、明確な周期性は発生し難いためである。なお、元々周期的な画像を取り込んだ場合は、連続調画像であっても網点画像と同様の特性を持つ事になるため、網点画像として処理してよい。また、周波数特性の周期性から網点線数も解析できるので、入力された入力画像に対してフーリエ変換等を行い、自動的に周波数特性を解析して網点画像処理(又は線数指定)と連続調画像処理を切り換えるようにしてもよい。   Here, whether the input image is a halftone image or a continuous tone image can be determined (determined) based on the frequency characteristics of the input image. This is because, in the case of a halftone dot image, the periodic component of the halftone dot pitch protrudes, and on the contrary, if it is a continuous tone image, a clear periodicity hardly occurs. Note that when a periodic image is originally captured, even a continuous tone image has the same characteristics as a halftone image, and may be processed as a halftone image. In addition, since the number of halftone lines can be analyzed from the periodicity of the frequency characteristics, the input image is subjected to Fourier transform, etc., and the frequency characteristics are automatically analyzed to perform halftone image processing (or line number designation). The continuous tone image processing may be switched.

また、175線よりも低い線数であれば、肉眼でも容易に網点画像であるか否かを見分けることができるので、オペレーターの目視判定により、操作パネル514などからの入力によって網点画像処理と連続調画像処理を切り換えるようにすることもできる。   Also, if the number of lines is lower than 175 lines, it is possible to easily determine whether or not the image is a halftone image even with the naked eye. Therefore, halftone image processing is performed by an input from the operation panel 514 or the like by the operator's visual determination. It is also possible to switch the continuous tone image processing.

この場合、網点線数の測定には線数メータ等の測定器具が必要になるが、一般的に使用される網点線数は限られるので、目の細かい印刷は175線、目の粗い画像は100線のように、大まかに分類して選択するようにしてもよい。   In this case, a measuring instrument such as a line number meter is required for measuring the number of halftone dots. However, since the number of halftone lines generally used is limited, 175 lines are printed finely, You may make it select and classify | categorize roughly like 100 lines.

さらに、スキャナから入力した画像データではなく、例えばアプリケーションソフト上で作成した画像データであっても、透明化処理やハッチング処理等の機能によって、網点状に画像が間引かれる場合がある。   Furthermore, even if the image data is not input from the scanner but is image data created on application software, for example, the image may be thinned out in the form of halftone dots by functions such as transparency processing and hatching processing.

このような場合には、画像は網点画像のような規則性を持つことになるため、アプリケーション毎や、図形や写真といった画像オブジェクト毎に、透明化やハッチング処理のような特殊な処理が適用されているか否かを判定(例えば周波数解析や、アプリケーションソフトからの情報に基づいて判定)し、網点画像処理と連続調画像処理を切り換えるようにすることもできる。   In such a case, the image has regularity like a halftone dot image, so special processing such as transparency and hatching is applied to each application and each image object such as a figure or photograph. It is also possible to switch between halftone image processing and continuous tone image processing by determining whether or not it has been performed (for example, determination based on frequency analysis or information from application software).

次に、上述した中間調処理について図17のフロー図を参照して全体的な流れを説明する。
まず、原稿データがセットされると、網点解析部にて前述したように原稿画像(入力画像)の自動解析を行って網点原稿か連続調原稿かを判定する(あるいは、外部入力を取り込んで判定する。)。
Next, the overall flow of the above-described halftone processing will be described with reference to the flowchart of FIG.
First, when document data is set, the halftone analysis unit automatically analyzes the document image (input image) as described above to determine whether the document is a halftone document or a continuous tone document (or captures external input). To determine.)

ここで、網点原稿であれば、網点数、出力解像度から第1のサイズの閾値マトリクスセットを選定し、網点原稿でなければ(連続調原稿であれば)、出力解像度から第2のサイズの閾値マトリクスセットを選定する。   If the original is a halftone dot document, a threshold value matrix set of the first size is selected from the number of halftone dots and the output resolution. If the original is not a halftone original (if it is a continuous tone original), the second size is determined from the output resolution. Select a threshold matrix set.

そして、階調がディザ処理区間であるか否かを判別し、ディザ処理区間であれば、選定マトリクスセットの中のディザ処理閾値を使用しディザ処理を行い、ディザ処理区間でなければ(誤差拡散処理区間)あれば、選定マトリクスセットの中の誤差拡散処理閾値を使用し誤差拡散処理を行う。   Then, it is determined whether or not the gradation is a dither processing section. If the gradation is a dither processing section, dither processing is performed using a dither processing threshold in the selected matrix set, and if it is not a dither processing section (error diffusion). If processing interval), error diffusion processing is performed using the error diffusion processing threshold in the selected matrix set.

そして、全ての原稿データの中間調処理が終了したときに、この処理を抜ける。   Then, when the halftone process of all the document data is completed, this process is exited.

このように、多値数のうち最小の出力値のみで表現されるハイライト部及び多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、最小の出力値よりも一段階以上大きい出力値であって、かつ最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える構成とすることで、中間調処理を切替えることによる演算負荷を低減しつつ、複合型中間調処理における画像品質の劣化を低減することができる。   In this way, a pair of input value and threshold matrix is used for the highlight portion expressed only by the minimum output value among the multi-valued numbers and the shadow portion expressed only by the maximum output value among the multi-valued numbers. Applying a dither process that performs quantization by comparison, for a middle part that is expressed by an output value that is one or more steps larger than the minimum output value and one or more steps smaller than the maximum output value Applying an error diffusion process that performs quantization by adding a quantization error around the pixel of interest, depending on the halftone dot pitch of the input image or the presence or absence of a halftone dot, the variance threshold matrix used for the error diffusion process and dither process By adopting a configuration in which the size is switched, it is possible to reduce deterioration in image quality in the composite halftone process while reducing a calculation load caused by switching the halftone process.

なお、上述した画像処理はインクジェット記録方式や電子写真方式などの画像形成装置における画像処理や、画像形成装置と画像処理装置を組み合わせた画像形成システムを構成し、画像処理装置で画像処理を行う場合にも同様に適用することができる。   The above-described image processing is performed when image processing in an image forming apparatus such as an inkjet recording method or an electrophotographic method, or an image forming system in which the image forming apparatus and the image processing apparatus are combined, and image processing is performed by the image processing apparatus. It can be similarly applied to.

また、本発明における画像処理(中間調処理)は、ハードウエアとして搭載するだけでなく、前述したように、プログラムとして、例えばプリンタモード用の中間調処理としてプリンタドライバへ組み込むことができる。これによって演算負荷を軽減することができ、特に、上記実施形態のようなコピーモードを有する画像形成装置における処理だけでなく、ホスト側からの画像データを印刷出力する画像形成装置に適用した場合、より早くホストコンピュータを印刷タスクから開放することができる。さらに、画像形成装置に対して印刷データを送出する情報処理装置側にも適用することができる(この場合の情報処理装置は本発明に係る画像処理装置でもある。)。   In addition, the image processing (halftone processing) according to the present invention is not only installed as hardware, but can be incorporated into a printer driver as a program, for example, as halftone processing for a printer mode, as described above. This can reduce the computation load, and particularly when applied to an image forming apparatus that prints out image data from the host side as well as the processing in the image forming apparatus having the copy mode as in the above embodiment. The host computer can be released from the printing task more quickly. Furthermore, the present invention can also be applied to an information processing apparatus that sends print data to an image forming apparatus (the information processing apparatus in this case is also an image processing apparatus according to the present invention).

なお、ホストコンピュータの高処理能力を当てにして、コンピュータ上でソフトウエア処理するシステムにおいても、本発明における画像処理は適用可能である。また、別の中間調処理と本発明における誤差拡散処理とを切り替えて使用することも可能である。本発明で課題とした演算負荷という点では劣るものの、連続調原稿に対しては、より高品質な出力が可能な中間調処理は幾つか存在する。これらの中間調処理をモード別に、例えば、網点原稿の使用頻度が高いコピー/FAXモードでは本発明の高速誤差拡散処理を含む画像処理を、連続調原稿が主となるプリンタモードでは他の中間調処理を使用することで、高品質な画像再現が可能である。これらの処理の切替は、モードの選択に合わせて自動的に切り替えても、あるいは、ユーザーの指示といった外部からの入力によって切り替える構成とできる。   Note that the image processing according to the present invention can also be applied to a system that performs software processing on a computer while relying on the high processing capability of the host computer. It is also possible to switch between another halftone process and the error diffusion process in the present invention. Although it is inferior in terms of computation load, which is a problem in the present invention, there are some halftone processes that can output higher quality for continuous tone originals. These halftone processes are classified by mode, for example, the image processing including the high-speed error diffusion processing of the present invention is performed in the copy / FAX mode in which halftone originals are frequently used, and the other halftone processes are performed in the printer mode mainly using continuous tone originals. By using tone processing, high-quality image reproduction is possible. These processes can be switched automatically according to the mode selection, or can be switched by an external input such as a user instruction.

さらに、「Scan to E−mail 」と呼ばれる機能を有し、スキャナで取り込んだ画像データを、ネットワークを通じて配信する複合機として画像形成装置もある。このように、外部のスキャナで取り込まれた画像であっても、元が網点原稿であれば、出力時にモアレやぼそつきが発生する可能性があるため、本発明を適用することは効果的である。   Further, there is an image forming apparatus as a multi-function machine that has a function called “Scan to E-mail” and distributes image data captured by a scanner through a network. As described above, even if an image is captured by an external scanner, if the original is a halftone document, moire or blur may occur at the time of output. Is.

また、本発明では演算負荷の小さい処理となるが、例えば、画像処理専用演算ユニットが後付可能な場合や、PCに接続して画像処理の一部もしくは全部をソフトウエア的に処理することが可能な場合には、より高度な演算処理が可能となる。このような外部演算処理装置が活用できる場合は、像域分離や周波数解析処理を含めた高度な入力補正処理や中間調処理を高速に実行することが可能になるので、本発明における中間調処理からより高度な処理に切換えることでで、高画質なコピー画像を作成することが可能となる。これに関しても、外部演算処理装置の検出にあわせて自動的に切り換えても良いし、ユーザーの指示といった外部からの入力によって切換える様にしても良い。   In the present invention, the processing load is small. For example, when a dedicated processing unit for image processing can be retrofitted, or when connected to a PC, part or all of the image processing can be processed by software. If possible, more sophisticated arithmetic processing is possible. When such an external arithmetic processing device can be utilized, it is possible to execute high-speed input correction processing and halftone processing including image area separation and frequency analysis processing at high speed. By switching from 1 to more advanced processing, it becomes possible to create a high-quality copy image. In this regard, it may be switched automatically in accordance with the detection of the external arithmetic processing unit, or may be switched by an external input such as a user instruction.

1 装置本体
2 画像読取り装置(スキャナ)
32 キャリッジ
34 記録ヘッド
425 中間調処理部
501 主制御部
516 スキャナ制御部
1 device body 2 image reading device (scanner)
32 Carriage 34 Recording Head 425 Halftone Processing Unit 501 Main Control Unit 516 Scanner Control Unit

Claims (9)

閾値を用いて多階調画像を入力データよりも少ない3値以上の多値数の出力データに変換する中間調処理方法において、
前記多値数のうち最小の出力値のみで表現されるハイライト部及び前記多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、
前記最小の出力値よりも一段階以上大きい出力値であって、かつ前記最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、
入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える
ことを特徴とする画像処理方法。
In a halftone processing method for converting a multi-tone image into multi-valued output data of three or more values smaller than input data using a threshold value,
For the highlight portion expressed by only the minimum output value of the multi-value number and the shadow portion expressed only by the maximum output value of the multi-value number, a pair comparison of the input value and the threshold matrix is performed. Apply dithering to quantize,
A quantization error around the pixel of interest is added to the middle portion that is expressed by an output value that is one or more steps larger than the minimum output value and one or more steps smaller than the maximum output value. Applying an error diffusion process that performs quantization,
An image processing method, wherein the size of a dispersion threshold matrix used for error diffusion processing and dither processing is switched according to a halftone dot pitch of an input image or the presence or absence of a halftone dot.
入力画像に対して入力画像が網点画像か否かを判定する画像判定処理を行い、
前記判定処理の結果、前記入力画像が網点画像であるときには、次の第1のサイズの分散型閾値マトリクスを、前記入力画像が網点画像でないときには、次の第2のサイズの分散型閾値マトリクスを、誤差拡散処理及びディザ処理閾値として各々使用し、
前記第1のサイズ=(網点ピッチ/出力解像度ピッチ)に最も近い整数、
前記第2のサイズ=(1mm/出力解像度ピッチ)に最も近い整数、
であることを特徴とする請求項1に記載の画像処理方法。
Perform an image determination process to determine whether the input image is a halftone image for the input image,
If the input image is a halftone dot image as a result of the determination process, the next first-size distributed threshold matrix is displayed. If the input image is not a halftone image, the second second size distributed threshold matrix is displayed. Using the matrix as the error diffusion and dither threshold respectively
The first size = an integer closest to (halftone pitch / output resolution pitch),
The second size = an integer closest to (1 mm / output resolution pitch),
The image processing method according to claim 1, wherein:
前記画像判定処理は、外部からの入力又は入力画像の周波数特性に基づいて判定することを特徴とする請求項2に記載の画像処理方法。   The image processing method according to claim 2, wherein the image determination process is determined based on an external input or a frequency characteristic of the input image. 前記誤差拡散処理における量子化判定に使用する閾値マトリクスがg×h(g、hともに2以上の整数)のサイズを有し、当該閾値マトリクスのサイズ及び閾値配置順とディザ処理における閾値マトリクスのサイズ及び閾値配置順とが共通化されていることを特徴とする請求項1ないし3のいずれかに記載の画像処理方法。   The threshold matrix used for the quantization determination in the error diffusion process has a size of g × h (both g and h are integers of 2 or more), the threshold matrix size and the threshold arrangement order, and the threshold matrix size in the dither process 4. The image processing method according to claim 1, wherein the threshold arrangement order is shared. 入力値が0又は誤差拡散処理を行う階調範囲以外の場合には、ディザ処理の結果にかかわらず、着目画素の量子化誤差値を0とすることを特徴とする請求項1ないし4のいずれかに記載の画像処理方法。   5. The quantization error value of a pixel of interest is set to 0 regardless of the result of dithering when the input value is 0 or outside the gradation range where error diffusion processing is performed. An image processing method according to claim 1. 閾値を用いて多階調画像を入力データよりも少ない3値以上の多値数の出力データに変換する中間調処理を行う画像処理装置において、
前記多値数のうち最小の出力値のみで表現されるハイライト部及び前記多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、
前記最小の出力値よりも一段階以上大きい出力値であって、かつ前記最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、
入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える手段を備えている
ことを特徴とする画像処理装置。
In an image processing apparatus that performs halftone processing for converting a multi-tone image into multi-valued output data of three or more values smaller than input data using a threshold value,
For the highlight portion expressed by only the minimum output value of the multi-value number and the shadow portion expressed only by the maximum output value of the multi-value number, a pair comparison of the input value and the threshold matrix is performed. Apply dithering to quantize,
A quantization error around the pixel of interest is added to the middle portion that is expressed by an output value that is one or more steps larger than the minimum output value and one or more steps smaller than the maximum output value. Applying an error diffusion process that performs quantization,
An image processing apparatus, comprising: means for switching a size of a dispersion threshold matrix used for error diffusion processing and dither processing according to a halftone dot pitch of an input image or the presence or absence of a halftone dot.
閾値を用いて多階調画像を入力データよりも少ない3値以上の多値数の出力データに変換する中間調処理をコンピュータに行わせるプログラムにおいて、
前記多値数のうち最小の出力値のみで表現されるハイライト部及び前記多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、
前記最小の出力値よりも一段階以上大きい出力値であって、かつ前記最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、
入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える処理を前記コンピュータに行わせる
ことを特徴とするプログラム。
In a program for causing a computer to perform halftone processing for converting a multi-tone image into multi-valued output data of three or more values smaller than input data using a threshold value,
For the highlight portion expressed by only the minimum output value of the multi-value number and the shadow portion expressed only by the maximum output value of the multi-value number, a pair comparison of the input value and the threshold matrix is performed. Apply dithering to quantize,
A quantization error around the pixel of interest is added to the middle portion that is expressed by an output value that is one or more steps larger than the minimum output value and one or more steps smaller than the maximum output value. Applying an error diffusion process that performs quantization,
A program for causing the computer to perform processing for switching the size of a dispersion threshold matrix used for error diffusion processing and dithering processing in accordance with the halftone dot pitch of an input image or the presence or absence of halftone dots.
請求項7に記載のプログラムを記録したことを特徴とする記録媒体。   A recording medium on which the program according to claim 7 is recorded. 閾値を用いて多階調画像を入力データよりも少ない3値以上の多値数の出力データに変換する中間調処理を行って画像を形成する画像形成装置において、
前記多値数のうち最小の出力値のみで表現されるハイライト部及び前記多値数のうち最大の出力値のみで表現されるシャドー部に対しては、入力値と閾値マトリクスの一対比較により量子化を行うディザ処理を適用し、
前記最小の出力値よりも一段階以上大きい出力値であって、かつ前記最大の出力値より一段階以上小さい出力値で表現されるミドル部に対しては、着目画素周辺の量子化誤差を加えて量子化を行う誤差拡散処理を適用し、
入力画像の網点ピッチ又は網点の有無に応じて、誤差拡散処理及びディザ処理に使用する分散閾値マトリクスのサイズを切り換える手段を備えている
ことを特徴とする画像形成装置。
In an image forming apparatus that forms an image by performing halftone processing that converts a multi-tone image into multi-valued output data that is three or more values smaller than input data using a threshold value,
For the highlight portion expressed by only the minimum output value of the multi-value number and the shadow portion expressed only by the maximum output value of the multi-value number, a pair comparison of the input value and the threshold matrix is performed. Apply dithering to quantize,
A quantization error around the pixel of interest is added to the middle portion that is expressed by an output value that is one or more steps larger than the minimum output value and one or more steps smaller than the maximum output value. Applying an error diffusion process that performs quantization,
An image forming apparatus comprising: means for switching a size of a dispersion threshold matrix used for error diffusion processing and dither processing according to a halftone pitch of an input image or presence / absence of a halftone dot.
JP2009158269A 2009-07-02 2009-07-02 Image processing method, image processing apparatus, program, recording medium, and image forming apparatus Expired - Fee Related JP5332966B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009158269A JP5332966B2 (en) 2009-07-02 2009-07-02 Image processing method, image processing apparatus, program, recording medium, and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009158269A JP5332966B2 (en) 2009-07-02 2009-07-02 Image processing method, image processing apparatus, program, recording medium, and image forming apparatus

Publications (2)

Publication Number Publication Date
JP2011015241A true JP2011015241A (en) 2011-01-20
JP5332966B2 JP5332966B2 (en) 2013-11-06

Family

ID=43593666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009158269A Expired - Fee Related JP5332966B2 (en) 2009-07-02 2009-07-02 Image processing method, image processing apparatus, program, recording medium, and image forming apparatus

Country Status (1)

Country Link
JP (1) JP5332966B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10462331B2 (en) 2018-01-16 2019-10-29 Seiko Epson Corporation Image processing method and apparatus, and printing apparatus, with dither result application level control

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6182577A (en) * 1984-09-29 1986-04-26 Toshiba Corp Picture recording device
JPS62256572A (en) * 1986-04-30 1987-11-09 Toshiba Corp Picture processor
JPS63288565A (en) * 1987-05-21 1988-11-25 Canon Inc Image processor
JPS63308473A (en) * 1987-06-10 1988-12-15 Canon Inc Picture processor
JPH02266390A (en) * 1989-04-07 1990-10-31 Kineo Matsui Method for mixing data with image
JPH0435262A (en) * 1990-05-28 1992-02-06 Ricoh Co Ltd Facsimile equipment
JPH06253133A (en) * 1993-03-02 1994-09-09 Matsushita Graphic Commun Syst Inc Picture processing device
JPH1188665A (en) * 1997-09-04 1999-03-30 Minolta Co Ltd Image processor
JP2002223356A (en) * 2001-01-24 2002-08-09 Ricoh Co Ltd Image forming device
JP2003189099A (en) * 2001-12-20 2003-07-04 Ricoh Co Ltd Image processing apparatus
JP2005039483A (en) * 2003-07-18 2005-02-10 Ricoh Co Ltd Apparatus and method for image processing, and program for making computer execute the method
JP2009049688A (en) * 2007-08-20 2009-03-05 Ricoh Co Ltd Image processing method, image processing device, image forming device, image forming system, program, and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6182577A (en) * 1984-09-29 1986-04-26 Toshiba Corp Picture recording device
JPS62256572A (en) * 1986-04-30 1987-11-09 Toshiba Corp Picture processor
JPS63288565A (en) * 1987-05-21 1988-11-25 Canon Inc Image processor
JPS63308473A (en) * 1987-06-10 1988-12-15 Canon Inc Picture processor
JPH02266390A (en) * 1989-04-07 1990-10-31 Kineo Matsui Method for mixing data with image
JPH0435262A (en) * 1990-05-28 1992-02-06 Ricoh Co Ltd Facsimile equipment
JPH06253133A (en) * 1993-03-02 1994-09-09 Matsushita Graphic Commun Syst Inc Picture processing device
JPH1188665A (en) * 1997-09-04 1999-03-30 Minolta Co Ltd Image processor
JP2002223356A (en) * 2001-01-24 2002-08-09 Ricoh Co Ltd Image forming device
JP2003189099A (en) * 2001-12-20 2003-07-04 Ricoh Co Ltd Image processing apparatus
JP2005039483A (en) * 2003-07-18 2005-02-10 Ricoh Co Ltd Apparatus and method for image processing, and program for making computer execute the method
JP2009049688A (en) * 2007-08-20 2009-03-05 Ricoh Co Ltd Image processing method, image processing device, image forming device, image forming system, program, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10462331B2 (en) 2018-01-16 2019-10-29 Seiko Epson Corporation Image processing method and apparatus, and printing apparatus, with dither result application level control

Also Published As

Publication number Publication date
JP5332966B2 (en) 2013-11-06

Similar Documents

Publication Publication Date Title
JP4825180B2 (en) Image processing method, image processing apparatus, image forming apparatus, image forming system, program, and storage medium
JP5146424B2 (en) Image processing apparatus, image processing method, program, recording medium, printing system, and image forming apparatus
US7701612B2 (en) Image processing method, program and apparatus having plural halftoning methods including error diffusion using a larger number of bits
JP5369851B2 (en) Image processing apparatus, image processing method, computer-executable program, and computer-readable recording medium
US7660016B2 (en) Image-processing apparatus, an image-forming apparatus, and a program
KR101012449B1 (en) Image processing apparatus, recording medium recording a program, image forming apparatus, image forming method, and dither matrix
US8388092B2 (en) Image forming apparatus and image forming method
JP5436138B2 (en) Image processing apparatus, image processing method, and program
JP5407602B2 (en) Image processing apparatus, image processing method, computer-executable program, and computer-readable recording medium
JP2006173929A (en) Image processing method, program, image processing apparatus, and image forming apparatus
JP5262485B2 (en) Image processing apparatus, image processing method, program, recording medium, printing system, and image forming apparatus
JP5332966B2 (en) Image processing method, image processing apparatus, program, recording medium, and image forming apparatus
JP5517589B2 (en) Image processing apparatus, image processing method, and program
JP7343832B2 (en) Control device, computer program, and method for controlling printing device
JP2005205685A (en) Image processing device and method
CN109484027B (en) Image processing apparatus, printing apparatus, control method, and storage medium
JP2010068497A (en) Image processor, image processing method, program, recording medium, printing system, and image forming apparatus
JP2009049690A (en) Image processing method, image processing device, image forming device, image forming system, program and storage medium
KR100822466B1 (en) An image-processing apparatus, an image-forming apparatus, and a program
JP2010074325A (en) Image processor, image processing method, program, recording medium, print system, and image formation device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120517

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130610

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130702

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130715

LAPS Cancellation because of no payment of annual fees