JP2945022B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2945022B2
JP2945022B2 JP1049399A JP4939989A JP2945022B2 JP 2945022 B2 JP2945022 B2 JP 2945022B2 JP 1049399 A JP1049399 A JP 1049399A JP 4939989 A JP4939989 A JP 4939989A JP 2945022 B2 JP2945022 B2 JP 2945022B2
Authority
JP
Japan
Prior art keywords
image
image data
error
mode
data
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.)
Expired - Lifetime
Application number
JP1049399A
Other languages
Japanese (ja)
Other versions
JPH02228176A (en
Inventor
宏一 賀門
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 JP1049399A priority Critical patent/JP2945022B2/en
Publication of JPH02228176A publication Critical patent/JPH02228176A/en
Application granted granted Critical
Publication of JP2945022B2 publication Critical patent/JP2945022B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、デジタル複写機、ファクシミリ、プリン
タ、ファイリング用媒体等に画像データを出力するため
の画像処理装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for outputting image data to a digital copying machine, a facsimile, a printer, a filing medium, and the like.

従来の技術 原稿上の画像をCCDイメージセンサ等の光電変換素子
を有する光学読取部により読み取る場合、文字画像は解
像力の向上が要求され、写真画像は階調性が重視されて
いる。このため、画像データを2値化する時に、文字画
像、転写画像、文字写真混在画像等、画像の種類により
画像処理方法のモードを変えている。
2. Description of the Related Art When an image on a document is read by an optical reading unit having a photoelectric conversion element such as a CCD image sensor, the resolution of a character image is required to be improved, and the gradation of a photographic image is emphasized. For this reason, when binarizing image data, the mode of the image processing method is changed depending on the type of image, such as a character image, a transfer image, and a mixed text / photo image.

発明が解決しようとする課題 文字写真混在の画像の場合は文字と写真との比率、写
真の大きさ、網点の大きさやピッチ等が変化する。この
ため、最も適した画像処理のモードがなく、画質が劣る
問題がある。
Problems to be Solved by the Invention In the case of an image in which characters and photographs are mixed, the ratio between the characters and the photograph, the size of the photograph, the size of the halftone dot, the pitch, etc. change. Therefore, there is no most suitable image processing mode, and there is a problem that the image quality is inferior.

課題を解決するための手段 入力された画像データに画像処理をして出力する画像
処理装置において、文字画像モード・転写画像モード・
文字写真画像モードのうち1つを選択する画像モード選
択手段と、ディザ閾値と固定閾値との一方を選択して入
力された画像データを2値化する2値化手段と、画像デ
ータを2値化する際の誤差を分散する誤差分散手段と、
前記文字画像モード・写真画像モード・文字写真画像モ
ードの各々に対し前記2値化手段の一方と前記誤差分散
手段の要否の一方とを組み合わせた複数の設定が予めな
されて操作により1つが選択される設定テーブルとを備
え、前記画像モード選択手段により選択されたモードに
対し、前記設定テーブルにて選択されている設定に応じ
て前記2値化手段と誤差分散手段とが動作することを特
徴とする。
Means for Solving the Problems In an image processing apparatus that performs image processing on input image data and outputs the image data, a character image mode, a transfer image mode,
Image mode selecting means for selecting one of the character photograph image modes, binarizing means for selecting one of the dither threshold and fixed threshold to binarize input image data, and binarizing the image data Error dispersing means for dispersing an error at the time of
A plurality of settings combining one of the binarizing means and one of the necessity of the error dispersing means are made in advance for each of the character image mode, the photograph image mode, and the character photograph image mode, and one is selected by an operation. And a binarizing unit and an error dispersing unit that operate in accordance with the setting selected in the setting table for the mode selected by the image mode selecting unit. And

作用 文字写真混在の画像に対し、文字が多ければ固定閾値
による2値化により解像度を高め、写真が多ければディ
ザ閾値による2値化により階調性を高めることができ、
かつ、2値化する際に画像データの誤差の分散の要否を
選択することもできるため、モアレ縞の発生を押さえ、
画像の種類に応じて条件のよい画像処理を行うことがで
きる。
For images with mixed text and photos, if there are many characters, the resolution can be increased by binarization using a fixed threshold, and if there are many photos, the gradation can be improved by binarization using a dither threshold.
In addition, when binarizing, it is possible to select whether or not it is necessary to disperse the error of the image data.
Image processing with good conditions can be performed according to the type of image.

実施例 本発明の一実施例を図面に基づいて説明する。第5図
は原稿読取装置の内部を示す側面図で、図中、1は原稿
を載せるコンタクトガラス、2は原稿読取部である。こ
の原稿読取部2は、原稿を照明する光源3とミラー4と
を有するキャリア5と、ミラー6,7を有するキャリア8
とをコンタクトガラス1に沿う副走査方向に移動させ、
原稿の画像をミラー4,6,7と固定的に配置したミラー9,1
0とで反射させ、結像レンズ11により光電変換素子であ
るCCDイメージセンサ12に結像するものである。
Embodiment An embodiment of the present invention will be described with reference to the drawings. FIG. 5 is a side view showing the inside of the document reading apparatus. In the figure, reference numeral 1 denotes a contact glass on which a document is placed, and reference numeral 2 denotes a document reading unit. The original reading unit 2 includes a carrier 5 having a light source 3 for illuminating the original and a mirror 4, and a carrier 8 having mirrors 6 and 7.
Are moved in the sub-scanning direction along the contact glass 1,
Mirrors 9,1 in which the original image is fixedly arranged with mirrors 4,6,7
The light is reflected at 0, and an image is formed on the CCD image sensor 12, which is a photoelectric conversion element, by the imaging lens 11.

第6図はレーザープリレンタPの内部を示す側面図で
ある。このレーザープリンタPの筐体13の中央部には感
光体14が回転自在に装着されている。また、筐体13の上
部には、レーザー発光ユニット15から発光されるレーザ
ー光を結像レンズ16とミラー17とを介して感光体14の外
周に走査する露光装置18が装着されている。さらに、感
光体24の周囲には、感光体14の外周を帯電させる帯電チ
ャージャ19と、この帯電チャージャ19により帯電された
部分に露光装置18によってレーザー光を走査することに
より形成された静電潜像を現像する現像ユニット20と、
この現像ユニット20により現像されたトナー像を用紙に
転写する転写チャージャ21と、感光体14から用紙を分離
させる分離チャージャ22及び分離爪23と、感光体14上の
残存トナーを払拭するクリーニングユニット24とが配列
されている。さらに、筐体13には、転写後の用紙を搬送
する回転自在のベルト25と、用紙を挾持して転写画像を
定着する定着ローラ26とが取付けられている。
FIG. 6 is a side view showing the inside of the laser pre-renter P. A photoconductor 14 is rotatably mounted at the center of a housing 13 of the laser printer P. Further, an exposure device 18 that scans the outer periphery of the photoconductor 14 with laser light emitted from the laser light emitting unit 15 via the imaging lens 16 and the mirror 17 is mounted on an upper portion of the housing 13. Further, around the photoreceptor 24, a charging charger 19 for charging the outer periphery of the photoreceptor 14, and an electrostatic latent formed by scanning the portion charged by the charging charger 19 with a laser beam by the exposure device 18 are used. A developing unit 20 for developing an image,
A transfer charger 21 for transferring the toner image developed by the developing unit 20 onto a sheet, a separation charger 22 and a separation claw 23 for separating the sheet from the photoconductor 14, and a cleaning unit 24 for wiping residual toner on the photoconductor 14 And are arranged. Further, the housing 13 is provided with a rotatable belt 25 for transporting the transferred paper and a fixing roller 26 for holding the paper and fixing the transferred image.

次に、画像処理回路を第1図のブロック図に示す。前
記画像読取部2の前記CCDイメージセンサ12はセンサド
ライバ27により駆動されるもので、このCCDイメージセ
ンサ12の出力側は、増幅器28とA/D変換部29とシェーデ
ィング補正部30とを介してフィルタ処理部31に接続され
ている。このフィルタ処理部31は、文字画像モード、写
真画像モード、文字写真画像モード等、三種の読取モー
ドに合わせて周波数特性を変換する三種の空間フィルタ
32,33,34を前記シェーディング補正部30に並列に接続し
たもので、空間フィルタ32は文字画像モードに対応し解
像力を高めるようにハイ・パス・フィルタを用いてい
る。この空間フィルタ32の周波数特性は、理想的には画
像読取部2を含む入力系のMTFを表す入力系周波数の逆
関数になればよいが、実際にはノイズ成分に対する考慮
が必要であるため逆関数よりも補正量の少ないMTF補正
を行うフィルタが採用されている。次の空間フィルタ33
は写真画像モードに対応し階調性を重要視するためロー
・パス・フィルタが採用されている。この空間フィルタ
33の周波数特性は、解像力をできるだけ落さずに網点原
稿(133〜175線/inch)に対して出力画像にモアレ縞を
発生させない周波数特性が選択されている。他の空間フ
ィルタ34は、文字と写真とが混在する文字写真画像モー
ドに対応し、前記空間フィルタ32,33の中間の特性を示
すフィルタが選択されている。例えば、空間フィルタ32
よりも補正量が少ないハイ・パス・フィルタ、又は空間
フィルタ33よりも高い周波数のデータまで通すロー・パ
ス・フィルタ、或いはノイズ成分のうちナイキスト周波
数に近い分だけを少し抑えるようなロー・パス・フィル
タ等が例として上げられる。さらには、文字写真画像モ
ードに対応させるために、空間フィルタ34を省略してシ
ェーディング補正部30を通過したデータを直に通過させ
てもよい。
Next, the image processing circuit is shown in the block diagram of FIG. The CCD image sensor 12 of the image reading unit 2 is driven by a sensor driver 27, and the output side of the CCD image sensor 12 is connected via an amplifier 28, an A / D conversion unit 29, and a shading correction unit 30. It is connected to the filter processing unit 31. The filter processing unit 31 includes three types of spatial filters that convert frequency characteristics according to three types of reading modes such as a character image mode, a photo image mode, and a text / photo image mode.
32, 33, and 34 are connected in parallel to the shading correction unit 30, and the spatial filter 32 uses a high-pass filter so as to correspond to the character image mode and increase the resolving power. Ideally, the frequency characteristic of the spatial filter 32 should be an inverse function of the input system frequency representing the MTF of the input system including the image reading unit 2, but in practice it is necessary to consider noise components. A filter that performs MTF correction with a smaller correction amount than the function is employed. Next spatial filter 33
Employs a low-pass filter in correspondence with the photographic image mode to emphasize the gradation. This spatial filter
As the frequency characteristic of 33, a frequency characteristic that does not cause moire fringes in an output image with respect to a halftone original (133 to 175 lines / inch) without reducing the resolution as much as possible is selected. The other spatial filter 34 corresponds to a character / photograph image mode in which characters and photographs are mixed, and a filter having an intermediate characteristic between the spatial filters 32 and 33 is selected. For example, spatial filter 32
A high-pass filter with a smaller correction amount than that, a low-pass filter that passes data with a frequency higher than that of the spatial filter 33, or a low-pass filter that slightly suppresses noise components close to the Nyquist frequency. A filter is given as an example. Further, in order to correspond to the character / photograph image mode, the spatial filter 34 may be omitted and the data that has passed through the shading correction unit 30 may be directly passed.

このようなフィルタ処理部31の各空間フィルタ32,33,
34には画像モード選択手段であるセレクタ35が接続さ
れ、このセレクタ35の出力側には主走査変倍部36とγ変
換部37とが順次接続されている。前記セレクタ35は、操
作者が操作パネル上で読取モードに応じて選択する手
段、又は、原稿読取装置1自体が原稿情報から読取モー
ドを自動的に判別するもの、或いは、レーザープリンタ
やファクシミリやディスク等のファイル装置等の読取画
像データの出力先によって選択するもの等を含むもので
ある。
Each spatial filter 32, 33,
The selector 34 is connected to a selector 35 serving as an image mode selection means, and an output side of the selector 35 is sequentially connected to a main scanning scaling unit 36 and a γ conversion unit 37. The selector 35 is a means for an operator to select a reading mode on an operation panel according to a reading mode, or a device in which the document reading apparatus 1 itself automatically determines a reading mode from document information, or a laser printer, a facsimile or a disk. And the like depending on the output destination of the read image data such as a file device.

前記γ変換部37はコピー濃度調整に相当するように画
像データを変換するもので、このγ変換部37には、画像
データを2値化する2値化手段38と、1画素当り10の値
で画像データをPWM変調するPWMコード化手段39と、画像
データの誤差を分散する誤差分散手段40とが並列に接続
されている。さらに、前記2値化手段38の2値化方法
を、固定閾値41による方法又はディザ閾値42による方法
の何れかに選択する2値化方法選択手段であるセレクタ
43が設けられている。
The γ-conversion unit 37 converts image data so as to correspond to copy density adjustment. The γ-conversion unit 37 includes a binarization unit 38 for binarizing the image data and a value of 10 per pixel. And a PWM encoding means 39 for PWM-modulating the image data, and an error dispersing means 40 for dispersing an error in the image data are connected in parallel. Further, a selector, which is a binarization method selection unit for selecting the binarization method of the binarization unit 38 into one of a method using a fixed threshold 41 and a method using a dither threshold 42
43 are provided.

次いで、前記誤差分散手段40の詳細を第2図のブロッ
ク図に示す。この図で明らかなように、画像データを入
力する複数のラッチ44,45,46と加算器47,48,49とが交互
に直列に接続され、加算器49の出力側にメモリ50が接続
されている。このメモリ50にラッチ51を介して接続され
た加算器52の出力側は前記加算器47,48,49に並列に接続
され、この加算器52の出力側はリミッタ53を介して比較
器54と加算器55とセレクタ56とに並列に接続され、この
加算器55はセレクタ56とラッチ57とを介して前記加算器
49の入力側に接続されている。前記比較器35は設定され
た閾値THと画像データとを比較して画像データを2値化
する2値化手段38の一部を構成するものである。
Next, details of the error dispersion means 40 are shown in the block diagram of FIG. As is clear from this figure, a plurality of latches 44, 45, 46 for inputting image data and adders 47, 48, 49 are alternately connected in series, and a memory 50 is connected to the output side of the adder 49. ing. The output side of an adder 52 connected to the memory 50 via a latch 51 is connected in parallel to the adders 47, 48, 49, and the output side of the adder 52 is connected to a comparator 54 via a limiter 53. An adder 55 and a selector 56 are connected in parallel, and the adder 55 is connected to the adder 55 via a selector 56 and a latch 57.
Connected to 49 inputs. The comparator 35 constitutes a part of a binarizing means 38 for comparing the set threshold value TH with the image data to binarize the image data.

このような構成において、画像読取装置1は主走査及
び副走査方向に16画素/mmの密度で原稿の画像を読み取
る。CCDイメージセンサ12から出力されたデータは増幅
器28に増幅され、続いて、A/D変換部29により1画素当
り64階調の階調数をもってデジタルデータに変換され
る。この時の階調数は2のn乗で、nビットのバイナリ
信号として取り扱う。本実施例では6ビットデータで、
その後、光源3の照度ムラ、CCDイメージセンサ12の感
度のバラツキ等がシェーディング補正部30により補正さ
れ、続いて、フィルタ処理部31を通過する。この時、読
み取られる画像の種類に応じてセレクタ35によりフィル
タ処理部31を通過した信号系統が選択される。すなわ
ち、読取モードが文字画像モードか写真画像モードか文
字写真画像モードかが判別される。
In such a configuration, the image reading apparatus 1 reads an image of a document at a density of 16 pixels / mm in the main scanning and sub-scanning directions. The data output from the CCD image sensor 12 is amplified by the amplifier 28, and subsequently converted into digital data by the A / D converter 29 with 64 gradations per pixel. At this time, the number of gradations is 2 to the power of n and is handled as an n-bit binary signal. In this embodiment, 6-bit data is used.
Thereafter, the shading correction unit 30 corrects the illuminance unevenness of the light source 3 and the variation of the sensitivity of the CCD image sensor 12, and then passes through the filter processing unit 31. At this time, the signal system that has passed through the filter processing unit 31 is selected by the selector 35 according to the type of the image to be read. That is, it is determined whether the reading mode is the character image mode, the photograph image mode, or the character photograph image mode.

判別された画像データは主走査変倍部36で変倍され
る。変倍方法には次に列挙するものがある。
The determined image data is scaled by the main scanning scaling unit 36. The following magnification methods are listed.

画像読取装置1のレンズを含めた光学系の縮小率を変
えることによる主走査方向の変倍と、光学系の移動速度
を変えることにより副走査方向の読取密度を変える変
倍。
Zooming in the main scanning direction by changing the reduction ratio of the optical system including the lens of the image reading device 1 and zooming in which the reading density in the sub-scanning direction is changed by changing the moving speed of the optical system.

等倍時の画像データを用いて変倍時のサンプリング点
での画像データを補間演算によって求める主走査方向の
変倍と、前項と同様の副走査方向の変倍。
Magnification in the main scanning direction in which image data at a sampling point at the time of zooming is obtained by interpolation using image data at the same magnification, and zooming in the sub-scanning direction as in the preceding paragraph.

等倍時の画像データを使って主副走査同時に2次元の
補間を行うことによる変倍。
Magnification by performing two-dimensional interpolation simultaneously with main and sub scanning using image data at the same magnification.

本実施例における変倍は上記による変倍である。 The scaling in this embodiment is the scaling described above.

続いて、変倍された画像データはγ変換部37により変
換される。この変換は、デジタル複写機やファクシミリ
等においてコピーの濃度を変える操作に相当するもの
で、2値化する際の閾値を変えることにより濃度調整す
ることもあるが、本実施例においては、画像データ自体
を変換テーブルによって操作者或いは装置自体が選択し
た濃度に対応させて変換する。γ変換部37により変換さ
れた画像データは2値化手段38により黒又は白に2値化
される。2値化の方法はセレクタ43の選択によりなされ
る。この選択の結果は表1に示す通りである。
Subsequently, the scaled image data is converted by the γ conversion unit 37. This conversion corresponds to an operation of changing the density of a copy in a digital copying machine, a facsimile, or the like. In some cases, the density is adjusted by changing a threshold value for binarization. It converts itself according to the density selected by the operator or the device itself by the conversion table. The image data converted by the γ conversion unit 37 is binarized by a binarization unit 38 into black or white. The binarization method is performed by selecting the selector 43. The result of this selection is as shown in Table 1.

表1において、読取モードが同一でも、選択番号によ
っては、誤差分散不要と誤差分散要との選択がなされ
る。この選択番号の選択はディップスイッチ(図示せ
ず)又は操作パネル(図示せず)の操作によりなされ
る。画像の網目の細かさに比べ画像の走査線を細かくし
ないと、いわゆるモアレ縞が生じて画像が劣化するの
で、このような場合は誤差分散を行う。第3図はCCDイ
メージセンサ28の走査を主走査方向とし、画像読取部2
の光学系の移動方向を副走査方向とし、画像データの誤
差を分散する状態を示す説明図である。ここでは1桝を
1画素とした複数の画素を示すが、2値化の際の誤差Er
は図中の矢印方向に隣接する4つの画素に配分する。配
分のための重み付けはシステム個々によって種々考えら
れ、配分する方法も周囲すべての画素に配分する等幾つ
かあるが、本実施例においては第3図の矢印で示すよう
に1/4ずつ配分する。また、画素は或る閾値を境に
「1」又は「0」に2値化され、本実施例のように64階
調(0〜63)とした場合は、閾値を32とした時に、0〜
31が「0」、32〜63が「1」である。2値の「0」と
「1」とが64階調のどのレベルであるかを決め、その値
をそれぞれth0、th1とし、これらのth0、th1の設定によ
り画像データの誤差Erの意味が変わる。すなわち、誤差
Erは、画像データdを2値化した結果が「0」の場合で
Er=d−th1、「1」の場合でEr=d−th1とする。th0
=0、th=63が一般的な考えであるが、画像読取装置に
よって、或いは、考え方によって異なる設定をする。本
実施例においては、th0=0、th=47とした。
In Table 1, even if the reading mode is the same, depending on the selection number, the selection between the unnecessary error dispersion and the required error dispersion is made. The selection of the selection number is made by operating a dip switch (not shown) or an operation panel (not shown). If the scanning lines of the image are not finer than the fineness of the mesh of the image, so-called moiré fringes are generated and the image is deteriorated. In such a case, error dispersion is performed. FIG. 3 shows the scanning of the CCD image sensor 28 as the main scanning direction,
FIG. 4 is an explanatory diagram showing a state in which an error of image data is dispersed by setting a moving direction of the optical system as a sub-scanning direction. Here, a plurality of pixels are shown with one cell as one pixel, but an error Er at the time of binarization is shown.
Are allocated to four pixels adjacent in the direction of the arrow in the figure. There are various weights for distribution depending on each system, and there are some distribution methods such as distribution to all surrounding pixels, but in this embodiment, distribution is performed in quarters as indicated by arrows in FIG. . In addition, the pixel is binarized to “1” or “0” at a certain threshold, and when 64 tones (0 to 63) as in this embodiment, when the threshold is set to 32, 0 ~
31 is “0” and 32 to 63 are “1”. It decides which level of the 64 gradations the binary “0” and “1” are, and sets the values to th0 and th1, respectively. The meaning of the error Er of the image data changes depending on the setting of these th0 and th1. . That is, the error
Er indicates that the binarization result of the image data d is “0”.
Er = d-th1, Er = d-th1 in the case of "1". th0
= 0, th = 63 is a general idea, but different settings are made depending on the image reading device or the idea. In this embodiment, th0 = 0 and th = 47.

第2図において、ラッチ44に入力されるデータは画像
データで、第3図に示す下段の画像データが入力された
とすると、この画像データは転送クロックDCKにより次
々にラッチ44,45,46によってラッチされ、ラッチされる
度に前ラインから発生した誤差Erが分散され、この誤差
Erが加算器47,48,49により加算される。3回にわたって
誤差Erを加算された画像データはメモリ50に格納され
る。誤差Erは正負あるので、この画像データは符号付き
のデータである。
In FIG. 2, the data input to the latch 44 is image data. If the lower image data shown in FIG. 3 is input, this image data is latched by the latches 44, 45, 46 one after another by the transfer clock DCK. Each time the data is latched, the error Er generated from the previous line is dispersed, and this error
Er is added by the adders 47, 48, and 49. The image data to which the error Er has been added three times is stored in the memory 50. Since the error Er is positive or negative, this image data is signed data.

1ラインの走査が終わり次のラインを走査すると、メ
モリ50に格納された画像データが順次呼び出され、1画
素前の画像データから生じた誤差Erが加算器52により加
算される。この時点でその画像データは合計4回誤差Er
を付加されることになり、このため、0〜63の階調数外
になることがあるので、リミッタ53により0〜63の範囲
に戻される。すなわち、画像データ<0の時は画像デー
タ=0に設定され、画像データ>63の時は画像データ=
63に設定される。そして、比較器54により設定された閾
値THで2値化を行い、2値化の結果からEr=画像データ
(2値化「0」)か、又は、Er=画像データー47(2値
化「1」)からセレクタ56で選択し、この期差Erを1/4
ずつ周囲の画素に分散させる。ここでセレクタ56により
Er=0を選択すれば、誤差分散を不要にすることができ
る。すなわち、第2図は誤差分散手段40のブロック図を
示すものであるが、この誤差分散手段40中の誤差分散手
段40の実行を選択するセレクタ56が分散処理選択手段と
して接続されている。
When the scanning of one line is completed and the next line is scanned, the image data stored in the memory 50 is sequentially called, and an error Er generated from the image data of one pixel before is added by the adder 52. At this point, the image data has a total of four errors Er.
Is added, and therefore, the number of gradations may be out of the range of 0 to 63. Therefore, the limiter 53 returns the gradation to the range of 0 to 63. That is, when image data <0, image data = 0 is set, and when image data> 63, image data =
Set to 63. Then, binarization is performed using the threshold value TH set by the comparator 54, and from the binarization result, Er = image data (binary “0”) or Er = image data−47 (binarization “ 1)) with the selector 56, and this time difference Er is 1/4
Are distributed to surrounding pixels. Here the selector 56
If Er = 0 is selected, error variance can be eliminated. That is, FIG. 2 is a block diagram of the error dispersing means 40, and a selector 56 for selecting execution of the error dispersing means 40 in the error dispersing means 40 is connected as distribution processing selecting means.

次に、多値書き込みに対応した多値データ処理につい
て説明する。レーザープリンタはかつて一つの画素がす
べて黒か白かの再生しか出来なかったが、近来は一つの
画素について複数の階調表現をする方法が提案されてい
る。レーザープリンタのレーザーダイオードを駆動する
パルス信号のパルス幅を制御することによって1画素の
階調性をもたせるようにしたPWMもその一方法である。
本実施例においては、PWMコード化手段39により、プリ
ンタ側の書き込みを実施する。すなわち、第1図におけ
るγ変換部37で変換された画像データは、2値化手段38
へのパスとは別にPWMコード化手段39に送られ、ここで
コード化される。コード化とは、レーザーダイオードを
駆動するためのパルスそのものを生成することではな
く、所望のパルス幅に対応する数値データに変換するこ
とである。このデータを受けたレーザープリンタPが実
際にレーザーダイオードを駆動するためのパルスを生成
する。
Next, multi-value data processing corresponding to multi-value writing will be described. In the past, laser printers could only reproduce black or white for one pixel, but recently a method of expressing a plurality of gradations for one pixel has been proposed. One of the methods is a PWM in which a pulse width of a pulse signal for driving a laser diode of a laser printer is controlled so that one pixel has gradation.
In the present embodiment, the writing on the printer side is performed by the PWM coding means 39. That is, the image data converted by the γ conversion unit 37 in FIG.
The path is sent to the PWM coding means 39 separately from the path to and is coded there. Coding does not mean generating the pulse itself for driving the laser diode, but converting it into numerical data corresponding to a desired pulse width. The laser printer P receiving this data generates a pulse for actually driving the laser diode.

したがって、レーザープリンタPには2値化手段38で
2値化された画像データDA2と、PWMコード化手段39でコ
ード化された画像データDAMとが並行して送られるが共
存はしない。すなわち、画像データの一方が有効な時は
他方が無効となり、信号ラインの出力はハイインピーダ
ンス、或いは、「1」「0」の何方かのレベルに固定さ
れる。このことによって、プリンタ側では2値データも
多値データも受けることができる。例えば、多値コード
を3ビットとし、無効となるデータを「0」に固定する
ようにし、「111」を全部黒、「000」を全部白とし、そ
の間を中間調としてコードを設定すれば、第4図に示す
ように、2値化手段38からの2値データDA2を三つのOR
ゲート58のそれぞれに接続し、PWMコード化手段39から
の多値データDAMをビット毎にORゲート58のそれぞれに
接続することにより、2値データDA2と多値データDAMと
を合成することもできる。2値化処理も多値化処理も本
実施例による簡単な構成で行うことができる。
Accordingly, the image data DA2 binarized by the binarization unit 38 and the image data DAM encoded by the PWM encoding unit 39 are sent to the laser printer P in parallel, but do not coexist. That is, when one of the image data is valid, the other is invalid, and the output of the signal line is fixed to a high impedance or any level of “1” or “0”. Thus, the printer can receive both binary data and multivalued data. For example, if a multi-level code is set to 3 bits, invalid data is fixed to “0”, “111” is all black, “000” is all white, and a code is set with halftone between them. As shown in FIG. 4, the binary data DA2 from the binarizing means 38 is divided into three ORs.
The binary data DA2 and the multi-value data DAM can also be synthesized by connecting the multi-value data DAM from the PWM coding means 39 to each of the OR gates 58 on a bit-by-bit basis. . Both the binarization processing and the multi-value processing can be performed with a simple configuration according to the present embodiment.

以上のように、画像読取部2で読み取った画像データ
を2値化して出力する時に、セレクタ35によりフィルタ
処理部31を通る信号系統を画像の種類に応じて選択する
ことができ、さらに、画像の種類に応じてセレクタ43に
より固定閾値で2値化する方法又はディザ閾値による2
値化方法の何れかに選択することができる。したがっ
て、表1に示すように、文字写真画像を読み取る場合、
文字が多ければ固定閾値による2値化方法で2値化する
ことにより解像度を高め、写真が多ければディザ閾値に
よる2値化方法により階調性を高めることができる。し
かも、2値化する際に画像データの誤差Erを分散するか
否かをセレクタ57により選択することができ、したがっ
て、モアレ縞の発生を押え、画像の種類に合わせて条件
の良い画像処理方式を採用することができる。
As described above, when the image data read by the image reading unit 2 is binarized and output, the signal system passing through the filter processing unit 31 can be selected by the selector 35 according to the type of the image. Method using a fixed threshold value by the selector 43 according to the type of
You can choose any of the valuation methods. Therefore, as shown in Table 1, when reading a text photograph image,
If the number of characters is large, the resolution can be increased by binarizing the image with a fixed threshold, and if the number of photographs is large, the gradation can be enhanced by the binarizing method with a dither threshold. Moreover, it is possible to select whether or not to disperse the error Er of the image data at the time of binarization by the selector 57. Therefore, it is possible to suppress the occurrence of moiré fringes and to provide an image processing method with good conditions according to the type of image. Can be adopted.

発明の効果 本発明は上述のように、入力された画像データに画像
処理をして出力する画像処理装置において、文字画像モ
ード・転写画像モード・文字写真画像モードのうち1つ
を選択する画像モード選択手段と、ディザ閾値と固定閾
値との一方を選択して入力された画像データを2値化す
る2値化手段と、画像データを2値化する際の誤差を分
散する誤差分散手段と、前記文字画像モード・転写画像
モード・文字写真画像モードの各々に対し前記2値化手
段の一方と前記誤差分散手段の要否の一方とを組み合わ
せた複数の設定が予めなされて操作により1つが選択さ
れる設定テーブルとを備え、前記画像モード選択手段に
より選択されたモードに対し、前記設定テーブルにて選
択されている設定に応じて前記2値化手段と誤差分散手
段とが動作するようにしたので、文字写真混在の画像に
対し、文字が多ければ固定閾値による2値化により解像
度を高め、写真が多ければディザ閾値による2値化によ
り階調性を高めることができ、かつ、2値化する際に画
像データの誤差の分散の要否を選択することもできるた
め、モアレ縞の発生を押さえ、画像の種類に応じて条件
のよい画像処理を行うことができる等の効果を有する。
Advantageous Effects of Invention As described above, the present invention provides an image processing apparatus that performs image processing on input image data and outputs the image data, and selects one of a character image mode, a transfer image mode, and a character photograph image mode. Selecting means, binarizing means for selecting one of the dither threshold value and fixed threshold value and binarizing the input image data, and error dispersing means for dispersing an error in binarizing the image data; For each of the character image mode, the transfer image mode, and the character photograph image mode, a plurality of settings combining one of the binarizing means and one of the necessity of the error dispersing means are made in advance, and one is selected by operation. And a binarizing unit and an error dispersing unit that operate in accordance with the setting selected in the setting table for the mode selected by the image mode selecting unit. For images with mixed text and photos, the resolution can be increased by binarization with a fixed threshold if the number of characters is large, and the gradation can be enhanced by binarization with a dither threshold if the number of characters is large. In addition, when binarizing, it is possible to select whether or not it is necessary to disperse the error of the image data, so that the occurrence of moiré fringes can be suppressed, and image processing with good conditions can be performed according to the type of image. Has an effect.

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

図面は本発明の一実施例を示すもので、第1図は画像処
理回路を示すブロック図、第2図は誤差分散手段及び分
散処理選択手段の電子回路を示すブロック図、第3図は
画像データの誤差を周囲の画素に配分する状態を示す説
明図、第4図は2値データと多値データとの出力ゲート
を示す回路図、第5図は画像読取装置の内部を示す側面
図、第6図はレーザープリンタの内部を示す側面図であ
る。 2……画像読取部、12……光電変換素子、31……フィル
タ処理部、32〜34……空間フィルタ、35……画像モード
選択手段、38……2値化手段、40……誤差分散手段、43
……2値化方法選択手段、56……分散処理選択手段
1 shows an embodiment of the present invention. FIG. 1 is a block diagram showing an image processing circuit, FIG. 2 is a block diagram showing an electronic circuit of error dispersion means and dispersion processing selection means, and FIG. FIG. 4 is an explanatory diagram showing a state in which data errors are distributed to surrounding pixels, FIG. 4 is a circuit diagram showing output gates for binary data and multi-value data, FIG. 5 is a side view showing the inside of the image reading device, FIG. 6 is a side view showing the inside of the laser printer. 2 image reading unit 12 photoelectric conversion element 31 filter processing unit 32 to 34 spatial filter 35 image mode selection unit 38 binarization unit 40 error variance Means, 43
... Binarization method selection means, 56... Distributed processing selection means

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力された画像データに画像処理をして出
力する画像処理装置において、文字画像モード・写真画
像モード・文字写真画像モードのうち1つを選択する画
像モード選択手段と、ディザ閾値と固定閾値との一方を
選択して入力された画像データを2値化する2値化手段
と、画像データを2値化する際の誤差を分散する誤差分
散手段と、前記文字画像モード・写真画像モード・文字
写真画像モードの各々に対し前記2値化手段の一方と前
記誤差分散手段の要否の一方とを組み合わせた複数の設
定が予めなされて操作により1つが選択される設定テー
ブルとを備え、前記画像モード選択手段により選択され
たモードに対し、前記設定テーブルにて選択されている
設定に応じて前記2値化手段と誤差分散手段とが動作す
ることを特徴とする画像処理装置。
1. An image processing apparatus for performing image processing on input image data and outputting the image data, comprising: an image mode selecting means for selecting one of a character image mode, a photograph image mode, and a character photograph image mode; Binarizing means for binarizing the input image data by selecting one of the image data and the fixed threshold value; error dispersing means for dispersing an error in binarizing the image data; A setting table in which a plurality of settings in which one of the binarizing means and one of the necessity of the error dispersing means are combined is set in advance for each of the image mode and the character / photograph image mode, and one is selected by an operation Wherein the binarizing means and the error dispersing means operate in accordance with the setting selected in the setting table for the mode selected by the image mode selecting means. Image processing apparatus.
JP1049399A 1989-03-01 1989-03-01 Image processing device Expired - Lifetime JP2945022B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1049399A JP2945022B2 (en) 1989-03-01 1989-03-01 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1049399A JP2945022B2 (en) 1989-03-01 1989-03-01 Image processing device

Publications (2)

Publication Number Publication Date
JPH02228176A JPH02228176A (en) 1990-09-11
JP2945022B2 true JP2945022B2 (en) 1999-09-06

Family

ID=12829964

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1049399A Expired - Lifetime JP2945022B2 (en) 1989-03-01 1989-03-01 Image processing device

Country Status (1)

Country Link
JP (1) JP2945022B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04150271A (en) * 1990-10-09 1992-05-22 Matsushita Electric Ind Co Ltd Original reader
KR0136067B1 (en) * 1994-08-12 1998-04-27 김광호 Two value image processor

Also Published As

Publication number Publication date
JPH02228176A (en) 1990-09-11

Similar Documents

Publication Publication Date Title
ES2324611T3 (en) IMAGE PROCESSING DEVICE, IMAGE FORMATION DEVICE, AND IMAGE TREATMENT PROCEDURE.
US4196453A (en) Image screening system
JP3472479B2 (en) Image processing device
US5920646A (en) Digital copying apparatus capable of forming a superior quality image with a reduced amount of memory
JP3332398B2 (en) Image processing apparatus and image processing method
JP4097114B2 (en) Image processing apparatus, image processing method, and recording medium
JP2945022B2 (en) Image processing device
JP4047097B2 (en) Image forming apparatus, image forming method, and image forming program causing computer to execute the method
JP3676439B2 (en) Image forming apparatus
JP2871706B2 (en) Image processing device
JP3883031B2 (en) Image processing apparatus, image processing method, and storage medium
JP3124839B2 (en) Image forming device
JP3144835B2 (en) Image forming apparatus and image forming method
JP3938457B2 (en) Image processing apparatus and image processing method
JP2537163B2 (en) Image processing device
JP3130949B2 (en) Image processing device
JPH02193463A (en) Digital copying machine
JPH10283460A (en) Image processor
JP3589268B2 (en) Image processing device
JPS59189780A (en) Picture processing device
JPH0646775B2 (en) Image processing device
JP3183788B2 (en) Halftone area determination device
JP2006049992A (en) Image processor
JPH07298033A (en) Image composite device
JPH07236038A (en) Digital image forming device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080625

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 10

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 10