[go: up one dir, main page]

JPH06233112A - Black frame detecting method for microfilm reader - Google Patents

Black frame detecting method for microfilm reader

Info

Publication number
JPH06233112A
JPH06233112A JP50A JP3485693A JPH06233112A JP H06233112 A JPH06233112 A JP H06233112A JP 50 A JP50 A JP 50A JP 3485693 A JP3485693 A JP 3485693A JP H06233112 A JPH06233112 A JP H06233112A
Authority
JP
Japan
Prior art keywords
black frame
black
scanning line
pixels
detecting
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
JP50A
Other languages
Japanese (ja)
Inventor
Takahiro Hideshima
隆裕 秀島
Muneharu Ono
宗治 大野
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP50A priority Critical patent/JPH06233112A/en
Publication of JPH06233112A publication Critical patent/JPH06233112A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To accurately obtain a black frame by eliminating the influence of stains or the like by correcting the white/black of a central picture element on a scanning line with the matrix of peripheral picture elements. CONSTITUTION:The scanning lines for black frame detection at fixed intervals are inputted to a first binarizing means 56, and the other scanning lines are inputted to a threshold value detecting means 58. The means 58 is provided with a histogram preparing means 62 and a threshold value calculating means 64. The means 62 prepares a histogram by using the output signal of a line sensor 52 which reads the line excepting for the scanning line for black frame detection. The means 64 calculates a threshold value by using this histogram. The threshold value is used for detecting the black frame of the scanning line for black frame detection to be read later. The reading signal of the scanning line is binarized by the means 56 while using the threshold value provided by the means 58, and inputted through a white/black correcting means 65 to a black frame detecting means 66, and the black frame is detected. The white/ black of the picture element on the scanning line for black frame detection is corrected by using peripheral picture elements. Thus, the influence of dirt or flaw on the image near an original or on the film is eliminated and the black frame can be exactly obtained.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ネガのマイクロフィル
ムにおいて原稿画像の周囲に生じる黒枠を検出するマイ
クロフィルムリーダの黒枠検出方法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a black frame detection method for a microfilm reader which detects a black frame formed around a document image on a negative microfilm.

【0002】[0002]

【従来の技術】ネガのマイクロフィルムでは原稿の画像
の外側を囲むように透明な画像無しの部分ができる。こ
のマイクロフィルムから原稿の画像をプリント出力する
場合、原稿の全範囲が出力範囲から外れないように原稿
よりも大きい範囲を出力する必要がある。
2. Description of the Related Art On a negative microfilm, a transparent non-image portion is formed so as to surround the outside of an image on a document. When printing out an image of an original from this microfilm, it is necessary to output a range larger than the original so that the entire range of the original does not deviate from the output range.

【0003】図6はマイクロフィルムとプリント出力と
の関係を示すものである。マイクロフィルム10には一
定寸法の原稿の画像12、14がネガの像として記録さ
れている。プリント出力される範囲16は決まっている
から、この範囲16をプリント出力すると、プリント用
紙18、20には画像12、14のプリント像12A、
14Aの外側に黒枠22、24が発生する。
FIG. 6 shows the relationship between microfilm and print output. On the microfilm 10, images 12 and 14 of an original having a certain size are recorded as negative images. Since the range 16 to be printed out is fixed, if this range 16 is printed out, the print images 12A of the images 12 and 14 on the print papers 18 and 20,
Black frames 22 and 24 are generated outside 14A.

【0004】この黒枠22、24を自動判別してマスキ
ングする方法が従来より提案されている。その1つの方
法は、一定間隔(例えば1mm)ごとの走査ライン26上
の画像をラインセンサで読取った時に、画像信号が連続
して一定数N(例えば224)個の黒画素を出力すれば
黒枠22、24と判定するものである。なおこの一定数
N=224は例えば原稿上で14mmに対応する長さで
ある。
A method of automatically discriminating and masking the black frames 22 and 24 has been proposed. One of the methods is a black frame if the image signal continuously outputs a fixed number N (for example, 224) of black pixels when the image on the scanning line 26 at regular intervals (for example, 1 mm) is read by the line sensor. It is determined to be 22, 24. The fixed number N = 224 is a length corresponding to 14 mm on the original, for example.

【0005】この方法は図6に(A)で示すように、走
査ライン26上の画素が白画素から黒画素に変った座標
Xから、黒画素がN個連続している座標xを検出し、こ
の座標xからN画素遡った座標X=x−Nを黒枠と判定
するものである。そして一定間隔(例えば1mm間隔)ご
とのn、n+1、n+2、…番目の走査ライン26に対
して順に黒枠の座標Xn 、Xn+1 、Xn+2 、…を同様に
求め、各座標Xn 、Xn+1 、…をつなぐ黒枠範囲すなわ
ちマスキング範囲を求めるものである。
In this method, as shown in FIG. 6A, a coordinate x in which N black pixels are consecutive is detected from a coordinate X in which a pixel on the scanning line 26 changes from a white pixel to a black pixel. The coordinate X = x−N, which is N pixels back from the coordinate x, is determined as a black frame. Similarly, the coordinates X n , X n + 1 , X n + 2 , ... Of the black frame are sequentially obtained for the nth , n + 1 , n + 2 , ... A black frame range that connects X n , X n + 1 , ..., That is, a masking range is obtained.

【0006】[0006]

【従来技術の問題点】ここに原稿によっては画像12、
14が黒枠22、24に接近していることがある。この
場合には前記のように黒枠検出用走査ライン26上の画
素の配列から黒枠22、24を判別する方法では、黒枠
22、24に近接した画像により黒枠22、24を正し
く判別できないという問題があった。この問題は、画像
12、14の周縁付近のフィルム10に汚れや傷がある
場合にも同様にあった。
2. Description of the Related Art Here, depending on the manuscript, the image 12,
14 may be close to the black frames 22 and 24. In this case, in the method of discriminating the black frames 22 and 24 from the array of pixels on the black frame detection scanning line 26 as described above, there is a problem that the black frames 22 and 24 cannot be discriminated correctly by the images close to the black frames 22 and 24. there were. This problem also occurred when the film 10 near the edges of the images 12 and 14 had stains or scratches.

【0007】[0007]

【発明の目的】本発明はこのような事情に鑑みなされた
ものであり、原稿の周縁付近に画像があったり、フィル
ムに汚れや傷がある場合に、黒枠を正確に判別できるよ
うにするマイクロフィルムリーダの黒枠検出方法を提供
することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and it is a microscopic device capable of accurately discriminating a black frame when there is an image near the periphery of an original or when the film has dirt or scratches. An object of the present invention is to provide a black frame detection method for a film reader.

【0008】[0008]

【発明の構成】本発明によればこの目的は、画像を主走
査方向に読出し所定のしきい値で2値化して得た画像信
号が示す画素の配列から黒枠範囲を検出する方法におい
て、黒枠検出用の走査ライン上の1つの画素を中心画素
とする所定数の周辺画素マトリックスを形成し、前記周
辺画素の半数を越える一定数が前記中心画素と白黒が反
対の時に前記中心画素を白黒反転させてから、黒枠を検
出することを特徴とするマイクロフィルムリーダの黒枠
検出方法により達成される。
According to the present invention, the object is to detect a black frame range from an array of pixels indicated by an image signal obtained by reading an image in the main scanning direction and binarizing the image with a predetermined threshold value. A matrix of a predetermined number of peripheral pixels with one pixel on the scanning line for detection as a central pixel is formed, and the central pixel is inverted in black and white when a fixed number exceeding half of the peripheral pixels is opposite to the black and white in the central pixel. The black frame detection method of the microfilm reader is characterized in that the black frame is then detected.

【0009】ここに周辺画素マトリックスは、隣接する
他の黒枠検出用走査ラインの画素を用いて形成するのが
望ましい。また黒枠検出用走査ラインから一定間隔離れ
た黒枠検出用でない走査ラインの画素を用いて周辺マト
リックスを形成してもよい。
Here, it is desirable that the peripheral pixel matrix is formed by using the pixels of another adjacent black frame detection scanning line. Further, the peripheral matrix may be formed by using the pixels of the scanning line for non-black frame detection which is apart from the scanning line for black frame detection by a constant distance.

【0010】[0010]

【実施例】図1は本発明の一実施例の全体構成図、図2
はその動作を示す動作流れ図、図3はヒストグラムを示
す図、図4と図5は周辺マトリックスの配置例を示す図
である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an overall configuration diagram of an embodiment of the present invention, and FIG.
Is an operation flow chart showing the operation, FIG. 3 is a view showing a histogram, and FIGS. 4 and 5 are views showing an arrangement example of a peripheral matrix.

【0011】図1において符号30はマイクロフィルム
であり、2つのリール32、34の一方から他方へ巻取
られて走行する。このフィルム30には光源36の光が
下方から導かれ、このフィルム30の透過光は投影レン
ズ38、像回転プリズム40、反射ミラー42、44、
46を経てスクリーン48に背面から導かれる。スクリ
ーン48の背面には縦長の可動板50が水平方向に移動
可能に設けられ、この可動板50にCCDラインセンサ
52が取付けられている。従ってこのラインセンサ52
に入射した画像を読取りながら可動板50を水平方向に
移動させることによりスクリーン48の投影画像を読取
ることができる。
In FIG. 1, reference numeral 30 is a microfilm, which is wound from one of the two reels 32 and 34 to the other and runs. The light from the light source 36 is guided to the film 30 from below, and the transmitted light from the film 30 is projected onto the projection lens 38, the image rotation prism 40, and the reflection mirrors 42 and 44.
It is led to the screen 48 from the backside via 46. A vertically movable plate 50 is provided on the back surface of the screen 48 so as to be movable in the horizontal direction, and a CCD line sensor 52 is attached to the movable plate 50. Therefore, this line sensor 52
It is possible to read the projected image on the screen 48 by moving the movable plate 50 in the horizontal direction while reading the image incident on.

【0012】1回目の画像読取り時には、このラインセ
ンサ52の出力信号は、図1に示す切換スイッチ54を
介して第1の2値化手段56およびしきい値検出手段5
8に入力される。2回目の画像読取り時には第2の2値
化手段60に入力される。
At the time of the first image reading, the output signal of the line sensor 52 is transmitted through the changeover switch 54 shown in FIG. 1 to the first binarizing means 56 and the threshold detecting means 5.
8 is input. When the image is read for the second time, it is input to the second binarizing means 60.

【0013】前記したように黒枠検出のための走査ライ
ン26(図4)は、一定間隔(例えば1mm間隔)ごとに
読取られるから、各走査ライン26の間には画像読取り
密度に対応した他の走査ラインが残っていることにな
る。例えば1mm幅を16本の走査ライン26で読取る場
合には、黒枠検出用走査ライン26の間に、15本の走
査ラインがあることになる。黒枠検出用走査ライン26
以外の走査ライン、あるいは黒枠検出用走査ライン26
を含む全ての走査ラインは、後記するようにしきい値D
THを求めるために用いられる。
As described above, the scanning lines 26 (FIG. 4) for detecting the black frame are read at regular intervals (for example, 1 mm intervals). Therefore, other scanning lines 26 corresponding to the image reading density are provided between the scanning lines 26. There will be scan lines left. For example, when reading a 1 mm width with 16 scanning lines 26, there are 15 scanning lines between the black frame detection scanning lines 26. Black frame detection scanning line 26
Scan lines other than the above, or black frame detection scan lines 26
All scan lines including the threshold value D as described below.
Used to calculate TH .

【0014】本実施例では一定間隔ごとの黒枠検出用走
査ライン26は第1の2値化手段56に入力され、その
他の走査ラインはしきい値検出手段58に入力される。
In this embodiment, the scanning lines 26 for detecting the black frame at regular intervals are input to the first binarizing means 56, and the other scanning lines are input to the threshold detecting means 58.

【0015】黒枠検出手段58はヒストグラム作成手段
62と、しきい値演算手段64とを有する。ヒストグラ
ム作成手段62は、黒枠検出用走査ライン26以外の走
査ラインを読取ったラインセンサ52の出力信号を用い
て、図3に示す濃度ヒストグラムを作成する。このヒス
トグラムは、各画素の濃度Dに対する画素数の分布を示
すものである。
The black frame detecting means 58 has a histogram creating means 62 and a threshold value calculating means 64. The histogram creating means 62 creates the density histogram shown in FIG. 3 by using the output signal of the line sensor 52 that has read the scanning lines other than the black frame detection scanning line 26. This histogram shows the distribution of the number of pixels with respect to the density D of each pixel.

【0016】ここにヒストグラム作成手段62は、n番
目の黒枠検出用走査ライン26(n)と、その前の(n
−1)番目の黒枠検出用走査ライン26(n−1)との
間にある15本の走査ラインによってヒストグラムを求
める。しきい値演算手段62は、このヒストグラムを用
いて、n番目の黒枠検出用走査ライン26(n)に用い
るしきい値DTH(n)を演算する。
Here, the histogram creating means 62 uses the nth black frame detecting scanning line 26 (n) and the preceding (n)
A histogram is obtained by 15 scanning lines between the -1) th black frame detection scanning line 26 (n-1). The threshold value calculation means 62 uses this histogram to calculate the threshold value D TH (n) used for the n-th black frame detection scanning line 26 (n).

【0017】例えば図3に示すヒストグラムにおいて、
白側の山P1 は、図6における画像12、14の外側の
フィルム10が透明な部分によりできたものである。ま
た黒側の山P2 は画像12、14内の背景および周囲に
ある黒枠22、24によりできたものである。従って必
要な画像は2つの山P1 とP2 の間に分布することにな
る。しきい値演算手段64は、山P2 の濃度D2 に対し
て一定割合(例えば70%)の濃度DTHを2値化のため
のしきい値として求め、この結果をメモリする。
For example, in the histogram shown in FIG.
The mountain P 1 on the white side is formed by the transparent portion of the film 10 outside the images 12 and 14 in FIG. 6. Further, the mountain P 2 on the black side is formed by the backgrounds in the images 12 and 14 and the black frames 22 and 24 around them. Therefore, the required image will be distributed between the two peaks P 1 and P 2 . The threshold value calculation means 64 finds the density D TH at a fixed ratio (for example, 70%) with respect to the density D 2 of the mountain P 2 as a threshold value for binarization, and stores the result.

【0018】しきい値検出手段58では、(n−1)番
目とn番目の黒枠検出用走査ライン26(n−1)、2
6(n)の間にある15本の走査ラインにより前記のよ
うにしてしきい値DTH(n)を求める。このしきい値D
TH(n)はその後に読取るn番目の黒枠検出用走査ライ
ン26(n)の黒枠検出に用いられる。なおこの際(n
−1)番目の黒枠検出用走査ライン26(n−1)も含
めてヒストグラムを作ってもよい。
In the threshold value detecting means 58, the (n-1) th and nth black frame detecting scanning lines 26 (n-1), 2
The threshold value D TH (n) is obtained as described above with 15 scanning lines between 6 (n). This threshold D
TH (n) is used for black frame detection of the nth black frame detection scanning line 26 (n) to be read thereafter. At this time (n
A histogram may be created including the -1) th black frame detection scanning line 26 (n-1).

【0019】第1の2値化手段56は、このようにして
しきい値検出手段58で求めたしきい値DTH(n)を用
いてn番目の走査ライン26(n)の読取り出力信号を
2値化する。この2値化した信号は、白黒修正手段65
を経て黒枠検出手段66に入力され、ここで黒枠が検出
されてメモリされる。
The first binarizing means 56 uses the threshold value D TH (n) thus obtained by the threshold value detecting means 58 to read out the output signal of the n-th scanning line 26 (n). Is binarized. The binarized signal is converted into a black and white correction means 65.
Then, it is inputted to the black frame detecting means 66, and the black frame is detected and stored therein.

【0020】白黒修正手段65は、n番目の黒枠検出用
走査ライン26(n)上にある画素を、その周辺の画素
を用いて白黒修正を行うものである。例えば図4に示す
ように、走査ライン26(n)の前後にある黒枠検出用
走査ライン26(n−1)と26(n+1)とを用いて
周辺画素マトリックスを作る。また黒枠検出用走査ライ
ン26(n−1)、26(n+1)に代えて、図5に示
すように隣接あるいは一定間隔離れた黒枠検出用でない
走査ライン26a、26bを用いてもよい。
The black-and-white correction means 65 is for black-and-white correction of the pixels on the n-th black frame detection scanning line 26 (n) by using the peripheral pixels. For example, as shown in FIG. 4, the peripheral pixel matrix is formed by using the black frame detection scanning lines 26 (n-1) and 26 (n + 1) before and after the scanning line 26 (n). Instead of the black frame detection scanning lines 26 (n-1) and 26 (n + 1), non-black frame detection scanning lines 26a and 26b may be used which are adjacent to each other or separated by a constant distance as shown in FIG.

【0021】図4、5においては、走査ライン26
(n)上の1つの画素すなわち中心画素G0 を中心とす
る3×3のマトリックスを周辺画素マトリックスとす
る。白黒修正手段65は、この中心画素G0 を囲む他の
画素G1 〜G8 のうち、中心画素G0 の白黒と同じ画素
の数を積算する。
In FIGS. 4 and 5, scan line 26 is shown.
(N) A 3 × 3 matrix centered on one pixel above, that is, the central pixel G 0 is a peripheral pixel matrix. White correction means 65, among the other pixels G 1 ~G 8 surrounding the center pixel G 0, to count the number of the same pixel as the black and white of the central pixel G 0.

【0022】そして中心画素G0 が黒画素の時に、周辺
画素G1 〜G8 のうち半数を越える一定数(例えば5
個)が黒画素であれば中心画素G0 を黒画素のままとす
る。反対に周辺画素G1 〜G8 の一定数(5個)以上が
白画素ならば、中心画素G0 を白画素に修正する。中心
画素G0 が白画素の時には、同様に周辺画素G1 〜G8
の一定数以上が黒画素の時にこの中心画素G0 を黒画素
に修正する。
When the central pixel G 0 is a black pixel, a fixed number exceeding half of the peripheral pixels G 1 to G 8 (for example, 5).
If each pixel is a black pixel, the central pixel G 0 is left as a black pixel. On the contrary, if the constant number (five) or more of the peripheral pixels G 1 to G 8 is a white pixel, the central pixel G 0 is corrected to a white pixel. When the central pixel G 0 is a white pixel, the peripheral pixels G 1 to G 8 are similarly generated.
When more than a certain number of black pixels are black pixels, the central pixel G 0 is corrected to a black pixel.

【0023】このように中心画素G0 の白黒を周辺画素
1 〜G8 の白黒画素数によって修正することにより、
画像に含まれる文字部分や汚れあるいは傷による像をぼ
かして、黒枠を鮮明にさせることができる。
Thus, by correcting the black and white of the central pixel G 0 by the number of black and white pixels of the peripheral pixels G 1 to G 8 ,
A black frame can be made clear by blurring an image due to a character portion, dirt, or scratches included in the image.

【0024】黒枠検出手段66はこのように白黒修正さ
れた黒枠検出用走査ライン26(n)上の画素の配列を
用いて、種々の方法で黒枠22、24(図6参照)を検
出する。例えば前記したように、画像12の範囲に走査
ライン26が入って、連続してN個の黒画素が続いたこ
とから黒枠を検出するようにしてもよい(図6の(A)
参照)。また図6の(B)に示すように、連続するN
(例えば160)画素のうちa%(例えば30%)が黒
画素となることから黒枠の存在を検出し、この黒画素数
がa%になった座標xからNb画素分遡った座標X=x
−Nbを黒枠と決めてもよい。
The black frame detecting means 66 detects the black frames 22 and 24 (see FIG. 6) by various methods using the array of pixels on the black frame detecting scanning line 26 (n) thus corrected in black and white. For example, as described above, the scanning line 26 may be included in the range of the image 12 and the black frame may be detected because N black pixels continue in succession ((A) in FIG. 6).
reference). Further, as shown in FIG.
Since a% (for example, 30%) of (for example, 160) pixels are black pixels, the presence of a black frame is detected, and a coordinate X = x, which is Nb pixels back from the coordinate x at which the number of black pixels becomes a%.
-Nb may be determined as a black frame.

【0025】この場合Nb画素は、N画素の範囲を(1
−b):bの割合に分割する座標までの画素数を示し、
b≒aに設定するのが望ましい。なお以上の説明は走査
が画像12、14の外側から画像12、14内に入る場
合について説明したが、走査が画像12、14の内側か
ら外へ出る場合には、以上の説明の黒画素と白画素とを
逆にすればよい。このようにして種々の方法で黒枠が検
出されると、各走査ライン26に対し求めた黒枠の点を
結んで黒枠範囲が決定され、この黒枠範囲はメモリされ
る。
In this case, for the Nb pixel, the range of the N pixel is (1
-B): indicates the number of pixels up to the coordinate divided into the ratio of b,
It is desirable to set b≈a. Note that the above description has been given of the case where the scanning enters from the outside of the images 12 and 14 into the images 12 and 14, but when the scanning goes from the inside of the images 12 and 14 to the outside, the black pixel of the above description is displayed. The white pixels may be reversed. When the black frame is detected by various methods in this manner, the black frame range is determined by connecting the points of the black frame obtained for each scanning line 26, and the black frame range is stored.

【0026】以上のように1回目の画像読取りにより、
黒枠の検出としきい値のDTH(n)の検出とが行われ
る。そして2回目の画像読取り時には、この求めたしき
い値DTH(n)を用いて第2の2値化手段60において
2値化する。すなわちn番目の走査ライン26(n)付
近の画像に対してはしきい値DTH(n)を用いて2値化
し、画像読取り領域に応じてその付近のしきい値DTH
順次メモリから読出して用いる。
As described above, by the first image reading,
The detection of the black frame and the detection of the threshold value D TH (n) are performed. Then, at the time of the second image reading, the obtained threshold value D TH (n) is used to perform binarization in the second binarizing means 60. That is, an image near the nth scan line 26 (n) is binarized by using the threshold value D TH (n), and the threshold value D TH in the vicinity is sequentially read from the memory according to the image reading area. Read and use.

【0027】この2値化した出力信号は画像処理手段6
8に入力される。この画像処理手段68は画像の拡大・
圧縮を行ったり、微分処理によるエッジ強調、細線化処
理、デイザ処理、等の種々の空間フィルタリング処理を
行う。
The binarized output signal is the image processing means 6
8 is input. This image processing means 68 enlarges an image
Various spatial filtering processes such as compression, edge enhancement by differential processing, thinning processing, dither processing, etc. are performed.

【0028】このような画像処理が行われた画像信号は
マスキング手段70において黒枠22、24(図6参
照)などの不要な範囲がマスキング処理されて、出力手
段72に出力される。この出力手段72は例えばプリン
タで形成され、画像処理された画像信号からマスキング
範囲を消去してプリント出力する。
The image signal subjected to such image processing is masked by the masking means 70 in an unnecessary area such as the black frames 22 and 24 (see FIG. 6) and is output to the output means 72. The output unit 72 is formed by, for example, a printer, and erases the masking range from the image-processed image signal to print out.

【0029】次に図2を用いて動作を説明する。1回目
の画像読取り(スキャン)を行う時には(ステップ10
0)、まず走査ラインの順番mを1に初期化する(ステ
ップ102)。そしてこの順番mが黒枠検出用走査ライ
ン26に一致するか否かを判別する(ステップ10
4)。すなわち黒枠検出用走査ライン26は一定間隔例
えば16本の走査ラインごとに現れるから、mが16の
整数倍16I(ただしIは整数)となる時は黒枠検出用
走査ライン26であり、m≠16Iの走査ラインはヒス
トグラム検出用のものとされる。
Next, the operation will be described with reference to FIG. When performing the first image reading (scan) (step 10
0), first, the order m of scanning lines is initialized to 1 (step 102). Then, it is determined whether or not this order m matches the black frame detection scanning line 26 (step 10).
4). That is, the black frame detection scanning lines 26 appear at regular intervals, for example, every 16 scanning lines. Therefore, when m is an integer multiple of 16I (where I is an integer), the black frame detection scanning line 26 is m16I. The scan lines of are for histogram detection.

【0030】従って最初のm=1から15まではm≠1
6Iなので、m=16(I−1)+1からm=16I−
1までの間の走査ラインによりヒストグラムが求められ
(ステップ106、108、110、112)、しきい
値DTH(1)が演算されてメモリされる(ステップ11
4)。m=16になると1番目の黒枠検出用走査ライン
26(1)であるから、この直前に求めたしきい値DTH
(1)を用いて第1の2値化手段56で2値化される
(ステップ116)。この2値化された信号を用いて白
黒修正手段65で白黒修正が行われる。
Therefore, in the first m = 1 to 15, m ≠ 1
Since it is 6I, m = 16 (I-1) +1 to m = 16I-
A histogram is obtained from the scan lines up to 1 (steps 106, 108, 110, 112), and the threshold value D TH (1) is calculated and stored (step 11).
4). When m = 16, the scanning line 26 (1) for black frame detection is the first, so the threshold value D TH obtained immediately before this is
The first binarization means 56 is binarized using (1) (step 116). Black-and-white correction is performed by the black-and-white correction means 65 using this binarized signal.

【0031】すなわち、まず黒枠検出用走査ライン26
(n)上の1つの画素(中心画素G0 )を中心とする所
定数(N×N−1)の周辺画素G1 〜GNxN-1 を含むマ
トリックスを作る(ステップ118)。そして周辺画素
1 〜GNxN-1 のうち、中心画素G0 と白黒が逆な画素
数aを求める。この画素数aが周辺画素数(N×N−
1)の半分よりも大きければ(ステップ120)、すな
わちa>(N×N−1)/2であれば、中心画素G0
白黒を反転させる(ステップ122)。a<(N×N−
1)/2であれば反転させない。
That is, first, the black frame detection scanning line 26
(N) A matrix including a predetermined number (N × N−1) of peripheral pixels G 1 to G NxN−1 centered on one pixel (center pixel G 0 ) on the top is formed (step 118). Then, of the peripheral pixels G 1 to G NxN-1 , the number of pixels a in which black and white are opposite to that of the central pixel G 0 is obtained. This pixel number a is the number of peripheral pixels (N × N−
If it is larger than half of 1) (step 120), that is, if a> (N × N−1) / 2, the black and white of the central pixel G 0 is inverted (step 122). a <(N × N-
If 1) / 2, do not reverse.

【0032】このように中心画素G0 の白黒を修正した
後、黒枠が検出されてメモリされる(ステップ12
4)。以上の動作を繰り返し、画像全体の領域に対して
処理が終ると(ステップ110、112)、2回目のス
キャンに入る(ステップ126)。
After correcting the black and white of the central pixel G 0 in this way, a black frame is detected and stored (step 12).
4). When the above operation is repeated and the processing is completed for the entire area of the image (steps 110 and 112), the second scan is started (step 126).

【0033】2回目のスキャンでは、ステップ114で
ヒストグラムから求めたしきい値DTHを用いて画像を2
値化し(ステップ128)、この2値化した画像を用い
て画像処理する(ステップ130)。さらにステップ1
24で求めた黒枠範囲をマスキングして消去しつつ(ス
テップ132)、プリント出力する(ステップ13
4)。
In the second scan, the threshold value D TH obtained from the histogram in step 114 is used to scan the image.
It is binarized (step 128), and image processing is performed using this binarized image (step 130). Further step 1
The black frame range obtained in step 24 is masked and erased (step 132), and printed out (step 13).
4).

【0034】以上の実施例では、n番目の黒枠検出用走
査ライン26(n)の画素に対する周辺画素マトリック
スは、その前後の黒枠検出用走査ライン、すなわち(n
−1)番目とn+1番目の黒枠検出用走査ライン26
(n−1)、26(n+1)から求めた。しかし本発明
は、(n−1)番目と(n+1)番目の走査ライン26
(n−1)、26(n+1)に代えて、これらの間にあ
る黒枠検出用でない走査ライン26(n)から一定間隔
離れた走査ラインを用いて周辺画素マトリックスを形成
してもよい。
In the above embodiment, the peripheral pixel matrix for the pixel of the n-th black frame detection scanning line 26 (n) is the black frame detection scanning lines before and after it, that is, (n
-1) th and n + 1th black frame detection scanning lines 26
It was calculated from (n-1) and 26 (n + 1). However, according to the present invention, the (n-1) th and (n + 1) th scan lines 26
Instead of (n-1) and 26 (n + 1), the peripheral pixel matrix may be formed by using scanning lines which are apart from the scanning line 26 (n) not for black frame detection between them by a constant distance.

【0035】[0035]

【発明の効果】請求項1の発明は以上のように、一定間
隔ごとの走査ラインを読取って黒枠を検出する場合に、
この黒枠検出用走査ライン上の中心画素の白黒を周辺画
素マトリックスを用いて修正し、原稿周辺付近の画像や
フィルム上の汚れ、傷の影響を消すようにしたものであ
るから、黒枠を正確に求めることができる。
As described above, according to the first aspect of the present invention, when scanning lines are read at regular intervals to detect a black frame,
The black and white of the central pixel on the scanning line for detecting the black frame is corrected by using the peripheral pixel matrix to eliminate the influence of stains and scratches on the image and the film near the periphery of the document. You can ask.

【0036】ここに周辺画素マトリックスは、中心画素
を含む黒枠検出用走査ラインの前後の黒枠検出用走査ラ
イン上の画素を用いることができる(請求項2)。また
中心画素を含む黒枠検出用走査ラインから所定間隔離れ
た黒枠検出用でない走査ラインの画素を用いてもよい
(請求項3)。
Here, as the peripheral pixel matrix, pixels on the black frame detection scanning line before and after the black frame detection scanning line including the central pixel can be used (claim 2). Further, the pixels of the scanning line for black frame detection which is apart from the scanning line for black frame detection including the central pixel by a predetermined distance may be used (claim 3).

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

【図1】本発明の一実施例の全体構成図FIG. 1 is an overall configuration diagram of an embodiment of the present invention.

【図2】その動作流れ図[Fig. 2] Operation flow chart

【図3】ヒストグラムを示す図FIG. 3 is a diagram showing a histogram.

【図4】周辺画素マトリックスを示す図FIG. 4 is a diagram showing a peripheral pixel matrix.

【図5】周辺画素マトリックスの他の例を示す図FIG. 5 is a diagram showing another example of a peripheral pixel matrix.

【図6】マイクロフィルムとプリント出力との関係説明
FIG. 6 is an explanatory diagram of the relationship between microfilm and print output.

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

10、30 マイクロフィルム 12、14 画像 18、20 プリント用紙 26 黒枠検出用走査ライン 52 画像読取りセンサとしてのラインセンサ 65 白黒修正手段 66 黒枠検出手段 68 画像処理手段 70 マスキング手段 G0 中心画素 G1 〜G8 周辺画素10, 30 Microfilm 12, 14 Image 18, 20 Print paper 26 Black frame detection scanning line 52 Line sensor as image reading sensor 65 Black and white correction means 66 Black frame detection means 68 Image processing means 70 Masking means G 0 Central pixel G 1 ~ G 8 peripheral pixels

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 画像を主走査方向に読出し所定のしきい
値で2値化して得た画像信号が示す画素の配列から黒枠
範囲を検出する方法において、黒枠検出用の走査ライン
上の1つの画素を中心画素とする所定数の周辺画素マト
リックスを形成し、前記周辺画素の半数を越える一定数
が前記中心画素と白黒が反対の時に前記中心画素を白黒
反転させてから、黒枠を検出することを特徴とするマイ
クロフィルムリーダの黒枠検出方法。
1. A method for detecting a black frame range from an array of pixels indicated by an image signal obtained by reading an image in the main scanning direction and binarizing the image with a predetermined threshold value, and selecting one of the black line detection scanning lines. Forming a matrix of a predetermined number of peripheral pixels having a pixel as a central pixel, and inverting the central pixel in black and white when a constant number exceeding half of the peripheral pixels is opposite to the black and white, and then detecting a black frame; A method for detecting a black frame of a microfilm reader, characterized by:
【請求項2】 黒枠検出用走査ラインと、これに隣接す
る他の黒枠検出用走査ラインとの画素を用いて周辺画素
マトリックスを形成する請求項1のマイクロフィルムリ
ーダの黒枠検出方法。
2. The black frame detecting method for a microfilm reader according to claim 1, wherein the peripheral pixel matrix is formed by using pixels of the black frame detecting scanning line and other black frame detecting scanning lines adjacent thereto.
【請求項3】 黒枠検出用走査ラインは所定数の走査ラ
インを介して一定間隔ごとに設定され、1つの前記黒枠
検出用走査ラインと、これから一定間隔離れた他の走査
ラインとの画素を用いて周辺画素マトリックスを形成す
る請求項1のマイクロフィルムリーダの黒枠検出方法。
3. A black frame detection scanning line is set at regular intervals through a predetermined number of scanning lines, and pixels of one black frame detection scanning line and another scanning line which is separated from this by a constant interval are used. The method for detecting a black frame of a microfilm reader according to claim 1, wherein a peripheral pixel matrix is formed by using the above method.
JP50A 1993-01-29 1993-01-29 Black frame detecting method for microfilm reader Pending JPH06233112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP50A JPH06233112A (en) 1993-01-29 1993-01-29 Black frame detecting method for microfilm reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP50A JPH06233112A (en) 1993-01-29 1993-01-29 Black frame detecting method for microfilm reader

Publications (1)

Publication Number Publication Date
JPH06233112A true JPH06233112A (en) 1994-08-19

Family

ID=12425825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP50A Pending JPH06233112A (en) 1993-01-29 1993-01-29 Black frame detecting method for microfilm reader

Country Status (1)

Country Link
JP (1) JPH06233112A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100364313C (en) * 2004-03-04 2008-01-23 扬智科技股份有限公司 Method and related circuit for detecting black frame in video signal
JP2014119362A (en) * 2012-12-18 2014-06-30 Lg Display Co Ltd Automatic unevenness detecting device and automatic unevenness detecting method for flat-panel display

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100364313C (en) * 2004-03-04 2008-01-23 扬智科技股份有限公司 Method and related circuit for detecting black frame in video signal
JP2014119362A (en) * 2012-12-18 2014-06-30 Lg Display Co Ltd Automatic unevenness detecting device and automatic unevenness detecting method for flat-panel display

Similar Documents

Publication Publication Date Title
US5416605A (en) Print control method and apparatus for microfilm reader
JP2768786B2 (en) Image reading device
JPH06233112A (en) Black frame detecting method for microfilm reader
JP3249231B2 (en) Method and apparatus for masking a microfilm reader
JPH06233113A (en) Method and device for detecting black frame for microfilm reader
JP3264547B2 (en) Micro film reader and image reading method thereof
JPH06253125A (en) Method and device for detecting black frame of micro film reader
JPH06233111A (en) Method and device for detecting black frame for microfilm reader
JP3332170B2 (en) Method and apparatus for detecting black frame of micro film reader
JPH06311347A (en) Print control method and device for micro film reader
JPH06315080A (en) Masking method and device for microfilm reader
JP3312787B2 (en) Image processing system
JP3262296B2 (en) Print control method and apparatus for microfilm reader
JPH06317846A (en) Method and device for masking microfilm reader
JPH0743837A (en) Method and device for masking microfilm reader
JPH04257844A (en) Image editing method and image editing device
JP3286646B2 (en) Print control method and apparatus for microfilm reader
JPH1141450A (en) Image editing device
JPH06291972A (en) Print control method and device for microfilm reader
JPH06291970A (en) Print control method and device for microfilm reader
JPH06268851A (en) Method and device for picture processing for microfilm reader
JPH043656A (en) Picture processor
JPH0380771A (en) Image processing device
JP3783005B2 (en) Image processing device
JPH0338782A (en) Detector for density of original