JPH03191673A - Black/white edge processing method for color reading device - Google Patents

Black/white edge processing method for color reading device

Info

Publication number
JPH03191673A
JPH03191673A JP1331888A JP33188889A JPH03191673A JP H03191673 A JPH03191673 A JP H03191673A JP 1331888 A JP1331888 A JP 1331888A JP 33188889 A JP33188889 A JP 33188889A JP H03191673 A JPH03191673 A JP H03191673A
Authority
JP
Japan
Prior art keywords
black
line
white
edge
filters
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
JP1331888A
Other languages
Japanese (ja)
Inventor
Yoshiharu Suzuki
祥治 鈴木
Tadakazu Kusunoki
楠 忠和
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1331888A priority Critical patent/JPH03191673A/en
Publication of JPH03191673A publication Critical patent/JPH03191673A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent the occurrence of the drag of a black/white edge and the false colors and to obtain a read picture of high quality by comparing the difference of outputs between the picture elements having an interval secured between them with the set value with use of the sensor output read by a transparent filter. CONSTITUTION:For the picture element signal obtained from the main scan of a line image sensor 5, the output differences X between the sensor output (n) obtained by a transparent filter 9-1 and the sensor output (n+2) of a picture element separated from the picture element signal with an interval secured between them are successively calculated. Then no edge is decided when the absolute value of the difference X is smaller than the threshold value S. While an edge is decided vice versa. When the edge deciding result is obtained, the white and black levels are defined to the larger and smaller ones respectively between two sensor outputs obtained by the Y and R filters 9-2 and 9-3 set at the same positions as the picture element (n) and (n+1) used for calculation of the difference X. Furthermore the two sensor outputs obtained by both filters 9-2 and 9-3 set at the same positions as an intermediate picture element (n+1) between picture elements (n) and (n+2) are replaced with the white or black levels in accordance with the plus or minus code of the difference X.

Description

【発明の詳細な説明】 [概要] 複数のフィルタを時分割で切換えてカラー画像を読取る
カラー読取装置の白黒エツジ処理方法に関し、 白黒エツジのだれや偽色の発生を防いで高品質の読取り
画像を得ることを目的とし、 主走査方向については、Wフィルタ出力に関し1つ置き
の画素出力の差を求め、差の絶対値が所定値以上であれ
ばエツジと判断して大きい方を白、小さい方を黒とし、
更に中間位置については差の正負に応じて黒又は白に置
き換える。一方、副走査方向は、同一画素位置の3ライ
ン分のWフィルタ出力につき副走査方向に1つ置きのラ
イン画素の出力差を求め、差の絶対値が所定値以上であ
ればエツジと判断して大きい方を白、小さい方を黒とし
、中間位置は差の正負に応じた黒又は白に置き換える。
[Detailed Description of the Invention] [Summary] This invention relates to a black-and-white edge processing method for a color reading device that reads color images by switching multiple filters in a time-sharing manner, which prevents drooping of black-and-white edges and the occurrence of false colors, thereby producing high-quality read images. In the main scanning direction, the difference between every other pixel output is determined for the W filter output, and if the absolute value of the difference is greater than or equal to a predetermined value, it is determined to be an edge, and the larger one is white, and the smaller one is the other side is black;
Furthermore, the intermediate position is replaced with black or white depending on the sign of the difference. On the other hand, in the sub-scanning direction, the output difference of every other line pixel in the sub-scanning direction is calculated for the W filter output for three lines at the same pixel position, and if the absolute value of the difference is equal to or greater than a predetermined value, it is judged as an edge. The larger one is set to white, the smaller one is set to black, and intermediate positions are replaced by black or white depending on the sign of the difference.

さらに、Y、Rフィルタの出力に関してはWフィルタの
処理結果に一致させる。
Furthermore, the outputs of the Y and R filters are made to match the processing results of the W filter.

[産業上の利用分野] 本発明は、複数のフィルタを時分割に切換えてカラー加
増を読取るカラー読取装置の白黒エツジ処理方法に関す
る。
[Industrial Application Field] The present invention relates to a black-and-white edge processing method for a color reading device that reads color addition by switching a plurality of filters in a time-division manner.

カラー読取装置は、ファクシミリやコンピュータへの画
像入力装置とし用いられており、R(赤)、G(緑)、
B(青)の3色をCCDイメージセンサ等で読取るもの
が知られている。これらカラー読取装置には、より一層
の小型化、低価格化、また読取画像の高精度化が望まれ
、特に白黒エツジを鮮明に再現できることが望まれてい
る。
Color reading devices are used as image input devices for facsimiles and computers, and are used to input images such as R (red), G (green),
A device that reads three colors of B (blue) using a CCD image sensor or the like is known. These color reading devices are desired to be further downsized, lowered in price, and to have higher precision in read images, and in particular, to be able to reproduce black and white edges clearly.

[従来技術] 第10図は従来のフィルタ切換型カラー読取装置の基本
的な読取構造を示す。
[Prior Art] FIG. 10 shows the basic reading structure of a conventional filter switching type color reading device.

第10図において、原稿1上の読取ライン6は照明装置
、例えば螢光灯2などによって照明されており、このラ
イン6上の画像が読取られる。読取ライン6からの反射
光はレンズ4を含む縮小光学系によりCCDラインイメ
ージセンサ(以下rCCDラインセンサ」という)5の
上に結像する。このような構成は、一般の白黒読取の光
学系である。
In FIG. 10, a reading line 6 on a document 1 is illuminated by an illumination device, such as a fluorescent lamp 2, and an image on this line 6 is read. The reflected light from the reading line 6 is imaged onto a CCD line image sensor (hereinafter referred to as rCCD line sensor) 5 by a reduction optical system including a lens 4. Such a configuration is a general black and white reading optical system.

カラー読取を行うためには、レンズ4とセンサ5の間に
色分解用の3色、例えばR,G、  83枚のRフィル
タ9a、Gフィルタ9b、及びBフイルタ9cを設ける
。R,G、Bフィルタ9a、9b、9cは、それぞれリ
ニアモータ10a、10b、10cで保持され、読取ラ
イン6からセンサ5への光路を遮るような位置へ移動で
きるようになっている。
In order to perform color reading, between the lens 4 and the sensor 5, three colors for color separation, for example, R, G, and 83 R filters 9a, G filters 9b, and B filters 9c are provided. The R, G, and B filters 9a, 9b, and 9c are held by linear motors 10a, 10b, and 10c, respectively, and can be moved to positions where they block the optical path from the reading line 6 to the sensor 5.

第1)図(a)〜(c)はカラー読取動作を示す。読取
ライン上6のカラー画像のR(赤)の成分を読取る時は
、第1)図(a)のように3つのフィルタのうち、リニ
アモータ10aを駆動してRフィルタ9aを光路中に挿
入する。他の2つのフィルタ9b、9cは光路を遮らな
い位置に保持する。この結果、読取ライン6からの反射
光のうち、赤い光のみがCCDラインセンサ5に達する
ことができ、画像のR成分が読取られる。
1) Figures (a) to (c) show color reading operations. When reading the R (red) component of the color image 6 on the reading line, drive the linear motor 10a of the three filters to insert the R filter 9a into the optical path as shown in Figure 1) (a). do. The other two filters 9b and 9c are held at positions where they do not block the optical path. As a result, of the reflected light from the reading line 6, only the red light can reach the CCD line sensor 5, and the R component of the image is read.

画像のG(緑)、B(青)成分を読取る時は、第1)図
(b)、  (c)のように、それぞれ光路中にGフィ
ルタ9b、Bフィルタ9cを挿入して読取る。1ライン
のRGB読取が終了すると、原稿を第10図の矢印の方
向に所定の長さだけ送って、次のラインの読取を行う。
When reading the G (green) and B (blue) components of an image, a G filter 9b and a B filter 9c are inserted into the optical path, respectively, as shown in FIG. 1) (b) and (c). When one line of RGB reading is completed, the document is sent a predetermined length in the direction of the arrow in FIG. 10, and the next line is read.

このように小型で軽量のフィルタ9a〜9cと、高速の
りニアモータ10a〜10cを組み合わせることで、セ
ンサ1ラインの読取時間(1〜10m5)とほぼ同程度
の時間でフィルタの切換えを行い、高速のカラー読取を
実現する。
By combining the small and lightweight filters 9a to 9c with the high-speed linear motors 10a to 10c, the filters can be switched in approximately the same amount of time as the reading time of one sensor line (1 to 10m5). Achieve color reading.

なお、第10.1)図てはフィルタ9の挿入位置をレン
ズ4とCCDライイメージセンサ5の間としたが、原稿
1とレンズ4の間にしても同様な効果を得ることができ
る。
Although the filter 9 is inserted between the lens 4 and the CCD light image sensor 5 in Section 10.1), the same effect can be obtained even if the filter 9 is inserted between the document 1 and the lens 4.

第12図は他のカラー読取構造を示したもので、このカ
ラー読取構造では3色のR,G、Bフィルタを一枚の板
としたものを光路中で上下に往復運動するように配置し
ている。具体的なフィルタの切換構造は第13図に示す
ように、R,G、  Bフィルタ9a、9b、9cはベ
ース板21に固定されている。ベース板21は板バネ2
2を介して支持台24に保持される。ベース板21両側
にはコイル23が装着され、コイル23に対し固定側に
マグネットが配置され(図示せず)、コイル23の通電
でベース板21を上下方向に駆動してフィルタ9a〜9
Cを光路面中に切換位置させることができる。
Figure 12 shows another color reading structure. In this color reading structure, three color R, G, and B filters are arranged as a single plate so as to move up and down in the optical path. ing. A specific filter switching structure is shown in FIG. 13, in which R, G, and B filters 9a, 9b, and 9c are fixed to a base plate 21. The base plate 21 is a plate spring 2
It is held on a support stand 24 via 2. Coils 23 are attached to both sides of the base plate 21, and a magnet (not shown) is arranged on the fixed side of the coil 23. When the coil 23 is energized, the base plate 21 is driven in the vertical direction, and the filters 9a to 9 are
C can be switched into the optical path plane.

第12.13図の切換構造でカラー読取を行うためには
、R,G、  Bフィルタ9a、  9b、  9cを
光路中で1往復させる必要がある。まずRフィルタ9a
が光路中に入るようにしてR信号を読取り、次にGフィ
ルタ9bが光路中に入るようにベース板21を動かし、
G信号を読取る。更に同様にBフィルタ9cを動かしB
信号の読取り、1ラインの読取を完了する。その後、再
びRフィルタ9aが光路中に入るようにベース板21を
動かし、R信号を読取り、以後これを繰り返して読取を
行う。
In order to perform color reading with the switching structure shown in FIG. 12.13, it is necessary to move the R, G, and B filters 9a, 9b, and 9c back and forth once in the optical path. First, R filter 9a
reads the R signal so that the G filter 9b enters the optical path, and then moves the base plate 21 so that the G filter 9b enters the optical path.
Read the G signal. Furthermore, move the B filter 9c in the same manner.
Complete signal reading and one line reading. Thereafter, the base plate 21 is moved so that the R filter 9a enters the optical path again, and the R signal is read, and this is repeated thereafter.

[課題を解決するための手段] このような従来のカラー読取装置では、−船釣に螢光灯
とCCDラインセンサが用いられている。
[Means for Solving the Problems] In such a conventional color reading device, a fluorescent lamp and a CCD line sensor are used for boat fishing.

これは価格が比較的安いこと、高速のライン読取が可能
なことなどの理由による。しかし、カラー原稿の中に、
白黒の画像がある場合、例えば文字や線画、グラフなど
を読取ると、画像エツジに無いはずの色が発生すると言
う問題点がある。以下、これについてCCDラインセン
サの読取走査方向となる主走査方向と、原稿送り方向と
なる副走査方向に分けて説明する。
This is due to the relatively low price and the ability to read lines at high speed. However, in the color manuscript,
When there is a black and white image, for example, when reading characters, line drawings, graphs, etc., there is a problem in that colors that should not be present appear at the edges of the image. Hereinafter, this will be explained separately in the main scanning direction, which is the reading scanning direction of the CCD line sensor, and the sub-scanning direction, which is the document feeding direction.

尚、フィルタとしては補色フィルタを構成する透明フィ
ルタ(W)、黄フィルタ(Y)及び赤フィルタ(R)を
使用した場合を例にとる。
As an example, a transparent filter (W), a yellow filter (Y), and a red filter (R), which constitute complementary color filters, are used as filters.

CCDラインセンサは例えば14μm角のセンサ(受光
画素)が、例えば2,048個並んだものである。この
ようなCCDラインセンサは読取の際に、一つの画素が
ちょうど白黒画像のエツジにまたがった場合、その画素
の出力は白でも黒でもなく、中間レベルの出力となる。
The CCD line sensor has, for example, 2,048 14 μm square sensors (light receiving pixels) lined up. When a pixel of such a CCD line sensor straddles the edge of a monochrome image during reading, the output of that pixel is neither white nor black, but is an intermediate level output.

また、螢光灯を用いたライン照明では、ドラムスキャナ
のスポット照明と比較して照明範囲が広いため、読取位
置の周りの原稿面からの反射光などによる干渉により、
画像のエツジがだれるという問題点もある。更に、レン
ズ解像度の限界によってもボケが発生し、画像エツジに
だれが生じる。
In addition, line illumination using fluorescent lights has a wider illumination range than the spot illumination of a drum scanner, so interference from light reflected from the document surface around the reading position may cause
There is also the problem that the edges of the image become blurred. In addition, blurring occurs due to limits in lens resolution, resulting in blurred image edges.

第14図は画像のエツジを読取った場合のCCD出力を
示す。
FIG. 14 shows the CCD output when reading the edges of an image.

即ち、第14図(a)のようにCCDの受光画素がエツ
ジを読んだ場合、同図(b)のようなCCD出力が得ら
れる。
That is, when the light-receiving pixel of the CCD reads an edge as shown in FIG. 14(a), a CCD output as shown in FIG. 14(b) is obtained.

第14図(b)において、第n画素は黒レベル、第n+
を画素はボケによるレベル上昇、第n+2画素は白黒エ
ツジでの中間レベル出力、第n+3画素はボケによるレ
ベル下降、第n+4画素は白レベルとなる。このような
CCDセンサ出力によると、実際の読取画像は主走査方
向のエツジがだれた像となる。更に、レンズの色収差な
どにより、色分解の3色ごとでこれらのだれのようすが
変化すると、エツジのだれた領域に無いはずの色(偽色
)が発生する。
In FIG. 14(b), the nth pixel is at the black level, and the n+th pixel is at the black level.
The level of the pixel increases due to the blur, the n+2 pixel outputs an intermediate level at the black and white edge, the n+3 pixel decreases the level due to the blur, and the n+4 pixel outputs a white level. According to such a CCD sensor output, the actual read image becomes an image with sagging edges in the main scanning direction. Furthermore, if the appearance of these droop changes for each of the three colors of color separation due to chromatic aberration of the lens, a color that should not exist (false color) occurs in the drooped edge area.

次に原稿送り方向となる副走査方向でのだれを説明する
Next, the droop in the sub-scanning direction, which is the document feeding direction, will be explained.

まず第10.12図に示したフィルタ切換えのカラー読
取装置においては、時分割で3色の読取りを行う。副走
査方向には通常、原稿を連続送りする。
First, in the filter switching color reading device shown in FIG. 10.12, three colors are read in a time-division manner. Normally, the document is continuously fed in the sub-scanning direction.

第15図は副走査方向の読取りのようすを示したもので
、原稿移動或いは読取照明系やセンサの移動により、原
稿とセンサとは相対的に位置が変化する。
FIG. 15 shows the state of reading in the sub-scanning direction, and the relative positions of the original and the sensor change due to movement of the original or movement of the reading illumination system or sensor.

第15図(a)は、ケース1としてWフィルタが白黒エ
ツジを読取っている状態と、この時の各色フィルタによ
るCODの出力を示している。また第15図(b)、(
c)はケース2,3として、YフィルタまたはRフィル
タが白黒のエツジを読取っている状態と、各色フィルタ
のCCD出力を示す。
FIG. 15(a) shows a state in which the W filter is reading a black and white edge as case 1, and the COD output by each color filter at this time. Also, Fig. 15(b), (
c) shows cases 2 and 3 in which the Y filter or R filter is reading black and white edges, and the CCD output of each color filter.

副走査方向の場合でも、主走査方向と同様に照明による
ボケが発生するため、ケース1〜3のいずれにおいても
黒(mライン目)と灰(m+2ライン目)の間に、黒レ
ベルが多少上昇した出力(m+1ライン目)が存在する
。このようなセンサが出力によると、実際の読取画像は
、副走査方向の白黒のエツジに無いはずの色(偽色)が
発生する。
Even in the sub-scanning direction, blurring due to lighting occurs in the same way as in the main-scanning direction, so in all cases 1 to 3, the black level may be slightly different between black (mth line) and gray (m+2th line). There is an increased output (line m+1). According to the output of such a sensor, in the actual read image, colors that should not exist (false colors) occur at the black and white edges in the sub-scanning direction.

以上のように、フィルタの切換えにより白黒画像のエツ
ジを読取ると、第16図に示すように主走査、副走査方
向の両方にだれが出たり、無いはずの色が発生したりし
て、読取画像が劣化するという問題点があった。
As described above, when reading the edges of a monochrome image by switching the filter, as shown in Figure 16, edges appear in both the main scanning and sub-scanning directions, or colors that should not exist appear in the reading. There was a problem that the image deteriorated.

本発明は、このような従来の問題点に鑑みてなされたむ
ので、フィルタ切換えを行なうカラー読取の主走査方向
及び副走査方向での白黒エツジのだれや偽色の発生を防
いで品質の高い読取画像が得られるカラー読取装置の白
黒エツジ処理方法を提供することを目的とする。
The present invention has been made in view of these conventional problems, and therefore, it is possible to prevent blurring of black and white edges and the occurrence of false colors in the main and sub-scanning directions of color scanning when filters are switched, thereby achieving high quality. It is an object of the present invention to provide a black and white edge processing method for a color reading device that allows a read image to be obtained.

[課題を解決するための手段] 第1図は本発明の原理説明図である。[Means to solve the problem] FIG. 1 is a diagram explaining the principle of the present invention.

まず本発明は、第1図Cfa)に示すように、原稿1か
らの反射光を、ミラーやレンズ等の読取光学系を介して
ラインイメージセンサ5上に結像させ、1ラインの読取
りに同期して前記読取光学系の光路中に設けた複数のフ
ィルタを時分割で切換えてカラー画像を読取るカラー読
取装置を対象とする。
First, as shown in FIG. 1Cfa), the present invention focuses the reflected light from the original 1 on the line image sensor 5 through a reading optical system such as a mirror or lens, and synchronizes it with the reading of one line. The object of the present invention is a color reading device that reads a color image by time-divisionally switching a plurality of filters provided in the optical path of the reading optical system.

このようなカラー読取装置につき本発明の白黒エツジ処
理方法にあっては、前記複数のフィルタとして可視光全
波長を透過する透明フィルタ(Wフィルタ)9−L及び
他の2つの色分解フィルタ9−2.9−3、例えば黄色
の光を透過する黄フィルタ(Yフィルタ)及び赤色の光
を透過する赤フィルタ(Rフィルタ)を設け、前記ライ
ンイメージセンサ5の主走査で得られる画素信号につき
第1図(b)に示すように処理する。
In the black and white edge processing method of the present invention for such a color reading device, the plurality of filters include a transparent filter (W filter) 9-L that transmits all wavelengths of visible light and two other color separation filters 9-L. 2.9-3, for example, a yellow filter (Y filter) that transmits yellow light and a red filter (R filter) that transmits red light are provided, and the pixel signal obtained by main scanning of the line image sensor 5 is Processing is performed as shown in Figure 1 (b).

第1図(b)の主走査方向の処理にあっては、■透明フ
ィルタ9−1によるセンサ出力nに関し、1つ置いて離
れた画素のセンサ出力(n + 2)との出力差ΔXを
順次計算し、 ■出力差ΔXの絶対値が予め設定した閾値Sよりも小さ
い時はエツジではないと判断してエツジ処理はせず、閾
値Sよりも大きい時はエツジと判断し、 ■エツジの判断結果が得られた際には、出力差ΔXの計
算に元いた2画素n、n+2及びこの2画素と同じ位置
の他の2つのフィルタ9−2.9−3による2つのセン
サ出力に関し、大きい方は白レベル、小さい方は黒レベ
ルとし、 ■更に出力差ΔXの計算に用いた2画素n、 n+2の
中間画素n+1及び該中間画素と同じ位置の2つのフィ
ルタ9−2.9−3による2つのセンサ出力に関し、出
力差ΔXの正負の符合に応じて白レベル又は黒レベルに
置き換える。
In the processing in the main scanning direction in FIG. 1(b), (1) Regarding the sensor output n from the transparent filter 9-1, calculate the output difference ΔX between the sensor output (n + 2) of the pixel that is one pixel apart. Sequential calculations are performed, ■When the absolute value of the output difference ΔX is smaller than a preset threshold S, it is determined that it is not an edge and no edge processing is performed, and when it is larger than the threshold S, it is determined that it is an edge. When the determination result is obtained, regarding the two sensor outputs from the two pixels n and n+2 based on the calculation of the output difference ΔX and the other two filters 9-2 and 9-3 at the same position as these two pixels, The larger one is the white level, and the smaller one is the black level. (2) Further, the intermediate pixel n+1 of the two pixels n and n+2 used to calculate the output difference ΔX, and the two filters 9-2 and 9-3 located at the same position as the intermediate pixel. The two sensor outputs are replaced with a white level or a black level depending on the positive or negative sign of the output difference ΔX.

また本発明にあっては、原稿送り方向となる副走査方向
の処理方法として第1図(c)に示すように、 ■透明フィルタ9−1による各画素のセンサ出力mに関
し、同じ画素位置の1つ置いて離れたラインのセンサ出
力m+1との差ΔYを順次計算し、■出力差ΔYが予め
設定した閾値Tよりも小さい時はエツジではないと判断
してエツジ処理は行わず、閾値Tよりも大きい時にはエ
ツジと判断し、■エツジの判断結果が得られた際には、
出力差ΔYに計算に用いた2ラインの2画素m、m+2
、及び該2画素と同じラインで同じ位置の他の2つのフ
ィルタ9−2.9−3による2つのセンサ出力に関し、
大きい方は白レベル、小さい方は黒レベルとし、 ■更に出力差ΔYの計算に用いた2ラインの中間のライ
ンの画素m+1と、該中間ライン画素と同じラインで同
じ位置の他の2つのフヌイルタ9−2.9−3による2
つのセンサ出力に関し、出力差ΔYの正負の符合に応じ
て白レベル又は黒レベルに置き換える。
In addition, in the present invention, as shown in FIG. 1(c), as a processing method in the sub-scanning direction which is the document feeding direction, (1) Regarding the sensor output m of each pixel by the transparent filter 9-1, The difference ΔY from the sensor output m+1 of the line one line apart is calculated sequentially, and if the output difference ΔY is smaller than a preset threshold T, it is determined that it is not an edge, and no edge processing is performed. When it is larger than , it is judged as edge, and when the judgment result of edge is obtained,
2 pixels m, m+2 of 2 lines used for calculation for output difference ΔY
, and the two sensor outputs from the other two filters 9-2.9-3 located on the same line and at the same position as the two pixels,
The larger one is the white level, and the smaller one is the black level. ■Furthermore, the pixel m+1 on the middle line of the two lines used to calculate the output difference ΔY, and the other two funuil filters on the same line and at the same position as the middle line pixel. 2 according to 9-2.9-3
The two sensor outputs are replaced with a white level or a black level depending on the sign of the output difference ΔY.

ここで、主走査方向の中間画素n+1、或いは副走査方
向の中間ライン画素m+1の置き換えは、例えば出力差
ΔX、ΔYが正のとき白レベルに置き換え、負のとき黒
レベルに置き換える。
Here, when replacing the intermediate pixel n+1 in the main scanning direction or the intermediate line pixel m+1 in the sub-scanning direction, for example, when the output difference ΔX, ΔY is positive, it is replaced with a white level, and when it is negative, it is replaced with a black level.

[作用] このような構成を備えた本発明によるカラー読取装置の
白黒エツジ処理方法によれば、1ラインの読取で時分割
に切換えられる複数の色分解フィルタとして、補色フィ
ルタ、例えば透明(白)フィルタ、赤フィルタ、黄フィ
ルタを使用し、主走査方向では、透明フィルタで読取っ
たセンサ出力を用いて、間を一つ置いた画素の出力の差
を設定値と比較して、その大小関係で白黒エツジと反対
し、エツジと判定された場合は、比較した画素および比
較した画素に挟まれた画素の合計3画素に関し、3色の
読取データそれぞれ(合計9画素)を、白または黒とす
ることでエツジの色を除去する。
[Function] According to the black-and-white edge processing method for a color reading device according to the present invention having such a configuration, complementary color filters, such as transparent (white) filter, red filter, and yellow filter, and in the main scanning direction, use the sensor output read by the transparent filter, compare the difference in output of pixels with one interval with the set value, and calculate the size relationship. If it is determined to be an edge, as opposed to a black and white edge, each of the three colors of read data (9 pixels in total) for the compared pixel and the pixels sandwiched between the compared pixels is set to white or black. This removes the edge color.

また副走査方向では、透明フィルタで読取ったセンサ出
力に関し、ある画素とひとつ置いたラインの同位置の画
素の出力の差を設定値と比較して、その大小関係で白黒
のエツジかどうかを判定し、エツジと判定された場合は
比較したラインおよび比較したラインに挟まれたライン
の合計3ラインに関し、3色の読取データそれぞれ(合
計9画素)を、白または黒とする。
In addition, in the sub-scanning direction, regarding the sensor output read by a transparent filter, the difference between the output of a certain pixel and the pixel at the same position in one line is compared with the set value, and it is determined whether it is a black and white edge based on the magnitude relationship. However, if it is determined to be an edge, each of the three colors of read data (total of 9 pixels) is set to white or black for a total of three lines including the compared line and the lines sandwiched between the compared lines.

この処理により読取画像のエツジに発生するだれ及び偽
色を除去して鮮明が画像を得ることができる。
By this processing, droop and false colors occurring at the edges of the read image can be removed to obtain a clear image.

[実施例] 第2図は本発明の白黒エツジ処理方法が適用されるカラ
ー読取装置の装置構成図である。
[Embodiment] FIG. 2 is a diagram showing the configuration of a color reading device to which the black and white edge processing method of the present invention is applied.

第2図において、30は読取光学系であり、例えば第3
図に示すカラー読取構成を有する。
In FIG. 2, 30 is a reading optical system, for example, a third reading optical system.
It has the color reading configuration shown in the figure.

第3図のカラー読取構成図は、第9図の従来例と同様、
原稿1上の読取ライン6は照明装置、例えば螢光灯2等
によって照明されており、読取ライン6からの反射光は
レンズ4によりCCDラインセンサ5上に結像され、1
ラインの画素信号として読取られる。レンズ4とCCD
ラインセンサ5の間には3枚の色分解用フィルタ9−1
.9−2.9−3が配置され、本発明にあってはこの3
枚の色分解用フィルタの中の1枚を必ず可視光全波長を
透過する透明(白色)フィルタ(以下、「Wフィルタ」
と言う)9−1としており、他の2つのフィルタ9−2
.9−3については補色系の黄フィルタ(以下、「Yフ
ィルタ」と言う)9−2及び赤フィルタ(以下、「Rフ
ィルタ」と言う)9−3としている。勿論、W、 Y、
 Rフィルタ9−1〜9−3のそれぞれはりニアモータ
10a、10b、10cにより時分割に読取光路中に切
換挿入されて1ラインの読取りにつき3つのフィルタを
介して得られた画素信号を得るようにしている。
The color reading configuration diagram in FIG. 3 is similar to the conventional example in FIG.
The reading line 6 on the original 1 is illuminated by an illumination device, such as a fluorescent lamp 2, and the reflected light from the reading line 6 is imaged on the CCD line sensor 5 by the lens 4.
It is read as a line pixel signal. Lens 4 and CCD
Three color separation filters 9-1 are installed between the line sensors 5.
.. 9-2.9-3 are arranged, and in the present invention, these 3
One of the color separation filters is a transparent (white) filter that transmits all wavelengths of visible light (hereinafter referred to as "W filter").
) 9-1, and the other two filters 9-2
.. The filters 9-3 are a complementary color yellow filter (hereinafter referred to as "Y filter") 9-2 and a red filter (hereinafter referred to as "R filter") 9-3. Of course, W, Y,
Each of the R filters 9-1 to 9-3 is switched and inserted into the reading optical path in a time-division manner by near motors 10a, 10b, and 10c, so that pixel signals obtained through three filters are obtained for one line of reading. ing.

再び第2図を参照するに、読取光学系30から得られた
原稿読取ラインの像は読取回路32に設けられたCCD
ラインセンサ5より1ラインの画素数に対応した数の読
取信号に変換され、A/D変換回路34でデジタルデー
タに変換され、3ライン分記憶可能な3ラインメモリ4
0を備えた処理回路50に入力される。処理回路50に
あっては、主走査方向処理部36でCCDラインセンサ
5の読取走査方向となる主走査方向についての白黒エツ
ジの処理を行ない、また副走査方向処理部38で原稿送
り方向となる副走査方向に関する白黒エツジの処理を行
ない、白黒エツジにおけるボケや偽色を除去した高精度
の画素信号を作成する。
Referring again to FIG. 2, the image of the document reading line obtained from the reading optical system 30 is captured by a CCD provided in the reading circuit 32.
The line sensor 5 converts the reading signals into a number corresponding to the number of pixels in one line, and the A/D conversion circuit 34 converts the signals into digital data, which is then converted into a 3-line memory 4 capable of storing 3 lines.
0 to the processing circuit 50. In the processing circuit 50, a main scanning direction processing unit 36 processes black and white edges in the main scanning direction, which is the reading scanning direction of the CCD line sensor 5, and a sub-scanning direction processing unit 38 processes black and white edges, which is the document feeding direction. Processing of black and white edges in the sub-scanning direction is performed to create highly accurate pixel signals from which blur and false colors at black and white edges are removed.

処理回路50で白黒エツジに関する処理が施された読取
信号は色変換回路42で補色系のw、 y。
The read signal processed by the processing circuit 50 regarding black and white edges is converted into complementary colors w and y by the color conversion circuit 42.

R信号からR,G、  Bの3色信号に変換されて出力
される。
The R signal is converted into three color signals of R, G, and B and output.

尚、第2図の実施例では第3図に示すようにフィルタ切
換によるカラー読取を例にとっているが、1つのCCD
ラインセンサ5と3色の光源を用いた光源切換型のカラ
ー読取についても3色の光源の中にWフィルタ9−1に
相当する白色の光源を含めることで本発明の白黒エツジ
処理方法をそのまま適用することができる。更にカラー
読取りに限らず白黒読取りにおいても全く同様にピンボ
ケや照明による画像エツジのボケを除去する場合にも有
効である。
In the embodiment shown in FIG. 2, color reading is performed by switching filters as shown in FIG. 3, but one CCD
Regarding light source switching type color reading using the line sensor 5 and three color light sources, the black and white edge processing method of the present invention can be applied as is by including a white light source corresponding to the W filter 9-1 among the three color light sources. Can be applied. Furthermore, it is effective not only in color reading but also in monochrome reading to remove out-of-focus images and blurring of image edges caused by illumination.

次に第4図の動作フロー図を参照して第2図の処理回路
50に示した主走査方向処理部36による白黒エツジ処
理方法を説明する。
Next, a black and white edge processing method by the main scanning direction processing section 36 shown in the processing circuit 50 of FIG. 2 will be described with reference to the operational flow diagram of FIG. 4.

この第4図に示す主走査方向の処理に関し、金策5図(
a)に示すWフィルタ9−1によるCCD出力が得られ
たとする。この第5図(a)に示すWフィルタ9−1に
よるCCD出力に対し、第4図に示す主走査方向の処理
を施すと、第5図(b)に示す処理結果が得られる。
Regarding the processing in the main scanning direction shown in FIG.
Assume that the CCD output from the W filter 9-1 shown in a) is obtained. When the CCD output from the W filter 9-1 shown in FIG. 5(a) is subjected to the processing in the main scanning direction shown in FIG. 4, the processing result shown in FIG. 5(b) is obtained.

第4図において、まずステップSL(以下「ステップ」
は省略する)において処理対象とする1ライン分のW、
 R,YフィルタのそれぞれによるCCD出力を3ライ
ンメモリ40から読み込む。
In FIG. 4, first step SL (hereinafter referred to as "step")
W for one line to be processed in (omitted),
CCD outputs from each of the R and Y filters are read from the 3-line memory 40.

次に82に進みWフィルタのCCD出力について、今処
理対象となっているn番目のCCD出力と1つ間をおい
たn+2番目のCCD出力との出力差ΔXを計算する。
Next, the process proceeds to 82, and the output difference ΔX between the n-th CCD output currently being processed and the n+2-th CCD output one space apart is calculated for the CCD output of the W filter.

次に83に進み、S2で計算された出力差ΔXの絶対値
を予め設定した閾値Sと比較する。出力差ΔXの絶対値
が閾値Sより小さいときはエツジ処理を行なわずにS1
0で次のn+1番目の画素の処理に進む。一方、S3で
出力差ΔXの絶対値が閾値Sより大きいときにはS4に
進んでエツジと判断する。
Next, the process proceeds to 83, where the absolute value of the output difference ΔX calculated in S2 is compared with a preset threshold value S. When the absolute value of the output difference ΔX is smaller than the threshold S, edge processing is not performed and S1
If the value is 0, the process proceeds to the next (n+1)th pixel. On the other hand, when the absolute value of the output difference ΔX is larger than the threshold value S in S3, the process proceeds to S4 and it is determined that there is an edge.

第5図(a)の場合、n画素目と1つ置いたn+2画素
目の出力差ΔXの絶対値は閾値Sより例えば小さかった
ため、この場合には810に進んで次のn+1番目の画
素の処理に移行する。次のn+1番目の画素については
S2においてn=n+1となることからn+1番目と1
つ間を置いたn+3番目のCCD出力の差を計算し、S
3で出力差ΔXの絶対値が閾値Sより大きいか否か判定
する。この場合、出力差の絶対値が閾値Sより大きいこ
とが成立すると、S4に進んでエツジであることを判定
する。S4でエツジの判定結果が得られた場合にはn+
1番目とn+3番目のCCD出力のうち大きい方を白レ
ベル、小さい方を黒レベルに設定する。続いてS5に進
み、n+1番目とn+3番目のYフィルタ9−2及びR
フィルタ9−3によるCCD出力をS4で設定した同じ
位置のWフィルタ9−1のCCD出力の白レベル及び黒
レベルと同じレベルにする。
In the case of FIG. 5(a), the absolute value of the output difference ΔX between the n-th pixel and the n+2-th pixel is smaller than the threshold S, so in this case, the process proceeds to 810 and the next n+1-th pixel is Move to processing. For the next n+1 pixel, n=n+1 in S2, so the n+1 pixel and 1
Calculate the difference between the n+3rd CCD outputs with an interval of
3, it is determined whether the absolute value of the output difference ΔX is larger than the threshold value S. In this case, if it is established that the absolute value of the output difference is greater than the threshold value S, the process proceeds to S4 and it is determined that there is an edge. If an edge determination result is obtained in S4, n+
The larger one of the first and n+3rd CCD outputs is set as the white level, and the smaller one is set as the black level. Next, the process proceeds to S5, where the n+1st and n+3rd Y filters 9-2 and R
The CCD output from the filter 9-3 is set to the same level as the white level and black level of the CCD output from the W filter 9-1 at the same position set in S4.

次に86に進み、S2の計算に使用されなかったn+1
番目とn+3番目の間のn+2番目の白黒レベルを決め
るため、S2で計算された出力差ΔXの符号が+か−か
を判定する。符号が十であった場合にはS7に進み、中
間のn+2番目のWフィルタ9−1、Yフィルタ9−2
及びRフィルタ9−3の各CCD出力は全て白レベルに
置き換える。一方、S6で符号が−であった場合にはS
8に進み、中間のn+2番目のWフィルタ9−1、Yフ
ィルタ9−2及びRフィルタ9−3の各CCD出力を黒
レベルに置き換える。第5図(a)の場合、S2におけ
るn+1番目とn+3番目の出力差ΔXの符号が−であ
ることから88に進み、中間のn+2番目のW、 Y、
 Rフィルタ9−1〜9−3の各CCD出力は黒レベル
とする。
Next, proceed to 86 and proceed to n+1 which was not used in the calculation of S2.
In order to determine the n+2-th black and white level between the n+3-th and n+3-th black and white levels, it is determined whether the sign of the output difference ΔX calculated in S2 is + or -. If the sign is 10, the process proceeds to S7, where the intermediate (n+2)th W filter 9-1 and Y filter 9-2 are processed.
and each CCD output of the R filter 9-3 are all replaced with white level. On the other hand, if the sign is - in S6, S
8, each CCD output of the intermediate (n+2)th W filter 9-1, Y filter 9-2, and R filter 9-3 is replaced with a black level. In the case of FIG. 5(a), since the sign of the output difference ΔX between the n+1st and n+3rd in S2 is -, the process proceeds to 88, where the intermediate n+2nd W, Y,
It is assumed that each CCD output of the R filters 9-1 to 9-3 has a black level.

その結果、第5図(a)に示すWフィルタによるCCD
出力は同図(b)に示すように、n+2画素目からn+
3画素目で黒レベルから白レベルに中間段階をもたずに
変化する読取信号とすることができ、他のYフィルタ9
−2、Rフィルタ9−3の各CCD出力についてもWフ
ィルタ9−1と同じになるため、エツジ部分でのだれや
偽色の発生は確実に防止できる。
As a result, the CCD with the W filter shown in Fig. 5(a)
As shown in the same figure (b), the output is from the n+2 pixel to the n+
The reading signal can be made to change from the black level to the white level at the third pixel without any intermediate stage, and other Y filters 9
Since the CCD outputs of the -2 and R filters 9-3 are also the same as those of the W filter 9-1, it is possible to reliably prevent drooping and false colors from occurring at the edge portions.

81〜S8の処理により1ライン分の白黒エツジに関す
る処理が終了すると89で1ライン分の終了が判別され
、S1)で次のラインがセットされ、再び81〜S8の
処理を繰り返す。
When the processing for black and white edges for one line is completed through the processing from 81 to S8, it is determined at 89 that the processing for one line has ended, the next line is set at S1), and the processing from 81 to S8 is repeated again.

次に第6図の動作フロー図を参照して原稿読取方向とな
る副走査方向の白黒エツジ処理方法を説明する。
Next, a black and white edge processing method in the sub-scanning direction, which is the document reading direction, will be described with reference to the operation flowchart of FIG.

第6図において、まずSlで3ラインメモリ40から3
ライン分のW、Y、RフィルタのCCD出力を読み込み
、例えば第7図のDlに示すデータが得られたとする。
In FIG. 6, first, 3 line memory 40 to 3
Assume that the CCD outputs of the W, Y, and R filters for a line are read and, for example, data shown at Dl in FIG. 7 is obtained.

この読取データD1は第15図(a)に示したWフィル
タ9−1で白黒エツジを読み取った場合のデータであり
、mライン目、m+1ライン目1m+2ライン目のそれ
ぞれにつき、図示のW、 Y、 RフィルタのCCD出
力が得られる。尚、ここでカッコ書きされた黒は、黒レ
ベルから多少レベルが上昇した出力であり、またカッコ
書きされた白は白レベルから多少レベルが下降した出力
である。
This read data D1 is data when a black and white edge is read by the W filter 9-1 shown in FIG. , the CCD output of the R filter is obtained. Note that black in parentheses is an output whose level has increased somewhat from the black level, and white in parentheses is an output whose level has decreased somewhat from the white level.

続いてS2に進み、WフィルタのCCD出力について、
mライン目と1つ置いたm+2ライン目の出力差ΔYを
計算する。
Next, proceed to S2, regarding the CCD output of the W filter,
Calculate the output difference ΔY between the m-th line and the m+2-th line.

次に83に進み、出力差ΔYの絶対値が予め設定した閾
値Tより大きいか否か判定する。閾値Tより小さい場合
にはSIOに進み、次の画素の処理に進む。一方、S3
で出力差ΔYの絶対値が閾値Tより大きかった場合、即
ち第7図のD2に示す条件が成立した場合にはS4に進
んでエツジであることを判定し、mライン目とm+2ラ
イン目のCCD出力のうち大きい方を白レベル、小さい
方を黒レベルとする。次に85に進み、mライン目とm
+2ライン目の同一位置のY、 RフィルタによるCC
D出力をS4で決定されたWフィルタのCCD出力と同
じ白レベルまたは黒レベルに置き換える。
Next, the process proceeds to 83, where it is determined whether the absolute value of the output difference ΔY is greater than a preset threshold T. If it is smaller than the threshold T, the process advances to SIO and the next pixel is processed. On the other hand, S3
If the absolute value of the output difference ΔY is larger than the threshold T, that is, if the condition shown in D2 in FIG. The larger one of the CCD outputs is defined as a white level, and the smaller one is defined as a black level. Next, proceed to 85, line m and m
CC by Y and R filters at the same position on the +2nd line
The D output is replaced with the same white level or black level as the CCD output of the W filter determined in S4.

次にS6に進み、中間ラインm+1の白黒レベルを決定
するため、S2で計算された出力差ΔYの符号が+か−
かを判定する。符号が十であればS7に進み、中間のm
+1ライン目のW、Y、Rフィルタの各CCD出力は全
て白レベルとする。
Next, the process proceeds to S6, in order to determine the black and white level of the intermediate line m+1, the sign of the output difference ΔY calculated in S2 is + or -.
Determine whether If the sign is 0, proceed to S7, and the intermediate m
The CCD outputs of the W, Y, and R filters on the +1st line are all set to white level.

S6で符号が−であることが判定された場合にはS8に
進み、中間ラインm+1番目のW、Y、Rフィルタの各
CCD出力は黒レベルに置き換える。
If it is determined in S6 that the sign is -, the process proceeds to S8, and the CCD outputs of the W, Y, and R filters on the m+1th intermediate line are replaced with the black level.

第6図の場合、mライン目とm + 2ライン目の出力
差ΔYの符号が例えば十であったとすると、中間のm+
1ライン目はS7において白レベルに置き換えられる。
In the case of FIG. 6, if the sign of the output difference ΔY between the m-th line and the m+2 line is, for example, 10, then the intermediate m+
The first line is replaced with a white level in S7.

以上の処理により、第7図のDlに示す副走査方向のC
CD出力はD3に示すように、mライン目は全て黒レベ
ル、m+1及びm+2ライン目は全て白レベルとなり、
偽色の発生やだれを除去することができる。S7または
S8の処理が終了すると89に進み、1ライン分の処理
が終了したか否か判定し、1ライン分の処理が終了して
いなければSIOに戻って次の画素の処理に進み、1ラ
イン分の処理が終了すればSllに進んで次のラインへ
更新し、以下同様の処理を繰り返す。
With the above processing, C in the sub-scanning direction shown as Dl in FIG.
As for the CD output, as shown in D3, the m-th line is all black level, the m+1 and m+2 lines are all white level,
It is possible to remove false color and droop. When the processing in S7 or S8 is completed, the process advances to 89, where it is determined whether or not the processing for one line has been completed. If the processing for one line has not been completed, the process returns to SIO and proceeds to the processing of the next pixel. When the processing for the line is completed, the process advances to Sll to update to the next line, and the same processing is repeated thereafter.

第8図はYフィルタで白黒エツジを読み取った場合の第
6図の副走査方向の処理内容をケース2として示す。即
ち、Yフィルタで白黒エツジを読み取った場合は第15
図(b)のような場合であり、この場合のWフィルタ9
−1のCCD出力はDlに示すようになり、D2でm番
目とm+2番目の出力差の絶対値が閾値Tより大きくな
る条件が成立し、その結果、m番目及びm+1番目は全
て黒レベル、m+2番目は全て白レベルとなる処理結果
が得られる。
FIG. 8 shows, as case 2, the processing details in the sub-scanning direction of FIG. 6 when black and white edges are read with a Y filter. In other words, when a black and white edge is read with a Y filter, the 15th
The case is as shown in Figure (b), and the W filter 9 in this case
The CCD output of −1 is as shown in Dl, and the condition that the absolute value of the output difference between the mth and m+2nd is larger than the threshold T is satisfied in D2, and as a result, the mth and m+1th are both black level, For the m+2th image, a processing result in which all the images are at the white level is obtained.

また、第9図はRフィルタで白黒エツジを読み取った場
合、即ち第15図(c)に示すケース3の場合であり、
Rフィルタ9−3で白黒エツジを読み取った場合にはD
lに示すm−m+3ラインのCCD出力が得られ、D2
でm+1番目のラインとm+3番目のラインのCCD出
力の差の絶対値が閾値Tより大きくなる条件が成立し、
その結果、D3に示すように、m、m+l、m+ 2ラ
イン目が全て黒、m+3ライン目は全て白となる処理結
果が得られる。
Moreover, FIG. 9 shows the case where black and white edges are read with the R filter, that is, case 3 shown in FIG. 15(c).
When black and white edges are read with R filter 9-3, D
CCD output of m−m+3 lines shown in l is obtained, and D2
Then, a condition is established that the absolute value of the difference between the CCD outputs of the m+1st line and the m+3rd line is larger than the threshold T,
As a result, as shown in D3, a processing result is obtained in which the m, m+l, and m+2 lines are all black, and the m+3 line is all white.

このような主走査方向及び副走査方向の処理により白黒
画像の工・ツジに中間レベルは発生せず、従って画像の
だれや色収差などによる偽色の発生が防止でき、高精度
の読取りが実現できる。
This type of processing in the main scanning direction and sub-scanning direction prevents intermediate levels from occurring in the edges and edges of monochrome images, thereby preventing the occurrence of false colors due to image blurring and chromatic aberration, and achieving high-precision reading. .

ここで、主走査方向のエツジ判断のための閾値S1及び
副走査方向でのエツジ判断の閾値Tは、光学系や回路系
等により変化するが、実際にエツジ読取りを行ないなが
ら最適値を決めることが望ましい。
Here, the threshold value S1 for edge determination in the main scanning direction and the threshold value T for edge determination in the sub-scanning direction vary depending on the optical system, circuit system, etc., but the optimal values can be determined while actually reading edges. is desirable.

[発明の効果] 以上説明してきたように本発明によれば、カラー読取装
置において白黒画像を読み取った場合、主走査方向及び
副走査方向の両方に発生するだれ(ボケ)や偽色を確実
に除去することができ、読取画像の品質が保証されて高
精度の読取りを実現することができる。
[Effects of the Invention] As explained above, according to the present invention, when a black and white image is read by a color reading device, it is possible to reliably eliminate blurring and false colors that occur in both the main scanning direction and the sub-scanning direction. The quality of the read image is guaranteed, and highly accurate reading can be achieved.

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

第1図は本発明の原理説明図; 第2図は本発明の装置構成図; 第3図は本発明のカラー読取構成図; 第4図は本発明の主走査方向動作フロー図;第5図は本
発明の主走査方向処理説明図;第6図は本発明の副走査
方向動作フロー図;第7. 8.9図は本発明の副走査
方向処理説明図;第10図は従来のカラー読取構成図;
        32:読取回路第1)図は第10図の
フィルタ切換動作説明図;    34:A/D変換器
第12図は従来のカラー読取構成図;        
36.主走査方向処理部第13図は第12図の切換機構
の構成図;      38.副走査方向処理部第14
図は主走査方向の白黒エツジの読取説明図;   40
:3ラインメモリ第15図は副走査方向の白黒エツジの
読取説明図;  42:色変換回路第16図は白黒エツ
ジに生ずるだれの説明図であ   50.処理回路る。 図中、 1:原稿 2:蛍光灯(光源) 4:レンズ 5:CCDラインイメージセンサ 6:読取ライン 9−1=透明フイルタ(Wフィルタ) 9−2:黄フィルタ(Yフィルタ) 9−3=赤フイルタ(Rフィルタ) 10a〜10C:リニアモータ 30:読取光学系
FIG. 1 is an explanatory diagram of the principle of the present invention; FIG. 2 is a diagram of the device configuration of the present invention; FIG. 3 is a color reading configuration diagram of the present invention; FIG. 4 is a flowchart of the operation in the main scanning direction of the present invention; 6 is an explanatory diagram of processing in the main scanning direction of the present invention; FIG. 6 is a flowchart of the operation in the sub-scanning direction of the present invention; FIG. 8.9 is an explanatory diagram of the sub-scanning direction processing of the present invention; FIG. 10 is a conventional color reading configuration diagram;
32: Reading circuit 1) Figure is an explanatory diagram of filter switching operation in Figure 10; 34: A/D converter Figure 12 is a conventional color reading configuration diagram;
36. Main scanning direction processing section FIG. 13 is a block diagram of the switching mechanism shown in FIG. 12; 38. Sub-scanning direction processing section 14
The figure is an explanatory diagram of reading black and white edges in the main scanning direction; 40
:3 line memory FIG. 15 is an explanatory diagram of reading black and white edges in the sub-scanning direction; 42: Color conversion circuit FIG. 16 is an explanatory diagram of droop that occurs on black and white edges.50. Processing circuit. In the figure, 1: Original 2: Fluorescent lamp (light source) 4: Lens 5: CCD line image sensor 6: Reading line 9-1 = Transparent filter (W filter) 9-2: Yellow filter (Y filter) 9-3 = Red filter (R filter) 10a to 10C: Linear motor 30: Reading optical system

Claims (3)

【特許請求の範囲】[Claims] (1)原稿(1)からの反射光を、ミラーやレンズ等の
読取光学系を介してラインイメージセンサ(5)上に結
像させ、1ラインの読取に同期して前記読取光学系の光
路中に設けた複数のフィルタを時分割で切換えてカラー
画像を読取るカラー読取装置に於いて、 前記複数のフィルタとして可視光全波長を透過する透明
フィルタ(9−1)及び他の2つの分解色フィルタ(9
−2,9−3)を設け、 前記ラインイメージセンサ(5)の主走査で得られる画
素信号につき、 前記透明フィルタ(9−1)によるセンサ出力(n)に
関し1つ置いて離れた画素のセンサ出力(n+2)との
出力差(ΔX)を順次計算し、 該出力差(ΔX)の絶対値が予め設定した閾値(S)よ
り小さい時はエッジではないと判断してエッジ処理はせ
ず、前記閾値(S)よりも大きい時はエッジと判断し、 前記エッジの判断結果が得られた際には、前記出力差(
Δx)の計算に用いた2画素(n,n+1)及び該2画
素と同じ位置の他の2つのフィルタ(9−2,9−3)
による2つのセンサ出力に関し、大きい方は白レベル、
小さい方は黒レベルとし; 更に前記出力差(Δx)の計算に用いた2画素(n,n
+2)の中間の画素(n+1)及び該該中間画素と同じ
位置の2つのフィルタ(9−2,9−3)による2つの
センサ出力に関し、前記出力差(ΔX)の正負の符号に
応じて白レベル又は黒レベルに置き換えたことを特徴と
するカラー読取装置の白黒エッジ処理方法。
(1) The reflected light from the original (1) is imaged on the line image sensor (5) via a reading optical system such as a mirror or lens, and the optical path of the reading optical system is synchronized with the reading of one line. In a color reading device that reads a color image by time-divisionally switching a plurality of filters provided therein, the plurality of filters include a transparent filter (9-1) that transmits all wavelengths of visible light, and two other color separations. Filter (9
-2, 9-3) is provided, and for each pixel signal obtained by main scanning of the line image sensor (5), the sensor output (n) of the transparent filter (9-1) is determined by The output difference (ΔX) with the sensor output (n+2) is calculated sequentially, and when the absolute value of the output difference (ΔX) is smaller than the preset threshold (S), it is determined that it is not an edge and no edge processing is performed. , when it is larger than the threshold value (S), it is determined as an edge, and when the edge determination result is obtained, the output difference (S) is determined as an edge.
The two pixels (n, n+1) used in the calculation of Δx) and the other two filters (9-2, 9-3) at the same position as the two pixels
Regarding the two sensor outputs, the larger one is the white level,
The smaller one is the black level; Furthermore, the two pixels (n, n
+2) regarding the two sensor outputs from the intermediate pixel (n+1) and the two filters (9-2, 9-3) located at the same position as the intermediate pixel, depending on the sign of the output difference (ΔX). A black and white edge processing method for a color reading device, characterized in that the white level or the black level is replaced.
(2)原稿(1)からの反射光を、ミラーやレンズ等の
読取光学系を介してラインメージセンサ(5)上に結像
させ、1ラインの読取りに同期して前記読取光学系の光
路中に設けた複数のフィルタを時分割で切換えてカラー
画像を読取るカラー読取り装置に於いて、 前記複数のフィルタとして可視光全波長を透過する透明
フィルタ(9−1)及び他の2つの色分解フィルタ(9
−2,9−3)を設け、 前記ラインイメージセンサ(5)に対する原稿送り方向
となる副走査方向について、前記透明フィルタ(9−1
)による各画素のセンサ出力(m)に関し、同じ画素位
置の一つ置いて離れたラインのセンサ出力(12)との
差(ΔY)を順次計算し、該出力差(ΔY)の絶対値が
予め設定した閾値(T)より小さい時はエッジではない
と判断してエッジ処理は行わず、前記閾値(T)よりも
大きい時はエッジと判断し、 該エッジの判断結果が得られた際には、前記出力差(Δ
Y)の計算に用いた2ラインの2画素(m,m+2)、
及び該2ライン画素と同じラインで同じ位置の他の2つ
のフィルタ(9−2,9−3)による2つの画素のセン
サ出力に関し、大きい方は白レベル、小さい方は黒レベ
ルとし、 更に前記出力差(ΔY)の計算に用いた2ラインの中間
のラインの画素(m+1)と、該中間ライン画素と同じ
ラインで同じ位置の他の2つのフィルタ(9−2,9−
2)による2つの画素のセンサ出力に関し、前記出力差
(ΔY)の正負の符合に応じて白レベル又は黒レベルに
置き換えたことを特徴とするカラー読取装置の白黒エッ
ジ処理方法。
(2) The reflected light from the original (1) is imaged on the line image sensor (5) via a reading optical system such as a mirror or lens, and the optical path of the reading optical system is synchronized with the reading of one line. In a color reading device that reads a color image by time-divisionally switching a plurality of filters provided therein, the plurality of filters include a transparent filter (9-1) that transmits all wavelengths of visible light, and two other color separation filters. Filter (9
-2, 9-3), and the transparent filter (9-1
), the difference (ΔY) between the sensor output (m) of each pixel at the same pixel position and the sensor output (12) of one line apart is calculated, and the absolute value of the output difference (ΔY) is When it is smaller than a preset threshold (T), it is determined that it is not an edge and no edge processing is performed, and when it is larger than the threshold (T), it is determined that it is an edge, and when the edge determination result is obtained. is the output difference (Δ
2 pixels (m, m+2) of 2 lines used for calculation of Y),
Regarding the sensor outputs of the two pixels from the other two filters (9-2, 9-3) located on the same line and at the same position as the two line pixels, the larger one is the white level, the smaller one is the black level, and furthermore, the above-mentioned The pixel (m+1) on the middle line of the two lines used to calculate the output difference (ΔY) and the other two filters (9-2, 9-
2) A black and white edge processing method for a color reading device, characterized in that the sensor outputs of the two pixels are replaced with a white level or a black level depending on the sign of the output difference (ΔY).
(3)前記主走査方向の中間画素(n+1)、あるいは
前記副走査方向の中間ラインの画素(m+1)の置き換
えは、前記出力差(Δx)或いはΔ(Y)が正のとき白
レベルに置き換え、負のとき黒レベルに置き換えること
を特徴とする請求項1又は2記載のカラー読取装置の白
黒エッジ処理方法。
(3) The intermediate pixel (n+1) in the main scanning direction or the pixel (m+1) on the intermediate line in the sub-scanning direction is replaced with a white level when the output difference (Δx) or Δ(Y) is positive. 3. A black and white edge processing method for a color reading device according to claim 1, wherein when , is negative, it is replaced with a black level.
JP1331888A 1989-12-21 1989-12-21 Black/white edge processing method for color reading device Pending JPH03191673A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1331888A JPH03191673A (en) 1989-12-21 1989-12-21 Black/white edge processing method for color reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1331888A JPH03191673A (en) 1989-12-21 1989-12-21 Black/white edge processing method for color reading device

Publications (1)

Publication Number Publication Date
JPH03191673A true JPH03191673A (en) 1991-08-21

Family

ID=18248747

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1331888A Pending JPH03191673A (en) 1989-12-21 1989-12-21 Black/white edge processing method for color reading device

Country Status (1)

Country Link
JP (1) JPH03191673A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009543161A (en) * 2006-06-30 2009-12-03 富士フイルム株式会社 Method and apparatus for diffusion-based image relighting
JP2009543160A (en) * 2006-06-30 2009-12-03 富士フイルム株式会社 Method and apparatus for diffusion-based illumination normalization

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009543161A (en) * 2006-06-30 2009-12-03 富士フイルム株式会社 Method and apparatus for diffusion-based image relighting
JP2009543160A (en) * 2006-06-30 2009-12-03 富士フイルム株式会社 Method and apparatus for diffusion-based illumination normalization

Similar Documents

Publication Publication Date Title
US7471426B2 (en) Image reading apparatus and image reading method
JP2984306B2 (en) Image reading device having focus adjusting device
US8179436B2 (en) Method and device for scanning a document by means of a line camera
JPH03191673A (en) Black/white edge processing method for color reading device
JP2002247292A (en) Image reader
JP2519981B2 (en) Image reading method
US20020044701A1 (en) Image input apparatus
JP3147234B2 (en) Color image reader
JPH10215381A (en) Image reader
JP2815392B2 (en) Image reading device
JP3096042B2 (en) Color image reader
JPH0433071A (en) Picture area identifying system for picture processor
JP4173455B2 (en) Image reading apparatus, image forming apparatus, image reading program, storage medium, and image reading method
JPH0389768A (en) Color image sensor
JP3020562B2 (en) Image playback device
JPS6126261B2 (en)
JPS63164673A (en) Color original reader
JPH02265364A (en) Color picture reader
JPH09247359A (en) Color picture reader
JPH04252657A (en) Color image input device
JPH0556219A (en) Color image reader
JP2002368951A (en) Reader
JP2002152763A (en) Image pickup device
JPH0556218A (en) Color image reader
JPH02265363A (en) Color picture reader