JPH08317213A - Image processor - Google Patents

Image processor

Info

Publication number
JPH08317213A
JPH08317213A JP7146956A JP14695695A JPH08317213A JP H08317213 A JPH08317213 A JP H08317213A JP 7146956 A JP7146956 A JP 7146956A JP 14695695 A JP14695695 A JP 14695695A JP H08317213 A JPH08317213 A JP H08317213A
Authority
JP
Japan
Prior art keywords
data
gradation
bits
processing
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7146956A
Other languages
Japanese (ja)
Inventor
Tamotsu Hosono
保 細野
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 JP7146956A priority Critical patent/JPH08317213A/en
Publication of JPH08317213A publication Critical patent/JPH08317213A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE: To provide an image processor which can change the gradation property in the same hardware constitution. CONSTITUTION: This image processor is provided with a halftone processing part 5 which applies the halftone processing to the digital image data having the number of bits accordant with the gradation number by an error propagation method, a binarization part 6 which binarizes the pixel data undergone the halftone processing based on the threshold data having the number of bits accordant with the gradation number, a RAM 7a which stores the error data and the threshold data used at the parts 5 and 6 respectively, and a gradation property control part 8 which controls the number of bits of both pixel and error data processed at the part 5 and the threshold data given to the part 6 in order to attain the variable control of the gradation property.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ファクシミリ装置等に
おいて、誤差拡散法を用いてハーフトーン(中間調)処
理を行う画像処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for carrying out halftone (halftone) processing using an error diffusion method in a facsimile machine or the like.

【0002】[0002]

【従来の技術】従来のこの種の画像処理装置として、例
えば特開平4−150573号公報には、読み取るべき
画素の周囲に位置する複数画素の誤差を加味して当該読
み取るべき画素の補正濃度レベルを算出し(誤差拡散
法)、この補正濃度レベルに基づいて読み取るべき画素
の白黒を判断するようにした画像処理装置において、各
周囲画素の誤差に割り当てられている重量の重いものの
誤差値が負である場合には重量の変更を行うか、もしく
は誤差の加味そのものを中止するように切り替える切り
替え手段を備えたものが開示されている。
2. Description of the Related Art As a conventional image processing apparatus of this type, for example, in Japanese Patent Laid-Open No. 4-150573, a correction density level of a pixel to be read is considered in consideration of an error of a plurality of pixels located around the pixel to be read. (Error diffusion method), and in the image processing apparatus that determines the black and white of the pixel to be read based on this corrected density level, the error value of the heavy weight assigned to the error of each surrounding pixel is negative. In this case, there is disclosed a device provided with a switching means for changing the weight or stopping the addition of the error itself.

【0003】[0003]

【発明が解決しようとする課題】ところが、このような
従来の画像処理装置においては、1種類の階調性しか有
しておらず、他の階調性にしたい場合にはハードウエア
の異なる別の装置を使用するしかなく、同じ装置を使用
して階調性に幅を持たせ、他の装置との差別化を図ると
いうことができなかった。
However, such a conventional image processing apparatus has only one kind of gradation, and if it is desired to have another gradation, different hardware is used. However, it was not possible to use the same device to provide a wide range of gradation and differentiate it from other devices.

【0004】また、従来技術においては、階調性をそれ
に応じたハードウエアを構成することにより実現し、同
一回路でハーフトーン処理能力を高めるために誤差マト
リックスの重み付けや閾値の改良等を行っているが、画
像の品質は階調によってほぼ決まるので、低階調のまま
での画像品質の向上には限界がある。
Further, in the prior art, gradation is realized by constructing hardware corresponding thereto, and weighting of an error matrix and improvement of thresholds are carried out in order to enhance halftone processing capability in the same circuit. However, since the quality of the image is almost determined by the gradation, there is a limit to the improvement of the image quality in the low gradation.

【0005】また、従来技術においては、補正データ
(誤差データ)のメモリ上の保存領域は一定であり、例
えば有効読取り幅がB4サイズのもので、A4サイズの
読取り時には使用しないメモリ領域に補正データを保存
するといったことは行っていなかったが、それではメモ
リの有効利用ができない。
Further, in the prior art, the storage area of the correction data (error data) on the memory is constant. For example, the effective read width is B4 size, and the correction data is stored in the memory area not used when reading A4 size. I didn't save the file, but I couldn't use the memory effectively.

【0006】そこで、本発明はこのような問題点を解決
するためになされたものであり、同じハードウエア構成
で階調性が変更できる画像処理装置を提供することを目
的とするものである。
Therefore, the present invention has been made in order to solve such a problem, and an object of the present invention is to provide an image processing apparatus capable of changing gradation with the same hardware configuration.

【0007】また、階調性に応じたハードウエアよりも
少ないハードウエア構成で高い階調性を引き出すことが
できる画像処理装置を提供することを目的とするもので
ある。
It is another object of the present invention to provide an image processing apparatus which can bring out high gradation with a hardware configuration that is smaller than the hardware corresponding to the gradation.

【0008】さらに、有効読取り幅よりも小さいサイズ
の原稿読取り時に生じる空きメモリを有効に利用するこ
とにより、現状の構成でより高階調の画像処理が行える
画像処理装置を提供することを目的とするものである。
Further, it is another object of the present invention to provide an image processing apparatus capable of performing image processing of higher gradation with the current configuration by effectively utilizing an empty memory generated when reading a document having a size smaller than the effective reading width. It is a thing.

【0009】[0009]

【課題を解決するための手段】請求項1に記載の発明
は、階調数に応じたビット数のディジタル画データに対
して誤差拡散法を用いてハーフトーン処理を行うハーフ
トーン処理部と、ハーフトーン処理を施された画素デー
タを階調数に応じたビット数の閾値データを用いて2値
化する2値化部と、前記ハーフトーン処理部で用いる誤
差データや前記2値化部で用いる閾値データが格納され
るメモリ部と、前記ハーフトーン処理部で処理される画
素データと誤差データ及び前記2値化部に与えられる閾
値データのビット数を制御することにより、階調性を可
変制御する階調性制御部とを備えたものである。
According to a first aspect of the present invention, there is provided a halftone processing section for performing halftone processing on digital image data having a bit number corresponding to the number of gradations by using an error diffusion method. A binarization unit that binarizes the halftone-processed pixel data using threshold data of the number of bits corresponding to the number of gradations, and error data used by the halftone processing unit and the binarization unit. By controlling the memory unit that stores the threshold data to be used, the pixel data and error data processed by the halftone processing unit, and the number of bits of the threshold data provided to the binarization unit, the gradation can be varied. And a gradation control unit for controlling.

【0010】請求項2に記載の発明は、前記請求項1記
載の画像処理装置において、前記階調性制御部は、画素
データと誤差データ及び閾値データの下位ビットを削除
することにより、階調数を変更するようにしたものであ
る。
According to a second aspect of the present invention, in the image processing apparatus according to the first aspect, the gradation control unit deletes the lower bits of the pixel data, the error data, and the threshold data, so that the gradation is reduced. The number is changed.

【0011】請求項3に記載の発明は、前記請求項1記
載の画像処理装置において、画像処理を行う処理クロッ
クを通常の複数倍の周波数の高階調処理クロックに変更
する処理クロック変速部を備え、前記階調性制御部は、
高階調処理クロック時、画素データと誤差データをそれ
ぞれ複数部分に分割して、それぞれを前記高階調処理ク
ロックの1クロックで処理することにより、高階調なハ
ーフトーン処理を行うようにしたものである。
According to a third aspect of the present invention, in the image processing apparatus according to the first aspect, there is provided a processing clock speed changing unit for changing a processing clock for performing image processing to a high gradation processing clock having a frequency that is a multiple of the normal frequency. , The gradation control unit,
At the time of the high gradation processing clock, the pixel data and the error data are each divided into a plurality of parts, and each of them is processed by one clock of the high gradation processing clock, thereby performing high gradation halftone processing. .

【0012】請求項4に記載の発明は、前記請求項1記
載の画像処理装置において、有効読取り幅より小さい原
稿を読み取って得られた画データの場合に、前記階調性
制御部は、前記メモリ部に生じる空き領域を利用して誤
差データや閾値データのビット数を増加することによ
り、高階調なハーフトーン処理を行うようにしたもので
ある。
According to a fourth aspect of the present invention, in the image processing apparatus according to the first aspect, in the case of image data obtained by reading a document smaller than an effective reading width, the gradation control section is The halftone processing with high gradation is performed by increasing the number of bits of the error data and the threshold data by utilizing the empty area generated in the memory section.

【0013】[0013]

【作用】請求項1記載の構成によれば、階調性制御部に
より、画素データと誤差データ及び閾値データのビット
数を制御することにより、階調性を可変制御することが
できるので、同一のハードウエア構成で階調数の設定を
変更することができ、同じ装置で階調性に幅を持たせる
ことができる。
According to the first aspect of the invention, the gradation property can be variably controlled by controlling the number of bits of the pixel data, the error data and the threshold value data by the gradation property control unit. It is possible to change the setting of the number of gradations with the hardware configuration of, and it is possible to give a wide range of gradation with the same device.

【0014】請求項2記載の構成によれば、階調性制御
部により、画素データと誤差データ及び閾値データの下
位ビットを削除することで、階調数を下げることがで
き、例えば、あまり高階調を必要としない画像を扱いよ
うな場合には、ビット数削減による高速化が図れる。
According to the second aspect of the present invention, the gradation number can be lowered by deleting the lower bits of the pixel data, the error data and the threshold data by the gradation control section. When handling an image that does not require tones, the speed can be increased by reducing the number of bits.

【0015】請求項3記載の構成によれば、処理クロッ
クを例えば通常の2倍の高階調処理クロックに変更し、
それに伴って画素データと誤差データをそれぞれ上位ビ
ットと下位ビットに分けて、それぞれを高階調処理クロ
ックの1クロックで処理することにより、レジスタや演
算回路のビット数は低階調のままで、かつ処理速度を低
下させることなく、高階調なハーフトーン処理を行うこ
とができる。
According to the third aspect of the present invention, the processing clock is changed to, for example, a high gradation processing clock that is twice as high as a normal clock.
Accordingly, the pixel data and the error data are divided into upper bits and lower bits, and each of them is processed by one clock of the high gradation processing clock, so that the number of bits of the register and the arithmetic circuit remains low gradation, and High gradation halftone processing can be performed without reducing the processing speed.

【0016】請求項4記載の構成によれば、例えば、有
効読取り幅がB4サイズでA4サイズの原稿を読み取る
場合、画像処理用メモリに生じる空きメモリ領域を有効
に利用して、ハーフトーン処理用のメモリ領域を増やす
ことで、誤差データ等のビット数を増やすことができ、
階調性を上げることができる。
According to the structure described in claim 4, for example, when a document having an effective reading width of B4 size and A4 size is read, the empty memory area generated in the image processing memory is effectively used to perform halftone processing. By increasing the memory area of, you can increase the number of bits such as error data,
Gradation can be improved.

【0017】[0017]

【実施例】以下、本発明の一実施例を図に基づいて説明
する。
An embodiment of the present invention will be described below with reference to the drawings.

【0018】図1は、本発明の一実施例に係る画像処理
装置の全体構成を示すブロック図である。図において、
1はA/Dコンバータであり、密着センサやCCD(Ch
argeCoupled Device)等からなる図外のスキャナで読み
取ったアナログ画データを8ビットのディジタル画デー
タに変換する。2はシェーディング・ピークレベル補正
部で、前記A/Dコンバータ1からのディジタル画デー
タに対してシェーディング補正およびピークレベル補正
を行う。3はγ補正部で、シェーディング補正およびピ
ークレベル補正を施されたディジタル画データにハーフ
トーン処理時のみγ補正を行う。4はMTF(Modulati
on Transfer Function:変調伝達関数)補正部で、3×
3のマトリックスを構成することにより、線画モード時
のMTF補正を行っている。5はハーフトーン処理部
で、誤差拡散法を用いてハーフトーン処理を行ってお
り、その階調性は後述する階調性制御部8により制御さ
れている。6は2値化部で、前記MTF補正またはハー
フトーン処理がなされたディジタル画データと閾値デー
タとを比較することにより黒か白かの判定を行い、その
結果をラインバッファメモリに送る。
FIG. 1 is a block diagram showing the overall configuration of an image processing apparatus according to an embodiment of the present invention. In the figure,
1 is an A / D converter, which is a contact sensor or CCD (Ch
Converts analog image data read by a scanner (not shown) such as argeCoupled Device) into 8-bit digital image data. A shading / peak level correction unit 2 performs shading correction and peak level correction on the digital image data from the A / D converter 1. Reference numeral 3 denotes a γ correction unit that performs γ correction only during halftone processing on digital image data that has been subjected to shading correction and peak level correction. 4 is MTF (Modulati
on Transfer Function: Modulation transfer function) Correction unit, 3 ×
By configuring the matrix of No. 3, MTF correction in the line drawing mode is performed. A halftone processing unit 5 performs halftone processing using the error diffusion method, and its gradation is controlled by a gradation control unit 8 described later. Reference numeral 6 denotes a binarizing unit, which compares the digital image data that has been subjected to the MTF correction or halftone processing with the threshold data to determine whether it is black or white, and sends the result to the line buffer memory.

【0019】7はシェーディング補正データ,MTFデ
ータ,誤差データ,閾値データ等をRAM7aに対して
リードまたはライトするRAMインタフェース(I/
F)部で、DMAリクエストを発生させてRAM7aの
チップセレクト信号を発生させることにより、データの
読み書きを行う。8は階調性制御部で、誤差拡散法の階
調性を誤差データ・閾値・γ補正特性等を制御すること
により変更する。9は処理クロック変速部で、前記シェ
ーディング・ピークレベル補正部2,γ補正部3,MT
F補正部4,ハーフトーン処理部5,2値化部6等に供
給される速度の異なる2種のクロックを切り替えること
により、通常時の処理クロックと高階調時の処理クロッ
ク(前記通常時の処理クロックの2倍の周波数)の速度
制御を行う。これにより、前記各部2〜6では、通常時
は1回の処理クロックで1画素の処理を行い、高階調時
は2回の処理クロックで1画素の処理を行う。
Reference numeral 7 denotes a RAM interface (I / I) for reading or writing shading correction data, MTF data, error data, threshold value data and the like with respect to the RAM 7a.
In the section F), a DMA request is generated and a chip select signal of the RAM 7a is generated to read / write data. A gradation control unit 8 changes the gradation of the error diffusion method by controlling error data, threshold values, γ correction characteristics, and the like. Reference numeral 9 is a processing clock shifting unit, which is the shading / peak level correcting unit 2, the γ correcting unit 3, and the MT.
By switching between two types of clocks having different speeds supplied to the F correction unit 4, the halftone processing unit 5, and the binarization unit 6, etc., the processing clock in the normal time and the processing clock in the high gradation (the above The speed is controlled at twice the processing clock frequency. As a result, in each of the units 2 to 6, normally, one pixel is processed with one processing clock, and when the gradation is high, one pixel is processed with two processing clocks.

【0020】次に動作について、図2ないし図7を参照
して説明する。まず、スキャナで読み取ったアナログ画
データをA/Dコンバータ1でディジタル画データに変
換する。スキャナがA4サイズを読み取ったときは17
28個、B4サイズのときは2048個の画データがA
/Dコンバータ1に送られ、A/Dコンバータ1が8ビ
ットの分解能の時には8ビットのディジタル画データが
出力され、10ビットの分解能の時には10ビットのデ
ィジタル画データが出力される。ここでは、8ビットの
分解能で8ビットのディジタル画データが出力されるも
のとする。
Next, the operation will be described with reference to FIGS. First, the analog image data read by the scanner is converted into digital image data by the A / D converter 1. 17 when the scanner scans A4 size
28 pieces, 2048 pieces of image data in the case of B4 size are A
When the A / D converter 1 has an 8-bit resolution, 8-bit digital image data is output, and when the A / D converter 1 has a 10-bit resolution, 10-bit digital image data is output. Here, it is assumed that 8-bit digital image data is output with 8-bit resolution.

【0021】ディジタル信号に変換された画データはシ
ェーディング・ピークレベル補正部2で、シェーディン
グ補正およびピークレベル補正が施される。シェーディ
ング補正は、スキャン位置の違いにより、LEDの光の
当たり方、CCDへの距離等が変わるため、それを補正
している。具体的には、原稿をコンタクトガラスに押圧
する白圧板等の白基準データを読み取ることによって、
各読取り位置で白基準データを求めて補正係数を算出
し、この補正係数を用いて補正を行う。補正係数は、R
AMインタフェース部7を通してRAM7aのシェーデ
ィング補正データ保存用メモリ領域(図2参照)にライ
トまたはリードされる。また、ピークレベル補正は、1
ラインの読取りデータの正規化を行うもので、ピーク値
を検出してそれで各画素データを除算することにより補
正を行っている。
The image data converted into a digital signal is subjected to shading correction and peak level correction in the shading / peak level correction unit 2. In the shading correction, the way in which the light from the LED hits, the distance to the CCD, and the like change due to the difference in the scan position. Specifically, by reading white reference data such as a white pressure plate that presses the original against the contact glass,
The white reference data is obtained at each reading position to calculate a correction coefficient, and the correction coefficient is used to perform the correction. The correction coefficient is R
Through the AM interface unit 7, the shading correction data storage memory area (see FIG. 2) of the RAM 7a is written or read. Also, the peak level correction is 1
The line read data is normalized, and the correction is performed by detecting the peak value and dividing each pixel data with it.

【0022】ここまでは、線画モード時もハーフトーン
モード時も同じであるが、次のγ補正部3から処理が変
ってくる。γ補正部3では、線画モード時、下位1ビッ
トを単に消去することにより、64階調時は7ビットか
ら6ビットへの変換を行っている。しかし、ハーフトー
ンモード時は所定の演算式を用いることにより、64階
調時は7ビットから6ビットへの変換を行っている。こ
の補正を行うことにより、線画モード時は図3のaで示
すような反射リニアな変換が行われ、ハーフトーンモー
ド時は同図のbで示すような濃度リニアな変換が行われ
る。ここで、階調性を変更するときは、階調性制御部8
より制御信号が送られてきて32階調に落したいときは
7ビットから6ビットに変換したデータを更に下位1ビ
ット消去することにより5ビットに変換する。16階調
に落したいときは、更に下位1ビットを消去して4ビッ
トに変換する。
Up to this point, the processing is the same in the line drawing mode and the halftone mode, but the processing changes from the next γ correction section 3. The γ correction unit 3 converts from 7 bits to 6 bits in 64 gradations by simply deleting the lower 1 bit in the line drawing mode. However, in the halftone mode, conversion from 7 bits to 6 bits is performed in 64 gradations by using a predetermined arithmetic expression. By performing this correction, reflection linear conversion as shown by a in FIG. 3 is performed in the line drawing mode, and density linear conversion as shown by b in the same figure is performed in the halftone mode. Here, when changing the gradation, the gradation control unit 8
When more control signals are sent and it is desired to reduce to 32 gradations, the data converted from 7 bits to 6 bits is further erased by the lower 1 bit to be converted to 5 bits. When it is desired to reduce to 16 gradations, the lower 1 bit is further erased and converted to 4 bits.

【0023】γ補正を施された画データは、モード設定
に基づき、線画モードであればMTF補正部4でMTF
補正が行われる(図7のフローチャートの判断101→
処理102)。MTF(Modulation Transfer Functio
n:変調伝達関数)補正とは、信号を変換し伝達するこ
とにより発生した画像のボケを、求める画像の前後左右
の画像により補正を行うものである。補正は、図4
(a)に示すように3×3のマトリクスを構成し、中心
画素Eを3倍ないし5倍にし、中心画素に隣接する画素
を減算することにより、中心画素の画データを求める。
ただし、この補正はハーフトーン処理時は基本的に行わ
ない(線画部と写真部の境であるエッジ画素の場合には
補正がかかる)。
The image data on which the γ correction has been performed is based on the mode setting, and in the line drawing mode, the MTF correction unit 4 performs MTF correction.
Correction is performed (determination 101 in the flowchart of FIG. 7 →
Process 102). MTF (Modulation Transfer Functio)
n: Modulation transfer function) correction is to correct the blur of an image generated by converting and transmitting a signal, by correcting the front, back, left, and right images of a desired image. The correction is shown in Figure 4.
As shown in (a), a 3 × 3 matrix is formed, the central pixel E is tripled to 5 times, and pixels adjacent to the central pixel are subtracted to obtain image data of the central pixel.
However, this correction is basically not performed during the halftone processing (correction is applied in the case of an edge pixel which is a boundary between the line drawing portion and the photograph portion).

【0024】線画モード時は、MTF補正を施された
後、2値化部6で画データと閾値を比較することによ
り、白/黒の最終判定をして2値化されたデータを8個
単位でラインバッファメモリにDMA転送を行う。
In the line drawing mode, after the MTF correction is performed, the binarization unit 6 compares the image data with a threshold value to make a final judgment of white / black to obtain eight binarized data. DMA transfer is performed to the line buffer memory in units.

【0025】ハーフトーンモード時は、ハーフトーンの
階調数等の各機能の設定が行われた後、設定階調数に基
づき、ハーフトーン処理部5で誤差拡散法を用いてハー
フトーン処理が行われる(判断101→処理103→判
断104)。誤差拡散法は、ある画素を出力した結果と
閾値との差を周りの画素で埋め合わせようとする方法で
あり、図4(b)に例示するように、前ライン用レジス
タが5個、現ライン用レジスタが3個の計8個でマトリ
クスを形成することにより誤差拡散演算が行われる。
In the halftone mode, after the setting of each function such as the number of halftone gradations, halftone processing is performed by the halftone processing unit 5 using the error diffusion method based on the set number of gradations. It is performed (decision 101 → process 103 → decision 104). The error diffusion method is a method for compensating the difference between the result of outputting a certain pixel and the threshold value with surrounding pixels. As illustrated in FIG. 4B, five registers for the previous line and the current line are used. The error diffusion calculation is performed by forming a matrix with a total of eight registers for use.

【0026】例えば、図4(b)で注目画素をhとする
と、hに一番近い画素の重み付けを4倍、次に近い重み
付けを2倍、一番遠い画素の重み付けを1倍とすると誤
差データは、((a+e)+2*(b+d+f)+4*
(c+g))/16で求められる。これにhの画素デー
タを加算することにより誤差拡散処理が行われる。64
階調時は、この誤差データに使われるa〜gは極性を含
んで7ビット(極性無しで6ビット)であり、画素デー
タも6ビットである(判断104→処理105)。32
階調に落とす場合には階調性制御部8より制御信号が出
力され、誤差データa〜gを6ビットに変換する(判断
104→処理106)。誤差拡散マトリックスのデータ
の動きは、前ラインデータa〜eはまずeのレジスタに
RAMインタフェース部7を介してRAM7aよりデー
タを読み込んで来る。次の画素の処理に入ると、eのレ
ジスタのデータがdのレジスタに転送され、eのレジス
タにはRAM7aより次のデータが入って来る。こうや
ってeにRAM7aより入力、d→c→→b→aと転送
を行う動作を繰り返す。このとき32階調に階調を変更
する場合はeレジスタを6ビットに固定し、16階調に
階調を変更する場合には5ビットに固定する。
For example, if the pixel of interest in FIG. 4B is h, the pixel closest to h is weighted 4 times, the next closest weight is doubled, and the farthest pixel is weighted 1 time. The data is ((a + e) + 2 * (b + d + f) + 4 *
(C + g)) / 16. The error diffusion process is performed by adding the pixel data of h to this. 64
At the time of gradation, a to g used for this error data are 7 bits including polarity (6 bits without polarity), and pixel data is also 6 bits (decision 104 → process 105). 32
When the gradation is reduced, a control signal is output from the gradation control unit 8 and the error data a to g are converted into 6 bits (decision 104 → process 106). Regarding the movement of the data of the error diffusion matrix, the previous line data a to e are first read from the RAM 7a via the RAM interface unit 7 into the register of e. When the processing for the next pixel is started, the data in the register e is transferred to the register d, and the next data comes from the RAM 7a into the register e. In this way, the operation of inputting from the RAM 7a to e, and transferring d → c →→ b → a is repeated. At this time, when changing the gradation to 32 gradations, the e register is fixed to 6 bits, and when changing the gradation to 16 gradations, it is fixed to 5 bits.

【0027】また、現ラインデータはhのデータが算出
されると、次の画素の処理時にgのレジスタに転送さ
れ、前ラインと同様にh→g→fと転送される。このと
き次ラインの処理用にhデータがRAMインタフェース
部7を通してRAM7aに書き込まれる。hレジスタか
らgレジスタに転送される際に32階調時はgレジスタ
を5ビットに固定、16階調時には4ビットに固定す
る。また、画素データも32階調時は5ビット、16階
調時は4ビットに固定する。ハーフトーン処理された画
データは2値化部6で2値化される。このとき閾値デー
タも64階調時には6ビット、32階調時は5ビット、
16階調時は4ビットに固定することにより2値化を行
う。ビットの変更はLSB(最下位ビット)1ビットを
消去することにより行われる。例えば、32階調にする
とき、64階調時の7ビットのデータが0111000
(+56)であった時はLSB1ビットを消去して01
1100(+28)とする。1111000(−8)で
あった時には111100(−4)とする。
When h data is calculated, the current line data is transferred to the g register at the time of processing the next pixel, and transferred as h → g → f as in the previous line. At this time, h data is written in the RAM 7a through the RAM interface section 7 for processing the next line. When transferring from the h register to the g register, the g register is fixed to 5 bits at 32 gradations and fixed to 4 bits at 16 gradations. The pixel data is also fixed to 5 bits for 32 gradations and 4 bits for 16 gradations. The halftone-processed image data is binarized by the binarization unit 6. At this time, the threshold data is also 6 bits for 64 gradations, 5 bits for 32 gradations,
At the time of 16 gradations, it is binarized by fixing it to 4 bits. The bit change is performed by erasing one bit of the LSB (least significant bit). For example, when setting 32 gradations, 7-bit data at 64 gradations is 0111000.
If it is (+56), erase the LSB 1 bit and set 01.
1100 (+28). When it is 1111000 (-8), it is set to 111100 (-4).

【0028】このようにすることにより、同一のハード
ウエア構成で階調数の設定を変更することができ、同じ
装置で階調性に幅を持たせることができるとともに、あ
まり高階調を必要としない画像を扱いような場合には、
ビット数削減による高速化を図ることができる。
By doing so, it is possible to change the setting of the number of gradations with the same hardware configuration, it is possible to have a wide range of gradations with the same device, and it is necessary to have too high gradations. When dealing with images that do not
Higher speed can be achieved by reducing the number of bits.

【0029】また、有効読取り幅がB4サイズでA4原
稿を読み取る場合、図2のメモリマップのように設定さ
れているときは、アドレス0000h〜063Fh、0
800h〜0E3Fh、1000h〜163FhはA4
サイズでも使用するが、0640h〜07FFh、0E
40h〜0FFFh、163Fh〜17FFhはA4時
は使用しない。そこで、この未使用領域を誤差データ保
存用に開放してやることにより階調性をアップさせる。
具体的には、誤差拡散マトリクスのレジスタを8ビット
設けておいてB4サイズ読取り時には7ビットしか使用
しない。そして、A4サイズ読取り時には8ビットフル
で使用し、未使用領域のアドレスを階調性制御部8でア
ドレッシングしてやることにより通常64階調であった
ものが128階調のハーフトーン処理が可能となる。ま
た、誤差データ以外にも、MTFデータ等にも使用する
ことができるので、各補正能力をアップさせることも可
能である。
Further, when an A4 original is read with an effective reading width of B4 size and the memory map shown in FIG. 2 is set, addresses 0000h to 063Fh, 0 are set.
A4 for 800h-0E3Fh and 1000h-163Fh
Used in size, 0640h to 07FFh, 0E
40h to 0FFFh and 163Fh to 17FFh are not used at A4. Therefore, the gradation is improved by opening this unused area for storing error data.
Specifically, the error diffusion matrix register is provided with 8 bits and only 7 bits are used when reading B4 size. Then, when the A4 size is read, it is used with 8 bits full, and the address of the unused area is addressed by the gradation control unit 8, so that the halftone processing of 128 gradations, which was normally 64 gradations, becomes possible. . Further, since it can be used for MTF data and the like in addition to error data, it is possible to improve each correction capability.

【0030】しかし、上記の空きメモリは利用したい
が、レジスタのビット数は増やしたくないという場合に
は、処理クロック変速部9で処理クロックを変速させる
ことにより、レジスタやフルアダー等の演算回路のビッ
ト数を増やさないでも空きメモリを使用して階調性を上
げることができる。なお、外付けRAMを取り付けてメ
モリを増設することにより、B4サイズ読取り時におい
ても、処理クロックを変速させることにより、レジスタ
等のビット数を増やすことなく、階調性をアップさせる
ことができる。
However, if the user wants to use the above-mentioned free memory but does not want to increase the number of bits of the register, the processing clock shifting unit 9 shifts the processing clock so that the bits of the arithmetic circuit such as the register and the full adder are changed. Even if the number is not increased, the free memory can be used to improve the gradation. By attaching an external RAM and increasing the memory, the gradation can be improved without increasing the number of bits of the register or the like by changing the processing clock even when reading the B4 size.

【0031】図5は、シェーディング・ピークレベル補
正部2,γ補正部3,MTF補正部4,ハーフトーン処
理部5等に備えられた演算回路のブロック図であり、デ
ータ出力マルチプレクサ10,フルアダー11,第1の
レジスタ12,第2のレジスタ13及び極性選択部14
よりなる。この同一構成の演算回路を用いて、マルチプ
レクサ10及び極性選択部14を予め定められた手順で
制御することにより、それぞれの補正部に応じて所定の
演算が行われるように構成されている。各部の演算処理
を図5にて説明すると、データ出力マルチプレクサ10
でマトリクスの各画素のデータを1つずつフルアダー1
1に出力する。フルアダー11では、データ出力マルチ
プレクサ10の出力データと極性選択部14を介して入
力される第2のレジスタ13の出力データを加算する。
フルアダー11の加算結果は第1のレジスタ12で保持
される。極性選択部14では第2のレジスタ13の出力
データを加算するか減算するかによって極性が選択さ
れ、加算時はそのまま出力され、減算時はデータを反転
して+1したもの,すなわち補数を出力する。
FIG. 5 is a block diagram of an arithmetic circuit provided in the shading / peak level correction unit 2, the γ correction unit 3, the MTF correction unit 4, the halftone processing unit 5, and the like. The data output multiplexer 10 and the full adder 11 are shown in FIG. , The first register 12, the second register 13, and the polarity selection unit 14
Consists of. By controlling the multiplexer 10 and the polarity selecting section 14 in a predetermined procedure by using the arithmetic circuit having the same configuration, a predetermined arithmetic operation is performed according to each correcting section. The arithmetic processing of each part will be described with reference to FIG.
Full adder 1 for each pixel data in the matrix
Output to 1. The full adder 11 adds the output data of the data output multiplexer 10 and the output data of the second register 13 input via the polarity selection unit 14.
The addition result of the full adder 11 is held in the first register 12. The polarity selection unit 14 selects the polarity depending on whether the output data of the second register 13 is added or subtracted, and is output as it is at the time of addition, and the data is inverted and incremented by +1 at the time of subtraction, that is, the complement is output. .

【0032】通常時は、図6(a)に示すように処理ク
ロックの1クロックで1画素の処理をするようになって
おり、64階調時には誤差データレジスタは7ビットに
なっておりアダーは8ビットである。しかし、128階
調に設定した場合は、まずRAM7aから1画素の下位
4ビットのデータが転送され、次にその上位4ビットが
転送され、次に次画素の下位4ビット、上位4ビットと
繰り返し転送される。そして、図6(b)に示すように
処理クロックを2倍の速度にして2クロックで1画素の
処理を行うことにより、まず最初のクロックで下位ビッ
トの演算を行い、その結果を第1のレジスタ12に保持
する。次に上位4ビットの演算時に第1のレジスタ12
の下位演算結果を第2のレジスタ13に転送し、上位演
算結果を第1のレジスタ12に保持する。次に次画素の
下位4ビットのデータがフルアダー11に入力され、第
2のレジスタ13の下位演算結果に加算される。このと
き下位から桁上がりがあればレジスタに桁上がりのフラ
グが保持され、次の上位ビット演算時に1が加算され
る。こうすることにより、低階調用回路でメモリ領域を
増加した場合に、レジスタや演算回路のビット数はその
ままで、かつ処理速度を低下させることなく、高階調な
ハーフトーン処理が可能となる(判断104→処理10
7→判断108→処理109または処理110)。
In the normal state, as shown in FIG. 6 (a), one pixel is processed by one processing clock, and at the time of 64 gradations, the error data register is 7 bits and the adder is It is 8 bits. However, when 128 gradations are set, first, the lower 4 bits of data of one pixel are transferred from the RAM 7a, then the upper 4 bits thereof are transferred, and then the lower 4 bits and upper 4 bits of the next pixel are repeated. Transferred. Then, as shown in FIG. 6B, the processing clock is doubled to process one pixel in two clocks, so that the lower bit is calculated in the first clock and the result is the first. It is held in the register 12. Next, when calculating the upper 4 bits, the first register 12
The lower operation result of (1) is transferred to the second register 13, and the upper operation result is held in the first register 12. Next, the lower 4-bit data of the next pixel is input to the full adder 11 and added to the lower operation result of the second register 13. At this time, if there is a carry from the lower order, the carry flag is held in the register, and 1 is added at the time of the next higher bit operation. By doing so, when the memory area is increased in the low gradation circuit, high gradation halftone processing can be performed without decreasing the processing speed while maintaining the number of bits of the register or the arithmetic circuit (determination). 104 → Process 10
7-> decision 108-> process 109 or process 110).

【0033】なお、上記画像処理装置は、ファクシミリ
装置以外にも、ディジタル複写機等、画像をディジタル
処理する各種画像処理装置に適用することができる。
The image processing apparatus can be applied to various image processing apparatuses for digitally processing an image, such as a digital copying machine, in addition to the facsimile apparatus.

【0034】[0034]

【発明の効果】以上のように、請求項1記載の発明によ
れば、階調数に応じたビット数のディジタル画データに
対して誤差拡散法を用いてハーフトーン処理を行うハー
フトーン処理部と、ハーフトーン処理を施された画素デ
ータを階調数に応じたビット数の閾値データを用いて2
値化する2値化部と、前記ハーフトーン処理部で用いる
誤差データや前記2値化部で用いる閾値データが格納さ
れるメモリ部と、前記ハーフトーン処理部で処理される
画素データと誤差データ及び前記2値化部に与えられる
閾値データのビット数を制御することにより、階調性を
可変制御する階調性制御部とを備えたので、階調性制御
部により、画素データと誤差データ及び閾値データのビ
ット数を制御することによって、階調性を可変制御する
ことができるので、同一のハードウエア構成で階調数の
設定を変更することができる。従って、同じ装置で階調
性に幅を持たせることができ、他の装置との差別化を図
ることができる効果がある。
As described above, according to the first aspect of the present invention, the halftone processing unit for performing the halftone processing on the digital image data having the number of bits corresponding to the number of gradations by using the error diffusion method. And the halftone-processed pixel data is set to 2 using the threshold value data of the number of bits according to the number of gradations.
A binarization unit for binarization, a memory unit for storing error data used in the halftone processing unit and threshold data used in the binarization unit, pixel data processed by the halftone processing unit, and error data And a gradation control unit that variably controls gradation by controlling the number of bits of the threshold data provided to the binarization unit. Therefore, the gradation control unit controls pixel data and error data. By controlling the number of bits of the threshold data and the gradation property, the gradation property can be variably controlled, so that the setting of the gradation number can be changed with the same hardware configuration. Therefore, there is an effect that the same device can have a wide range of gradation and can be differentiated from other devices.

【0035】請求項2記載の発明によれば、前記請求項
1記載の画像処理装置において、前記階調性制御部は、
画素データと誤差データ及び閾値データの下位ビットを
削除することにより、階調数を変更するようにしたの
で、前記請求項1と同様の効果が得られるとともに、階
調性制御部により、画素データと誤差データ及び閾値デ
ータの下位ビットを削除することで、階調数を下げるこ
とができる。従って、例えば、あまり高階調を必要とし
ない画像を扱いような場合には、ビット数削減による高
速化が図れる効果がある。
According to a second aspect of the present invention, in the image processing apparatus according to the first aspect, the gradation control section includes:
Since the number of gradations is changed by deleting the lower bits of the pixel data, the error data, and the threshold data, the same effect as that of claim 1 can be obtained, and the gradation data is controlled by the gradation control unit. By deleting the lower bits of the error data and the threshold data, the number of gradations can be reduced. Therefore, for example, when handling an image that does not require high gradation, there is an effect that the speed can be increased by reducing the number of bits.

【0036】請求項3記載の発明によれば、前記請求項
1記載の画像処理装置において、画像処理を行う処理ク
ロックを通常の複数倍の周波数の高階調処理クロックに
変更する処理クロック変速部を備え、前記階調性制御部
は、高階調処理クロック時、画素データと誤差データを
それぞれ複数部分に分割して、それぞれを前記高階調処
理クロックの1クロックで処理することにより、高階調
なハーフトーン処理を行うようにしたので、前記請求項
1と同様の効果が得られるとともに、処理クロックを例
えば通常の2倍の高階調処理クロックに変更し、それに
伴って画素データと誤差データをそれぞれ上位ビットと
下位ビットに分けて、それぞれを高階調処理クロックの
1クロックで処理することにより、レジスタや演算回路
のビット数は低階調のままで、かつ処理速度を低下させ
ることなく、高階調なハーフトーン処理を行うことがで
きる効果がある。
According to a third aspect of the present invention, in the image processing apparatus according to the first aspect, there is provided a processing clock speed changing unit for changing the processing clock for performing image processing to a high gradation processing clock having a frequency which is a multiple of the normal frequency. The gradation control unit divides the pixel data and the error data into a plurality of parts at the time of the high gradation processing clock, and processes each of them with one clock of the high gradation processing clock to obtain a high gradation half. Since the tone processing is performed, the same effect as that of the first aspect can be obtained, and the processing clock is changed to, for example, a high gradation processing clock that is twice as high as the normal one, and accordingly, the pixel data and the error data are respectively placed in the higher order The number of bits in the register and arithmetic circuit is low because it is divided into bits and low-order bits, and each is processed with one clock of the high gradation processing clock. It remains, and without reducing the processing speed, there is an effect that it is possible to perform a high grayscale halftone processing.

【0037】請求項4記載の発明によれば、前記請求項
1記載の画像処理装置において、有効読取り幅より小さ
い原稿を読み取って得られた画データの場合に、前記階
調性制御部は、前記メモリ部に生じる空き領域を利用し
て誤差データや閾値データのビット数を増加することに
より、高階調なハーフトーン処理を行うようにしたの
で、前記請求項1と同様の効果が得られるとともに、例
えば、有効読取り幅がB4サイズでA4サイズの原稿を
読み取る場合、画像処理用メモリに生じる空きメモリ領
域を有効に利用して、ハーフトーン処理用のメモリ領域
を増やすことで、誤差データ等のビット数を増やすこと
ができる。従って、画像処理用のメモリを増やすことな
く、階調性を上げることができる効果がある。
According to a fourth aspect of the present invention, in the image processing apparatus according to the first aspect, in the case of image data obtained by reading a document smaller than the effective reading width, the gradation control section is Since the high-gradation halftone processing is performed by increasing the number of bits of the error data and the threshold data by using the empty area generated in the memory unit, the same effect as that of claim 1 can be obtained. For example, when reading an A4 size original with an effective read width of B4 size, the empty memory area generated in the image processing memory is effectively used and the memory area for halftone processing is increased, so that error data, etc. The number of bits can be increased. Therefore, there is an effect that the gradation can be improved without increasing the memory for image processing.

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

【図1】本発明の一実施例に係る画像処理装置の全体構
成を示すブロック図。
FIG. 1 is a block diagram showing the overall configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】上記実施例のメモリマップを示す説明図。FIG. 2 is an explanatory diagram showing a memory map of the above embodiment.

【図3】上記実施例における線画モード時の反斜リニア
な変換とハーフトーンモード時の濃度リニアな変換の説
明図。
FIG. 3 is an explanatory view of anti-linear conversion in the line drawing mode and density linear conversion in the halftone mode in the above embodiment.

【図4】上記実施例のMTF補正マトリックスと誤差拡
散マトリックスを示す図。
FIG. 4 is a diagram showing an MTF correction matrix and an error diffusion matrix of the above embodiment.

【図5】上記実施例の各部に備えられた演算回路を示す
ブロック図。
FIG. 5 is a block diagram showing an arithmetic circuit provided in each part of the above embodiment.

【図6】上記実施例の処理クロック変更による処理タイ
ミングを示す図。
FIG. 6 is a diagram showing a processing timing according to the processing clock change of the embodiment.

【図7】上記実施例の動作を示すフローチャート。FIG. 7 is a flowchart showing the operation of the above embodiment.

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

1 A/Dコンバータ 2 シェーディング・ピークレベル補正部 3 γ補正部 4 MTF補正部 5 ハーフトーン処理部 6 2値化部 7 RAMインタフェース(I/F)部 7a RAM 8 階調性制御部 9 処理クロック変速部 10 データ出力マルチプレクサ 11 フルアダー 12 第1のレジスタ 13 第2のレジスタ 14 極性選択部 1 A / D converter 2 Shading / peak level correction unit 3 γ correction unit 4 MTF correction unit 5 Halftone processing unit 6 Binarization unit 7 RAM interface (I / F) unit 7a RAM 8 Gradation control unit 9 Processing clock Transmission section 10 Data output multiplexer 11 Full adder 12 First register 13 Second register 14 Polarity selection section

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 階調数に応じたビット数のディジタル画
データに対して誤差拡散法を用いてハーフトーン処理を
行うハーフトーン処理部と、 前記ハーフトーン処理を施された画素データを階調数に
応じたビット数の閾値データを用いて2値化する2値化
部と、 前記ハーフトーン処理部で用いる誤差データや前記2値
化部で用いる閾値データが格納されるメモリ部と、 前記ハーフトーン処理部で処理される画素データと誤差
データ及び前記2値化部に与えられる閾値データのビッ
ト数を制御することにより、階調性を可変制御する階調
性制御部とを備えたことを特徴とする画像処理装置。
1. A halftone processing unit for performing halftone processing on digital image data having a number of bits corresponding to the number of gradations by using an error diffusion method, and gradation of pixel data subjected to the halftone processing. A binarization unit that binarizes using threshold data having a bit number corresponding to the number; a memory unit that stores error data used in the halftone processing unit and threshold data used in the binarization unit; And a gradation control unit for variably controlling gradation by controlling the number of bits of pixel data processed by the halftone processing unit, error data, and threshold data given to the binarization unit. An image processing device characterized by:
【請求項2】 請求項1記載の画像処理装置において、 前記階調性制御部は、画素データと誤差データ及び閾値
データの下位ビットを削除することにより、階調数を変
更することを特徴とする画像処理装置。
2. The image processing apparatus according to claim 1, wherein the gradation control unit changes the number of gradations by deleting lower bits of pixel data, error data, and threshold data. Image processing device.
【請求項3】 請求項1記載の画像処理装置において、 画像処理を行う処理クロックを通常の複数倍の周波数の
高階調処理クロックに変更する処理クロック変速部を備
え、 前記階調性制御部は、高階調処理クロック時、画素デー
タと誤差データをそれぞれ複数部分に分割して、それぞ
れを前記高階調処理クロックの1クロックで処理するこ
とにより、高階調なハーフトーン処理を行うことを特徴
とする画像処理装置。
3. The image processing apparatus according to claim 1, further comprising a processing clock shifting unit that changes a processing clock for performing image processing to a high gradation processing clock having a frequency that is a multiple of a normal frequency, and the gradation control unit. In the high gradation processing clock, the pixel data and the error data are each divided into a plurality of parts, and each of them is processed by one clock of the high gradation processing clock, thereby performing high gradation halftone processing. Image processing device.
【請求項4】 請求項1記載の画像処理装置において、 有効読取り幅より小さい原稿を読み取って得られた画デ
ータの場合に、前記階調性制御部は、前記メモリ部に生
じる空き領域を利用して誤差データや閾値データのビッ
ト数を増加することにより、高階調なハーフトーン処理
を行うことを特徴とする画像処理装置。
4. The image processing apparatus according to claim 1, wherein in the case of image data obtained by reading a document smaller than an effective reading width, the gradation control unit uses an empty area generated in the memory unit. By increasing the number of bits of the error data and the threshold data, high-gradation halftone processing is performed.
JP7146956A 1995-05-23 1995-05-23 Image processor Pending JPH08317213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7146956A JPH08317213A (en) 1995-05-23 1995-05-23 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7146956A JPH08317213A (en) 1995-05-23 1995-05-23 Image processor

Publications (1)

Publication Number Publication Date
JPH08317213A true JPH08317213A (en) 1996-11-29

Family

ID=15419389

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7146956A Pending JPH08317213A (en) 1995-05-23 1995-05-23 Image processor

Country Status (1)

Country Link
JP (1) JPH08317213A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007060111A (en) * 2005-08-23 2007-03-08 Ricoh Printing Systems Ltd Method and device for gradation processing
CN116721627A (en) * 2023-06-20 2023-09-08 铠强科技(平潭)有限公司 Data signal processing method and data signal processing device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007060111A (en) * 2005-08-23 2007-03-08 Ricoh Printing Systems Ltd Method and device for gradation processing
JP4527633B2 (en) * 2005-08-23 2010-08-18 株式会社リコー Gradation processing apparatus and method
US7948659B2 (en) 2005-08-23 2011-05-24 Ricoh Company, Ltd. Halftoning device and halftoning method and laser printer including the same
CN116721627A (en) * 2023-06-20 2023-09-08 铠强科技(平潭)有限公司 Data signal processing method and data signal processing device
CN116721627B (en) * 2023-06-20 2024-04-23 铠强科技(平潭)有限公司 Data signal processing method and data signal processing device

Similar Documents

Publication Publication Date Title
JP3313399B2 (en) Image processing device
JPS6198069A (en) Image processor
EP0781034B1 (en) Image processing apparatus and method
JPH0638031A (en) Image density reproducing method
JPH08317213A (en) Image processor
JP3113659B2 (en) Image forming device
JP3679522B2 (en) Image processing method and apparatus
JPH0260770A (en) Image processing system
JP3263201B2 (en) Image processing device
JP2857906B2 (en) Halftone binarization processor
JP2749985B2 (en) Image processing device
JP3475606B2 (en) Image processing device
JP3950871B2 (en) Image processing method and apparatus
JPH10136210A (en) Gradation correction method for image data and its device
JPH06253133A (en) Picture processing device
JPS6335071A (en) Variable power method
JP3155799B2 (en) MTF correction device
JPH08204960A (en) Image processor
JPS6180970A (en) Picture signal processor
JPH11328389A (en) Device and method for image processing
JPH0832798A (en) Method and device for processing image
JPS62107572A (en) Image processor
JPH0832797A (en) Method and device for processing image
JPH09179974A (en) Picture processor and its method
JPH0662224A (en) Image processor