JP2576878B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2576878B2
JP2576878B2 JP63049770A JP4977088A JP2576878B2 JP 2576878 B2 JP2576878 B2 JP 2576878B2 JP 63049770 A JP63049770 A JP 63049770A JP 4977088 A JP4977088 A JP 4977088A JP 2576878 B2 JP2576878 B2 JP 2576878B2
Authority
JP
Japan
Prior art keywords
image
coordinates
black
black frame
image sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP63049770A
Other languages
Japanese (ja)
Other versions
JPH01225282A (en
Inventor
哲弥 高森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP63049770A priority Critical patent/JP2576878B2/en
Publication of JPH01225282A publication Critical patent/JPH01225282A/en
Application granted granted Critical
Publication of JP2576878B2 publication Critical patent/JP2576878B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Facsimiles In General (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、マイクロフィルムのネガ画像を拡大投影し
た投影画像をイメージセンサで読取り、プリント出力し
た時に原稿の周囲に表れる黒枠を消去して出力する画像
処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial application field) The present invention reads out a projection image obtained by enlarging and projecting a negative image of a microfilm with an image sensor, and erases and outputs a black frame appearing around a document when printed out. And an image processing apparatus.

(発明の技術的背景) マイクロフィルムリーダなどにおいて、原稿(画像)
をイメージセンサで読取るものがある。この場合読取る
べき原稿の周囲には背景が含まれている。例えばネガの
マイクロフィルムでは原稿周囲に黒枠の背景が生じる。
このためイメージセンサで原稿を読取った場合にはこの
黒枠部分がそのまま読取られ、この画像信号により画像
をプリントしたりCRTに出力する際には黒枠がそのまま
表れるという不都合があった。またPPC方式のプリンタ
を用いる場合にはトナーの使用量が増えるという問題も
生じる。
(Technical Background of the Invention) Originals (images)
Is read by an image sensor. In this case, a background is included around the document to be read. For example, with a negative microfilm, a black frame background is generated around the original.
Therefore, when a document is read by an image sensor, the black frame portion is read as it is, and when an image is printed or output to a CRT by this image signal, the black frame appears as it is. Further, when a PPC printer is used, there is a problem that the amount of toner used increases.

そこでこの黒枠を消す方法が種種提案されている。例
えば特開昭62−144463には、主走査ライン毎に原稿位置
データをメモリに記憶し、入力されたシリアル画像信号
中から原稿位置内の信号のみを抽出するようにした画像
信号処理装置が提案されている。
Therefore, various methods have been proposed for eliminating the black frame. For example, Japanese Patent Application Laid-Open No. Sho 62-144463 proposes an image signal processing device in which document position data is stored in a memory for each main scanning line, and only signals within the document position are extracted from an input serial image signal. Have been.

しかしこの装置によれば原稿の縁の座標を各主走査ラ
イン毎にメモリしておかねばならず、メモリ容量が増大
し、装置のコストが高くなるという問題がある。
However, according to this apparatus, the coordinates of the edge of the document must be stored in memory for each main scanning line, and there is a problem that the memory capacity increases and the cost of the apparatus increases.

またマイクロフィルムでは画像を拡大して投影し、こ
の拡大投影像をイメージセンサで読取ることになる。こ
の場合フィルムにゴミや傷が付くことが避けられない
が、このゴミや傷も拡大投影されるためイメージセンサ
で読取る場合にこれらを黒枠と誤って判断し易い。この
ため黒枠を正確に判定しきれいに消すのが困難であっ
た。
On a microfilm, an image is enlarged and projected, and this enlarged projected image is read by an image sensor. In this case, it is inevitable that dust and scratches are formed on the film, but these dusts and scratches are also enlarged and projected, so that when they are read by an image sensor, they are easily erroneously determined to be a black frame. For this reason, it has been difficult to accurately determine the black frame and erase it cleanly.

(発明の目的) 本発明はこのような事情に鑑みなされたものであり、
ネガのマイクロフィルムの拡大投影画像をイメージセン
サで読取り黒枠を消去する場合に、メモリ容量を少なく
することができ、フィルムに付いたゴミや傷による誤動
作が起こりにくく黒枠を正確に除去することができる画
像処理装置を提供することを目的とする。
(Object of the Invention) The present invention has been made in view of such circumstances,
When an enlarged projection image of a negative microfilm is read by an image sensor and a black frame is erased, the memory capacity can be reduced, and malfunction due to dust or scratches on the film hardly occurs and the black frame can be accurately removed. It is an object to provide an image processing device.

(発明の構成) 本発明によればこの目的は、マイクロフィルムに記憶
されたネガ画像を拡大投影して得られる投影画像をイメ
ージセンサで走査して読取り、この投影画像に含まれた
黒枠を検出し消去して出力する画像処理装置において、
前記イメージセンサによる一度目の走査で得た画像信号
から前記イメージセンサの主走査方向に連続する一定数
の画素が全て白または黒を検出したことからこの連続し
た画素の先頭画素の座標より所定距離内側の座標を主走
査方向の黒枠の縁とする動作を副走査方向に繰り返す白
黒判別手段と、この白黒判別手段により得た副走査方向
に連続する黒枠の縁の位置変化から黒枠の隅の座標を求
める隅検出手段と、求めた隅の座標を通る直線により前
記黒枠を含むトリミング範囲を求めるトリミング範囲演
算手段と、求めたトリミング範囲を記憶するメモリ手段
と、前記イメージセンサによる二度目以降の走査により
読取った画像のうち前記トリミング範囲内の画像を黒枠
として消去するトリミング手段とを備えることを特徴と
する画像処理装置、により達成される。
(Constitution of the Invention) According to the present invention, an object of the present invention is to scan and read a projection image obtained by enlarging and projecting a negative image stored in a microfilm with an image sensor and detect a black frame included in the projection image. In an image processing device that outputs after
From the image signal obtained in the first scan by the image sensor, a predetermined number of pixels continuous in the main scanning direction of the image sensor have all detected white or black, so a predetermined distance from the coordinates of the first pixel of the continuous pixels Black-and-white discriminating means for repeating the operation of setting the inner coordinates to the edge of the black frame in the main scanning direction in the sub-scanning direction; , A trimming range calculating means for calculating a trimming range including the black frame by a straight line passing through the coordinates of the determined corner, a memory means for storing the obtained trimming range, and second and subsequent scanning by the image sensor. Image processing apparatus, comprising: a trimming unit for erasing an image within the trimming range from a read image by using a black frame. It is achieved by.

すなわち原稿が通常四角であることに着目し、主走査
ライン上における黒枠の縁の座標が副走査方向にどのよ
うに変化するかを追跡し、この縁の座標変化から原稿の
隅を求め、これらの隅を通る直線の方程式により黒枠の
縁を決めこれらの直線で囲まれる範囲を原稿範囲とし、
この周囲の黒枠範囲をトリミング範囲として消去するも
のである。
That is, focusing on the fact that the document is usually a square, tracking how the coordinates of the edge of the black frame on the main scanning line changes in the sub-scanning direction, finding the corner of the document from the change in the coordinates of this edge, The edge of the black frame is determined by the equation of a straight line passing through the corner of
The surrounding black frame range is deleted as a trimming range.

(実施例) 第1図は本発明の機能ブロック図、第2図はこれを適
用したマイクロフィルムリーダの全体構成図、第3図は
スクリーン上の主・副走査方向説明図、第4図は白黒判
別手段の原理説明図、第5図は白判別動作の流れ図、第
6図は黒判別動作の流れ図、第7図は原稿の四隅の座標
を求める回路図、第8図はその動作流れ図、第9A図はト
リミング範囲演算動作の流れ図、第9B図はその座標系説
明図である。
(Embodiment) FIG. 1 is a functional block diagram of the present invention, FIG. 2 is an overall configuration diagram of a microfilm reader to which the present invention is applied, FIG. 3 is an explanatory diagram of main / sub scanning directions on a screen, and FIG. FIG. 5 is a flow chart of a white determination operation, FIG. 6 is a flowchart of a black determination operation, FIG. 7 is a circuit diagram for obtaining coordinates of four corners of a document, FIG. FIG. 9A is a flowchart of the trimming range calculation operation, and FIG. 9B is an explanatory diagram of the coordinate system.

まず第2図に基づき全体構成を説明する。この図にお
いて符号10は光源であり、この光源10の光はコンデンサ
レンズ12、防熱ガラス14、コールドミラー16、マイクロ
フィルム18、投影レンズ20、画像反転用プリズム22、ミ
ラー24、26を介して透過型スクリーン28に導かれ、この
スクリーン28にマイクロフィルム18の拡大画像を結像す
る。
First, the overall configuration will be described with reference to FIG. In this figure, reference numeral 10 denotes a light source, and light from the light source 10 passes through a condenser lens 12, a heat-insulating glass 14, a cold mirror 16, a microfilm 18, a projection lens 20, an image reversing prism 22, mirrors 24 and 26. The screen 28 is guided to a mold screen 28 and forms an enlarged image of the microfilm 18 on the screen 28.

スクリーン28の背面には、イメージセンサの一例とし
てのCCDラインセンサ30が左右に移動可能に配設されて
いる。すなわちこのラインセンサ30はスクリーン28を縦
断する方向に長く配置され、ラインセンサ30はその長さ
方向(主走査方向)の画像を読出して画像信号αを順次
時系列信号として出力することにより主走査を行い、ま
たこのラインセンサ28をモータ31によって左右方向に移
動させることにより副操作を行う。このラインセンサ30
の画像信号αは入力インターフェース32を介してCPU34
に入力され、ここで種種の処理が行われ、画像信号が二
値化される。この二値化された画像信号βは出力インタ
ーフェース36を介してプリンタ38に出力され、ここで画
像がプリントアウトされ、ハードコピーが得られる。ま
たCPU34が出力する二値化された信号βは光ディスク装
置40等の外部記憶装置に記憶できる。さらにCRT(陰極
線管、ブラウン管)などで画像を表示してもよい。従っ
て必要に応じて光ディスク装置40から必要な原稿の画像
を読出してプリンタ38によりプリントアウトしたりCRT
に表示してもよい。なお42はCPU34の動作プログラム等
を記憶するROM、44はメモリ手段としてのRAMである。
On the back of the screen 28, a CCD line sensor 30 as an example of an image sensor is provided so as to be movable left and right. That is, the line sensor 30 is arranged long in the direction that passes through the screen 28, and the line sensor 30 reads out an image in the length direction (main scanning direction) and sequentially outputs the image signal α as a time-series signal to perform main scanning. The sub-operation is performed by moving the line sensor 28 in the left-right direction by the motor 31. This line sensor 30
Image signal α is input to the CPU 34 via the input interface 32.
, Where various processes are performed, and the image signal is binarized. The binarized image signal β is output to the printer 38 via the output interface 36, where the image is printed out and a hard copy is obtained. Further, the binarized signal β output from the CPU 34 can be stored in an external storage device such as the optical disk device 40. Further, an image may be displayed on a CRT (cathode ray tube, cathode ray tube) or the like. Therefore, if necessary, an image of a required document is read from the optical disk device 40 and printed out by the printer 38 or a CRT.
May be displayed. 42 is a ROM for storing an operation program of the CPU 34 and the like, and 44 is a RAM as a memory means.

CPU34はまずイメージセンサ30による一回目の走査に
よって黒枠の四隅の座標を求める。このためCPUは一主
走査ライン毎に黒枠の縁の座標を求める。この縁の検出
はROM42に予め動作プログラムとして記憶されたCPU34の
白黒判別手段Aにより行われる(第1図)。
First, the CPU 34 obtains the coordinates of the four corners of the black frame by the first scan by the image sensor 30. Therefore, the CPU obtains the coordinates of the edge of the black frame for each main scanning line. The detection of the edge is performed by the monochrome determining means A of the CPU 34 which is stored in advance in the ROM 42 as an operation program (FIG. 1).

白黒判別手段Aは主走査ライン上で画像信号αが白か
ら黒にまたは黒から白に変化する座標xに基づき決定さ
れる。すなわち第3図のように主走査方向にχ軸、副走
査方向にy軸をとるものとして、ある主走査ライン上の
座標χの信号α(χ)が一定距離l以上白または黒を示
した場合には縁であると判断する。ここに距離lは、ラ
インセンサ30上でNo個の画素に対応するものとする。
The black-and-white discriminating means A is determined based on the coordinates x at which the image signal α changes from white to black or from black to white on the main scanning line. That is, as shown in FIG. 3, assuming that the 走 査 -axis is in the main scanning direction and the y-axis is in the sub-scanning direction, the signal α (χ) of the coordinate 上 の on a certain main scanning line indicates white or black over a certain distance l or more. In such a case, it is determined that it is an edge. Here the distance l is assumed to correspond to N o pixels on the line sensor 30.

第5図は主走査中に信号αが黒から白に変わる座標X
を求める動作流れ図で、第4図のXa点を求めるものであ
る。まずスクリーン28の下縁のχ=0の位置から上方へ
主走査を開始し(ステップ100A)、次の位置χ=1の画
素による信号α(1)が白でなければ(ステップ102A,1
04A)、N=Noとする(ステップ106A)。α(χ)が白
ならNから1を減算し(ステップ108A)、白がNo画素続
けば(ステップ110A)、この画素のNo画素前から原稿が
有ると判断し、χ−No/2を縁の座標Xとして採用する
(ステップ112A)。この一定値Noはスクリーン上での距
離lに等しいものとする。
FIG. 5 shows a coordinate X at which the signal α changes from black to white during the main scanning.
In operation flowchart for obtaining the, and requests X a point of Figure 4. First, main scanning is started upward from the position of χ = 0 at the lower edge of the screen 28 (step 100A), and the signal α (1) by the pixel at the next position χ = 1 is not white (steps 102A, 1A).
04A), and N = N o (step 106A). alpha (chi) is minus one white if N (step 108A), if white continued N o pixels (step 110A), determines that the original document exists before N o pixels of the pixel, χ-N o / 2 is adopted as the edge coordinate X (step 112A). The predetermined value N o is assumed to be equal to the distance l on the screen.

第6図は信号αが白から黒に変わる座標Xを求める流
れ図で、第4図のXb点を求めるものである。すなわち主
走査ラインでχが次第に増加し(ステップ120A)、信号
α(χ)が黒でなければ(ステップ122A)N=Noに戻し
(ステップ124A)、黒であればN=1を減算し(ステッ
プ126A)、黒が一定距離lに対応する回数No続けば(ス
テップ128A)そのNo画素前から原稿は無いと判断し、x
−(3/2)Noを白から黒になる縁の座標Xとして採用す
る。
FIG. 6 is a flow chart for finding a coordinate X at which the signal α changes from white to black, and finds the point Xb in FIG. That chi increases gradually in the main scanning line (step 120A), the signal alpha (chi) is not a black back to (step 122A) N = N o (step 124A), the N = 1 is subtracted if black (step 126A), if continued number N o of black corresponding to the predetermined distance l (step 128A) is determined before the N o pixels document and no, x
- (3/2) a N o adopted as the coordinate X of the edge made from white to black.

以上のようにしても各主走査ライン毎に黒枠の縁の座
標を求めながらラインサンサ30をy方向に移動させて副
走査を行う。CPU34はこの副走査中における縁の座標X
は変化から黒枠の四隅を検出する。この動作は第1図に
隅座標検出手段Bで示されている。この手段Bは例えば
第7図に示すように構成できる。この手段Bは、CPU34
の動作プログラムとしてROM42に記憶させておくことが
できるが、この回路図に従ってディスクリートな部品で
構成してもよいのは勿論である。
Also in the above manner, the sub-scan is performed by moving the line sensor 30 in the y direction while obtaining the coordinates of the edge of the black frame for each main scanning line. The CPU 34 determines the coordinate X of the edge during the sub-scan.
Detects the four corners of the black frame from the change. This operation is shown by the corner coordinate detecting means B in FIG. This means B can be constituted, for example, as shown in FIG. This means B is a CPU 34
Can be stored in the ROM 42 as an operation program, but it goes without saying that it may be constituted by discrete components according to this circuit diagram.

この図において50は主走査中の座標Xを求めるための
主カウンタ、52は副走査中の座標Yを求めるための副カ
ウンタである。主カウンタ50は、ラインセンサ30の各画
素のデータを順次読出すためのクロックパルスCKを積算
し、その積算値Xはバス54によってレジスタR(X1),F
(X2),F(X3),R(X4)に転送される。この主カウンタ
50は一主走査ラインの走査が終了する度にクリヤ(零復
帰)される。すなわち第3図にLSYCで示すように、主走
査時にスクリーン28内に対応する時間だけHレベルとな
るLSYC信号をインバータ56で反転した信号により、主カ
ウンタ50はクリヤされる。副カウンタ52はLSYC信号を積
算し、その積算値Yはバス58によってレジスタR(Y
1),R(Y2),R(Y3),R(Y4)に転送される。この副カ
ウンタ52は、スクリーンの全範囲の走査が終了したこと
を示すREADY/BUSY(単にR/Bと略す)信号によりクリヤ
される。
In this figure, 50 is a main counter for obtaining a coordinate X during main scanning, and 52 is a sub-counter for obtaining a coordinate Y during sub-scanning. The main counter 50 accumulates a clock pulse CK for sequentially reading the data of each pixel of the line sensor 30, and the accumulated value X is stored in the registers R (X1), F by the bus 54.
(X2), F (X3), and R (X4). This main counter
50 is cleared (returned to zero) each time the scanning of one main scanning line is completed. That is, as indicated by LSYC in FIG. 3, the main counter 50 is cleared by a signal obtained by inverting the LSYC signal which becomes H level in the screen 28 during the main scanning for a corresponding time in the inverter 28 by the inverter 56. The sub-counter 52 accumulates the LSYC signal, and the accumulated value Y is stored in the register R (Y
1), transferred to R (Y2), R (Y3), R (Y4). The sub-counter 52 is cleared by a READY / BUSY (hereinafter simply abbreviated as R / B) signal indicating that scanning of the entire area of the screen has been completed.

60は減算カウンタ、62は設定数Noの設定器であり、こ
れらにより前記白黒判別手段Aは形成される。すなわち
カウンタ60は、画像信号αの白が続く度に設定数Noから
1づつ減算し、白黒変化する度にカウンタ60をNoに復帰
させ、カウント値Nが0になると原稿の主走査方向の始
めの縁とする。またこのカウンタ60は、その後は画像信
号αを反転させたにより同様に減算し、零になると原
稿の主走査方向の終りの縁とする。この結果カウンタ60
の出力信号であるW/B(白/黒)信号は、第3図に示す
ように主走査ライン上で原稿が位置する期間だけHレベ
ルとなる。
Numeral 60 is a subtraction counter, and numeral 62 is a setter with a set number No. The black / white determining means A is formed by these. That counter 60 sets the number N o 1 at a time is subtracted from the time the white image signal α is followed, the counter 60 each time the black and white changes are restored to N o, the main scanning direction of the document when the count value N becomes 0 And the beginning edge of After that, the counter 60 similarly inverts the image signal α and also performs the same subtraction. When the counter 60 becomes zero, the counter 60 determines the end edge of the document in the main scanning direction. This results in counter 60
The W / B (white / black) signal, which is the output signal of, is at the H level only during the period when the document is located on the main scanning line as shown in FIG.

このW/B信号は副走査が終了するまでの間で最初にH
レベルになる座標がフリップフロップFFで検出される。
この座標(X1,Y1)は第9B図に示すようにY最小の隅で
あり、レジスタR(X1),R(Y1)にメモリされる。また
このW/B信号の立上りが立上り検出回路64により検出さ
れ、立下りが立下り検出回路66により検出される。それ
ぞれの出力である立上り信号upと立下り信号dwnとに同
期してその時の座標X2,X3がレジスタF(X2)、F(X
3)にメモリされる。この座標X2,X3は主走査ライン毎
に書換えられる。座標X2は、直前の主走査ラインにおけ
る座標X2がメモリされたレジスタR(X2)の内容とコン
パレータCOM1において比較され、P<Qの時すなわちX2
が主走査の度に減少してゆく時は、レジスタR(X2),R
(Y2)の内容を書き換え続ける。この結果レジスタR
(X2),R(Y2)には第9B図のχ最小の隅の座標(X2
Y2)がメモリされる。
This W / B signal is initially H until the sub-scan is completed.
The coordinates that become the level are detected by the flip-flop FF.
The coordinates (X 1 , Y 1 ) are the minimum corner of Y as shown in FIG. 9B, and are stored in the registers R (X1) and R (Y1). Further, the rise of the W / B signal is detected by the rise detection circuit 64, and the fall is detected by the fall detection circuit 66. Coordinates X 2 and X 3 at that time are stored in registers F (X2) and F (X) in synchronization with the rising signal up and falling signal dwn, which are the respective outputs.
3) is stored in the memory. These coordinates X 2 and X 3 are rewritten for each main scanning line. Coordinate X 2 is coordinate X 2 at the immediately preceding main scan lines are compared in the context of the comparator COM1 of the memory by the register R (X2), P <When Q i.e. X 2
When R decreases in each main scan, the registers R (X2) and R
Continue rewriting the contents of (Y2). This result register R
(X2) and R (Y2) are the coordinates (X 2 ,
Y 2 ) is stored.

W/B位置の立下りに同期してメモリされたレジスタF
(X3)の内容は、直前の主走査ラインにおける座標X3
メモリされたレジスタR(X3)の内容とコンパレータCO
M2において比較され、P>Qの間はレジスタR(X3),R
(Y3)の内容を書き換え続ける。この結果レジスタR
(X3),R(Y3)には第9B図のχ最大の隅の座標(X3
Y3)がメモリされる。
Register F stored in synchronization with falling of W / B position
The contents of (X3), the content and the comparator CO of register coordinates X 3 in the immediately preceding main scan line is the memory R (X3)
Compared at M2, while P> Q, registers R (X3), R
Continue rewriting the contents of (Y3). This result register R
(X3) and R (Y3) are the coordinates (X 3 ,
Y 3 ) is stored.

さらにW/B信号がHレベルになる度にその座標X,Yはレ
ジスタR(X4),R(Y4)を書き換え、W/B信号がHレベ
ルにならなくなれば最後にHレベルになった座標X4,Y4
がそのままメモリされる。
Further, each time the W / B signal goes high, the coordinates X and Y are rewritten in the registers R (X4) and R (Y4). If the W / B signal does not go high again, the last coordinate goes high. X 4 , Y 4
Is stored as it is.

このようにして四隅の座標を求める動作は第8図に示
す通りである。このように求めた四隅の座標はRAM44内
の一部であるメモリ手段Cに記憶される。
The operation for obtaining the coordinates of the four corners in this manner is as shown in FIG. The coordinates of the four corners thus obtained are stored in the memory means C which is a part of the RAM 44.

CPU34はこの求めた隅の座標を用いてトリミング範囲
を演算により求める(第1図、トリミング範囲演算手段
D)。この手段Dは第9A図に示す動作を行う。まず前記
のように求めた四隅の座標は、画像信号αがNo回続けて
白あるいは黒となったX方向の座標を示す。このためCP
U34は、主走査ライン上でXの0側の縁の位置X1,X2
らはNo/2(=l/2)だけ減算して、 X1=X1−l/2 X2=X2−l/2 を新しい座標とする。全く同様にXの増大側の縁の位置
X3,X4からは (3/2)No{=(3/2)l} だけ減算して、 X3=X3−(3/2)l X4=X4−(3/2)l を新しい座標とする(第9A図,ステップ300)。このよ
うに決めた新しい四隅の座標を用いて2つの隅を通る直
線の傾きm1=m2を第9B図に示すように m1=b/a m2=d/c と定義し、また X01=X1 X02=X1 と定義する(ステップ302)。次にdY=0と初期化した
後(ステップ304)、 Y=Y1+dY と置き換える(ステップ306)。Y>Y2なら m1=f/e X01=X2 と置き換え(ステップ310)、Y>Y3なら(ステップ31
2) m2=h/g X02=X3 と置き換え(ステップ314)、 M1=dM・m1+X01 M2=dY・m2+X02 とする(ステップ316)。そしてdYに1を加算し(ステ
ップ318)、Y1+dYがY4に達するまで繰り返す(ステッ
プ320)。
The CPU 34 calculates a trimming range by using the obtained coordinates of the corner (FIG. 1, trimming range calculating means D). This means D performs the operation shown in FIG. 9A. The four corners of the coordinates determined as First, the X-direction of coordinate image signal α becomes white or black continuing N o times. Because of this CP
U34, the position of the 0-side edge of the X on the main scanning line X 1, the X 2 is N o / 2 (= l / 2) only subtracts, X 1 = X 1 -l / 2 X 2 = Let X 2 −l / 2 be the new coordinates. Exactly the same position of the edge on the increasing side of X
From X 3, X 4 and subtracted (3/2) N o {= ( 3/2) l}, X 3 = X 3 - (3/2) l X 4 = X 4 - (3/2 ) Let l be the new coordinates (FIG. 9A, step 300). Using the coordinates of the four corners determined in this way, the slope m 1 = m 2 of the straight line passing through the two corners is defined as m 1 = b / am 2 = d / c as shown in FIG. 9B, and X 01 = X 1 X 02 = X 1 is defined (step 302). Then dY = 0 and after initializing (step 304), replaced with Y = Y 1 + dY (step 306). Y> Y 2 if m 1 = f / e X 01 = X 2 and replaced (step 310), if Y> Y 3 (Step 31
2) Replace with m 2 = h / g X 02 = X 3 (step 314), and set M 1 = dM · m 1 + X 01 M 2 = dY · m 2 + X 02 (step 316). Then 1 is added to dY (step 318) is repeated until Y 1 + dY reaches Y 4 (step 320).

このようにして第9B図の原稿の4辺の直線の方程式M1
(Y),M2(Y)を決定しこれらはRAM44からなるメモ
リ手段Eに記憶される。
Thus, the equation M 1 of the straight line on the four sides of the original in FIG. 9B is obtained.
(Y) and M 2 (Y) are determined, and these are stored in the memory means E comprising the RAM 44.

CPU34は最初の走査によって求めた四隅の座標およびM
1(Y),M2(Y)を用いて次のようにトリミング範囲
を決定する。
The CPU 34 calculates the coordinates of the four corners obtained by the first scan and M
The trimming range is determined as follows using 1 (Y) and M 2 (Y).

Y<Y1 X(Y)<M1(Y) X(Y)>M2(Y) Y>Y4 以後の走査ではこの範囲内の画像信号αを抽出してこれ
を所定の信号レベル、例えば原稿の下地部分と略同じ明
度の信号あるいは白に変更する(第1図,トリミング手
段F)。このように修正された画像信号αは、CPU34内
で二値化処理されてプリンタ38等のプリント手段Gに出
力されプリントされる。
Y <Y1 X (Y) <M 1 (Y) X (Y)> M 2 (Y) Y> Y4 In the subsequent scanning, the image signal α within this range is extracted and is extracted at a predetermined signal level, for example, a document. (See FIG. 1, trimming means F). The image signal α thus corrected is subjected to binarization processing in the CPU 34, output to a printing means G such as a printer 38, and printed.

またイメージセンサとしてはラインセンサに代えて二
次元のエリヤセンサを使用することも可能であり、この
場合にはエリヤセンサは移動させずに固定したものであ
ってもよい。
As the image sensor, a two-dimensional area sensor can be used instead of the line sensor. In this case, the area sensor may be fixed without moving.

また白黒判別手段Aは、白または黒の画像信号αがNo
回続けて出力されたことから原稿の縁があることを判断
し、この連続して検出した画素の先頭の座標から一定距
離画像の内側に入った座標を縁の座標とする。このため
実際の縁よりも内側を縁としてトリミングすることにな
り、黒枠をきれいに除去することができる。
The black-and-white discriminating means A determines that the white or black image signal α is No.
It is determined that there is an edge of the document based on the continuous output, and the coordinates within the fixed distance image from the coordinates of the head of the continuously detected pixels are determined as the coordinates of the edge. For this reason, trimming is performed with the inner side of the actual edge as an edge, and the black frame can be removed cleanly.

(発明の効果) 本発明は以上のように、一度目の走査により画像(原
稿)の隅の座標を求め、これら各隅を通る直線により黒
枠の縁の直線方程式を決定し、これらの直線で囲まれる
範囲の外側を黒枠で含むトリミング範囲として記憶し、
二度目以降の走査ではこのトリミング範囲内の信号すな
わち黒枠範囲の信号を抽出してこれを所定の信号レベル
例えば原稿下地部分の明度や白に変更するものであるか
ら、黒枠の縁の座標を全ての主走査ライン毎にメモリす
る場合に比べてメモリ容量が大幅に小さくて済むことに
なる。このため装置の低コスト化が可能となる。
(Effect of the Invention) As described above, according to the present invention, the coordinates of the corners of the image (original) are obtained by the first scan, the straight line equation passing through each of these corners is used to determine the straight line equation of the edge of the black frame. The outside of the enclosed range is stored as a trimming range including a black frame,
In the second and subsequent scans, a signal within the trimming range, that is, a signal within the black frame range is extracted and is changed to a predetermined signal level, for example, brightness or white of the background portion of the original document. The memory capacity can be significantly reduced as compared with the case where the memory is stored for each main scanning line. Therefore, the cost of the apparatus can be reduced.

ここに走査方向に連続する一定数の画素が全て白また
は黒となったことから、この連続した画素の先頭画素の
座標よりも所定距離内側に入った座標を黒枠の縁と決め
るから、マイクロフィルムに特有なゴミや傷による誤動
作を防止できると共に、黒枠の縁を残すことなくきれい
に除去することができる。
Here, since a fixed number of pixels continuous in the scanning direction are all white or black, the coordinates within a predetermined distance from the coordinates of the leading pixel of the continuous pixels are determined as the edge of the black frame, so that the microfilm Malfunctions due to dust and scratches peculiar to the black box can be prevented, and the black frame can be removed without leaving an edge of the black frame.

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

第1図は本発明の機能ブロック図、第2図はこれを適用
したマイクロフィルムリーダの全体構成図、第3図はス
クリーン上の主副走査方向説明図、第4図は白黒判別手
段の原理説明図、第5図は白判別動作の流れ図、第6図
は黒判別動作の流れ図、第7図は原稿の四隅の座標を求
める回路図、第8図はその動作流れ図、第9A図はトリミ
ング範囲演算動作の流れ図、第9B図はその座標系説明図
である。 A……白黒判別手段、B……隅座標検出手段、D……ト
リミング範囲演算手段、E……メモリ手段、F……トリ
ミング手段、α……画像信号、30……ラインセンサ。
FIG. 1 is a functional block diagram of the present invention, FIG. 2 is an overall configuration diagram of a microfilm reader to which the present invention is applied, FIG. 3 is an explanatory diagram of main and sub scanning directions on a screen, and FIG. FIG. 5 is a flowchart of a white determination operation, FIG. 6 is a flowchart of a black determination operation, FIG. 7 is a circuit diagram for obtaining coordinates of four corners of a document, FIG. 8 is an operation flowchart thereof, and FIG. FIG. 9B is a flowchart of the range calculation operation, and FIG. 9B is an explanatory diagram of the coordinate system. A: black-and-white discriminating means, B: corner coordinate detecting means, D: trimming range calculating means, E: memory means, F: trimming means, α: image signal, 30: line sensor.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】マイクロフィルムに記録されたネガ画像を
拡大投影して得られる投影画像をイメージセンサで走査
して読取り、この投影画像に含まれた黒枠を検出し消去
して出力する画像処理装置において、 前記イメージセンサによる一度目の走査で得た画像信号
から前記イメージセンサの主走査方向に連続する一定数
の画素が全て白または黒を検出したことからこの連続し
た画素の先頭画素の座標より所定距離内側の座標を主走
査方向の黒枠の縁とする動作を副走査方向に繰り返す白
黒判別手段と、この白黒判別手段により得た副走査方向
に連続する黒枠の縁の位置変化から黒枠の隅の座標を求
める隅検出手段と、求めた隅の座標を通る直線により前
記黒枠を含むトリミング範囲を求めるトリミング範囲演
算手段と、求めたトリミング範囲を記憶するメモリ手段
と、前記イメージセンサによる二度目以降の走査により
読取った画像のうち前記トリミング範囲内の画像を黒枠
として消去するトリミング手段とを備えることを特徴と
する画像処理装置。
An image processing apparatus for scanning and reading a projection image obtained by enlarging and projecting a negative image recorded on a microfilm with an image sensor, detecting, erasing, and outputting a black frame included in the projection image. In the image sensor obtained in the first scan by the image sensor, since a certain number of pixels consecutive in the main scanning direction of the image sensor have all detected white or black, the coordinates of the leading pixel of this continuous pixel A black-and-white discriminating unit that repeats an operation in which coordinates inside a predetermined distance are set as an edge of a black frame in the main scanning direction in the sub-scanning direction; Corner detecting means for obtaining the coordinates of the above, a trimming range calculating means for obtaining a trimming range including the black frame by a straight line passing through the coordinates of the obtained corner, An image processing apparatus comprising: memory means for storing; and trimming means for erasing, as a black frame, an image within the trimming range among images read by second and subsequent scans by the image sensor.
JP63049770A 1988-03-04 1988-03-04 Image processing device Expired - Fee Related JP2576878B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63049770A JP2576878B2 (en) 1988-03-04 1988-03-04 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63049770A JP2576878B2 (en) 1988-03-04 1988-03-04 Image processing device

Publications (2)

Publication Number Publication Date
JPH01225282A JPH01225282A (en) 1989-09-08
JP2576878B2 true JP2576878B2 (en) 1997-01-29

Family

ID=12840405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63049770A Expired - Fee Related JP2576878B2 (en) 1988-03-04 1988-03-04 Image processing device

Country Status (1)

Country Link
JP (1) JP2576878B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60213168A (en) * 1984-04-09 1985-10-25 Ricoh Co Ltd Input method of copying specification area
JPS6149554A (en) * 1984-08-17 1986-03-11 Mitsubishi Electric Corp Image segmenting circuit
JPS622778A (en) * 1985-06-28 1987-01-08 Ricoh Co Ltd Picture processing method in digital copying machine
JPS6282872A (en) * 1985-10-08 1987-04-16 Canon Inc Original reader
JPS62166649A (en) * 1986-01-17 1987-07-23 Canon Inc Original reader
JPS62239662A (en) * 1986-04-09 1987-10-20 Canon Inc Original document processor
JPS6323465A (en) * 1987-02-26 1988-01-30 Canon Inc Original processor

Also Published As

Publication number Publication date
JPH01225282A (en) 1989-09-08

Similar Documents

Publication Publication Date Title
JPH05252379A (en) Image processor
JP2576878B2 (en) Image processing device
JP2912371B2 (en) Image processing device
JP2005258718A (en) Image processing device, image projection device, image processing method, and program
JP4225224B2 (en) Image processing apparatus, captured image projection apparatus, image processing method, and program
JPH0432358A (en) Picture reader
JP3384208B2 (en) Image reading device
JP2885969B2 (en) Micro film reader
JPH043655A (en) Picture processor
JP3332170B2 (en) Method and apparatus for detecting black frame of micro film reader
JPH043656A (en) Picture processor
JPH05268419A (en) Picture reader
JP2608264B2 (en) Image reading device
JPH043654A (en) Picture processor
JPH10229486A (en) Image reader
JPH06311347A (en) Print control method and device for micro film reader
JPH09261448A (en) Image processor
JP3264547B2 (en) Micro film reader and image reading method thereof
JP4305229B2 (en) Image processing apparatus, image projection apparatus, image processing method, and program
JP3249231B2 (en) Method and apparatus for masking a microfilm reader
JPH1196338A (en) Image reader
JPH06268851A (en) Method and device for picture processing for microfilm reader
JPH06233112A (en) Black frame detecting method for microfilm reader
JP2003162009A (en) Image frame positioning device for photographic film
JPH06291973A (en) Picture reader

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees