JPH11266334A - Image reading device - Google Patents

Image reading device

Info

Publication number
JPH11266334A
JPH11266334A JP10088141A JP8814198A JPH11266334A JP H11266334 A JPH11266334 A JP H11266334A JP 10088141 A JP10088141 A JP 10088141A JP 8814198 A JP8814198 A JP 8814198A JP H11266334 A JPH11266334 A JP H11266334A
Authority
JP
Japan
Prior art keywords
processing
data
section
circuit
pointer
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
JP10088141A
Other languages
Japanese (ja)
Inventor
Shinichi Wakahara
真一 若原
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 JP10088141A priority Critical patent/JPH11266334A/en
Publication of JPH11266334A publication Critical patent/JPH11266334A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Facsimiles In General (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

(57)【要約】 【課題】 セクション数及びその読取条件の自由度を拡
張し、セクション機能を拡張させた画像読取装置を提供
すること。 【解決手段】 ディザ処理及び誤差拡散処理回路15
は、ディザパターン発生回路14から入力するディザパ
ターンデータをスレッシュホールド値とし、フィルタ処
理回路12から出力されるフィルタ処理後データに対し
て、2値化処理を行なうことと、接続している誤差拡散
ラインバッファ16の誤差データとともにフィルタ処理
後データに対して誤差拡散処理を行ない、誤差拡散処理
後の2値データを次段処理回路に出力する。2値化処理
選択17は、ディザパターン発生回路14に対してディ
ザパターン選択信号を、またフィルタ処理回路12に対
してフィルタ処理選択信号を、更に2値化データ選択回
路に対しては2値化信号を出力する。
(57) [Summary] [PROBLEMS] To provide an image reading apparatus in which the number of sections and the degree of freedom of reading conditions thereof are expanded and section functions are expanded. SOLUTION: Dither processing and error diffusion processing circuit 15
Is to use the dither pattern data input from the dither pattern generation circuit 14 as a threshold value, perform binarization processing on the filtered data output from the filter processing circuit 12, and An error diffusion process is performed on the data after the filtering process together with the error data in the line buffer 16, and the binary data after the error diffusion process is output to the next stage processing circuit. The binarization processing selection 17 includes a dither pattern selection signal to the dither pattern generation circuit 14, a filter processing selection signal to the filter processing circuit 12, and a binarization processing to the binarization data selection circuit. Output a signal.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ウインドウの中に
読取条件の異なる複数の領域を設定することができる画
像読取装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an image reading apparatus capable of setting a plurality of areas having different reading conditions in a window.

【0002】[0002]

【従来の技術】近年、ファクシミリ装置、イメージスキ
ャナ、更にはディジタル複写機等の画像読取装置にあっ
ては、その普及に伴って高級化が要求されてきている。
この高級化の要請に応えるものとして、まず、画像読取
装置の最大読取領域である原稿読取領域内にオペレータ
の読み取りたい領域をウインドウとして指定出来るウイ
ンドウ機能が出現した。このウインドウ機能は、図13
に示すように、読み取り可能領域X0から画素をカウン
トしてX1からイネーブルをアクティブにし、X2でイ
ネーブル信号をネガティブにしてウインドウ領域を設定
して読取りを行なう。このウインドウ領域の設定はX1
及びX2の設定をレジスタで行ない、このレジスタの設
定値に基づいてイネーブル信号の生成を行なうというハ
ードウエアとして固定された方法により行なっていた。
2. Description of the Related Art In recent years, with the spread of image reading apparatuses such as facsimile apparatuses, image scanners, and digital copiers, higher grades have been required.
As a response to this demand for higher quality, first, a window function has emerged that allows an operator to specify an area to be read as a window in a document reading area which is a maximum reading area of an image reading apparatus. This window function is shown in FIG.
As shown in (1), the pixels are counted from the readable area X0, the enable is activated from X1, the enable signal is made negative at X2, and the window area is set to perform reading. The setting of this window area is X1
And X2 are set by a register, and an enable signal is generated based on the set value of the register, by a method fixed as hardware.

【0003】更に、近時、ウインドウ機能だけでなく、
ウインドウ内にウインドウの読取条件とは異なる読取条
件の領域をセクションとして指定できるセクション指定
機能をも提案されている。従来のセクション機能は、上
記のウインドウ機能と同様な構成によりセクション領域
の指定を行なっている。すなわち、セクション領域設定
用のレジスタを設け、このレジスタの設定値によりイネ
ーブル信号を生成してセクション領域設定を行なうと、
その時の読取条件を設定して画像を読み取り、セクショ
ン機能を実行している。
Further, recently, not only the window function,
A section designating function has also been proposed in which a region having a reading condition different from the reading condition of the window can be designated as a section in the window. In the conventional section function, a section area is designated by a configuration similar to the above-described window function. That is, when a register for setting a section area is provided, and an enable signal is generated based on the set value of the register to set the section area,
The reading condition is set at that time, the image is read, and the section function is executed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の画像読取装置にあっては、セクション機能に
おけるセクション領域の指定をレジスタ等を用いてハー
ドウエアとして固定的に行なわれていたため、ハードウ
エアが決定されるとセクション数が一義的に決定され
る。その結果、セクション数や読取条件の拡張性に乏し
く、セクション機能の拡張性が乏しいという問題があっ
た。そこで、本発明の目的は、セクションを、該セクシ
ョンの主走査方向、副走査方向の位置を示すブレークポ
インタと、次のポインタシーケンスの位置を示すシーケ
ンスポインタと、読取条件を指定するアトリビュートポ
インタとの3要素で定義し、これら各要素を自由に設定
可能なものとすることにより、セクション数及びその読
取条件の自由度を拡張し、セクション機能を拡張させた
画像読取装置を提供することである。
However, in such a conventional image reading apparatus, the designation of the section area in the section function is fixedly performed as hardware using a register or the like. Is determined, the number of sections is uniquely determined. As a result, there is a problem that expandability of the number of sections and reading conditions is poor, and expandability of the section function is poor. Therefore, an object of the present invention is to provide a section including a break pointer indicating a position of the section in the main scanning direction and the sub-scanning direction, a sequence pointer indicating a position of a next pointer sequence, and an attribute pointer specifying a reading condition. It is an object of the present invention to provide an image reading apparatus in which the number of sections and the degree of freedom of the reading conditions are expanded by defining three elements and these elements can be freely set, thereby expanding the section function.

【0005】[0005]

【課題を解決するための手段】請求項1記載の発明で
は、最大読取領域を規定する原稿読取領域内に読み取り
たい領域をウインドウとして指定し、このウインドウ内
の原稿を主走査及び副走査して読み取るとともに、該ウ
インドウ内にウインドウの読取条件とは異なる読取条件
で読取る領域をセクションとして複数指定可能な画像読
取装置であって、前記セクションが、該セクションの主
走査方向、及び副走査方向の位置を示すブレークポイン
タと、次のポインタシーケンスの位置を示すシーケンス
ポインタと、読取条件を指定するアトリビュートポイン
タとの3要素で定義され、各要素を自由に設定可能な設
定手段を有し、セクションの各々の設定で、ディザマト
リクス法を指定した際に、それぞれ異なるディザマトリ
クス及びディザマトリクスサイズを指定するディザ処理
回路と2値誤差拡散処理回路が、共通で構成されること
で、前記目的を達成する。
According to the first aspect of the present invention, an area to be read is designated as a window in a document reading area which defines a maximum reading area, and the document in this window is scanned by main scanning and sub scanning. An image reading apparatus capable of reading and specifying a plurality of areas in the window under a reading condition different from a reading condition of a window as a section, wherein the section is positioned in a main scanning direction and a sub-scanning direction of the section. , A sequence pointer that indicates the position of the next pointer sequence, and an attribute pointer that specifies reading conditions. Different dither matrix and dither matrix when the dither matrix method is specified Dithering circuit and the binary error diffusion processing circuit for specifying the box size, that is of a common, to achieve the above object.

【0006】請求項2記載の発明では、請求項1記載の
発明において、誤差拡散処理に使用する誤差データの格
納用のラインバッファとフィルタ処理に使用するライン
バッファを共通で使用することを特徴とする。請求項3
記載の発明では、請求項1記載の発明において、セクシ
ョン処理時とセクション処理をしない場合にフィルタ処
理と誤差拡散処理でラインバッファの使用を切り替える
ことを特徴とする。
According to a second aspect of the present invention, in the first aspect, a line buffer for storing error data used for error diffusion processing and a line buffer used for filter processing are commonly used. I do. Claim 3
According to the invention described in the first aspect, the use of the line buffer is switched between the filter processing and the error diffusion processing during the section processing and when the section processing is not performed.

【0007】[0007]

【発明の実施の形態】以下、本発明の好適な実施の形態
を、図1ないし図12を参照して詳細に説明する。図1
ないし図8は本発明の一実施の形態を示す図であり、イ
メージスキャナ(以降スキャナ)装置に適用したもので
ある。図1はスキャナ装置の外観を示した図である。こ
の図1において、スキャナ装置1はその本体2上部に原
稿台3が設けられており、原稿台3はコンタクトガラス
で形成されている。本体2の上部前面には操作部4が設
けられており、操作部4には各種操作キーが設けられて
いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to FIGS. FIG.
FIG. 8 to FIG. 8 show an embodiment of the present invention, which is applied to an image scanner (hereinafter, scanner) device. FIG. 1 is a diagram showing the appearance of the scanner device. In FIG. 1, a document table 3 is provided on a main body 2 of a scanner device 1, and the document table 3 is formed of a contact glass. An operation unit 4 is provided on an upper front surface of the main body 2, and the operation unit 4 is provided with various operation keys.

【0008】本体2には原稿押え5が取り付けられてお
り、原稿押え5は原稿台3にセットされた原稿を原稿台
3に押さえつける働きをする。本体2内には原稿台3に
セットされた原稿に光を照射してその反射光を光電変換
する光電変換手段、この光電変換手段を副走査方向に移
動する副走査手段、光電変換手段で読み取った画像デー
タを処理する画像処理回路、特に、本実施の形態に係る
セクション処理を行なうセクション処理回路及びスキャ
ナ装置1の各部を制御する制御回路等が収納されてい
る。
A document holder 5 is attached to the main body 2, and the document holder 5 functions to press a document set on the document table 3 against the document table 3. In the main body 2, photoelectric conversion means for irradiating light on the original set on the document table 3 and photoelectrically converting the reflected light, sub-scanning means for moving the photoelectric conversion means in the sub-scanning direction, and reading by the photoelectric conversion means. An image processing circuit for processing the processed image data, in particular, a section processing circuit for performing section processing according to the present embodiment, a control circuit for controlling each unit of the scanner device 1, and the like are housed therein.

【0009】図2はセクション処理回路を示した図であ
る。セクション処理回路は、ガンマテーブル選択回路1
1、フィルタ処理回路12、フィルタ処理ラインバッフ
ァ13、ディザパターン発生回路14、ディザ処理及び
誤差拡散処理回路15、誤差拡散ラインバッファ16、
2値化処理選択17、ポインタメモリ18、ラッチ回路
19及び一致検出回路20を備えている。ガンマテーブ
ル選択回路11は、光電変換手段で読み取られた画像デ
ータが入力され、2値化処理選択17からのガンマテー
ブル選択信号によってガンマテーブルが選択され、その
選択されたガンマテーブルにより濃度変換した画像デー
タを出力する(図7、図8参照)。
FIG. 2 is a diagram showing a section processing circuit. The section processing circuit is a gamma table selection circuit 1
1, filter processing circuit 12, filter processing line buffer 13, dither pattern generation circuit 14, dither processing and error diffusion processing circuit 15, error diffusion line buffer 16,
It includes a binarization processing selection 17, a pointer memory 18, a latch circuit 19, and a coincidence detection circuit 20. The gamma table selection circuit 11 receives the image data read by the photoelectric conversion means, selects a gamma table according to a gamma table selection signal from the binarization processing selection 17, and converts the image into a density converted by the selected gamma table. The data is output (see FIGS. 7 and 8).

【0010】フィルタ処理回路12は、前記ガンマテー
ブル選択回路11で選択された画像データが入力され、
2値化処理選択17からのフィルタ処理選択信号によっ
て、フィルタ処理ラインバッファ13とアクセスしなが
ら、演算処理を行って、MTF補正或いは平滑化処理後
データを出力する。ディザパターン発生回路14は、C
PU(中央処理装置)設定により各種のディザパターン
データをディザパターン発生回路内のメモリに持ち、デ
ィザパターン発生回路内のディザパターン発生カウンタ
とディザパターン選択信号によりメモリからディザデー
タを選択し、ディザ処理回路にディザパターンデータを
出力する。なお、このディザパターン発生回路14で
は、単純な固定スレッシュを発生させる場合には、メモ
リに連続する固定データを格納し、そこからデータを読
み出すことにより固定スレッシュデータを出力する。
The filter processing circuit 12 receives the image data selected by the gamma table selection circuit 11 and inputs the image data.
According to the filter processing selection signal from the binarization processing selection 17, the arithmetic processing is performed while accessing the filter processing line buffer 13, and data after MTF correction or smoothing processing is output. The dither pattern generation circuit 14
Various types of dither pattern data are stored in a memory in a dither pattern generation circuit by setting a PU (central processing unit). Dither data is selected from the memory by a dither pattern generation counter and a dither pattern selection signal in the dither pattern generation circuit, and dither processing is performed. Output dither pattern data to the circuit. When a simple fixed threshold is generated, the dither pattern generation circuit 14 stores continuous fixed data in a memory, and reads out data from the memory to output fixed threshold data.

【0011】ディザ処理及び誤差拡散処理回路15は、
ディザパターン発生回路14から入力するディザパター
ンデータをスレッシュホールド値とし、フィルタ処理回
路12から出力されるフィルタ処理後データに対して、
2値化処理を行なうことと、接続している誤差拡散ライ
ンバッファ16の誤差データとともにフィルタ処理後デ
ータに対して誤差拡散処理を行ない、誤差拡散処理後の
2値データを次段処理回路に出力する。2値化処理選択
17は、ディザパターン発生回路14に対してディザパ
ターン選択信号を、またフィルタ処理回路12に対して
フィルタ処理選択信号を、更に2値化データ選択回路に
対しては2値化信号を出力する。
The dither processing and error diffusion processing circuit 15
The dither pattern data input from the dither pattern generation circuit 14 is used as a threshold value, and the filtered data output from the filter processing circuit 12 is
Performing the binarization processing, performing error diffusion processing on the filtered data together with the error data of the connected error diffusion line buffer 16, and outputting the binary data after the error diffusion processing to the next-stage processing circuit I do. The binarization processing selection 17 includes a dither pattern selection signal to the dither pattern generation circuit 14, a filter processing selection signal to the filter processing circuit 12, and a binarization processing to the binarization data selection circuit. Output a signal.

【0012】ポインタメモリ18は、RAM(ランダム
・アクセス・メモリ)により形成されており、図3に示
すように、128個のポインタブロックP0〜P127
に分けられている。各ポインタブロックP0〜P127
は、8個のセクションデスクリプトバイト(セクション
ポインタ)SDB0〜SDB7で形成され、ポインタメ
モリは1024バイトの容量を有している。セクション
デスクリプトバイトSDB0、1、7はアトリビュート
バイト(アトリビュートポインタ)であり、前記2値化
処理選択17に出力され、画像データの読取条件を設定
する。
The pointer memory 18 is formed by a RAM (random access memory), and has 128 pointer blocks P0 to P127 as shown in FIG.
Are divided into Pointer blocks P0 to P127
Is formed of eight section script bytes (section pointers) SDB0 to SDB7, and the pointer memory has a capacity of 1024 bytes. The section debug bytes SDB0, 1, and 7 are attribute bytes (attribute pointers), which are output to the binarization processing selection 17 and set the image data reading conditions.

【0013】セクションデスクリプトバイトSDB6
は、シーケンスバイト(シーケンスポインタ)であり、
そのセクションデスクリプトバイトSDB6の所属する
ポインタブロックP0〜P127のセクションのブレー
クポイント(主走査方向の終端)の次に続くセクション
の所属するポインタブロックP0〜P127を指定す
る。セクションデスクリプトバイトSDB2及びセクシ
ョンデスクリプトバイトSDB3は、主走査方向のブレ
ークポインタであり、そのセクションデスクリプトバイ
トSDB2、SDB3の所属するセクションの主走査ブ
レークポイントを指定する。
Section script byte SDB6
Is a sequence byte (sequence pointer),
The pointer blocks P0 to P127 to which the section following the breakpoint (end in the main scanning direction) of the section of the pointer blocks P0 to P127 to which the section script byte SDB6 belongs are specified. The section debug byte SDB2 and the section debug byte SDB3 are break pointers in the main scanning direction, and specify a main scan break point of the section to which the section debug bytes SDB2 and SDB3 belong.

【0014】また、このセクションデスクリプトバイト
SDB2、SDB3は1ラインの画素数が8000画素
程度のスキャナ装置1にも対応できるようにするため
に、セクションデスクリプトバイトSDB2、SDB3
の2バイトを使用しており、その内容は主走査のポイン
トデータとしてラッチに出力される。セクションデスク
リプトバイトSDB4及びSDB5は、副走査方向のブ
レークポインタであり、そのセクションデスクリプトバ
イトSDB4、SDB5の所属するセクションの副走査
のブレークポイントを指定する。このセクションデスク
リプトバイトSDB4、SDB5は、1フレームのライ
ン数が16進数で16ビット幅で設定出来る範囲分のラ
イン数の指定を行なうことができる。そして、その内容
は副走査のポイントデータとしてラッチに出力される。
The section script bytes SDB2 and SDB3 are used in order to support the scanner device 1 having about 8000 pixels per line.
Are used as the main scan point data and output to the latch. The section script bytes SDB4 and SDB5 are break pointers in the sub-scanning direction, and designate breakpoints in the sub-scan of the section to which the section script bytes SDB4 and SDB5 belong. The section debug bytes SDB4 and SDB5 can specify the number of lines in a range in which the number of lines in one frame can be set in a hexadecimal number with a 16-bit width. The content is output to the latch as sub-scanning point data.

【0015】ここで、セクションデスクリプトバイトS
DB0〜SDB7をまとめて示すと、以下のようにな
る。 SDB0,SDB1、SDB7:アトリビュートバイト
(アトリビュートポインタ) SDB2,SDB3:主走査ブレークポインタ SDB4,SDB5:副走査ブレークポインタ SDB6:シーケンスバイト(シーケンスポインタ) このポインタメモリには、一致検出回路20からの主走
査、及び副走査のポインタ一致信号及びCPUからの設
定によりポイントデータが入力されており、これら一致
信号及びポイントデータについては後述する。
Here, the section script byte S
DB0 to SDB7 are summarized as follows. SDB0, SDB1, SDB7: attribute byte (attribute pointer) SDB2, SDB3: main scanning break pointer SDB4, SDB5: sub-scanning break pointer SDB6: sequence byte (sequence pointer) , And the sub-scanning pointer coincidence signal and the point data according to the setting from the CPU. The coincidence signal and the point data will be described later.

【0016】ラッチ回路19は、ポインタメモリ18か
らの主走査及び副走査のポイントデータをラッチして一
致検出回路20に出力し、一致検出回路20はこの主走
査及び副走査のポイントデータと図外の制御部から入力
される主走査カウンタ信号及び副走査カウンタ信号とを
比較する。主走査カウンタ信号は制御部の内蔵する主走
査カウンタがライン毎に画像データの主走査方向の画素
数をカウントして出力する信号であり、また副走査カウ
ンタ信号は制御部の内蔵する副走査カウンタが読取画像
のライン数をカウントして出力する信号である。一致検
出回路20はこの主走査カウンタ信号、及び副走査カウ
ンタ信号とがそれぞれ主走査ポイントデータ、副走査ポ
イントデータと一致すると、それぞれ、主走査、及び副
走査のポインタ一致信号をポインタメモリ18に出力す
る。ポインタメモリ18は一致検出回路20から主副の
ポインタ一致信号が入力されると、前記ポインタブロッ
クP0〜P127の切り換えを行なう。すなわち、セク
ションデスクリプトバイトSDB6で指定される次のポ
インタブロックP0〜P127に移行する。
The latch circuit 19 latches the main scanning and sub-scanning point data from the pointer memory 18 and outputs the latched point data to the coincidence detecting circuit 20. Are compared with the main scanning counter signal and the sub-scanning counter signal input from the control unit. The main scanning counter signal is a signal that the main scanning counter built in the control unit counts and outputs the number of pixels of image data in the main scanning direction for each line, and the sub scanning counter signal is a sub scanning counter built in the control unit. Is a signal for counting and outputting the number of lines of the read image. When the main-scanning counter signal and the sub-scanning counter signal match the main-scanning point data and the sub-scanning point data, respectively, the coincidence detection circuit 20 outputs main-scanning and sub-scanning pointer match signals to the pointer memory 18, respectively. I do. When the main / sub pointer coincidence signal is input from the coincidence detection circuit 20, the pointer memory 18 switches the pointer blocks P0 to P127. That is, the process moves to the next pointer block P0 to P127 specified by the section script byte SDB6.

【0017】次に、図4ないし図6を参照してこの実施
の形態の作用を説明する。図4に示すように、ウインド
ウ内に、2つのセクションS1、S2を重ねあわせて設
定する場合について説明する。ウインドウWの領域設定
は、原稿台3の全領域を最大読取可能領域(原稿読取領
域)内において、A4、A5、B5等のサイズ指定や領
域の左上座標と右下座標を指定する座標指定等により行
なわれる。また、セクションS1、S2の領域指定は、
図5に示すように、各セクションS1、S2の左上座標
と右下座標を指定することにより行う。
Next, the operation of this embodiment will be described with reference to FIGS. As shown in FIG. 4, a case will be described in which two sections S1 and S2 are superimposed and set in a window. The area setting of the window W is performed by specifying the size of A4, A5, B5, etc. in the maximum readable area (original reading area) of the entire area of the document table 3 and the coordinate specification for specifying the upper left coordinate and the lower right coordinate of the area. It is performed by Also, the area designation of the sections S1 and S2 is as follows:
As shown in FIG. 5, this is performed by specifying the upper left coordinates and the lower right coordinates of each section S1, S2.

【0018】そして、ウインドウW及びセクションS
1、S2の各読取条件が設定されると、これら座標情報
及びアトリビュート情報に基づいてスキャナ装置1の制
御部がポインタメモリ内にポインタの展開を行なう。す
なわち、ウインドウWが原稿読取領域の左上角Q0
(0,0)より座標(E,E)の点QEまでを指定さ
れ、セクションS1としてQ1(X1,Y1)とQ12
(X2,Y2)が、セクションS2としてQ3(X3,
Y3)とQ10(X4,Y4)指定されると、スキャナ
装置1の制御部は入力された座標情報を、図6に示すよ
うにポインタメモリにポインタを展開する。
Then, the window W and the section S
When the reading conditions of S1 and S2 are set, the control unit of the scanner device 1 expands the pointer in the pointer memory based on the coordinate information and the attribute information. That is, the window W is located at the upper left corner Q0 of the document reading area.
From (0, 0) to the point QE of the coordinates (E, E) is designated, and Q1 (X1, Y1) and Q12 are set as the section S1.
(X2, Y2) becomes Q3 (X3,
When Y3) and Q10 (X4, Y4) are designated, the control unit of the scanner device 1 expands the input coordinate information into a pointer memory as shown in FIG.

【0019】すなわち、図6において、ポインタ構造図
の右側に”0”から”10”まで付してある数字はポイ
ンタナンバーを示しており、左側に示してあるポインタ
ブロックのネームP0〜P63(図示ではP0〜P1
0)の順位を示している。各ポインタブロックP0〜P
63はそのセクションデスクリプトバイトSDB0〜S
DB7が、図3に示したものと同様に、下段よりアトリ
ビュートバイトSDB0、SDB1、主走査ブレークポ
インタSDB2、SDB3、副走査ブレークポインタS
DB4、SDB5、シーケンスバイトSDB6、アトリ
ビュートバイトSDB7を示している。
That is, in FIG. 6, the numbers attached from "0" to "10" on the right side of the pointer structure diagram indicate pointer numbers, and the names P0 to P63 of the pointer blocks shown on the left side (shown in FIG. 6). Then P0-P1
0) is shown. Each pointer block P0-P
63 is the section script bytes SDB0 to SDB
DB7, the attribute bytes SDB0 and SDB1, the main scan break pointers SDB2 and SDB3, and the sub scan break pointer S
DB4, SDB5, sequence byte SDB6, and attribute byte SDB7 are shown.

【0020】操作部4のスタートボタンが押され、原稿
の画像の読み取りが開始されると、主走査カウンタ信
号、副走査カウンタ信号が駆動される。このカウンタ信
号によりポインタメモリに設定した条件により指定のポ
イント毎に指定の処理を行なっていく。読取開始におい
て、ポインタメモリ18ではポインタブロックP0を指
定する。指定されたポインタブロックP0のセクション
デスクリプトバイトSDB0、SDB1、SDB7から
読取条件Aを意味するアトリビュート選択信号を2値化
処理選択17に出力し、主走査セクションデスクリプト
バイトSDB2、SDB3から主走査ポイントデータを
また副走査セクションデスクリプトバイトSDB4、S
DB5から副走査ポイントデータをそれぞれラッチ回路
19に出力する。
When the start button of the operation unit 4 is pressed to start reading an image on a document, the main scanning counter signal and the sub-scanning counter signal are driven. The designated process is performed for each designated point according to the condition set in the pointer memory by the counter signal. At the start of reading, the pointer memory 18 specifies the pointer block P0. An attribute selection signal indicating the reading condition A is output from the section script bytes SDB0, SDB1, and SDB7 of the designated pointer block P0 to the binarization processing selection 17, and the main scanning point is output from the main scanning section script bytes SDB2 and SDB3. The data is also transferred to the sub-scan section debug byte SDB4, S
The sub-scanning point data is output from the DB 5 to the latch circuit 19, respectively.

【0021】2値化処理選択17は、アトリビュート選
択信号を更にディザパターン発生回路14、ガンマテー
ブル選択回路11、ディザ処理及び誤差拡散処理回路1
5に送り、ガンマテーブル選択回路11はアトリビュー
ト選択信号により指定されたガンマテーブル変換後デー
タを選択し、次段に出力する。ディザパターン発生回路
14は、アトリビュート選択信号により指定されたパタ
ーンデータを比較信号としてディザ処理及び誤差拡散処
理回路15に出力し、ディザ処理及び誤差拡散処理回路
15は、アトリビュート選択信号により指定された2値
化処理を行う。ディザ処理が指定された場合には、比較
信号とフィルタ処理後の画像データを比較して、先頭画
素の画像データより2値化処理を開始する。
The binarization processing selection 17 further converts the attribute selection signal into a dither pattern generation circuit 14, a gamma table selection circuit 11, a dither processing and error diffusion processing circuit 1.
5, the gamma table selection circuit 11 selects the data after the gamma table conversion specified by the attribute selection signal, and outputs it to the next stage. The dither pattern generation circuit 14 outputs the pattern data specified by the attribute selection signal to the dither processing and error diffusion processing circuit 15 as a comparison signal, and the dither processing and error diffusion processing circuit 15 outputs the pattern data designated by the attribute selection signal. Perform value conversion processing. When the dither processing is designated, the comparison signal is compared with the image data after the filter processing, and the binarization processing is started from the image data of the first pixel.

【0022】また、誤差拡散処理が指定された場合に
は、フィルタ処理後の画像データから誤差データを算出
し、ディザパターン発生回路14からのパターンデータ
を比較信号として2値化処理し、その時に出来る真値化
後の誤差データを誤差拡散ラインバッファ16に蓄積す
る。誤差拡散処理においても先頭画像データより2値化
処理を開始する。このようにポイントQ0より読取条件
Aにより画像データの2値化処理を開始し、ポインタブ
ロックP0のセクションデスクリプトバイト(ブレーク
ポインタ)SDB2、SDB3が(MAX)として設定
されているため、ウインドウWの主走査方向終端である
ポイント(O、E)まで処理を行なう。このポイント
(O、E)まで処理が進むと、副走査セクションデスク
リプトバイトSDB4、SDB5で指定したラインであ
るかどうかを副走査カウンタ信号と比較し、一致しなけ
れば、次ラインはP0で設定した処理を行なう。
When the error diffusion processing is designated, error data is calculated from the image data after the filter processing, and the pattern data from the dither pattern generation circuit 14 is binarized as a comparison signal. The error data after being converted into a true value is accumulated in the error diffusion line buffer 16. Also in the error diffusion processing, the binarization processing is started from the first image data. Thus, the binarization processing of the image data is started from the point Q0 under the reading condition A, and the section script bytes (break pointers) SDB2 and SDB3 of the pointer block P0 are set as (MAX). The processing is performed up to the point (O, E) which is the end in the main scanning direction. When the processing advances to this point (O, E), it is compared with the sub-scanning counter signal whether or not the line is specified by the sub-scanning section debug bytes SDB4 and SDB5. If they do not match, the next line is set at P0. Performed processing.

【0023】このように副走査デスクリプションバイト
で指定したラインまで処理を繰り返し、副走査カウンタ
信号と一致した時点でP0のセクションデスクリプトバ
イトのシーケンスポインタで指示するポインタブロック
P1の処理に移動する。つまり、ポインタブロックP0
の指定により、図5にQ01として示すラインまで読取
条件Aで処理を行なうことになる。
As described above, the processing is repeated up to the line specified by the sub-scanning description byte, and when the line coincides with the sub-scanning counter signal, the process moves to the processing of the pointer block P1 indicated by the sequence pointer of the section script byte of P0. That is, the pointer block P0
, The processing is performed under the reading condition A up to the line indicated by Q01 in FIG.

【0024】その次ラインより、ポインタメモリ18で
の指定で、ポインタブロックP1に基づいて2値化処理
選択17に読取条件”A”のアトリビュート選択信号を
出力するとともに、”X1”を表示するポインタデータ
をラッチ回路19に出力する。従って、2値化処理選択
17は読取条件”A”で2値化処理を各ブロックに指示
する。ここでポインタブロックP1のセクションデスク
リプトバイト(シーケンスバイト)SDB6には”2”
が表示されているため、読取条件”A”で主走査方向”
X1”まで処理が進むと、すなわち、主走査ポイントデ
ータと主走査カウンタ信号が一致して、一致信号が一致
検出回路20から入力されるとポインタメモリ18はポ
インタブロックP1のセクションデスクリプトバイトS
DB6で指定するポインタブロックP2に移って、ポイ
ンタブロックP2に基づいて、主走査方向”X1”の位
置から読取条件”C”による2値化処理が開始される。
From the next line, the designation of the pointer memory 18 outputs an attribute selection signal of the reading condition "A" to the binarization processing selection 17 based on the pointer block P1 and a pointer for displaying "X1". The data is output to the latch circuit 19. Therefore, the binarization processing selection 17 instructs each block to perform the binarization processing under the reading condition “A”. Here, "2" is set in the section script byte (sequence byte) SDB6 of the pointer block P1.
Is displayed, the reading condition “A” indicates the main scanning direction “
When the processing advances to X1 ″, that is, when the main scanning point data and the main scanning counter signal match and a match signal is input from the match detection circuit 20, the pointer memory 18 stores the section debug byte S of the pointer block P1.
The process proceeds to the pointer block P2 designated by DB6, and based on the pointer block P2, the binarization process is started from the position in the main scanning direction "X1" under the reading condition "C".

【0025】処理が主走査方向”X2”まで進むと、一
致検出回路20から一致信号が出力され、ポインタメモ
リ18は一致信号が入力されると、ポインタブロックP
3のセクションデスクリプトバイトSDB1で指定され
るポインタブロックに移って、ポインタブロックP3で
指定される読取条件”A”のアトリビュート選択信号を
2値化処理選択17に出力するとともに、”MAX”を
表示するポイントデータをラッチ回路19に出力する。
従って、主走査方向”E”まで読取条件”A”による処
理を行なう。この処理を副走査方向”y3”まで繰り返
して行う。副走査がポイントQ02である”y3”まで
進むと、セクションデスクリプトバイトSDB3、SD
B4の指定によるライン数と副走査カウンタ信号と一致
して、バイトデータが”P4”に切り換わる。
When the processing proceeds to the main scanning direction "X2", a coincidence signal is output from the coincidence detection circuit 20, and when the coincidence signal is input, the pointer memory
Then, the process proceeds to the pointer block specified by the section script byte SDB1 of No. 3 and outputs the attribute selection signal of the reading condition “A” specified by the pointer block P3 to the binarization processing selection 17 and displays “MAX”. Point data to be output to the latch circuit 19.
Therefore, processing under the reading condition "A" is performed up to the main scanning direction "E". This process is repeatedly performed up to the sub-scanning direction “y3”. When the sub-scan advances to “y3” which is the point Q02, the section script bytes SDB3, SD
The byte data is switched to "P4" in accordance with the number of lines specified by B4 and the sub-scanning counter signal.

【0026】よって次ラインより、ポインタメモリ18
はポインタブロックP4に基づいて2値化処理選択17
に読取条件”A”のアトリビュート選択信号を出力する
とともに、”x3”を表示するポイントデータをラッチ
回路19に出力する。従って、2値化処理選択17は読
取条件”A”により主走査方向”x3”までの2値化処
理を各ブロックに指示し、”x3”まで処理が進むと、
一致検出回路20から一致信号がポインタメモリ18に
入力されて、ポインタブロックP4のセクションデスク
リプトバイトSDB6で指定されるポインタブロックP
5に移行する。
Therefore, the pointer memory 18 starts from the next line.
Is a binarization process selection 17 based on the pointer block P4.
, An attribute selection signal of the reading condition “A” is output, and point data indicating “x3” is output to the latch circuit 19. Therefore, the binarization processing selection 17 instructs each block to perform the binarization processing up to the main scanning direction “x3” according to the reading condition “A”, and when the processing proceeds to “x3”,
A match signal is input from the match detection circuit 20 to the pointer memory 18, and the pointer block P designated by the section script byte SDB6 of the pointer block P4
Move to 5.

【0027】ポインタメモリ18は、ポインタブロック
P5で指定される読取条件”B”のアトリビュート選択
信号を2値化処理選択17に出力するとともに、セクシ
ョンデスクリプトバイトSDB2、SDB3の”x4”
を表示するポイントデータをラッチ回路19に出力す
る。従って、主走査方向”x3”から”x4”までは読
取条件”B”による2値化処理が行なわれ、主走査方
向”x4”まで処理が進むと、セクションデスクリプト
バイトSDB6の指定するポインタブロックP6に移
る。ポインタメモリ18は、ポインタブロックP6のセ
クションデスクリプトバイトSDB0の指定する読取条
件”A”のアトリビュート選択信号を2値化処理選択1
7に出力するとともに、セクションデスクリプトバイト
SDB2、SDB3の”MAX”を表示するポイントデ
ータをラッチ回路19に出力する。
The pointer memory 18 outputs an attribute selection signal of the reading condition "B" specified by the pointer block P5 to the binarization processing selection 17, and also outputs "x4" of the section script bytes SDB2 and SDB3.
Is output to the latch circuit 19. Therefore, the binarization process is performed based on the reading condition "B" from the main scanning direction "x3" to "x4", and when the process proceeds to the main scanning direction "x4", the pointer block designated by the section script byte SDB6 Move to P6. The pointer memory 18 converts the attribute selection signal of the read condition “A” specified by the section debug byte SDB0 of the pointer block P6 into the binarization process selection 1
7 and the point data indicating “MAX” of the section script bytes SDB2 and SDB3 is output to the latch circuit 19.

【0028】従って、主走査方向x4からウインドウW
の右端”E”までは読取条件”A”による処理を行な
う。この処理を副走査方向”y4”まで繰り返して行
い、副走査デスクリプションバイトSDB4、SDB5
で指示するライン数と一致し、次ラインから、上記ポイ
ントQ01からポイントQ02までの領域と同様に、ポ
イントQ03からポイントQ04までの領域の処理を行
なう。さらに、ポイントQ04まで処理が進むと、ポイ
ントQ0からポイントQ01までの領域の処理同様の処
理をポイントQ04からポイントQ05までの領域につ
いて実行する。
Therefore, the window W is moved from the main scanning direction x4.
The processing under the reading condition "A" is performed up to the right end "E". This processing is repeatedly performed up to the sub-scanning direction “y4”, and the sub-scan description bytes SDB4, SDB5
, The processing from the next line to the area from point Q03 to point Q04 is performed in the same manner as the area from point Q01 to point Q02. Further, when the processing proceeds to the point Q04, the same processing as the processing of the area from the point Q0 to the point Q01 is executed for the area from the point Q04 to the point Q05.

【0029】このように主走査副走査方向のポインタを
読み取り前に一括してポインタメモリ18に指示するこ
とにより、読取ライン中にCPUがセクション処理に対
して負荷を負うことなくガンマ変換を伴うセクション処
理を行なう。本実施の形態では、図7に示すようにSD
B7がガンマテーブルを指定するセクションデスクリプ
トバイトとして示してあり、読取条件A、B、Cはそれ
ぞれガンマテーブル1、ガンマテーブル2、ガンマテー
ブル3を指定している。
As described above, the pointers in the main scanning and sub-scanning directions are collectively indicated to the pointer memory 18 before the reading, so that the CPU does not impose a load on the section processing during the reading line and the section with the gamma conversion is performed. Perform processing. In the present embodiment, as shown in FIG.
B7 is shown as a section script byte that specifies a gamma table, and the reading conditions A, B, and C specify a gamma table 1, a gamma table 2, and a gamma table 3, respectively.

【0030】アトリビュート選択において、2値化処理
の指定が誤差拡散、或いはディザ処理の場合の処理につ
いて説明する。図2で示すセクション処理回路中のディ
ザ処理及び誤差拡散処理回路15のブロックを示したの
が図9である。図9で示すディザ処理及び誤差拡散処理
回路ブロックにおいて、フィルタ処理後の画像データ
が、入力画像として加算回路に入力する。ここでは、そ
の入力した画像データを注目画素として、周囲誤差デー
タの重み付け総和したデータとの和を取り、次段の出力
値演算に出力する。なお、周囲誤差データの重み付け総
和の演算回路では、前ライン分の誤差データの重み付け
総和を取る。
A description will be given of a process in the case where the binarization process is designated by error diffusion or dither process in attribute selection. FIG. 9 shows a block diagram of the dither processing and error diffusion processing circuit 15 in the section processing circuit shown in FIG. In the dither processing and error diffusion processing circuit block shown in FIG. 9, the image data after the filter processing is input to the addition circuit as an input image. Here, the input image data is set as a target pixel, the sum of the input image data and the weighted sum of the surrounding error data is calculated, and the sum is output to the output value calculation in the next stage. The arithmetic circuit for the weighted sum of the surrounding error data takes the weighted sum of the error data of the previous line.

【0031】図10は誤差拡散処理における重み付け総
和のマトリクス例である。この図10の例では、注目画
素が※印で示す位置に有り、注目画素と同一ラインの演
算対象となる誤差データは、隣の1画素のみで、前ライ
ンの誤差データが3画素という構成である。演算対象で
ある隣の画素のところに示す数字は誤差データの重み付
けを意味する。このマトリクス例では、重み付け1とし
てこの位置に誤差データを1倍して周辺画素の総和を取
る。同様に、前ラインの演算対象画素位置にあたる3画
素に対しても、重み付け1で、この誤差拡散演算マトリ
クスで示す周囲誤差データは、全て重み付け1にて総和
を取る。
FIG. 10 is an example of a matrix of the weighted sum in the error diffusion process. In the example of FIG. 10, the target pixel is located at the position indicated by the mark *, the error data to be calculated on the same line as the target pixel is only one adjacent pixel, and the error data of the previous line is three pixels. is there. The number shown at the adjacent pixel to be operated means weighting of the error data. In this matrix example, the error data is multiplied by 1 at this position as the weighting 1, and the sum of the peripheral pixels is obtained. Similarly, weighting is applied to three pixels at the position of the pixel to be calculated on the previous line, and all the surrounding error data indicated by the error diffusion calculation matrix are summed up with weighting 1.

【0032】前記周囲誤差データの重み付け総和演算回
路で説明したように、周囲誤差データの重み付け総和演
算回路から、前ライン分の誤差データの総和を加算回路
に対して出力し、そこでさらに注目画素と同じラインデ
ータの隣の誤差データとの和を取り、周囲誤差データの
総和が完成される。総和したデータをこの例では、1/
4し、1/4したデータと注目画素との和を取る。この
データは、加算回路から出力値演算回路に出力される。
As described in the circuit for calculating the weighted sum of the surrounding error data, the total of the error data for the previous line is output from the circuit for calculating the weighted sum of the surrounding error data to the adding circuit. The sum of the same line data and the adjacent error data is calculated, and the sum of the surrounding error data is completed. In this example, the summed data is 1 /
Then, the sum of the quartered data and the target pixel is calculated. This data is output from the addition circuit to the output value calculation circuit.

【0033】次に、出力値演算回路での処理を説明す
る。加算回路から入力した誤差演算データは、ディザパ
ターン発生回路14からのパターンデータをしきい値と
して2値化処理を行う。2値化処理によって得られた2
値データは誤差拡散処理後の2値データとして出力す
る。この時、この2値化した注目画素の誤差データを生
成する。誤差データの生成方法は2値化処理データが”
1”の際には加算回路から入力した誤差演算データより
255減算した後のデータを注目画素の誤差データと
し、逆に2値化処理後データが”0”の際には加算回路
から入力した誤差演算データを注目画素の誤差データと
して出力する。この誤差データは次の注目画素に対して
は同一ラインデータ上の隣の画素となるので、次の注目
画素のために加算回路に対して出力する。また、次ライ
ンでの誤差拡散演算においては前ラインの誤差データと
するのでラインバッファに対して出力し、次ライン処理
に備える。次ラインでの処理の際にはラインバッファよ
り誤差データを取り出し、前ラインにおける誤差データ
として使用する。この様にして誤差拡散処理を行う。
Next, the processing in the output value calculation circuit will be described. The error calculation data input from the addition circuit performs a binarization process using the pattern data from the dither pattern generation circuit 14 as a threshold. 2 obtained by the binarization process
The value data is output as binary data after error diffusion processing. At this time, error data of the binarized target pixel is generated. Error data generation method is binary processing data.
In the case of "1", data obtained by subtracting 255 from the error operation data input from the adder circuit is used as the error data of the target pixel. Conversely, when the data after binarization processing is "0", the data is input from the adder circuit. The error calculation data is output as the error data of the pixel of interest, which is the next pixel on the same line data for the next pixel of interest, and is therefore output to the adder circuit for the next pixel of interest. In the error diffusion calculation on the next line, the error data of the previous line is output to the line buffer, so that the error data is prepared for the next line processing. The extracted data is used as error data in the previous line, and error diffusion processing is performed in this manner.

【0034】続いて、同じ回路を用いてディザ処理を行
う場合の処理について説明する。図9では画像データの
入力が、まず加算回路に入るが、ディザ処理が選択され
た場合、ここでの加算処理を行わずに次段の出力値演算
部に出力する。出力値演算部においてはディザデータを
スレッシュホールド値として2値化処理を行う。2値化
処理により得られたデータがディザ処理後の画像データ
として次段に出力される。この様にアトリビュート選択
信号により誤差拡散処理、ディザ処理の切り換えを行
い、セクション処理を要求に応じて行う。
Next, a description will be given of a case where dither processing is performed using the same circuit. In FIG. 9, the input of the image data first enters the addition circuit, but when dither processing is selected, the image data is output to the output value calculation unit in the next stage without performing the addition processing. The output value calculator performs binarization processing using the dither data as a threshold value. The data obtained by the binarization processing is output to the next stage as image data after dither processing. As described above, switching between error diffusion processing and dither processing is performed by the attribute selection signal, and section processing is performed as required.

【0035】次に、前記装置において、誤差拡散処理と
フィルタ処理にそれぞれ使用しているラインバッファを
共通使用する場合の例を示す。図2で示したセクション
処理回路例では、フィルタ処理回路12には、フィルタ
処理ラインバッファ13を使用し、ディザ処理及び誤差
拡散処理回路15には、誤差拡散ラインバッファ16を
使用するように示している。それぞれの機能の上におい
て、共通で使用する方法であるが、図11を用いて説明
する。図11はフィルタマトリクスとフィルタ処理ライ
ンバッァの構成を示す例である。
Next, an example in which the line buffers used for the error diffusion processing and the filter processing are commonly used in the apparatus will be described. In the section processing circuit example shown in FIG. 2, a filter processing line buffer 13 is used for the filter processing circuit 12, and an error diffusion line buffer 16 is used for the dither processing and error diffusion processing circuit 15. I have. A method commonly used for each function will be described with reference to FIG. FIG. 11 is an example showing the configuration of a filter matrix and a filter processing line buffer.

【0036】この例では、フィルタ演算は5×5サイズ
のマトリクスを用いている。5×5のマトリクスを構成
するために、フィルタ処理ラインバッファは4本のライ
ンバッファで構成され、そのラインバッファにより副走
査方向に4ライン分遅延させて、現ラインデータを含め
て5×5のマトリクスサイズを形成している。フィルタ
演算を行う際には、このようにマトリクスを形成して、
目的のフィルタ演算を行うためにマトリクス上の画像デ
ータに対して、重み付けを行い、注目画素に対するフィ
ルタ演算処理を施したデータを生成する。
In this example, the filter operation uses a matrix of 5 × 5 size. In order to form a 5 × 5 matrix, the filter line buffer is composed of four line buffers, and the line buffer delays the data by 4 lines in the sub-scanning direction. The matrix size is formed. When performing a filter operation, a matrix is formed in this way,
In order to perform a target filter operation, the image data on the matrix is weighted to generate data obtained by performing a filter operation process on a target pixel.

【0037】図11に示す処理例では、セクションの指
定が誤差拡散処理以外の場合には、全てのラインバッフ
ァを用いて5×5のマトリクス演算処理を行う。セクシ
ョンの指定が誤差拡散である場合、この回路に対して、
アトリビュート信号が誤差拡散処理である旨を伝える。
その情報により、フィルタ処理ラインバッファのうち、
もっともライン遅延を発生させるラインバッファ4を誤
差拡散用の誤差データの蓄積を行うラインバッファに切
り換える。この切り換えにより、ラインバッファ4は誤
差拡散処理により生成される誤差データの遅延処理を行
うための働きをさせる。この処理により誤差拡散処理を
行うことができる。フィルタ処理においては、ライン遅
延を生成するラインバッファを1ライン分無くす事によ
り、その際のマトリクスサイズは5×4サイズとなる。
なお、マトリクスサイズを小さくしても、注目画素の位
置は変えてはいけない。誤差拡散処理を行う上では、フ
ィルタ処理は5×4サイズとして処理を行う。図12は
装置のセクション処理回路例を示した図である。
In the processing example shown in FIG. 11, when the section designation is other than the error diffusion processing, a 5 × 5 matrix operation processing is performed using all the line buffers. If the section specification is error diffusion,
Informs that the attribute signal is error diffusion processing.
With that information, of the filtered line buffer,
The line buffer 4 that generates the line delay is switched to a line buffer that accumulates error data for error diffusion. With this switching, the line buffer 4 functions to delay the error data generated by the error diffusion processing. By this processing, error diffusion processing can be performed. In the filtering process, by eliminating the line buffer for generating the line delay for one line, the matrix size at that time becomes 5 × 4.
Even if the matrix size is reduced, the position of the pixel of interest must not be changed. In performing the error diffusion process, the filter process is performed as a 5 × 4 size. FIG. 12 is a diagram showing an example of a section processing circuit of the device.

【0038】前記装置を用いてセクション処理とそれ以
外の処理でフィルタ処理とラインバッファの使用の切り
換えを行う処理例を説明する。図12が前記セクション
処理の回路例である。この回路ではセクションによる画
像の切り換えを行わない場合には以下のように動作させ
る。まず、ポインタメモリに対して、セクションの切り
換えを指示する設定を入力する際に切り換えポイントを
処理するウインドウサイズ以上の設定とする。この設定
により、このウインドウ内ではセクション処理による画
像の切り換え処理が発生しない。よって、セクションデ
スクリプトバイト中のアトリビュートバイトの設定も1
設定となる。この1設定の中で、ガンマテーブルの選
択、フィルタの設定、ディザ処理或いは誤差拡散処理の
設定を行う。ここで誤差拡散処理を設定する場合には、
フィルタ処理及び誤差拡散処理ラインバッファのライン
バッファのうち、1ライン分のラインバッファを誤差拡
散処理に使用し、残りのラインバッファをフィルタ処理
に使用するようアトリビュートバイトの中で指示する。
An example of processing for switching between filter processing and use of the line buffer in section processing and other processing using the above-described apparatus will be described. FIG. 12 shows a circuit example of the section processing. This circuit operates as follows when the image is not switched by the section. First, when the setting for instructing the section switching is input to the pointer memory, the setting is set to be equal to or larger than the window size for processing the switching point. With this setting, image switching processing by section processing does not occur in this window. Therefore, the setting of the attribute byte in the section script byte is also 1
Set. In this one setting, selection of a gamma table, setting of a filter, setting of dither processing or error diffusion processing are performed. Here, when setting the error diffusion process,
Filter Processing and Error Diffusion Processing Among the line buffers of the line buffer, an instruction is given in the attribute byte to use one line buffer for error diffusion processing and to use the remaining line buffers for filter processing.

【0039】また、その際には、フィルタのサイズ設定
も残りのラインバッファ分で設定出来うる範囲内で、フ
ィルタの設定をアトリビュートバイトに設定する。ま
た、誤差拡散処理を設定しない場合には、フィルタ処理
及び誤差拡散処理で持つラインバッファは全てフィルタ
処理に使用する事が出来るのでフィルタ処理で用意する
全てのサイズのフィルタを選択することができる。
In this case, the size of the filter is set in the attribute byte within the range that can be set by the remaining line buffer. When the error diffusion process is not set, all the line buffers provided in the filter process and the error diffusion process can be used for the filter process, so that filters of all sizes prepared in the filter process can be selected.

【0040】[0040]

【発明の効果】請求項1記載の発明では、セクションが
3要素で定義され、各要素を自由に設定可能なものとす
ることにより、セクション数及びその読取条件の自由度
を拡張し、セクション機能を拡張させることができる。
また、セクション処理で使用するディザ処理回路と、2
値誤差拡散処理回路を共通化することにより、回路規模
を小さくすることができる。
According to the first aspect of the present invention, the section is defined by three elements, and each element can be freely set, so that the number of sections and the degree of freedom of the reading conditions can be expanded, and the section function can be increased. Can be expanded.
A dither processing circuit used in section processing;
By sharing the value error diffusion processing circuit, the circuit scale can be reduced.

【0041】請求項2記載の発明では、セクション処理
に使用する誤差拡散処理の誤差データの格納用のライン
バッファと、フィルタ処理に使用するラインバッファを
共通化することにより、回路規模を小さくすることがで
きる。請求項3記載の発明では、セクション処理時とセ
クション処理をしない場合にフィルタ処理と誤差拡散処
理でラインバッファの使用を切り換えができることによ
って、回路規模を小さくすることができる。
According to the second aspect of the present invention, the line scale for storing the error data of the error diffusion processing used for the section processing and the line buffer used for the filter processing are shared, thereby reducing the circuit scale. Can be. According to the third aspect of the present invention, the use of the line buffer can be switched between the filtering process and the error diffusion process during the section processing and when the section processing is not performed, so that the circuit scale can be reduced.

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

【図1】スキャナ装置の外観を示した図である。FIG. 1 is a diagram illustrating an appearance of a scanner device.

【図2】セクション処理回路を示した図である。FIG. 2 is a diagram showing a section processing circuit.

【図3】ポインタブロックの別れ方を示した図である。FIG. 3 is a diagram showing how pointer blocks are separated.

【図4】ウインドウ内に、2つのセクションS1、S2
を重ねあわせて設定する様子を示した図である。
FIG. 4 shows two sections S1, S2 in a window
FIG. 7 is a diagram showing a state in which are set by superimposing.

【図5】各セクションの座標を指定した図である。FIG. 5 is a diagram in which coordinates of each section are designated.

【図6】ポインタメモリにポインタを展開した様子を示
した図である。
FIG. 6 is a diagram showing a state where a pointer is developed in a pointer memory.

【図7】画像データのガンマテーブル変換を示した図で
ある。
FIG. 7 is a diagram illustrating gamma table conversion of image data.

【図8】画像データとアドレスのテーブル変換を示した
図である。
FIG. 8 is a diagram showing table conversion between image data and addresses.

【図9】セクション処理回路中のディザ処理及び誤差拡
散処理回路ブロックを示した図である。
FIG. 9 is a diagram showing a dither processing and error diffusion processing circuit block in the section processing circuit.

【図10】誤差拡散処理における重み付け総和のマトリ
クス例である。
FIG. 10 is an example of a matrix of a weighted sum in an error diffusion process.

【図11】フィルタマトリクスとフィルタ処理ラインバ
ッファの構成を示す例である。
FIG. 11 is an example showing a configuration of a filter matrix and a filter processing line buffer.

【図12】セクション処理回路例を示した図である。FIG. 12 is a diagram illustrating an example of a section processing circuit.

【図13】従来のウインドウ機能の構成例を示した図で
ある。
FIG. 13 is a diagram showing a configuration example of a conventional window function.

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

1 スキャナ装置 2 本体 3 原稿台 4 操作部 5 原稿押え 11 ガンマテーブル選択回路 12 フィルタ処理回路 13 フィルタ処理ラインバッファ 14 ディザパターン発生回路 15 ディザ処理及び誤差拡散処理回路 16 誤差拡散ラインバッファ 17 2値化処理選択 18 ポインタメモリ 19 ラッチ回路 20 一致検出回路 DESCRIPTION OF SYMBOLS 1 Scanner apparatus 2 Main body 3 Document table 4 Operation part 5 Document holder 11 Gamma table selection circuit 12 Filter processing circuit 13 Filter processing line buffer 14 Dither pattern generation circuit 15 Dither processing and error diffusion processing circuit 16 Error diffusion line buffer 17 Binarization Processing selection 18 Pointer memory 19 Latch circuit 20 Match detection circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 最大読取領域を規定する原稿読取領域内
に読み取りたい領域をウインドウとして指定し、このウ
インドウ内の原稿を主走査及び副走査して読み取るとと
もに、該ウインドウ内にウインドウの読取条件とは異な
る読取条件で読取る領域をセクションとして複数指定可
能な画像読取装置であって、 前記セクションが、該セクションの主走査方向、及び副
走査方向の位置を示すブレークポインタと、次のポイン
タシーケンスの位置を示すシーケンスポインタと、読取
条件を指定するアトリビュートポインタとの3要素で定
義され、これら各要素を自由に設定可能な設定手段を有
し、 セクションの各々の設定で、ディザマトリクス法を指定
した際に、それぞれ異なるディザマトリクス及びディザ
マトリクスサイズを指定するディザ処理回路と2値誤差
拡散処理回路が、共通で構成されることを特徴とする画
像読取装置。
An area to be read is specified as a window within a document reading area that defines a maximum reading area, and a document in this window is read by main scanning and sub-scanning. Is an image reading apparatus capable of designating a plurality of areas to be read under different reading conditions as sections, wherein the sections include a break pointer indicating a position of the section in the main scanning direction and a sub-scanning direction, and a position of a next pointer sequence. Is defined by three elements, namely, a sequence pointer that indicates a read condition and an attribute pointer that specifies a reading condition, and has setting means that can freely set these elements. When the dither matrix method is specified in each section setting Dither processing to specify different dither matrices and dither matrix sizes An image reading apparatus road and the binary error diffusion processing circuit, characterized in that it is constituted by a common.
【請求項2】 誤差拡散処理に使用する誤差データの格
納用のラインバッファとフィルタ処理に使用するライン
バッファを共通で使用することを特徴とする請求項1記
載の画像読取装置。
2. An image reading apparatus according to claim 1, wherein a line buffer for storing error data used for error diffusion processing and a line buffer used for filter processing are commonly used.
【請求項3】 セクション処理時とセクション処理をし
ない場合にフィルタ処理と誤差拡散処理でラインバッフ
ァの使用を切り替えることを特徴とする請求項2記載の
画像読取装置。
3. The image reading apparatus according to claim 2, wherein the use of the line buffer is switched between the filtering process and the error diffusion process during the section processing and when the section processing is not performed.
JP10088141A 1998-03-16 1998-03-16 Image reading device Pending JPH11266334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10088141A JPH11266334A (en) 1998-03-16 1998-03-16 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10088141A JPH11266334A (en) 1998-03-16 1998-03-16 Image reading device

Publications (1)

Publication Number Publication Date
JPH11266334A true JPH11266334A (en) 1999-09-28

Family

ID=13934668

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10088141A Pending JPH11266334A (en) 1998-03-16 1998-03-16 Image reading device

Country Status (1)

Country Link
JP (1) JPH11266334A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026738A (en) * 2008-07-18 2010-02-04 Ricoh Co Ltd Image processing apparatus, image processing method, image processing program and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026738A (en) * 2008-07-18 2010-02-04 Ricoh Co Ltd Image processing apparatus, image processing method, image processing program and recording medium

Similar Documents

Publication Publication Date Title
EP0369702B1 (en) Image processing apparatus and method
JP3219403B2 (en) Image storage device
JPS62230265A (en) Picture signal correcting device
JPH07334675A (en) Pattern cutting method and device
JP3338107B2 (en) Image processing device for micro film reader
JP2001094752A (en) Image processing device
JP2710635B2 (en) Image reading device
JP3229314B2 (en) Image reading device
JPS6174453A (en) Picture display device
JPH11168619A (en) Image processor and image-processing method
JPH09200550A (en) Image processing system
JPH1146284A (en) Image reading device
JPS6146671A (en) Area designation system
JP2625045B2 (en) Image processing device
JP3302010B2 (en) Control method of electronic equipment
JP3209996B2 (en) Image processing system
JP2000253256A (en) Image processing device
JP3015039B2 (en) Image processing system
JPH0514704A (en) Method and device for picture processing
JP2697860B2 (en) Image processing device
JPH0416059A (en) Picture processor
JP2902869B2 (en) Planar scanning type image reading device
JP3278146B2 (en) Color image processing apparatus and color image processing method
JP2926710B2 (en) Image processing device
JP2774402B2 (en) Image processing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040203

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040315