JPH0454069A - Shading correction circuit - Google Patents
Shading correction circuitInfo
- Publication number
- JPH0454069A JPH0454069A JP2163670A JP16367090A JPH0454069A JP H0454069 A JPH0454069 A JP H0454069A JP 2163670 A JP2163670 A JP 2163670A JP 16367090 A JP16367090 A JP 16367090A JP H0454069 A JPH0454069 A JP H0454069A
- Authority
- JP
- Japan
- Prior art keywords
- data
- address
- line
- signal
- control means
- 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
Links
- 238000003705 background correction Methods 0.000 title claims description 17
- 238000013500 data storage Methods 0.000 claims abstract description 10
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- RRLHMJHRFMHVNM-BQVXCWBNSA-N [(2s,3r,6r)-6-[5-[5-hydroxy-3-(4-hydroxyphenyl)-4-oxochromen-7-yl]oxypentoxy]-2-methyl-3,6-dihydro-2h-pyran-3-yl] acetate Chemical compound C1=C[C@@H](OC(C)=O)[C@H](C)O[C@H]1OCCCCCOC1=CC(O)=C2C(=O)C(C=3C=CC(O)=CC=3)=COC2=C1 RRLHMJHRFMHVNM-BQVXCWBNSA-N 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Image Input (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、イメージスキャナ、プリンタ、複写機等の画
像機器に用いられるシェーディング補正回路に関し、特
にカラー画像を扱うシェーディング補正回路に関す。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a shading correction circuit used in image devices such as image scanners, printers, and copying machines, and particularly to a shading correction circuit that handles color images.
従来、2次元で構成されるカラー画像データを扱う画像
処理装置においては、扱われるデータ形式としてイメー
ジスキャナでは線順次データが、プリンタや複写機では
面順次データが多用されている0例えば、R(赤)、G
(緑)、B(青)の3原色に色分解された入力データを
例とす4と、点順次データでは第5図に、線順次データ
では第6図に、面順次データでは第7図に示すようなデ
ータ配列となり、主走査方向に関しては点順次データで
は2WJ素おきに、線順次データ及び面順次データでは
全画素が同色データとなり、また、副走査方向に関して
は点順次データ及び面順次データでは全ラインが、線順
次データでは2ラインおきに同色データとなる。Conventionally, in image processing devices that handle two-dimensional color image data, image scanners often use line-sequential data, and printers and copiers often use field-sequential data. red), G
For example, input data separated into three primary colors (green) and B (blue) is shown in Figure 5 for point sequential data, Figure 6 for line sequential data, and Figure 7 for field sequential data. The data arrangement is as shown in , and in the main scanning direction, every 2WJ element is used for dot sequential data, all pixels are the same color data for line sequential data and field sequential data, and in the sub-scanning direction, dot sequential data and field sequential data are In data, all lines have the same color data, and in line sequential data, every two lines have the same color data.
一方、画像機器においては、光源の照度バラツキ、イメ
ージセンサ、カラーフィルタ、レンズ等の感度のバラツ
キを補正するためのソニーディング補正回路が多用され
ているが、カラー画像を汲おうとするとこの様にデータ
形式によりデータの配列が異なっており、この為それぞ
れデータ形式に応して特定のシェーディング補正回路が
構成されている。On the other hand, in imaging equipment, sonification correction circuits are often used to correct variations in illuminance of light sources and variations in sensitivity of image sensors, color filters, lenses, etc.; The data arrangement differs depending on the format, and therefore a specific shading correction circuit is configured according to each data format.
上記のような従来の技術では、シェーディング補正回路
の汎用性が乏しく、データ形式の異なる他の装置との接
続が困難であった。例えば、データ形式として線順次が
多用されるイメージスキャナで用いられるシェーディン
グ補正回路は、面順次データが多用されているプリンタ
や複写機では用いることが出来ず、面順次データの扱え
るシェーディング補正回路を用意しなければならなかっ
た。In the conventional technology as described above, the shading correction circuit lacks versatility, and it is difficult to connect it to other devices with different data formats. For example, shading correction circuits used in image scanners that often use line-sequential data formats cannot be used in printers and copiers that often use frame-sequential data, so shading correction circuits that can handle frame-sequential data are available. I had to.
そこで本発明は複数のデータ形式に対応できるシェーデ
ィング補正回路を提供することを目的とする。Therefore, it is an object of the present invention to provide a shading correction circuit that can handle a plurality of data formats.
上記の問題点を解決するために、本発明においては、カ
ラー画像データに対してソニーディング補正処理を行う
シェーディング補正回路において、画素に対応し演算に
用いられる白基準データ及び黒基準データを記憶するデ
ータ記憶手段と、データ形式に応し前記データ記憶手段
を指定するアドレス値を制御する制御手段と、前記制御
手段により指定されたアドレス値のもとに格納される前
記データ記憶手段中のデータを用い、入力画素データに
シェーディング処理を施し出力するシェーディング処理
部から成ることを特徴とする。In order to solve the above problems, the present invention stores white reference data and black reference data that correspond to pixels and are used in calculations in a shading correction circuit that performs soning correction processing on color image data. a data storage means; a control means for controlling an address value specifying the data storage means according to a data format; and a control means for controlling an address value specifying the data storage means according to the data format; It is characterized by comprising a shading processing section that performs shading processing on input pixel data and outputs the resultant data.
上記のような構成によれば、制御手段の基にデータ形式
に応してデータ記憶手段より読み出すデータを選択しデ
ータ形式に関わらずシェーディング処理が可能となる。According to the above configuration, data to be read from the data storage means is selected based on the data format based on the control means, and shading processing can be performed regardless of the data format.
第1図は、本発明のシェーディング補正回路の実施例の
構成ブロック図である。FIG. 1 is a block diagram of an embodiment of a shading correction circuit according to the present invention.
制御手段1は、各データ形式間でのデータ配列の違いに
よる演算への影響、例えば、同色データ間の演算時に他
色のデータを用いてしまう等の悪影響をなくすためのも
ので、レジスタ、セレクタカウンタ等で構成され、入力
画像データの形式が点順次データ、vA順次データ、面
順次データのいずれかを示すデータ形式信号6と、デー
タの有効範囲を示すライン信号5と、入力データと同期
するクロック8を入力することにより、各色のデータ配
列に応し、アドレス9の発生方法を変えて白基準データ
RAM2a、黒基準データRAM2bへ出力する。The control means 1 is for eliminating the adverse effect on calculations due to differences in data arrangement between data formats, such as using data of a different color when calculating data of the same color. It is composed of a counter, etc., and is synchronized with the input data with a data format signal 6 indicating whether the format of the input image data is dot sequential data, vA sequential data, or field sequential data, and a line signal 5 indicating the effective range of the data. By inputting the clock 8, the generation method of the address 9 is changed according to the data arrangement of each color and outputted to the white reference data RAM 2a and the black reference data RAM 2b.
制御手段1を第2図に基づき説明すると、3ライン分の
ライン信号を計数する為のラインカウンタ10、八人力
、B入力を有し、セレクト端子に入力される信号に基づ
きいずれかの信号を出力するセレクタ11、クロックに
同期してアドレスを計数するアドレスカウンタ12から
構成され、ラインカウンタ10のカウンタ入力、セレク
タ11の八人力、アドレスカウンタ12のエネーブル端
子Eにはそれぞれライン信号5が入力されており、セレ
クタ11のB入力には前記ラインカウンタ40のQ出力
13が、またセレクト端子Sにはデータ形式信号6が入
力されている。前記アドレスカウンタ12のリセット端
子Rにはセレクタ11のY出力14が接続され、またク
ロック端子にはクロック8が入力されている。これらの
構成によりアドレスカウンタ42のリセット信号14に
ライン信号5と3ライン分のライン信号を1ラインとす
る3ライン信号13のどちらを用いるかデータ形式信号
6で選択し、白基準データRAM2a、黒基準データR
AM2 bのアドレス9を発生させる。The control means 1 will be explained based on FIG. 2. It has a line counter 10 for counting line signals for three lines, eight inputs, and a B input, and it selects one of the signals based on the signal input to the select terminal. It consists of a selector 11 that outputs an output, and an address counter 12 that counts addresses in synchronization with a clock, and a line signal 5 is input to the counter input of the line counter 10, the input of the selector 11, and the enable terminal E of the address counter 12, respectively. The Q output 13 of the line counter 40 is input to the B input of the selector 11, and the data format signal 6 is input to the select terminal S. The Y output 14 of the selector 11 is connected to the reset terminal R of the address counter 12, and the clock 8 is input to the clock terminal. With these configurations, the data format signal 6 is used to select which of the line signal 5 and the 3-line signal 13, in which one line is composed of line signals for three lines, is used as the reset signal 14 of the address counter 42, and the white reference data RAM 2a and the black Standard data R
Generate address 9 of AM2b.
点順次データ及び面順次データではアドレス9はライン
信号5をアドレスカウンタ12のリセット信号14とし
第3図のようにライン信号がアサートの期間、クロック
の入力に同期してインクリメントされ、ライン信号がネ
ゲートになる毎にリセットされる。M順次データでは3
ライン信号13をアドレスカウンタ12のリセット信号
14とし第4図のようにライン信号がアサートの期間、
クロックの人力に同期してインクリメントされ、3ライ
ン信号がネゲートになる毎にリセットされる。第2図で
、アドレスカウンタはカウンタで、ラインカウンタ10
はカウンタとゲートで構成できる。In the case of dot sequential data and field sequential data, the address 9 uses the line signal 5 as the reset signal 14 of the address counter 12, and as shown in FIG. It is reset every time. 3 for M sequential data
The line signal 13 is used as the reset signal 14 of the address counter 12, and the period when the line signal is asserted as shown in FIG.
It is incremented in synchronization with the clock input, and is reset every time the 3rd line signal is negated. In Figure 2, the address counter is a counter, and the line counter 10
can be composed of a counter and a gate.
本例ではアドレスカウンタからの出力をそのままデータ
記憶手段のアドレスとして使用しているが、白基準デー
タRAM2a、!!A基準データRAM2bが複数のテ
ーブルデータや複数の記憶素子で構成されている場合に
は、アドレス9の上位ビットを用いて、テーブルデータ
や記憶素子を選択することも可能である。In this example, the output from the address counter is used as is as the address of the data storage means, but the white reference data RAM2a, ! ! If the A reference data RAM 2b is composed of a plurality of table data or a plurality of storage elements, it is also possible to select the table data or storage element using the upper bits of the address 9.
白基準データRAM2a及び黒基準データRAM2bは
データ記憶手段に相当し少なくとも1ライン(1ライン
分の画素数×色数×画素のビット長)以上の容量を持ち
、補正データを記憶するRAMである。The white reference data RAM 2a and the black reference data RAM 2b correspond to data storage means, have a capacity of at least one line (number of pixels for one line x number of colors x bit length of pixels), and are RAMs for storing correction data.
シェーディング補正部3はシェーディング補正を行うた
めの所定の演算を行うための回路であり公知の減算回路
と除算回路により構成できる。以下にシェーディング補
正のための演算式を示す。The shading correction section 3 is a circuit for performing predetermined calculations for performing shading correction, and can be constructed from a known subtraction circuit and division circuit. The calculation formula for shading correction is shown below.
上記の式において、Cは規格化定数であり、データ長が
8ピントならば256である。またり、、。In the above equation, C is a normalization constant, which is 256 if the data length is 8 pints. Again...
は入力データ+ I)outは出力データ、D+=は
白基準データ、Dmは黒基準データを示す。is input data + I) out is output data, D+= is white reference data, and Dm is black reference data.
次に、第1図の動作について説明する。Next, the operation shown in FIG. 1 will be explained.
まず、白基準データ4aを白基準データRAM2aに、
黒基準データ4bを黒基準データRAM2bに書き込む
ために、予め、データ形式信号6を制御手段1に入力し
ておき、白基準データRAM 2 aを選択し、アドレ
スで指定される番地に白基準データ4aを書き込む。黒
基準データ4bも同様に黒基準データRAM2aに書き
込む、この際に制御手段1はデータ形式によりアドレス
の発生方法を変える0点順次データではアドレスカウン
タ12のリセット信号14にライン信号5を選択し、第
3図に示すように1ライン毎にアドレスを初期化する。First, the white reference data 4a is stored in the white reference data RAM 2a,
In order to write the black reference data 4b to the black reference data RAM 2b, the data format signal 6 is input to the control means 1 in advance, the white reference data RAM 2a is selected, and the white reference data is written to the address specified by the address. Write 4a. The black reference data 4b is similarly written to the black reference data RAM 2a. At this time, the control means 1 changes the address generation method depending on the data format. For zero point sequential data, the control means 1 selects the line signal 5 as the reset signal 14 of the address counter 12, As shown in FIG. 3, addresses are initialized for each line.
線順次データでは3ライン信号13を選択し、第4図に
示すように3ライン毎にアドレスを初期化する0面順次
データは点順次データと同様に動作する。For line sequential data, the 3-line signal 13 is selected, and as shown in FIG. 4, zero-plane sequential data in which addresses are initialized every three lines operates in the same way as 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 control means 1 outputs the address 9 according to the data format, and corresponds to each pixel from the white reference data RAM 5 and the black reference data RAM 6. The corrected correction data is read out, and correction calculations are performed on the image data. In this case, the method of generating address 9 is the same as when writing correction data to RAM.
本発明は、以上説明したように、各データ形式に対し演
算処理を可能とし画像処理装置の汎用性を著しく向上さ
せ、他の装置との接続を容易とした。As explained above, the present invention enables arithmetic processing for each data format, significantly improves the versatility of an image processing device, and facilitates connection with other devices.
第1図は本発明の実施例の構成ブロック図で、第2図は
制御手段1の構成ブロック図で、第3図は本発明の実施
例の点順次データ処理時におけるタイミングチャート、
第4図は本発明の実施例の線順次データ処理時における
タイミングチャート、第5図は点順次データのデータ配
列を示す説明図で、第6図は線順次データのデータ配列
を示す説明図で、第7図は面順次データのデータ配列を
示す説明図である。
1 ・ ・
2 a、
3 ・ ・
4 a ・
4 b ・
10 ・
11 ・
12 ・
艷I御回路
b・・順序回路
シェーディング補正部
白基準データRAM
黒基準データRAM
ラインカウンタ
セレクタ
アドレスカウンタ
以上
出願人 セイコー電子工業株式会社
代理人 弁理士 林 敬 之 助
□主足査方藺
方
同RmOGmo Bmo Rm+ Qnn+ &n+
Rmz Grn2 Brr+2−第S図
主り丘方向
RmnCvnnBm−
RmORrr++ Rmz Rm3
GrnOGrn+ Gm2 Gm3
8m0 Bm+ Bm2Bml
rnn
m n
主人五方勾
疋
盃
万
、 Goo GOI GO2GO3−−−−GonGo
o Go GI2 G+3 −−−− G+n32
0 G2T G22 (723−−−−G2nRrr+
n
Rmo Rm+ Rm2 Rm3
Gmo Gm+ Gm2Gm3
mn
Boo Bo+ BOZ &+3 −−−− B
anB+□ BIT B12 8+3 −−−−
B1n820 B21 B22 B23 −−−−
BznBmo Bm+ Bm2Bm3
8m n
第
図FIG. 1 is a block diagram of the configuration of an embodiment of the present invention, FIG. 2 is a block diagram of the configuration of the control means 1, and FIG. 3 is a timing chart of the embodiment of the present invention during point sequential data processing.
FIG. 4 is a timing chart during line sequential data processing according to the embodiment of the present invention, FIG. 5 is an explanatory diagram showing a data array of point sequential data, and FIG. 6 is an explanatory diagram showing a data array of line sequential data. , FIG. 7 is an explanatory diagram showing the data arrangement of the frame sequential data. 1 ・ ・ 2 a, 3 ・ ・ 4 a ・ 4 b ・ 10 ・ 11 ・ 12 ・ Sequential circuit Shading correction section White reference data RAM Black reference data RAM Line counter selector Address counter Applicant Seiko Representative of Denshi Kogyo Co., Ltd. Patent attorney Keiyuki Hayashi □ Principal foot examiner RmOGmo Bmo Rm+ Qnn+ &n+
Rmz Grn2 Brr+2-Fig. --GonGo
o Go GI2 G+3 ----- G+n32
0 G2T G22 (723---G2nRrr+
n Rmo Rm+ Rm2 Rm3 Gmo Gm+ Gm2Gm3 mn Boo Bo+ BOZ &+3 ----- B
anB+□ BIT B12 8+3 -----
B1n820 B21 B22 B23 -----
BznBmo Bm+ Bm2Bm3 8m n Diagram
Claims (1)
うシェーディング補正回路において、画素に対応し演算
に用いられる白基準データ及び黒基準データを記憶する
データ記憶手段と、データ形式に応じ前記データ記憶手
段を指定するアドレス値を制御する制御手段と、前記制
御手段により指定されたアドレス値のもとに格納される
前記データ記憶手段中のデータを用い、入力画素データ
にシェーディング処理を施し出力するシェーディング処
理部から成ることを特徴とするシェーディング補正回路
。In a shading correction circuit that performs shading correction processing on color image data, data storage means for storing white reference data and black reference data corresponding to pixels and used in calculations, and the data storage means are designated according to the data format. It consists of a control means for controlling an address value, and a shading processing section that performs shading processing on input pixel data and outputs it using the data in the data storage means stored under the address value specified by the control means. A shading correction circuit characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2163670A JPH0454069A (en) | 1990-06-21 | 1990-06-21 | Shading correction circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2163670A JPH0454069A (en) | 1990-06-21 | 1990-06-21 | Shading correction circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0454069A true JPH0454069A (en) | 1992-02-21 |
Family
ID=15778364
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2163670A Pending JPH0454069A (en) | 1990-06-21 | 1990-06-21 | Shading correction circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0454069A (en) |
-
1990
- 1990-06-21 JP JP2163670A patent/JPH0454069A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4705917B2 (en) | Method and apparatus for converting from a source color space to a target color space | |
US4992861A (en) | Color image reproduction apparatus having a digitally operated look-up table constructed by means of a least squares algorithm | |
US5034806A (en) | Image processing apparatus and method | |
JPH0552700B2 (en) | ||
JPH0454069A (en) | Shading correction circuit | |
US7259798B2 (en) | Image compensation apparatus | |
JPH0463063A (en) | Error dispersing circuit | |
JP2903175B2 (en) | Image processing device | |
JPH09200550A (en) | Image processing system | |
JP2727455B2 (en) | Image data processing device | |
JPS59204378A (en) | Image processor | |
US7119925B2 (en) | Image processing, image reading apparatus and image processing method | |
JPH0468867A (en) | Power varying circuit | |
JPS62100884A (en) | Picture processor | |
JPH04186970A (en) | Color image input device | |
JPH0454573A (en) | Contour emphasizing circuit | |
JP2802841B2 (en) | Image processing system | |
JPH0454070A (en) | Binarizing circuit | |
JP2902869B2 (en) | Planar scanning type image reading device | |
JPH03147472A (en) | Image scanner | |
JPH04181871A (en) | Color picture processing unit | |
JPH03147474A (en) | Image scanner | |
JPH0546755A (en) | Image processor | |
JPS641782B2 (en) | ||
JPH04530A (en) | Color hard copying device |