JP2903175B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2903175B2
JP2903175B2 JP2163667A JP16366790A JP2903175B2 JP 2903175 B2 JP2903175 B2 JP 2903175B2 JP 2163667 A JP2163667 A JP 2163667A JP 16366790 A JP16366790 A JP 16366790A JP 2903175 B2 JP2903175 B2 JP 2903175B2
Authority
JP
Japan
Prior art keywords
data
sequential
line
input pixel
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2163667A
Other languages
Japanese (ja)
Other versions
JPH0454569A (en
Inventor
政良 白石
徹 有賀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Instruments Inc
Original Assignee
Seiko Instruments Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP2163667A priority Critical patent/JP2903175B2/en
Publication of JPH0454569A publication Critical patent/JPH0454569A/en
Application granted granted Critical
Publication of JP2903175B2 publication Critical patent/JP2903175B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、イメージスキャナ,プリンタ,複写機等の
画像機器に用いられる画像処理装置に関し、特にカラー
画像を扱う画像処理装置に関す。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus used for image equipment such as an image scanner, a printer, and a copying machine, and more particularly, to an image processing apparatus that handles a color image.

〔従来の技術〕[Conventional technology]

従来、2次元で構成されるカラー画像データを扱う画
像処理装置においては、扱われるデータ形式としてイメ
ージスキャナでは線順次データが、プリンタや複写機で
は面順次データが多用されている。例えば、R(赤)、
G(緑)、B(青)の3原色に色分解された入力データ
を例とすると、点順次データでは第28図に、線順次デー
タでは第29図に、面順次データでは第30図に示すような
データ配列となり、主走査方向に関しては点順次データ
では2画素おきに、線順次データ及び面順次データでは
全画素が同色データとなり、また、副走査方向に関して
は点順次データ及び面順次データでは全ラインが、線順
次データでは2ラインおきに同色データとなる。この様
にデータ形式によりデータの配列が異なり、この為それ
ぞれデータ形式に応じて特定の画像処理回路が構成され
ている。
2. Description of the Related Art Conventionally, in an image processing apparatus that handles two-dimensional color image data, line-sequential data is frequently used in an image scanner, and plane-sequential data is frequently used in a printer or a copier as a data format to be handled. For example, R (red),
Taking as an example input data separated into three primary colors of G (green) and B (blue), FIG. 28 shows dot-sequential data, FIG. 29 shows line-sequential data, and FIG. 30 shows plane-sequential data. In the main scanning direction, all pixels have the same color data in the line-sequential data and plane-sequential data, and in the sub-scanning direction, dot-sequential data and plane-sequential data. Then, all lines become the same color data every two lines in line sequential data. As described above, the arrangement of data differs depending on the data format, and therefore, a specific image processing circuit is configured according to each data format.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上記のような従来の技術では、画像処理装置の汎用性
が乏しく、データ形式の異なる他の装置との接続が困難
であった。例えば、データ形式として線順次が多用され
るイメージスキャナで用いられる画像処理装置は、面順
次データが多用されているプリンタや複写機では用いる
ことが出来ず、面順次データの扱える画像処理装置を用
意しなければならなかった。
In the conventional techniques as described above, the versatility of the image processing apparatus is poor, and it is difficult to connect to another apparatus having a different data format. For example, an image processing device used in an image scanner that uses line-sequential data as a data format cannot be used in a printer or copier that uses a lot of line-sequential data. I had to.

そこで本発明は複数のデータ形式に対応できる画像処
理装置を提供することを目的とする。
Therefore, an object of the present invention is to provide an image processing apparatus that can handle a plurality of data formats.

〔課題を解決するための手段〕[Means for solving the problem]

上記の問題点を解決するために、本発明においては、
下記の構成を有している。
In order to solve the above problems, in the present invention,
It has the following configuration.

2次元で構成されるカラー画像データの画素領域(領
域をN×M;N、M≧1)に注目して演算処理を行なう画
像処理装置において、入力された画像データに注目して
画像処理が行なわれる場合(これを以下N+M=2の場
合という)には、本発明の画像処理装置は次の構成とな
る。すなわち、入力画素データに関連する画像データあ
るいは係数データのいずれか一方のデータを記憶するデ
ータ記憶手段と、前記入力画素データが点順次、線順
次、あるいは面順次のいずれであるかを示すデータ形式
信号と1ラインのデータ範囲を示すライン信号と前記入
力画素データと同期するクロック信号とに基づいて、前
記データ記憶手段に対して前記入力画素データのデータ
形式に対応したアドレス信号を発生する制御手段と、前
記入力画素データの少なくともある一色のデータに、前
記データ記憶手段から読み出された前記画像データある
いは係数データの前記一色に対応するデータを用いて所
望の演算処理を施し出力データとして出力するととも
に、前記所望の演算処理に応じて、前記読み出されたい
ずれか一方のデータに対応するデータを前記データ記憶
手段にメモリデータとして出力する演算処理手段とから
なる。
2. Description of the Related Art In an image processing apparatus that performs arithmetic processing by focusing on a pixel area (area is N × M; N, M ≧ 1) of two-dimensional color image data, image processing is performed by focusing on input image data. When this is performed (hereinafter referred to as N + M = 2), the image processing apparatus of the present invention has the following configuration. That is, data storage means for storing either image data or coefficient data related to input pixel data, and a data format indicating whether the input pixel data is dot-sequential, line-sequential, or plane-sequential A control unit for generating an address signal corresponding to the data format of the input pixel data to the data storage unit based on a signal, a line signal indicating a data range of one line, and a clock signal synchronized with the input pixel data And subjecting the data of at least one color of the input pixel data to desired operation processing using data corresponding to the one color of the image data or coefficient data read from the data storage means, and outputting as output data. Together with one of the read data according to the desired arithmetic processing. The that data consisting of an arithmetic processing means for outputting as a memory data in the data storage device.

また、N+M=2の場合でも、データ記憶手段に予め
格納したデータ等を画像処理に使用し、それを更新する
必要のない画像処理においては、本発明の画像処理装置
は、入力画素データに関連する予め入力された係数デー
タを記憶するデータ記憶手段と、前記入力画素データが
点順次、線順次、あるいは面順次のいずれであるかを示
すデータ形式信号と1ラインのデータ範囲を示すライン
信号と前記入力画素データと同期するクロック信号とに
基づいて、前記データ記憶手段に対して前記入力画素デ
ータのデータ形式に対応したアドレス信号を発生する制
御手段と、前記入力画素データの少なくともある一色の
データに、前記データ記憶手段から読み出された前記係
数データの前記一色に対応するデータを用いて所望の演
算処理を施し出力する演算処理手段とから構成される。
Even in the case of N + M = 2, in image processing that uses data or the like stored in advance in the data storage means for image processing and does not need to update the data, the image processing apparatus of the present invention uses Data storage means for storing previously inputted coefficient data; a data format signal indicating whether the input pixel data is dot-sequential, line-sequential, or plane-sequential; and a line signal indicating a data range of one line. Control means for generating an address signal corresponding to the data format of the input pixel data to the data storage means based on a clock signal synchronized with the input pixel data; and at least one color data of the input pixel data. Then, a desired arithmetic process is performed using the data corresponding to the one color of the coefficient data read from the data storage unit, and the result is output. Composed of a processing means.

一方、2次元で構成されるカラー画像データの画素領
域における注目画素及び該注目画素の周辺画素のデータ
を用いて演算処理を行う場合(以下、N+M>2の場合
という)には、本発明の画像処理装置の構成は以下のよ
うになる。
On the other hand, when the arithmetic processing is performed using the data of the target pixel and the peripheral pixels of the target pixel in the pixel region of the two-dimensional color image data (hereinafter, referred to as N + M> 2), the present invention The configuration of the image processing device is as follows.

すなわち、入力画素データに関連する画像データある
いは係数データのいずれか一方のデータを記憶するデー
タ記憶手段と、前記入力画素データが点順次、線順次、
あるいは面順次のいずれであるかを示すデータ形式信号
と1ラインのデータ範囲を示すライン信号と前記入力画
素データと同期するクロック信号とに基づいて、前記デ
ータ記憶手段に対して前記入力画素データのデータ形式
に対応したアドレス信号を発生する制御手段と、前記デ
ータ記憶手段から読み出された前記画像データあるいは
係数データおよび前記入力画素データを保持し、データ
形式信号に基づき、該保持したデータの中から前記入力
画素データの少なくともある一色に対応するデータを演
算処理の種類に応じて演算データとして出力するととも
に、前記演算処理に応じて、前記データ記憶手段に記憶
されたいずれか一方のデータに対応するデータを前記デ
ータ記憶手段にメモリデータとして出力する順序回路手
段と、該順序回路手段から出力された演算データに前記
演算処理の種類に応じた演算処理をする演算処理手段と
からなる。
That is, data storage means for storing any one of image data or coefficient data related to the input pixel data, and the input pixel data is dot-sequential, line-sequential,
Alternatively, the input pixel data of the input pixel data is transmitted to the data storage unit based on a data format signal indicating which of the line-sequential mode, a line signal indicating a data range of one line, and a clock signal synchronized with the input pixel data. A control unit for generating an address signal corresponding to a data format; holding the image data or coefficient data and the input pixel data read from the data storage unit; And outputting data corresponding to at least one color of the input pixel data as operation data according to the type of operation processing, and corresponding to one of the data stored in the data storage means according to the operation processing. Circuit means for outputting data to be stored as memory data to the data storage means, and the sequential circuit Comprising a processing unit for the processing corresponding to the type of the operation processing in the operation data outputted from the stage.

〔作用〕[Action]

上記のような構成によれば、制御手段の基にデータ形
式に応じてデータ記憶手段より読み出すデータを選択
し、または必要に応じてデータ記憶手段にデータを書込
み、さらに、順序回路により画像データを並び替えるこ
とにより、データ形式に関わらず演算処理が可能とな
る。
According to the configuration described above, the data to be read from the data storage unit is selected based on the data format based on the control unit, or the data is written to the data storage unit as needed, and the image data is further processed by the sequential circuit. By rearranging, arithmetic processing can be performed regardless of the data format.

〔実施例〕〔Example〕

以下に、本発明の実施例を図面に基づいて説明する。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第1図は、本発明の実施例の構成ブロック図である。 FIG. 1 is a configuration block diagram of an embodiment of the present invention.

制御手段1は、各データ形式間でのデータ配列の違い
による演算への影響、例えば、同色データ間の演算時に
他色のデータを用いてしまう等の悪影響をなくすための
もので、レジスタ,セレクタ,カウンタ等で構成され、
入力画像データの形式が点順次データ,線順次データ,
面順次データのいずれかを示すデータ形式信号6と、デ
ータの有効範囲を示すライン信号5と、入力データと同
期するクロック8を入力することにより、各色のデータ
配列に応じ、アドレス9の発生方法を変えてデータ記憶
手段4へ出力する。また、データ記憶手段4が複数のテ
ーブルデータや複数の記憶素子で構成されている場合に
は、必要に応じてテーブルデータや記憶素子を選択する
選択信号が出力される。
The control means 1 is provided for eliminating the influence on the calculation due to the difference in the data arrangement between the data formats, for example, the adverse effect of using data of another color at the time of the calculation between the same color data. , A counter, etc.
The format of the input image data is dot-sequential data, line-sequential data,
By inputting a data format signal 6 indicating any of the frame sequential data, a line signal 5 indicating an effective range of the data, and a clock 8 synchronized with the input data, a method of generating an address 9 according to the data arrangement of each color And outputs it to the data storage means 4. When the data storage means 4 is composed of a plurality of table data and a plurality of storage elements, a selection signal for selecting the table data and the storage element is output as necessary.

制御手段1を第3図に基づき説明すると、3ライン分
のライン信号を計数する為のラインカウンタ40、A入
力、B入力を有し、セレクト端子に入力される信号に基
づきいずれかの信号を出力するセレクタ41、クロックに
同期してアドレスを計数するアドレスカウンタ42から構
成され、ラインカウンタ40のカウンタ入力、セレクタ41
のA入力、アドレスカウンタ42のエネーブル端子Eには
それぞれライン信号5が入力されており、セレクタ41の
B入力には前記ラインカウンタ40のQ出力43が、またセ
レクト端子Sにはデータ形式信号6が入力されている。
前記アドレスカウンタ42のリセット端子Rにはセレクタ
41のY出力44が接続され、またクロック端子にはクロッ
ク8が入力されている。これらの構成によりアドレスカ
ウンタ42のリセット信号44にライン信号5と3ライン分
のライン信号を1ラインとする3ライン信号43のどちら
を用いるかデータ形式信号6で選択し、データ記憶手段
4のアドレス9を発生させる。
The control means 1 will be described with reference to FIG. 3. The control means 1 has a line counter 40 for counting line signals for three lines, an A input and a B input, and outputs one of the signals based on a signal input to a select terminal. It comprises a selector 41 for outputting, and an address counter 42 for counting addresses in synchronization with a clock.
A line signal 5 is input to an A input of the address counter 42 and an enable terminal E of the address counter 42, a Q output 43 of the line counter 40 is input to a B input of the selector 41, and a data format signal 6 is input to a select terminal S. Is entered.
The reset terminal R of the address counter 42 has a selector
The Y output 44 of 41 is connected, and the clock 8 is input to the clock terminal. With these configurations, the data format signal 6 selects which of the line signal 5 and the three-line signal 43, which is a line signal for three lines, is used as the reset signal 44 of the address counter 42, and the address of the data storage means 4 is selected. 9 is generated.

点順次データ及び面順次データではアドレス9はライ
ン信号5をアドレスカウンタ42のリセット信号44とし第
4図のようにライン信号がアサートの期間、クロックの
入力に同期してインクリメントされ、ライン信号がネゲ
ートになる毎にリセットされる。線順次データでは3ラ
イン信号43をアドレスカウンタ42のリセット信号44とし
第5図のようにライン信号がアサートの期間、クロック
の入力に同期してインクリメントされ、3ライン信号が
ネゲートになる毎にリセットされる。第3図で、アドレ
スカウンタ42はカウンタで、ラインカウンタ40はカウン
タとゲートで構成できる。
In the dot-sequential data and the frame-sequential data, the address 9 is incremented in synchronism with the clock input during the assertion of the line signal as shown in FIG. 4 using the line signal 5 as the reset signal 44 of the address counter 42, and the line signal is negated. Reset every time In the line-sequential data, the 3-line signal 43 is used as a reset signal 44 of the address counter 42, and is incremented in synchronization with the clock input during the assertion of the line signal as shown in FIG. 5, and is reset every time the 3-line signal becomes negated. Is done. In FIG. 3, the address counter 42 can be constituted by a counter, and the line counter 40 can be constituted by a counter and a gate.

本例ではアドレスカウンタからの出力をそのままデー
タ記憶手段のアドレスとして使用しているが、データ記
憶手段4が複数のテーブルデータや複数の記憶素子で構
成されている場合には、アドレス9の上位ビットを用い
て、テーブルデータや記憶素子を選択することも可能で
ある。
In this example, the output from the address counter is used as it is as the address of the data storage means. However, when the data storage means 4 is composed of a plurality of table data and a plurality of storage elements, the upper bit of the address 9 is used. Can be used to select table data and storage elements.

順序回路2は、2個以上の画素データが演算に必要な
場合に入力データ7に加えて必要な画素データを演算処
理回路に受け渡すもので、必要な場合は演算に必要な係
数の受け渡しも行っている。該順序回路は複数段のフリ
ップフロップ(以下FFと言う)とセレクタ等の公知のも
ので構成されデータ形式信号6に従って特定のFFの出力
の選択を行い、入力データ7あるいはメモリデータ10を
演算処理回路3に出力する。その詳細な構成はデータに
施される処理により種々異なっており、後に詳述する。
The sequential circuit 2 transfers necessary pixel data to the arithmetic processing circuit in addition to the input data 7 when two or more pieces of pixel data are required for the operation, and also transfers the coefficients required for the operation when necessary. Is going. The sequential circuit is composed of a plurality of flip-flops (hereinafter referred to as FFs) and known ones such as selectors, selects an output of a specific FF according to the data format signal 6, and performs an arithmetic processing on the input data 7 or the memory data 10. Output to the circuit 3. The detailed configuration varies depending on the processing performed on the data, and will be described later in detail.

演算処理回路3は加算器や除算器等で構成され、前記
順序回路2からの演算データ11に所望の演算を施し出力
する回路であり、施すべき演算に応じて種々のものが用
いられる。
The arithmetic processing circuit 3 is composed of an adder, a divider and the like, and is a circuit that performs a desired operation on the operation data 11 from the sequential circuit 2 and outputs the result. Various types are used according to the operation to be performed.

データ記憶手段4はRAM,ROM等の記憶素子で構成で
き、演算に用いられる画像データあるいは係数を記憶す
るもので、アドレス9により指定されるメモリデータ10
を順序回路2に出力したり、入力データや演算結果等の
新たなデータをメモリデータ10として記憶する。
The data storage means 4 can be composed of a storage element such as a RAM or a ROM, and stores image data or coefficients used for the operation.
Is output to the sequential circuit 2, and new data such as input data and operation results are stored as the memory data 10.

演算処理回路3を注目画素Zi,jにその周辺画素のZ
i,j−1とZi−1,jで演算を施し出力するものとする
と、順序回路2は第6図に示すように、記憶手段4から
の1ライン前のデータ45が入力されるFF46と入力データ
7が入力され4段のFFで構成されるシフトレジスタと、
前記シフトレジスタの最終段のFF49の出力と2段目のFF
48の出力を入力としデータ形式信号に基づきいずれかを
出力するセレクタ50で構成され、FF46の出力を画素Z
i−1,jの、セレクタ50の出力を画素Zi,j−1の、シフ
トレジスタの初段のFF47の出力を画素Zi,jの互いに同
色のデータ、たとえばRi−1,j、Ri,j−1、Ri,j
してそれぞれ演算処理回路に出力する。またFF47の出力
は1ライン前のデータとして記憶手段に格納される。制
御手段1と順序回路2にデータ形式信号6を入力するこ
とにより、制御手段1で点順次データと面順次データで
はライン信号5を、線順次データでは3ライン信号43を
アドレス9のリセット信号44として選択し、制御手段1
よりアドレス9が出力されデータ記憶手段4より画素に
対応したメモリデータ10が1ライン前のデータ45として
FF46に書き込まれる。順序回路2ではクロック8でデー
タを順次シフトさせ、Ri,j−1に相当するデータに点順
次データではFF49のデータを、線順次データ及び面順次
データではFF48のデータをセレクタ50で選択する。
The arithmetic processing circuit 3 replaces the target pixel Z i, j with the Z
Assuming that the operation is performed using i, j−1 and Z i−1, j , the sequential circuit 2 receives the data 45 of the previous line from the storage means 4 as shown in FIG. And a shift register including four stages of FFs to which the input data 7 is input,
The output of the last stage FF49 and the second stage FF of the shift register
A selector 50 which receives the output of 48 as an input and outputs one based on a data format signal, and outputs the output of FF 46 to the pixel Z
i−1, j , the output of the selector 50 is the pixel Z i, j−1 , and the output of the first stage FF47 of the shift register is the same color data of the pixel Z i, j , for example, R i−1, j , R i, j−1 and R i, j are output to the arithmetic processing circuit. Further, the output of FF47 is stored in the storage means as data one line before. By inputting the data format signal 6 to the control means 1 and the sequential circuit 2, the control means 1 outputs the line signal 5 for dot-sequential data and plane-sequential data, and the three-line signal 43 for line-sequential data. Control means 1
Address 9 is output from the data storage means 4 and the memory data 10 corresponding to the pixel is stored as the data 45 one line before.
Written to FF46. In the sequential circuit 2, the data is sequentially shifted by the clock 8, and the data corresponding to Ri, j-1 is selected by the selector 50 as the data of FF49 for the dot sequential data and the data of FF48 for the line sequential data and the plane sequential data.

これにより、演算に必要なデータが揃い、これらのデ
ータを演算処理回路3に入力することにより、所望の演
算が施され出力される。
As a result, the data necessary for the operation are prepared. By inputting the data to the operation processing circuit 3, a desired operation is performed and output.

第7図は本発明の実施例を示す構成ブロック図であ
り、注目画素と周辺画素データを用いて、2次微分を施
す輪郭強調回路である。
FIG. 7 is a block diagram showing the configuration of an embodiment of the present invention, which is an outline emphasizing circuit for performing a second derivative using a target pixel and peripheral pixel data.

制御手段1は既述したようにデータ形式信号6に応
じ、ラインメモリのアドレスを出力する。
The control means 1 outputs the address of the line memory according to the data format signal 6 as described above.

順序回路21は後に詳述するように入力画素データに加
え周辺の4画素をデータとして出力するもので第8図に
示すようにラインメモリ22からの2ライン前のデータ51
を入力とし4段のFFで構成される第1のシフトレジスタ
と、ラインメモリ23からの1ライン前のデータ52を入力
とし7段のFFで構成される第2のシフトレジスタと、入
力データ7を入力とし4段のFFで構成される第3のシフ
トレジスタと、第2のシフトレジスタの初段のFF54の出
力か同じく3段目のFF56の出力かをデータ形式信号に基
づき選択する第1のセレクタ57と、第2のシフトレジス
タの5段目のFF59の出力か同じく最終段のFF60の出力か
をデータ形式信号に基づき選択する第2のセレクタ61と
からなり、第1のシフトレジスタの最終段のFFの出力を
i−1,jの、第1のセレクタ57の出力を画素
i,j+1、第2のシフトレジスタの4段目のFF58の出
力を画素Zi,jの、第2のセレクタ61の出力を画素Z
i,j−1の、第3のシフトレジスタの最終段のFFの出力
を画素Zi+1,jの互いに同色のデータ、たとえばR
i−1,j、Ri,j+1、Ri,j−1、Ri,j、Ri+1,j
してそれぞれラプラシアン回路に出力するとともに前記
第2のシフトレジスタの初段の出力を新たな2ライン前
のデータとしてラインメモリ22に、前記第3のシフトレ
ジスタの初段の出力を新たな1ライン前のデータとして
ラインメモリ23に出力する。
The sequential circuit 21 outputs the surrounding four pixels as data in addition to the input pixel data as described in detail later. As shown in FIG.
, A first shift register composed of four stages of FFs, a second shift register composed of seven stages of FFs receiving one line previous data 52 from the line memory 23, and input data 7 And a third shift register composed of four stages of FFs and an output of the first stage FF54 or the output of the third stage FF56 of the second shift register based on the data format signal. A selector 57 and a second selector 61 for selecting, based on the data format signal, the output of the fifth stage FF59 of the second shift register or the output of the last stage FF60. The output of the stage FF is Z i−1, j , the output of the first selector 57 is pixel Z i, j + 1 , and the output of the fourth stage FF58 of the second shift register is the pixel Z i, j . The output of the selector 61 of the pixel Z
The output of the FF at the final stage of the third shift register of i, j-1 is converted to data of the same color of the pixel Z i + 1, j , for example, R
i−1, j , R i, j + 1 , R i, j−1 , R i, j , R i + 1, j are output to the Laplacian circuit, respectively, and the output of the first stage of the second shift register is output as new two lines. The output of the first stage of the third shift register is output to the line memory 23 as the previous data and the new one-line previous data is output to the line memory 23.

ラインメモリ22,23はデータ記憶手段4に相当する。 The line memories 22 and 23 correspond to the data storage unit 4.

ラプラシアン回路24は演算処理回路3に相当するもの
で、式(1)で示す演算を実現する公知の回路である。
The Laplacian circuit 24 corresponds to the arithmetic processing circuit 3 and is a known circuit that realizes the arithmetic operation represented by the equation (1).

Z'i,j=Zi,j+K{4Zi,j−(Zi−1,j +Zi,j−1+Zi,j+1+Zi+1,j)} ……(1) ここで、Kは任意の実数で、注目画素Zi,jと周辺画
素の位置関係は第9図に示すとおりである。
Z ′ i, j = Z i, j + K {4Z i, j − (Z i−1, j + Z i, j−1 + Z i, j + 1 + Z i + 1, j )} (1) where K is As an arbitrary real number, the positional relationship between the target pixel Z i, j and the peripheral pixels is as shown in FIG.

次に、第7図の動作について説明する。 Next, the operation of FIG. 7 will be described.

入力データ形式が面順次データの場合には、注目画素
のRデータをRi,jとすると、周辺画素との関係は第10図
のように副走査方向は各ラインとも同色データとなるた
め、データ形式信号6でアドレスカウンタ42のリセット
信号44にライン信号5を選択して第3図に示すように1
ライン毎にアドレスを初期化し、ラインメモリ22,23よ
り、2ライン前のデータ51と1ライン前のデータ52を読
み出し、FF53とFF54にデータをストアする。また、FF54
の出力を2ライン前のデータ62,FF55の出力を1ライン
前のデータ63とし、各ラインメモリに書き込む。そし
て、データ形式信号6により、セレクタ57でFF56の出力
を、セレクタ61でFF59の出力を選択することにより、注
目画素と周辺画素が選択され、ラプラシアン回路24で演
算が施され出力される。
If the input data format is plane-sequential data, and the R data of the target pixel is Ri, j, the relationship with the surrounding pixels is the same color data in each line in the sub-scanning direction as shown in FIG. The line signal 5 is selected as the reset signal 44 of the address counter 42 by the format signal 6, and as shown in FIG.
The address is initialized for each line, the data 51 two lines earlier and the data 52 one line earlier are read from the line memories 22 and 23, and the data is stored in FF53 and FF54. Also, FF54
Is output as the data 62 of the previous line and the output of FF55 as the data 63 of the previous line, and written to each line memory. Then, by selecting the output of FF56 by the selector 57 and the output of FF59 by the selector 61 according to the data format signal 6, the target pixel and the peripheral pixels are selected, and the Laplacian circuit 24 performs an operation and outputs the selected pixel.

線順次データの場合には、注目画素のRデータをRi,j
とすると、周辺画素との関係は第11図のように副走査方
向は2ラインおきに同色データとなるため、データ形式
信号6でアドレスカウンタ42のリセット信号44に3ライ
ン信号43を選択して第5図に示すように3ライン毎にア
ドレスを初期化する。そして、他の動作に関しては面順
次データ処理時と同様である。
In the case of line-sequential data, the R data of the pixel of interest is Ri, j
Then, the relationship with the peripheral pixels is the same color data in every two lines in the sub-scanning direction as shown in FIG. 11, so the data format signal 6 selects the three-line signal 43 as the reset signal 44 of the address counter 42. As shown in FIG. 5, the address is initialized every three lines. Other operations are the same as those in the frame sequential data processing.

点順次データの場合には、注目画素のRデータをR
i,jとすると、周辺画素との関係は第12図のようになる
ため面順次データ処理時と同様にアドレスを制御する
か、セレクタ57でFF54の出力を、セレクト61でFF60の出
力を選択し、注目画素と周辺画素を選択する。そして、
これらのデータにラプラシアン回路9が演算を施し出力
する。
In the case of dot sequential data, the R data of the pixel of interest is
If i and j , the relationship with the peripheral pixels is as shown in FIG. 12, so control the address in the same way as in the frame sequential data processing, or select the output of FF 54 with the selector 57 and the output of FF 60 with the select 61 Then, the target pixel and peripheral pixels are selected. And
The Laplacian circuit 9 performs an operation on these data and outputs the result.

第13図は本発明の実施例の構成ブロック図であり、多
値データを2値化する際に発生する周辺画素の誤差量を
注目画素演算時に用い全体の誤差量を少なくする誤差拡
散回路である。
FIG. 13 is a block diagram showing the configuration of an embodiment of the present invention, which is an error diffusion circuit for reducing the overall error amount by using the error amount of peripheral pixels generated when binarizing multi-valued data at the time of calculating the pixel of interest. is there.

制御手段1は第3図に示す構成となっており、データ
形式に応じ既述したように、ラインメモリ29のアドレス
9の制御を行う。
The control means 1 has the configuration shown in FIG. 3, and controls the address 9 of the line memory 29 as described above according to the data format.

ラインメモリ29は少なくとも1ライン(1ライン分の
画素数×色数×画素のビット長)以上の容量を持つ。
The line memory 29 has a capacity of at least one line (the number of pixels of one line × the number of colors × the bit length of a pixel) or more.

順序回路30は後に詳述するように入力画素データに加
え周辺の3画素の誤差データを出力するもので第14図に
示すようラインメモリ29よりの1ライン前の誤差量72を
入力とし4段のFFで構成される第1のシフトレジスタ
と、誤差演算部31からの入力データの誤差量32を入力と
し同じく4段のFFで構成される第2のシフトレジスタ
と、入力データ7が入力されるFFと、前記第1のシフト
レジスタの2段目のFF76のQ出力か、終段のFF78のQ出
力かをデータ形式信号に基づき選択する第1のセレクタ
80と、前記第2のシフトレジスタの2段目のFF77のQ出
力か、終段のFF79のQ出力かをデータ形式信号に基づき
選択する第2のセレクタ80とから構成され、前記第1の
シフトレジスタの初段のFF74のQ出力を画素Zi−1,j
の、第1のセレクタ80の出力を画素Zi−1,j−1の、
第2のセレクタ81の出力を画素Zi,j−1の互いに同色
なデータ、たとえばRi−1,j、Ri−1,j−1、R
i,j−1の誤差量Δi−1,j、Δi−1,j−1、Δi,j−1
として、また入力データ7が入力されるFFのQ出力を画
素Zi,jの同色データRi,jとして誤差演算部に出力して
いる。またFF75のQ出力は新たに1ライン前の誤差量と
してラインメモリに格納される。誤差演算部31は演算処
理回路3に相当し、公知の誤差拡散法のアルゴリズムを
実現するもので、アダーやシフトレジスタ等で構成でき
る。ここでは、第15図のデジタルフィルタにより周囲画
素の誤差に重み付けを行う。
As will be described in detail later, the sequential circuit 30 outputs error data of three neighboring pixels in addition to the input pixel data. As shown in FIG. FF, a second shift register which also receives the error amount 32 of the input data from the error operation unit 31 and also includes four FFs, and input data 7 And a first selector for selecting, based on a data format signal, a Q output of the second stage FF76 or a Q output of the last stage FF78 of the first shift register.
80, and a second selector 80 for selecting the Q output of the second stage FF77 or the Q output of the last stage FF79 of the second shift register based on a data format signal. The Q output of the first stage FF74 of the shift register is output to the pixel Z i−1, j
And the output of the first selector 80 to the pixel Z i−1, j−1
The output of the second selector 81 is output to the data of the same color of the pixel Z i, j−1 , for example, R i−1, j , R i−1, j−1 , R
i, j−1 error amount Δ i−1, j , Δ i−1, j−1 , Δ i, j−1
The Q output of the FF to which the input data 7 is input is output to the error calculation unit as the same color data R i, j of the pixel Z i, j . Further, the Q output of the FF75 is newly stored in the line memory as an error amount one line before. The error calculation unit 31 corresponds to the calculation processing circuit 3 and implements a known error diffusion algorithm, and can be configured by an adder, a shift register, or the like. Here, the error of the surrounding pixels is weighted by the digital filter of FIG.

次に、第13図の動作を説明する。 Next, the operation of FIG. 13 will be described.

入力データ形式が点順次データの場合には、注目画素
のRデータをRi,jとすると、周辺画素との関係は第16
図のように副走査方向は各ラインとも同色データとなる
ため、データ形式信号6によりセレクタ41でライン信号
5を選択し、第4図に示すように1ライン毎にアドレス
を初期化する。そして、アドレス9はラインメモリ61よ
り、画素に対応したメモリデータ10を1ライン前の誤差
量72として読み出し、FF74にデータをストアする。ま
た、順序回路30ではデータ形式信号6に基づきセレクタ
80でFF78の出力を、セレクタ81でFF79の出力を選択し、
FF74の出力とあわせ、演算に必要な周辺画素の誤差量を
選択する。誤差演算部31はこのようにして得られた誤差
量を用いて入力データ7に演算を施し出力する。また、
この時に生じた誤差量32をFF75に書き込むと共に、新た
な1ライン前の誤差データとしてラインメモリ29に書き
込む。
If the input data format is dot-sequential data, and the R data of the pixel of interest is R i, j , the relationship with the surrounding pixels is 16th.
As shown in the figure, since the same color data is used for each line in the sub-scanning direction, the line signal 5 is selected by the selector 41 based on the data format signal 6, and the address is initialized for each line as shown in FIG. Then, the address 9 reads out the memory data 10 corresponding to the pixel from the line memory 61 as the error amount 72 one line before, and stores the data in the FF 74. In the sequential circuit 30, the selector is selected based on the data format signal 6.
Select the output of FF78 with 80, the output of FF79 with selector 81,
Along with the output of FF74, the error amount of peripheral pixels required for the operation is selected. The error calculation unit 31 performs a calculation on the input data 7 using the error amount obtained in this way and outputs the result. Also,
The error amount 32 generated at this time is written to the FF 75 and also written to the line memory 29 as new error data one line before.

線順次データの場合には、注目画素のRデータをR
i,jとすると、周辺画素との関係は第17図のように副走
査方向は2ラインおきに同色データとなるため、第3図
でデータ形式信号6によりセレクタ41で3ライン信号43
を選択し、第5図に示すように3ライン毎にアドレス9
を初期化する。そして、アドレス9はラインメモリ61よ
り、画素に対応したメモリデータ10を1ライン前の誤差
量72として読み出し、FF74にデータをストアする。他の
動作に関しては面順次データ処理時と同様で良い。
In the case of line-sequential data, the R data of the pixel of interest is
If i and j , the relationship with the peripheral pixels is the same color data in every two lines in the sub-scanning direction as shown in FIG. 17, so the selector 41 in FIG.
Is selected and the address 9 is set every three lines as shown in FIG.
Is initialized. Then, the address 9 reads out the memory data 10 corresponding to the pixel from the line memory 61 as the error amount 72 one line before, and stores the data in the FF 74. Other operations may be the same as in the case of the frame sequential data processing.

面順次データの場合には、注目画素のRデータをR
i,jとすると、周辺画素との関係は第18図のように副走
査方向は各ラインとも同色データとなるため、データ形
式信号6によりセレクタ41でライン信号5を選択し、点
順次データと同様に1ライン毎にアドレスを初期化す
る。そして、アドレス9はラインメモリ61より、画素に
対応したメモリデータ10を1ライン毎の誤差量72として
読み出し、FF74にデータをストアする。また、順序回路
30ではデータ形式信号6はセレクタ80でFF76の出力を、
セレクタ81でFF77の出力を選択し、FF74の出力とあわ
せ、演算に必要な周辺画素の誤差量を選択する。誤差演
算部31はこのようにして得られた誤差量を用いて入力デ
ータ7に演算を施し出力する。また、この時に生じた誤
差量32をFF75と1ライン前の誤差データとしてラインメ
モリ29に書き込む。
In the case of plane-sequential data, the R data of the pixel of interest is
Assuming that i, j , the relationship with the peripheral pixels is the same color data in each line in the sub-scanning direction as shown in FIG. 18, so that the line signal 5 is selected by the selector 41 based on the data format signal 6, and the dot sequential data and Similarly, the address is initialized for each line. The address 9 reads the memory data 10 corresponding to the pixel from the line memory 61 as the error amount 72 for each line, and stores the data in the FF 74. Also, sequential circuit
At 30, the data format signal 6 outputs the output of FF76 by the selector 80,
The output of FF77 is selected by the selector 81, and the error amount of peripheral pixels required for the operation is selected in accordance with the output of FF74. The error calculation unit 31 performs a calculation on the input data 7 using the error amount obtained in this way and outputs the result. In addition, the error amount 32 generated at this time is written in the line memory 29 as the error data of the previous line and the FF75.

第2図は本発明の実施例の構成ブロック図であり、メ
モリデータ10と入力データ7で演算を施し出力するもの
である。このため、第1図と異なり順序回路2が不用と
なり、入力データは演算処理回路3に入力される。ま
た、制御手段1,演算処理回路3,データ記憶手段4とも第
1図と同様に構成できる。
FIG. 2 is a block diagram showing the configuration of the embodiment of the present invention, which performs an operation on the memory data 10 and the input data 7 and outputs the result. Therefore, unlike FIG. 1, the sequential circuit 2 becomes unnecessary, and the input data is input to the arithmetic processing circuit 3. Further, the control means 1, the arithmetic processing circuit 3, and the data storage means 4 can be configured similarly to FIG.

次に、第2図の動作について説明する。 Next, the operation of FIG. 2 will be described.

制御手段1に入力画像のデータ形式を示すデータ形式
信号6と、データの有効範囲を示すライン信号5と、デ
ータと同期するクロック7を入力し、既述したようにア
ドレスカウンタ42のリセット信号44をデータ形式信号6
で選択し、アドレス9の発生方法を制御する。
The data format signal 6 indicating the data format of the input image, the line signal 5 indicating the effective range of the data, and the clock 7 synchronized with the data are input to the control means 1, and the reset signal 44 of the address counter 42 is inputted as described above. To the data format signal 6
To control the generation method of the address 9.

データ記憶手段4は、演算に用いられる画像データあ
るいは係数を記憶するもので、アドレス9により指定さ
れるメモリデータ10を演算処理回路3に出力したり、入
力データや演算結果等を新たなデータをメモリデータ10
として記憶する。
The data storage means 4 stores image data or coefficients used for the operation, outputs memory data 10 specified by the address 9 to the operation processing circuit 3, and stores input data and operation results in new data. Memory data 10
To be stored.

演算処理回路3は画素に対応したメモリデータ10をも
ちい、入力データに所望の演算を施し出力する。
The arithmetic processing circuit 3 uses the memory data 10 corresponding to the pixel, performs a desired operation on the input data, and outputs the result.

第19図は本発明の実施例の構成ブロック図であり、光
源の照度バラツキやイメージセンサ、レンズ等の感度バ
ラツキを補正するシェーディング補正回路である。
FIG. 19 is a block diagram showing a configuration of an embodiment of the present invention, which is a shading correction circuit for correcting variations in illuminance of a light source and variations in sensitivity of an image sensor, a lens, and the like.

制御手段1は先に説明したとおり第3図のような構成
となっており、アドレスカウンタ42のリセット信号44に
ライン信号5と3ライン分のライン信号を1ラインとす
る3ライン信号43のどちらを用いるかをデータ形式信号
6で選択し、既述したようにアドレスを制御する。
As described above, the control means 1 has a configuration as shown in FIG. 3, and the reset signal 44 of the address counter 42 is either a line signal 5 or a three-line signal 43 in which three line signals are used as one line. Is selected by the data format signal 6, and the address is controlled as described above.

白基準データRAM14及び黒基準データPAM15はデータ記
憶手段手段4に相当するもので、少なくとも1ライン
(1ライン分の画素数×色数×画素のビット長)以上の
容量を持ち、補正データを記憶するスタティックRAMで
ある。
The white reference data RAM 14 and the black reference data PAM 15 correspond to the data storage means 4 and have a capacity of at least one line (the number of pixels of one line × the number of colors × the bit length of a pixel) and store correction data. Static RAM.

シェーディング補正部18は演算処理回路3に相当する
もので、演算方法は公知のものである。以下にその演算
式を示す。
The shading correction unit 18 corresponds to the arithmetic processing circuit 3, and the arithmetic method is well-known. The operation formula is shown below.

上記の式において、Cは規格化定数であり、データ長
が8ビットならば256である。またDinは入力データ,D
OUTは出力データ,DWは白基準データ,DBは黒基準データ
を示す。
In the above equation, C is a normalization constant, which is 256 if the data length is 8 bits. D in is the input data, D
OUT is the output data, D W is the white reference data, D B represents the black reference data.

次に、第19図の動作について説明する。 Next, the operation of FIG. 19 will be described.

まず、白基準データ16を白基準データRAM14に、黒基
準データ17を黒基準データRAM15に書き込むために、予
め、データ形式信号6を制御手段1に入力しておき、白
基準データRAM14を選択し、アドレスで指定される番地
に白基準データ16を書き込む。黒基準データ17も同様に
黒基準データRAM15に書き込む。この際に制御手段1は
データ形式によりアドレスの発生方法を変える。点順次
データではアドレスカウンタ42のリセット信号44にライ
ン信号5を選択し、第4図に示すように1ライン毎にア
ドレスを初期化する。線順次データでは3ライン信号43
を選択し、第5図に示すように3ライン毎にアドレスを
初期化する。面順次データは点順次データと同様に動作
する。
First, in order to write the white reference data 16 into the white reference data RAM 14 and the black reference data 17 into the black reference data RAM 15, the data format signal 6 is input to the control means 1 in advance, and the white reference data RAM 14 is selected. Then, the white reference data 16 is written to the address specified by the address. The black reference data 17 is similarly written into the black reference data RAM 15. At this time, the control means 1 changes the address generation method according to the data format. In the dot sequential data, the line signal 5 is selected as the reset signal 44 of the address counter 42, and the address is initialized line by line as shown in FIG. 3-line signal 43 for line-sequential data
And the address is initialized every three lines as shown in FIG. Plane-sequential data operates similarly to dot-sequential data.

上記のように補正データを記憶し、そして、画像デー
タが入力されるとデータ形式に応じて、制御手段1によ
りアドレス9が出力され、白基準データRAM5及び黒基準
データRAM6から各画素に対応した補正データが読み出さ
れ、画像データの補正演算が行われる。この場合、アド
レス9の発生法は補正データをRAMへ書き込む時と同様
である。
The correction data is stored as described above, and when the image data is input, the address 9 is output by the control means 1 in accordance with the data format, and the white reference data RAM 5 and the black reference data RAM 6 correspond to each pixel. The correction data is read, and a correction operation of the image data is performed. In this case, the method of generating the address 9 is the same as when writing the correction data to the RAM.

第20図は本発明の実施例の変倍回数の構成ブロック図
であり、副走査方向の変倍を行う。
FIG. 20 is a block diagram showing the configuration of the number of times of zooming according to the embodiment of the present invention, and performs zooming in the sub-scanning direction.

制御手段1は第3図に示す構成となっており、データ
形式に応じ既述したように、ラインメモリ20のアドレス
9の制御を行う。
The control means 1 has the configuration shown in FIG. 3, and controls the address 9 of the line memory 20 as described above according to the data format.

ラインメモリ20は少なくとも1ライン(1ライン分の
画素数×色数×画素のビット長)以上の容量を持つ。
The line memory 20 has a capacity of at least one line (the number of pixels for one line × the number of colors × the bit length of a pixel) or more.

線形補間回路19は演算処理回路3に相当し、公知の線
形補間演算のアルゴリズムを実現するものである。変倍
率により決定されるある一定の周期に、それをはさむ最
も近い変倍率100%に相当する原周期の2つのデータを
用いて、データをつくり画素密度変換する。
The linear interpolation circuit 19 corresponds to the arithmetic processing circuit 3 and realizes a known linear interpolation calculation algorithm. Data is created and converted to pixel density using two data of the original cycle corresponding to the nearest 100% scaling factor sandwiching a certain cycle determined by the scaling factor.

次に、第20図の動作について説明する。 Next, the operation of FIG. 20 will be described.

データ形式信号6を制御手段1に入力し、アドレスカ
ウンタ42のリセット信号44にライン信号5と3ライン分
のライン信号を1ラインとする3ライン信号43のどちら
を用いるか選択する。
The data format signal 6 is input to the control means 1 to select either the line signal 5 or the three-line signal 43 having three line signals as one line for the reset signal 44 of the address counter 42.

点順次データ及び面順次データではアドレス9はライ
ン信号5をアドレスカウンタ42のリセット信号44とし第
4図のようにインクリメントされ、線順次データでは3
ライン信号43をアドレスカウンタ42のリセット信号44と
し第5図のようにインクリメントされる。
In the case of the dot-sequential data and the frame-sequential data, the address 9 is incremented as shown in FIG. 4 using the line signal 5 as the reset signal 44 of the address counter 42.
The line signal 43 is used as a reset signal 44 of the address counter 42 and is incremented as shown in FIG.

上記により、同じアドレスにはデータ形式に関わらず
同色データが並べられる。
As described above, the same color data is arranged at the same address regardless of the data format.

入力データ7が線形補間回路19に入力されると、制御
手段1はデータ形式に応じてアドレス9を発生し、ライ
ンメモリ20から1ライン前の同色データをメモリデータ
10として出力させ、且つ、入力データ7を同一のアドレ
スでラインメモリ20に書き込む。線形補間回路19は倍率
を200%に設定されているとすると、入力データ7とラ
インメモリ20から読みだしたメモリデータ10と入力デー
タ7の平均データを出力する。
When the input data 7 is input to the linear interpolation circuit 19, the control means 1 generates an address 9 according to the data format, and stores the same color data one line before from the line memory 20 into the memory data.
10, and the input data 7 is written to the line memory 20 at the same address. Assuming that the magnification is set to 200%, the linear interpolation circuit 19 outputs the input data 7, the memory data 10 read from the line memory 20, and the average data of the input data 7.

また第1図に示した構成に基づき適宜な順序回路をも
ちいれば、主走査方向の変倍回路も同様に構成できるこ
とは言うまでもない。
Needless to say, if an appropriate sequential circuit is used based on the configuration shown in FIG. 1, a scaling circuit in the main scanning direction can be similarly configured.

第21図は本発明の実施例の構成ブロック図であり、中
間調を作るためのディザ回路の構成ブロック図である。
FIG. 21 is a block diagram showing a configuration of an embodiment of the present invention, which is a block diagram of a dither circuit for producing a halftone.

制御手段1は第22図に示すように上位2ビット、下位
2ビットを出力する構成となっており、上位2ビットを
出力する部分は第3図に示した制御回路とほぼ同一で、
ラインカウンタ40、セレクタ66、上位アドレスカウンタ
64で構成される。下位2ビットを出力する部分はクロッ
クカウンタ70と、クロックとクロックカウンタ70の出力
のいずれかをデータ形式信号に基づき出力するセレクタ
67と、セレクタ67からの信号がクロック端子に入力され
る下位アドレスカウンタ65より構成される。データ形式
信号6により上記アドレスカウンタ64及び下位アドレス
カウンタ65のリセット信号68,69を選択する。上位アド
レスカウンタ64のリセット信号102は上位アドレスの2
ビットがともに“1"の状態でイネーブルとなり、次のク
ロック入力68でリセットとなる。また、下位アドレスカ
ウンタ65のリセット信号103は下位アドレスの2ビット
がともに“1"の状態でイネーブルとなり、次のクロック
入力69でリセットとなる。これにより、制御手段1はデ
ータ形式に応じROM25にアドレス9を出力する。
The control means 1 is configured to output the upper 2 bits and the lower 2 bits as shown in FIG. 22, and the portion for outputting the upper 2 bits is almost the same as the control circuit shown in FIG.
Line counter 40, selector 66, upper address counter
Consists of 64. The part that outputs the lower two bits is a clock counter 70 and a selector that outputs either the clock or the output of the clock counter 70 based on the data format signal.
67, and a lower address counter 65 to which a signal from the selector 67 is input to a clock terminal. The reset signals 68 and 69 of the address counter 64 and the lower address counter 65 are selected by the data format signal 6. The reset signal 102 of the upper address counter 64 is the upper address 2
The bit is enabled when both bits are "1", and reset at the next clock input 68. The reset signal 103 of the lower address counter 65 is enabled when both bits of the lower address are "1", and reset at the next clock input 69. Thereby, the control means 1 outputs the address 9 to the ROM 25 according to the data format.

ROM25はデータ記憶手段4に相当し、ディザパターン
を記憶するもので例えば、第23図に示す4×4ディザパ
ターンを、第24図に示すアドレスマップに従い記憶させ
たものとする。
The ROM 25 corresponds to the data storage means 4 and stores a dither pattern. For example, it is assumed that a 4 × 4 dither pattern shown in FIG. 23 is stored in accordance with an address map shown in FIG.

コンパレータ26は演算処理回路3に相当し、ROM25の
8ビット出力をコンパレートレベルとし、8ビットの入
力データ7を2値化する。
The comparator 26 corresponds to the arithmetic processing circuit 3 and sets the 8-bit output of the ROM 25 to a comparator level and binarizes the 8-bit input data 7.

次に、第21図の動作について説明する。 Next, the operation of FIG. 21 will be described.

点順次データの場合、データ形式信号6によりセレク
タ66でライン信号5と、セレクタ67で3クロック信号71
を選択し、第25図に示すように4ラインを周期としてア
ドレス9を発生しROM25よりコンパレートレベル27を出
力させる。
In the case of dot-sequential data, the data format signal 6 causes the selector 66 to output the line signal 5 and the selector 67 outputs the three clock signal 71.
Is selected, and an address 9 is generated with a cycle of four lines as shown in FIG.

線順次データの場合、データ形式信号6によりセレク
タ66で3ライン信号43と、セレクタ67でクロック信号8
を選択し、第26図に示すように12ラインを周期としてア
ドレス9を発生しROM25よりコンパレートレベル27を出
力させる。
In the case of line sequential data, the selector 66 uses the data format signal 6 to output the three-line signal 43 and the selector 67 uses the clock signal 8.
26, an address 9 is generated with a cycle of 12 lines, and a comparison level 27 is output from the ROM 25 as shown in FIG.

面順次データの場合、データ形式信号6によりセレク
タ66でライン信号5と、セレクタ67でクロック信号8を
選択し、第27図に示すように4ラインを周期としてアド
レス9を発生しROM25よりコンパレートレベル27を出力
させる。
In the case of frame sequential data, the line signal 5 is selected by the selector 66 by the data format signal 6 and the clock signal 8 by the selector 67, and an address 9 is generated with a period of 4 lines as shown in FIG. Output level 27.

上記により得られたコンパレートレベル27を用い、入
力データ7を2値化し出力する。
Using the compare level 27 obtained as described above, the input data 7 is binarized and output.

〔発明の効果〕〔The invention's effect〕

本発明は、以上説明したように、各データ形式に対し
演算処理を可能とし画像処理装置の汎用性を著しく向上
させ、他の装置との接続を容易とした。
As described above, the present invention makes it possible to perform arithmetic processing on each data format, thereby significantly improving the versatility of an image processing apparatus and facilitating connection with other apparatuses.

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

第1図は本発明の実施例の構成ブロック図で、第2図は
本発明の実施例の構成ブロック図で、第3図は制御手段
1の構成ブロック図で、第4図は本発明の実施例の点順
次データ処理時におけるタイミングチャート、第5図は
本発明の実施例の線順次データ処理時におけるタイミン
グチャート、第6図は順序回路の構成ブロック図で、第
7図は本発明の実施例の輪郭強調回路の構成ブロック図
で、第8図は順序回路(輪郭強調回路)の構成ブロック
図で、第9図は実施例に用いた輪郭強調回路のデジタル
フィルタで、第10図は面順次データのデジタルフィルタ
で、第11図は線順次データのデジタルフィルタで、第12
図は点順次データのデジタルフィルタで、第13図は本発
明の実施例の誤差拡散回路の構成ブロック図で、第14図
は順序回路(誤差拡散回路)の構成ブロック図で、第15
図は実施例に用いた誤差拡散回路の重み付けフィルタ
で、第16図は点順次データ処理時における第15図の重み
付けフィルタで、第17図は線順次データ処理時における
第15図の重み付けフィルタで、第18図は面順次データ処
理時における第15図の重み付けフィルタで、第19図は本
発明の実施例のシェーディング補正回路の構成ブロック
図で、第20図は本発明の実施例の変倍回路の構成ブロッ
ク図で、第21図は本発明の実施例のディザ回路の構成ブ
ロック図で、第22図はディザ回路の制御手段の構成ブロ
ック図で、第23図は本発明の実施例のディザ回路を用い
たディザパターンで、第24図はROM25のアドレスマップ
で、第25図は本発明の実施例のディザ回路における点順
次データ処理時のタイミングチャートで、第26図は本発
明の実施例のディザ回路における線順次データ処理時の
タイミングチャートで、第27図は本発明の実施例のディ
ザ回路における面順次データ処理時のタイミングチャー
トで、第28図は点順次データのデータ配列を示す説明図
で、第29図は線順次データのデータ配列を示す説明図
で、第30図は面順次データのデータ配列を示す説明図で
ある。 1……制御回路 2……順序回路 3……演算処理回路 4……データ記憶手段 6……データ形式信号 7……シェーイディング補正回路 8……線形補間回路 18……シェーディング補正部 19……線形補間回路 24……ラプラシアン回路 26……コンパレータ 31……誤差演算部 40……ラインカウンタ 41……セレクタ 42……アドレスカウンタ
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 3 is a block diagram showing the configuration of the control means 1, and FIG. FIG. 5 is a timing chart at the time of dot-sequential data processing of the embodiment, FIG. 5 is a timing chart at the time of line-sequential data processing of the embodiment of the present invention, FIG. 6 is a block diagram of a sequential circuit, and FIG. FIG. 8 is a block diagram of a configuration of a contour emphasizing circuit of the embodiment, FIG. 8 is a block diagram of a sequential circuit (contour emphasizing circuit), FIG. 9 is a digital filter of the contour emphasizing circuit used in the embodiment, and FIG. Fig. 11 shows a digital filter for line-sequential data, and Fig. 11 shows a digital filter for line-sequential data.
13 is a block diagram of an error diffusion circuit according to an embodiment of the present invention. FIG. 14 is a block diagram of a sequential circuit (error diffusion circuit).
FIG. 16 shows the weighting filter of the error diffusion circuit used in the embodiment, FIG. 16 shows the weighting filter of FIG. 15 in the point-sequential data processing, and FIG. 17 shows the weighting filter of FIG. 15 in the line-sequential data processing. FIG. 18 is a weighting filter of FIG. 15 at the time of field sequential data processing, FIG. 19 is a block diagram showing the configuration of a shading correction circuit of an embodiment of the present invention, and FIG. FIG. 21 is a block diagram showing a configuration of a dither circuit according to an embodiment of the present invention. FIG. 22 is a block diagram showing a configuration of control means of the dither circuit. FIG. 23 is a block diagram showing an embodiment of the present invention. FIG. 24 is an address map of the ROM 25, FIG. 25 is a timing chart at the time of dot sequential data processing in the dither circuit according to the embodiment of the present invention, and FIG. 26 is a dither pattern using the dither circuit. In the example dither circuit FIG. 27 is a timing chart at the time of sequential data processing, FIG. 27 is a timing chart at the time of plane-sequential data processing in the dither circuit of the embodiment of the present invention, and FIG. 28 is an explanatory diagram showing a data array of dot-sequential data. FIG. 30 is an explanatory diagram showing a data array of line sequential data, and FIG. 30 is an explanatory diagram showing a data array of frame sequential data. DESCRIPTION OF SYMBOLS 1 ... Control circuit 2 ... Sequential circuit 3 ... Operation processing circuit 4 ... Data storage means 6 ... Data format signal 7 ... Shading correction circuit 8 ... Linear interpolation circuit 18 ... Shading correction unit 19 ... Linear interpolation circuit 24 Laplacian circuit 26 Comparator 31 Error calculator 40 Line counter 41 Selector 42 Address counter

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭62−271184(JP,A) 特開 平1−113791(JP,A) 特開 平1−201780(JP,A) 特開 昭63−307475(JP,A) 特開 昭60−14376(JP,A) ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-62-271184 (JP, A) JP-A-1-1133791 (JP, A) JP-A-1-201780 (JP, A) JP-A-63-271184 307475 (JP, A) JP-A-60-14376 (JP, A)

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】2次元で構成されるカラー画像データの画
素領域に注目して演算処理を行う画像処理装置におい
て、 入力画素データに関連する画像データあるいは係数デー
タのいずれか一方のデータを記憶するデータ記憶手段
と、前記入力画素データが点順次、線順次、あるいは面
順次のいずれであるかを示すデータ形式信号と1ライン
のデータ範囲を示すライン信号と前記入力画素データと
同期するクロック信号とに基づいて、前記データ記憶手
段に対して前記入力画素データのデータ形式に対応した
アドレス信号を発生する制御手段と、前記入力画素デー
タの少なくともある一色のデータに、前記データ記憶手
段から読み出された前記画像データあるいは係数データ
の前記一色に対応するデータを用いて所望の演算処理を
施し出力データとして出力するとともに、前記所望の演
算処理に応じて、前記読み出されたいずれか一方のデー
タに対応するデータを前記データ記憶手段にメモリデー
タとして出力する演算処理手段とからなることを特徴と
する画像処理装置。
An image processing apparatus for performing an arithmetic process by paying attention to a pixel region of two-dimensional color image data stores either one of image data and coefficient data related to input pixel data. A data storage unit, a data format signal indicating whether the input pixel data is dot-sequential, line-sequential, or plane-sequential, a line signal indicating a data range of one line, and a clock signal synchronized with the input pixel data. Control means for generating an address signal corresponding to the data format of the input pixel data to the data storage means, and at least one color data of the input pixel data read from the data storage means based on Output data subjected to a desired arithmetic processing using the data corresponding to the one color of the image data or the coefficient data. And an arithmetic processing means for outputting data corresponding to any one of the read data as memory data to the data storage means according to the desired arithmetic processing. Image processing device.
【請求項2】2次元で構成されるカラー画像データの画
素領域に注目して演算処理を行う画像処理装置におい
て、 入力画素データに関連する予め入力された係数データを
記憶するデータ記憶手段と、前記入力画素データが点順
次、線順次、あるいは面順次のいずれであるかを示すデ
ータ形式信号と1ラインのデータ範囲を示すライン信号
と前記入力画素データと同期するクロック信号とに基づ
いて、前記データ記憶手段に対して前記入力画素データ
のデータ形式に対応したアドレス信号を発生する制御手
段と、前記入力画素データの少なくともある一色のデー
タに、前記データ記憶手段から読み出された前記係数デ
ータの前記一色に対応するデータを用いて所望の演算処
理を施し出力する演算処理手段とからなることを特徴と
する画像処理装置。
2. An image processing apparatus for performing an arithmetic process by paying attention to a pixel area of two-dimensional color image data, comprising: data storage means for storing coefficient data inputted in advance related to input pixel data; Based on a data format signal indicating whether the input pixel data is dot-sequential, line-sequential, or plane-sequential, a line signal indicating a data range of one line, and a clock signal synchronized with the input pixel data, Control means for generating an address signal corresponding to the data format of the input pixel data to data storage means; and at least one color data of the input pixel data, the coefficient data of the coefficient data read from the data storage means. And an arithmetic processing means for performing desired arithmetic processing using the data corresponding to the one color and outputting the result. Place.
【請求項3】2次元で構成されるカラー画像データの画
素領域における注目画素及び該注目画素の周辺画素のデ
ータを用いて演算処理を行う画像処理装置において、 入力画素データに関連する画像データあるいは係数デー
タのいずれか一方のデータを記憶するデータ記憶手段
と、前記入力画素データが点順次、線順次、あるいは面
順次のいずれであるかを示すデータ形式信号と1ライン
のデータ範囲を示すライン信号と前記入力画素データと
同期するクロック信号とに基づいて、前記データ記憶手
段に対して前記入力画素データのデータ形式に対応した
アドレス信号を発生する制御手段と、前記データ記憶手
段から読み出された前記画像データあるいは係数データ
および前記入力画素データを保持し、データ形式信号に
基づき、該保持したデータの中から前記入力画素データ
の少なくともある一色に対応するデータを演算処理の種
類に応じて演算データとして出力するとともに、前記演
算処理に応じて、前記データ記憶手段に記憶されたいず
れか一方のデータに対応するデータを前記データ記憶手
段にメモリデータとして出力する順序回路手段と、該順
序回路手段から出力された演算データに前記演算処理の
種類に応じた演算処理をする演算処理手段とからなるこ
とを特徴とする画像処理装置。
3. An image processing apparatus for performing an arithmetic process using data of a pixel of interest in a pixel region of two-dimensional color image data and pixels surrounding the pixel of interest, wherein image data related to input pixel data or Data storage means for storing any one of coefficient data; a data format signal indicating whether the input pixel data is dot-sequential, line-sequential, or plane-sequential; and a line signal indicating a data range of one line A control unit for generating an address signal corresponding to the data format of the input pixel data to the data storage unit based on a clock signal synchronized with the input pixel data, and a clock signal read from the data storage unit. The image data or coefficient data and the input pixel data are held, and based on the data format signal, the held data is held. Data corresponding to at least one color of the input pixel data is output as operation data according to the type of operation processing, and one of the data stored in the data storage means is output according to the operation processing. A sequential circuit means for outputting data corresponding to the data as memory data to the data storage means, and an arithmetic processing means for performing arithmetic processing according to the type of arithmetic processing on the arithmetic data output from the sequential circuit means. An image processing apparatus characterized in that:
【請求項4】前記制御手段は前記データ形式が点順次お
よび面順次であるときには同じアドレス信号を発生し、
前記順序回路手段は前記データ形式が面順次および線順
次であるときには同じ保持位置に保持されたデータを選
択出力するように構成された特許請求の範囲第3項に記
載の画像処理装置。
4. The control means generates the same address signal when the data format is dot-sequential and frame-sequential.
4. The image processing apparatus according to claim 3, wherein said sequential circuit means is configured to selectively output data held at the same holding position when said data format is plane-sequential and line-sequential.
JP2163667A 1990-06-21 1990-06-21 Image processing device Expired - Lifetime JP2903175B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2163667A JP2903175B2 (en) 1990-06-21 1990-06-21 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2163667A JP2903175B2 (en) 1990-06-21 1990-06-21 Image processing device

Publications (2)

Publication Number Publication Date
JPH0454569A JPH0454569A (en) 1992-02-21
JP2903175B2 true JP2903175B2 (en) 1999-06-07

Family

ID=15778303

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2163667A Expired - Lifetime JP2903175B2 (en) 1990-06-21 1990-06-21 Image processing device

Country Status (1)

Country Link
JP (1) JP2903175B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62271184A (en) * 1986-05-20 1987-11-25 Fujitsu Ltd Access system for picture memory
JPH0758431B2 (en) * 1987-10-27 1995-06-21 株式会社ピーエフユー Address line and data line connection system
JPH01201780A (en) * 1988-02-05 1989-08-14 Nec Corp Information processor

Also Published As

Publication number Publication date
JPH0454569A (en) 1992-02-21

Similar Documents

Publication Publication Date Title
EP0369702B1 (en) Image processing apparatus and method
JPS61230571A (en) Intensifying method for sharpness in picture scanning/ recording
JP3200873B2 (en) Image processing device
JPH077617A (en) Method and device for processing color value
US4607340A (en) Line smoothing circuit for graphic display units
JP2903175B2 (en) Image processing device
JP2658089B2 (en) Color image processing method
JPH09172544A (en) Image processor
JP2658086B2 (en) Color image processing method
JP2000253255A (en) Signal processor and signal processing system
JP3048156B2 (en) Image processing device
JP3004995B2 (en) Image processing device
JPH077618A (en) Method and device for processing color value
JP2005167503A (en) Image processor and image forming apparatus provided with the same
JP3477658B2 (en) Image processing device
JP2658088B2 (en) Color image processing method
JP2985303B2 (en) Recording device area recognition method
JP2658087B2 (en) Color image processing method
JPH0754547B2 (en) Image processing device
JPH0622128A (en) Picture processing unit
JPH07262377A (en) Method and device for processing color image
JPH0832798A (en) Method and device for processing image
JPH0568157A (en) Area specifying circuit for image processor
JPH0832797A (en) Method and device for processing image
JPH0573668A (en) Mosaic processor

Legal Events

Date Code Title Description
S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090326

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100326

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110326

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20110326

Year of fee payment: 12

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: R3D03

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

Free format text: PAYMENT UNTIL: 20110326

Year of fee payment: 12