JPH06315080A - Masking method and device for microfilm reader - Google Patents

Masking method and device for microfilm reader

Info

Publication number
JPH06315080A
JPH06315080A JP5124766A JP12476693A JPH06315080A JP H06315080 A JPH06315080 A JP H06315080A JP 5124766 A JP5124766 A JP 5124766A JP 12476693 A JP12476693 A JP 12476693A JP H06315080 A JPH06315080 A JP H06315080A
Authority
JP
Japan
Prior art keywords
frame
black frame
image
picture
black
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
JP5124766A
Other languages
Japanese (ja)
Inventor
Takahiro Hideshima
隆裕 秀島
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 JP5124766A priority Critical patent/JPH06315080A/en
Publication of JPH06315080A publication Critical patent/JPH06315080A/en
Pending legal-status Critical Current

Links

Landscapes

  • Projection-Type Copiers In General (AREA)
  • Facsimiles In General (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To make the range of a picture clear and easy to see by searching the frame line of an output picture by using a black frame, and adding the frame line to the picture. CONSTITUTION:One picture 12C of two pictures 12C and 12D is used as a selected picture, and the area of the picture 12D is made black. The picture 12C and one part of the picture 12D are included in a fixed area 16A of a microfilm 10A. A black frame 22A in the area 16A is detected by a black frame detecting means, and stored. At the time of selecting the selected picture, the picture at preliminarily decided position in the area 16A can be automatically selected. For example, the picture at the left hand edge, right hand edge, left-and-up corner, and left-and-down corner is used as the selected picture. The selection of the selected picture can be operated by inputting coordinates on a screen from a keyboard. Thus, the black frame is detected, and masking- processed, and the frame line of the picture is searched by using the black frame, and the frame line is added to the output picture, so that the output picture can be outputted to a printer to which the frame line of the picture is added, and the range of the picture can be made clear and easy to see.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ネガのマイクロフィル
ムにおいて画像の周囲に生じる黒枠を検出して消去して
出力するマイクロフィルムリーダのマスキング方法と、
この方法の実施に直接使用する装置とに関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a masking method for a microfilm reader, which detects a black frame generated around an image on a negative microfilm, erases it, and outputs it.
Apparatus for direct use in carrying out the method.

【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】図7はマイクロフィルムとプリント出力と
の関係を示すものである。マイクロフィルム10には一
定寸法の原稿の画像12、14がネガの像として記録さ
れている。プリント出力される範囲16は決まっている
から、この範囲16をプリント出力すると、プリント用
紙18、20には画像12、14のプリント像12A、
14Aの外側に黒枠22、24が発生する。
FIG. 7 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】この方法は図7に(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. 7A, from the coordinate X at which the pixel distribution on the scanning line 26 changes from a white pixel to a black pixel, the coordinate x at which N black pixels are continuous is calculated. The coordinate X = x−N that is detected and traces back N pixels from the coordinate x is determined as a black frame. And a fixed interval (eg 1mm
The coordinates X n , X n + 1 , X n + 2 , ... Of the black frame in order with respect to the nth , n + 1 , n + 2 , ...
In the same manner, and a black frame range, that is, a masking range connecting the respective coordinates X n , X n + 1 , ... Is calculated.

【0006】[0006]

【従来技術の問題点】しかしこのように検出した黒枠を
プリント出力する範囲から消去すると、画像の枠線すな
わち原稿の外形を示す枠線も消えてしまい画像の寸法が
不明になったり、画像が見にくくなるという問題が生じ
る。
However, if the black frame detected in this way is erased from the range to be printed out, the frame line of the image, that is, the frame line showing the outline of the document disappears, and the size of the image becomes unknown, There is a problem that it becomes difficult to see.

【0007】[0007]

【発明の目的】本発明はこのような事情に鑑みなされた
ものであり、黒枠を検出して消去する場合に、画像の枠
線を明確にできるようにするマイクロフィルムリーダの
マスキング方法を提供することを第1の目的とする。ま
たこの方法に実施に直接用いる装置を提供することを第
2の目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and provides a masking method for a microfilm reader capable of clarifying a frame line of an image when a black frame is detected and erased. This is the first purpose. A second object is to provide an apparatus directly used for carrying out this method.

【0008】[0008]

【発明の構成】本発明によれば第1の目的は、マイクロ
フィルムの一定領域を読出し2値化して得た画像信号が
示す画素の配列から黒枠を検出し、この黒枠を消去して
出力する方法において、前記検出した黒枠を用いて出力
画像の枠線を求め、この枠線と前記黒枠消去した画像と
を重ねて出力することを特徴とするマイクロフィルムリ
ーダのマスキング方法により達成される。
According to the present invention, a first object of the present invention is to detect a black frame from an array of pixels indicated by an image signal obtained by reading a certain area of a microfilm and binarizing it, and erase the black frame for output. In the method, the frame line of the output image is obtained by using the detected black frame, and the frame line and the image with the black frame erased are output in an overlapping manner.

【0009】また第2の目的は、マイクロフィルムの一
定領域を読出す画像読取り手段と、この画像読取り手段
の出力を2値化する2値化手段と、2値化した画像信号
が示す画素の配列から黒枠を検出する黒枠検出手段と、
検出した黒枠を消去するマスキング手段とを備えるマイ
クロフィルムリーダのマスキング装置において、前記黒
枠検出手段で検出した黒枠から出力画像の枠線を求める
枠線演算手段と、前記マスキング手段で黒枠を消去した
出力画像に前記枠線を加える枠線加入手段とを備えるこ
とを特徴とするマイクロフィルムリーダのマスキング装
置により達成される。
A second object is to use an image reading means for reading out a certain area of the microfilm, a binarizing means for binarizing the output of the image reading means, and a pixel indicated by the binarized image signal. A black frame detecting means for detecting a black frame from the array,
In a masking device for a microfilm reader, which comprises masking means for erasing the detected black frame, frame line calculating means for obtaining a frame line of an output image from the black frame detected by the black frame detecting means, and output for erasing the black frame by the masking means The present invention is achieved by a masking device for a microfilm reader, characterized in that it comprises a frame line adding means for adding the frame line to an image.

【0010】[0010]

【実施例】図1は本発明の一実施例の全体構成図、図2
はその動作を示す動作流れ図、図3はその黒枠修正の詳
細な動作流れ図、図4は本発明によるプリント出力例を
示す図、図5は同じく他の出力例を示す図、図6はヒス
トグラムを示す図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an overall configuration diagram of an embodiment of the present invention,
Is an operation flow chart showing the operation, FIG. 3 is a detailed operation flow chart of the black frame correction, FIG. 4 is a view showing a print output example according to the present invention, FIG. 5 is a view showing another output example, and FIG. 6 is a histogram. FIG.

【0011】図1において符号30はマイクロフィルム
であり、2つのリール32、34の一方から他方へ巻取
られて走行する。このフィルム30には光源36の光が
下方から導かれ、このフィルム30の透過光は投影レン
ズ38、像回転プリズム40、反射ミラー42、44、
46を経てスクリーン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.

【0012】スクリーン48の背面には縦長の可動板5
0が水平方向に移動可能に設けられ、この可動板50に
CCDラインセンサ52が取付けられている。従ってこ
のラインセンサ52に入射した画像を読取りながら可動
板50を水平方向に移動させることによりスクリーン4
8の画像を読取ることができる。
A vertically movable plate 5 is provided on the back surface of the screen 48.
0 is provided so as to be movable in the horizontal direction, and a CCD line sensor 52 is attached to the movable plate 50. Therefore, by moving the movable plate 50 in the horizontal direction while reading the image incident on the line sensor 52, the screen 4
8 images can be read.

【0013】1回目の画像読取り時には、このラインセ
ンサ52の出力信号は、図1に示す切換スイッチ54を
介して第1の2値化手段56およびしきい値検出手段5
8に入力される。2回目の画像読取り時には第2の2値
化手段60に入力される。
During the first image reading, the output signal of the line sensor 52 is passed 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.

【0014】前記したように黒枠検出のための走査ライ
ン26(図7)は、一定間隔(例えば1mm間隔)ごとに
読取られるから、各走査ライン26の間には画像読取り
密度に対応した他の走査ラインが残っていることにな
る。例えば1mm幅を16本の走査ライン26で読取る場
合には、黒枠検出用走査ライン26の間に、15本の走
査ラインがあることになる。黒枠検出用走査ライン26
以外の走査ライン、あるいは黒枠検出用走査ライン26
を含む全ての走査ラインは、後記するようにしきい値D
THを求めるために用いられる。
As described above, since the scanning lines 26 (FIG. 7) for detecting the black frame are read at regular intervals (for example, 1 mm intervals), 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 .

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

【0016】黒枠検出手段58はヒストグラム作成手段
62と、しきい値演算手段64とを有する。ヒストグラ
ム作成手段62は、黒枠検出用走査ライン26以外の走
査ラインを読取ったラインセンサ52の画像信号を用い
て、図6に示す濃度ヒストグラムを作成する。このヒス
トグラムは、各画素の濃度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. 6 using the image 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.

【0017】ここにヒストグラム作成手段62は、n番
目の黒枠検出用走査ライン26(n)と、その前の(n
−1)番目の黒枠検出用走査ライン26(n−1)との
間にある15本の走査ラインによってヒストグラムを求
める。しきい値演算手段62は、このヒストグラムを用
いて、n番目の黒枠検出用走査ライン26(n)に用い
るしきい値DTH(n)を演算する。
Here, the histogram creating means 62 uses the n-th black frame detection 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).

【0018】例えば図6に示すヒストグラムにおいて、
白側の山P1 は、図7における画像12、14の外側の
フィルム10が透明な部分によりできたものである。ま
た黒側の山P2 は画像12、14内の背景によりできた
ものである。従って必要な画像は2つの山P1 とP2
間に分布することになる。しきい値演算手段64は、山
2 の濃度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. 7. The mountain P 2 on the black side is formed by the background in the images 12 and 14. 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 of a certain 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.

【0019】しきい値検出手段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).

【0020】第1の2値化手段56は、このようにして
しきい値検出手段58で求めたしきい値DTH(n)を用
いてn番目の走査ライン26(n)の画像信号を2値化
する。この2値化した信号は、黒枠検出手段66に入力
され、ここで黒枠が検出されてメモリされる。
The first binarizing means 56 uses the threshold value D TH (n) thus obtained by the threshold value detecting means 58 to determine the image signal of the nth scanning line 26 (n). Binarize. This binarized signal is input to the black frame detecting means 66, where the black frame is detected and stored.

【0021】黒枠検出手段66は種々の方法で黒枠2
2、24(図7参照)を検出する。例えば前記したよう
に、画像12の範囲に走査ライン26が入って、連続し
てN個の黒画素が続いたことから黒枠を検出するように
してもよい(図7の(A)参照)。また図7の(B)に
示すように、連続するN(例えば160)画素のうちa
%(例えば30%)が黒画素となることから黒枠の存在
を検出し、この黒画素数がa%になった座標xからNb
画素分遡った座標X=x−Nbを黒枠と決めてもよい。
The black frame detecting means 66 can detect the black frame 2 by various methods.
2, 24 (see FIG. 7) are detected. For example, as described above, the scanning line 26 may be included in the range of the image 12 and N black pixels may be continuously arranged to detect the black frame (see (A) of FIG. 7). Further, as shown in FIG. 7B, a of a continuous N (for example, 160) pixels is a.
% (For example, 30%) is a black pixel, the presence of a black frame is detected, and Nb is calculated from the coordinate x at which the number of black pixels becomes a%.
The coordinate X = x-Nb that goes back by pixels may be determined as a black frame.

【0022】この場合Nb画素は、N画素の範囲を(1
−b):bの割合に分割する座標までのドット数を示
し、b≒aに設定するのが望ましい。なお以上の説明は
走査が画像12、14の外側から画像12、14内に入
る場合について説明したが、走査が画像12、14の内
側から外へ出る場合には、以上の説明の黒画素と白画素
とを逆にすればよい。このようにして種々の方法で黒枠
が検出されると、各走査ライン26に対し求めた黒枠の
点を結んで黒枠範囲が決定され、この黒枠範囲はメモリ
される。
In this case, the Nb pixel has a range of (1
-B): It indicates the number of dots up to the coordinate divided into the ratio of b, and 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.

【0023】一方マイクロフィルム30の一定領域がス
クリーン48に投影されて表示される範囲には、図4、
5に示すように複数の画像が同時に含まれることがあ
る。図4、5で10A、10Bはマイクロフィルム、1
6A、16Bはプリント用紙18Aに出力される一定領
域である。
On the other hand, in a range where a certain area of the microfilm 30 is projected and displayed on the screen 48, as shown in FIG.
As shown in 5, multiple images may be included at the same time. In FIGS. 4 and 5, 10A and 10B are microfilms and 1
Reference numerals 6A and 16B denote constant areas output on the print paper 18A.

【0024】図4のマイクロフィルム10Aの一定領域
16Aには画像12Cと画像12Dの一部とが含まれて
いる。また図5のマイクロフィルム10Bの一定領域1
6Bには、手形等の表裏の画像12E、12e、12
F、12f、12G、12g、等が含まれている。
The fixed area 16A of the microfilm 10A of FIG. 4 includes an image 12C and a part of the image 12D. In addition, a certain area 1 of the microfilm 10B of FIG.
6B includes front and back images 12E, 12e, 12 such as bills.
F, 12f, 12G, 12g, etc. are included.

【0025】図4の一定領域16A内の黒枠22Aは、
前記黒枠検出手段66に検出されメモリされる。図5の
一定領域16Bからは、必要な画像(例えば12f)を
含む適宜の領域16Cがトリミング手段(図示せず)に
より抽出され、この抽出した領域16Cの黒枠22Bが
前記黒枠検出手段66により検出され、メモリされる。
The black frame 22A in the constant area 16A shown in FIG.
It is detected and stored in the black frame detecting means 66. An appropriate area 16C including a necessary image (for example, 12f) is extracted from the fixed area 16B of FIG. 5 by a trimming means (not shown), and the black frame 22B of the extracted area 16C is detected by the black frame detecting means 66. Stored in memory.

【0026】図1で67は黒枠修正手段である。この黒
枠修正手段67は、プリンタなどに出力する一定の領域
16(図7)、16A(図4)、あるいは抽出した領域
16C(図5)に複数の画像が含まれている場合に、必
要な画像のみを選択し、選択されない画像を黒枠と同様
に黒に書換える。
In FIG. 1, 67 is a black frame correction means. The black frame correction means 67 is necessary when a plurality of images are included in the fixed areas 16 (FIG. 7), 16A (FIG. 4) to be output to a printer or the like, or the extracted area 16C (FIG. 5). Select only the image and rewrite the unselected image to black as well as the black frame.

【0027】例えば図4の場合には、2つの画像12
C、12Dの一方12Cを選択画像とし画像12Dの領
域を黒にする。同様に図5の場合には、1つの画像例え
ば12fを選択画像として他の画像の領域を黒にする。
このように黒に書き換えられた領域は修正された黒枠と
してメモリされる。
For example, in the case of FIG. 4, two images 12
One of C and 12D, 12C, is used as a selected image, and the area of the image 12D is black. Similarly, in the case of FIG. 5, one image, for example, 12f is set as a selected image, and the regions of other images are made black.
The area thus rewritten to black is stored as a corrected black frame.

【0028】選択画像は、一定領域16Aあるいは抽出
領域16Cの予め決めた位置の画像を自動で選択するこ
とができる。例えば左端、右端、左上隅、左下隅などの
画像を選択画像とする。なお選択画像の選択は、スクリ
ーン48上の座標をキーボードから入力してもよい。ま
たラインセンサ52で読取った画像をCRTや液晶板な
どの表示手段に表示し、この表示手段上でタッチパネル
やマウスやキーボードなどから選択画像を指定してもよ
い。
As the selected image, an image at a predetermined position in the constant area 16A or the extraction area 16C can be automatically selected. For example, images at the left end, the right end, the upper left corner, the lower left corner, etc. are set as the selected images. To select the selected image, the coordinates on the screen 48 may be input from the keyboard. Further, the image read by the line sensor 52 may be displayed on a display means such as a CRT or a liquid crystal plate, and a selected image may be designated on the display means from a touch panel, a mouse, a keyboard or the like.

【0029】以上のように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.

【0030】この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.

【0031】このような画像処理が行われた画像信号は
マスキング手段70において黒枠などの不要な範囲がマ
スキング処理され、さらに枠線加入手段71で後記する
枠線が加えられた後出力手段72に出力される。ここに
用いる黒枠は、黒枠修正手段67により不要な画像を黒
枠とする修正を行ったものを用いる。出力手段72は例
えばプリンタで形成され、画像処理された画像信号から
マスキング範囲を消去してプリント出力する。
The image signal subjected to such image processing is masked in an unnecessary area such as a black frame by the masking means 70, and further frame lines to be described later are added by the frame line joining means 71 to the output means 72. Is output. The black frame used here is a black frame corrected by the black frame correction means 67 so that an unnecessary image is corrected to a black frame. The output means 72 is formed by a printer, for example, and erases the masking range from the image-processed image signal to print out.

【0032】ここにマスキング手段70において修正さ
れた黒枠を消去すると、出力画像12C、12fの外形
すなわち枠線12C′、12f′も消えてしまう。この
ため画像12C、12fの寸法が不明になり、画像12
C、12fも見にくくなる。
If the black frame corrected by the masking means 70 is erased, the outer shapes of the output images 12C and 12f, that is, the frame lines 12C 'and 12f' are also erased. Therefore, the dimensions of the images 12C and 12f become unknown, and the image 12
It is also difficult to see C and 12f.

【0033】そこで本発明では修正された黒枠を用いて
枠線を検出し、出力画像とこの枠線とを重ねて出力す
る。この実施例ではこの枠線の検出は図1における枠線
検出手段74において行われる。この検出方法は種々可
能である。例えば修正した黒枠を示す画像信号を微分フ
ィルタを用いて空間フィルタリング処理することによ
り、枠線を検出することができる。また黒枠を示す画像
信号に水平方向および垂直方向の境界を検出する空間フ
ィルタを用いて境界すなわち枠線を検出してもよい。さ
らに、例えば3×3のマスクの中心を境界上におきなが
ら順次マスクを隣接する境界上で移動し、輪郭すなわち
枠線を求めてもよい。
Therefore, in the present invention, the frame line is detected using the corrected black frame, and the output image and this frame line are overlapped and output. In this embodiment, the detection of this frame line is performed by the frame line detection means 74 in FIG. Various detection methods are possible. For example, the frame line can be detected by spatially filtering the corrected image signal indicating the black frame using a differential filter. Further, a boundary, that is, a frame line may be detected by using a spatial filter that detects a boundary in the horizontal direction and a boundary in the vertical direction in the image signal indicating the black frame. Further, the contour, that is, the frame line may be obtained by sequentially moving the masks on the adjacent boundaries while keeping the center of the 3 × 3 mask on the boundaries.

【0034】適宜のアルゴリズムを用いて枠線が求めら
れると、枠線加入手段71はマスキング処理した画像に
この枠線を加えて出力手段72にプリント出力させる。
この結果図4・5に示すように黒枠が消えると共に選択
画像12C、12fの枠線12C′、12f′が加入さ
れた画像がプリント出力される。
When the frame line is obtained by using an appropriate algorithm, the frame line joining means 71 adds this frame line to the masked image and causes the output means 72 to print it out.
As a result, as shown in FIGS. 4 and 5, the black frame disappears and the image to which the frame lines 12C 'and 12f' of the selected images 12C and 12f are added is printed out.

【0035】次に図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, since the black frame detection scanning line 26 appears at regular intervals, for example, every 16 scanning lines, when m is an integer multiple of 16I (where I is an integer), the black frame detection scanning line 26 is m ≠ 16I. The scan lines of are for histogram detection.

【0036】従って最初のm=1から15まではm≠1
6Iなので、この間の走査ラインによりヒストグラムが
求められ(ステップ106)、しきい値DTH(1)が演
算されてメモリされる(ステップ108)。m=16に
なると1番目の黒枠検出用走査ライン26(1)である
から、この直前に求めたしきい値DTH(1)を用いて第
1の2値化手段56で2値化され(ステップ110)、
さらに黒枠が検出されてメモリされる(ステップ11
2)。以上の動作を繰り返し、画像全体の領域に対して
処理が終ると(ステップ114、116)、2回目のス
キャンに入る(ステップ118)。
Therefore, in the first m = 1 to 15, m ≠ 1
Since it is 6I, the histogram is obtained from the scanning lines in the meantime (step 106), and the threshold value D TH (1) is calculated and stored (step 108). When m = 16, the scanning line 26 (1) for black frame detection is the first one, so the threshold value D TH (1) obtained immediately before is used for binarization by the first binarizing means 56. (Step 110),
Further, a black frame is detected and stored (step 11).
2). When the above operation is repeated and the processing is completed for the entire area of the image (steps 114 and 116), the second scan is started (step 118).

【0037】2回目のスキャンに先行して、ステップ1
12で求めた黒枠から1つまたは複数の画像を選択し、
この選択画像以外を黒に書き換える黒枠修正処理を行う
(ステップ113)。この黒枠修正処理は図3に示す手
順により行われる。まず黒枠検出した後(ステップ11
2)、複数の画像が含まれているか否か判別する(ステ
ップ113A)。
Prior to the second scan, step 1
Select one or more images from the black frame obtained in 12,
Black frame correction processing is performed to rewrite other than the selected image into black (step 113). This black frame correction processing is performed by the procedure shown in FIG. First, after detecting the black frame (step 11)
2) It is determined whether or not a plurality of images are included (step 113A).

【0038】単一の画像を含んでいれば、黒枠の修正は
不要である。複数の画像を含んでいれば、そのうちの必
要な画像のみを選択し(ステップ113B)、他の画像
範囲を黒に書き換え(ステップ113C)、この書き換
えた範囲を黒枠に含めるように黒枠の修正を行い(ステ
ップ113D)、メモリする。
If a single image is included, the black frame need not be modified. If a plurality of images are included, only the required image is selected (step 113B), the other image range is rewritten to black (step 113C), and the black frame is corrected so that the rewritten range is included in the black frame. Perform (step 113D) and store in memory.

【0039】このように黒枠の修正画終ると、この黒枠
と出力画像12C、12fとの境界すなわち枠線12
C′、12f′が枠線検出手段74で求められ、メモリ
される(ステップ113E)。
When the correction image of the black frame is finished in this way, the boundary between the black frame and the output images 12C and 12f, that is, the frame line 12
C ′ and 12f ′ are obtained by the frame line detecting means 74 and stored (step 113E).

【0040】2回目のスキャンでは、ステップ108で
ヒストグラムから求めたしきい値DTHを用いて画像を2
値化し(ステップ120)、この2値化した画像を用い
て画像処理する(ステップ122)。さらにステップ1
12で求めステップ113で修正された黒枠範囲をマス
キングして消去する(ステップ124)。そしてこのマ
スキング処理された画像には、枠線加入手段71におい
て前記枠線12C′、12f′を加え(ステップ12
6)、この枠線を加えた画像をプリント出力する(ステ
ップ128)。
In the second scan, the threshold value D TH obtained from the histogram in step 108 is used to scan the image twice.
The image is binarized (step 120), and image processing is performed using the binarized image (step 122). Further step 1
The black frame range obtained in step 12 and corrected in step 113 is masked and erased (step 124). Then, the frame lines 12C 'and 12f' are added to the masked image by the frame line joining means 71 (step 12).
6) Then, the image to which this frame is added is printed out (step 128).

【0041】以上の実施例ではプリント出力範囲に複数
の画像が含まれている場合に、その一部の画像を選択し
て他の画像を黒枠として消去しているが、本発明はこの
ような画像の選択を行わずに全ての画像を出力するもの
であってもよい。またこの実施例では黒枠から枠線を求
めて、出力画像にこの枠線を加えているが、本発明は黒
枠の一部を残して枠線としてもよい。例えば黒枠の黒の
画素を画像側へ順次白の画素に書き換えて一定幅(例え
ば1mm幅)の黒枠だけを残し、これを枠線としてもよ
い。
In the above embodiment, when a plurality of images are included in the print output range, a part of the images is selected and the other images are erased as a black frame. All the images may be output without selecting the images. Further, in this embodiment, the frame line is obtained from the black frame and this frame line is added to the output image, but the present invention may leave a part of the black frame as the frame line. For example, black pixels of a black frame may be sequentially rewritten to white pixels on the image side to leave only a black frame having a constant width (for example, 1 mm width), and this may be used as a frame line.

【0042】[0042]

【発明の効果】請求項1の発明は以上のように、黒枠を
検出してマスキング処理する一方、この黒枠を用いて画
像の枠線を求め、出力画像にこの枠線を加えるものであ
るから、画像の枠線を加えてプリンタ等に出力でき、画
像の範囲が明確で見易くなる。また請求項2の発明によ
れば、この方法の実施に直接使用する装置が得られる。
As described above, according to the first aspect of the present invention, the black frame is detected and masked, while the black frame is used to obtain the frame line of the image and the frame line is added to the output image. , And can be output to a printer or the like by adding a frame line to the image, so that the image range is clear and easy to see. The invention according to claim 2 also provides a device which is used directly for carrying out this method.

【図面の簡単な説明】[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] Detailed operation flow chart of black frame correction

【図4】本発明によるプリント出力例を示す図FIG. 4 is a diagram showing a print output example according to the present invention.

【図5】同じく他のプリント出力例を示す図FIG. 5 is a diagram showing another example of print output.

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

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

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

10A、10B、30 マイクロフィルム 12、14 画像 12C、12f 選択画像 12C′、12f′ 枠線 16、16A、16B プリント出力領域 16C 抽出領域 18、18A、18B、20 プリント用紙 22、22A、22B 黒枠 52 画像読取り手段としてのラインセンサ 56 第1の2値化手段 66 黒枠検出手段 67 黒枠修正手段 68 画像処理手段 70 マスキング手段 71 枠線加入手段 72 出力手段 74 枠線検出手段 10A, 10B, 30 Micro film 12, 14 image 12C, 12f Selected image 12C ', 12f' Frame line 16, 16A, 16B Print output area 16C Extraction area 18, 18A, 18B, 20 Print paper 22, 22A, 22B Black frame 52 Line sensor as image reading means 56 First binarizing means 66 Black frame detecting means 67 Black frame correcting means 68 Image processing means 70 Masking means 71 Frame line joining means 72 Output means 74 Frame line detecting means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 マイクロフィルムの一定領域を読出し2
値化して得た画像信号が示す画素の配列から黒枠を検出
し、この黒枠を消去して出力する方法において、前記検
出した黒枠を用いて出力画像の枠線を求め、この枠線と
前記黒枠消去した画像とを重ねて出力することを特徴と
するマイクロフィルムリーダのマスキング方法。
1. A method for reading out a certain area of a microfilm 2
In the method of detecting a black frame from the array of pixels indicated by the image signal obtained by binarization and erasing the black frame and outputting, a frame line of the output image is obtained using the detected black frame, and the frame line and the black frame are obtained. A masking method for a microfilm reader, which is characterized in that an erased image is superposed and outputted.
【請求項2】 マイクロフィルムの一定領域を読出す画
像読取り手段と、この画像読取り手段の出力を2値化す
る2値化手段と、2値化した画像信号が示す画素の配列
から黒枠を検出する黒枠検出手段と、検出した黒枠を消
去するマスキング手段とを備えるマイクロフィルムリー
ダのマスキング装置において、前記黒枠検出手段で検出
した黒枠から出力画像の枠線を求める枠線演算手段と、
前記マスキング手段で黒枠を消去した出力画像に前記枠
線を加える枠線加入手段とを備えることを特徴とするマ
イクロフィルムリーダのマスキング装置
2. A black frame is detected from an image reading means for reading a certain area of a microfilm, a binarizing means for binarizing the output of the image reading means, and an array of pixels indicated by the binarized image signal. In the masking device of the microfilm reader, which comprises a black frame detecting means for erasing and a masking means for erasing the detected black frame, a frame line calculating means for obtaining a frame line of an output image from the black frame detected by the black frame detecting means,
A masking device for a microfilm reader, comprising frame line joining means for adding the frame line to an output image from which the black frame has been erased by the masking means.
JP5124766A 1993-04-30 1993-04-30 Masking method and device for microfilm reader Pending JPH06315080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5124766A JPH06315080A (en) 1993-04-30 1993-04-30 Masking method and device for microfilm reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5124766A JPH06315080A (en) 1993-04-30 1993-04-30 Masking method and device for microfilm reader

Publications (1)

Publication Number Publication Date
JPH06315080A true JPH06315080A (en) 1994-11-08

Family

ID=14893592

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5124766A Pending JPH06315080A (en) 1993-04-30 1993-04-30 Masking method and device for microfilm reader

Country Status (1)

Country Link
JP (1) JPH06315080A (en)

Similar Documents

Publication Publication Date Title
US5416605A (en) Print control method and apparatus for microfilm reader
US7924477B1 (en) Automated detection of creases and/or tears in scanned prints
JP2768786B2 (en) Image reading device
CN100377564C (en) image processing equipment
JP3249231B2 (en) Method and apparatus for masking a microfilm reader
JPH06315080A (en) Masking method and device for microfilm reader
JPH06311347A (en) Print control method and device for micro film reader
JPH06233112A (en) Black frame detecting method for microfilm reader
JP3262296B2 (en) Print control method and apparatus for microfilm reader
JPH06317846A (en) Method and device for masking microfilm reader
JP3536165B2 (en) Image processing device and image output device
JP3286646B2 (en) Print control method and apparatus for microfilm reader
JPH06291970A (en) Print control method and device for microfilm reader
JPH06291972A (en) Print control method and device for microfilm reader
JPH06291975A (en) Print control method and device for microfilm reader
JPH0743837A (en) Method and device for masking microfilm reader
JP3264547B2 (en) Micro film reader and image reading method thereof
JPH06268851A (en) Method and device for picture processing for microfilm reader
JPH06233111A (en) Method and device for detecting black frame for microfilm reader
JP3338107B2 (en) Image processing device for micro film reader
JPH06233113A (en) Method and device for detecting black frame for microfilm reader
JPH06253125A (en) Method and device for detecting black frame of micro film reader
JP3332170B2 (en) Method and apparatus for detecting black frame of micro film reader
JPH06291969A (en) Print control method and device for microfilm reader
JPH043656A (en) Picture processor