JP2912371B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2912371B2
JP2912371B2 JP63049771A JP4977188A JP2912371B2 JP 2912371 B2 JP2912371 B2 JP 2912371B2 JP 63049771 A JP63049771 A JP 63049771A JP 4977188 A JP4977188 A JP 4977188A JP 2912371 B2 JP2912371 B2 JP 2912371B2
Authority
JP
Japan
Prior art keywords
image
coordinates
main scanning
black
black frame
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
JP63049771A
Other languages
Japanese (ja)
Other versions
JPH01225284A (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 JP63049771A priority Critical patent/JP2912371B2/en
Publication of JPH01225284A publication Critical patent/JPH01225284A/en
Application granted granted Critical
Publication of JP2912371B2 publication Critical patent/JP2912371B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、マイクロフィルムなどの外周形状が略凸四
角形のネガ画像を投影した投影画像をイメージセンサで
読取り、原稿の周囲に表れる黒枠を消去して出力する画
像処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention reads an image projected on a negative image having a substantially convex quadrangular outer shape, such as a microfilm, with an image sensor, and erases a black frame appearing around a document. The present invention relates to an image processing device that outputs the image data.

(発明の技術的背景) マイクロフィルムリーダなどにおいて、原稿(画像)
をイメージセンサで読取るものがある。この場合読取る
べき原稿の周囲には背景が含まれている。例えばネガの
マイクロフィルムでは略凸四角形の原稿の周囲に黒枠の
背景が生じる。このためイメージセンサで原稿を読取っ
た場合にはこの黒枠部分がそのまま読取られ、この画像
信号により画像をプリントしたり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, in the case of a negative microfilm, a black frame background is generated around a substantially convex square document. For this reason, 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 (cathode ray tube, cathode ray tube) using the image signal, the black frame appears as it is. Was. 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, there is a problem that noise is easily caused by dust adhering to the microfilm or scratches on the microfilm, and the line of the trimming edge is not beautiful.

(発明の目的) 本発明はこのような事情に鑑みなされたものであり、
マイクロフィルムに付いたゴミやキズの影響を受けにく
く、原稿の周囲に表れる黒枠を奇麗に消去すなわちトリ
ミングすることができるようにし、また黒枠検出のため
の1回目の画像読取りの動作時間の短縮を可能にした画
像処理装置を提供することを目的とする。
(Object of the Invention) The present invention has been made in view of such circumstances,
It is less susceptible to dust and scratches on the microfilm, so that the black frame appearing around the original can be neatly erased or trimmed, and the operation time of the first image reading for black frame detection can be shortened. It is an object of the present invention to provide an image processing device that is enabled.

(発明の構成) 本発明によればこの目的は、フィルムに記録された外
周形状が略凸四角形のネガ画像を投影して得られる投影
画像をイメージセンサで走査して読取り、この投影画像
に含まれた黒枠を検出し消去して出力する画像処理装置
において、前記イメージセンサによる一度目の画像読取
りで適宜回おきの主走査毎に求めた画像信号から前記イ
メージセンサの主走査方向に連続する一定数の画素が白
になることを最初に検出したことからこの連続した画素
の最後の画素の座標より反主走査方向へ所定距離戻した
座標を主走査方向の黒枠の始点としまた前記イメージセ
ンサの主走査方向に連続する一定数の画素が黒になるこ
とをその後初めて検出したことからこの連続した画素の
最後の画素の座標より反主走査方向へ所定距離戻した座
標を主走査方向の黒枠の終点とする動作を副走査方向に
繰り返す白黒判別手段と、求めた終点および始点の座標
を記憶するメモリ手段と、記憶した黒枠の終点および始
点の座標を用いて4本の黒枠の縁の直線方程式を直線近
似法により求める直線演算手段と、求めた直線方程式を
用いてトリミング範囲を求めるトリミング範囲演算手段
と、求めたトリミング範囲を記憶するメモリ手段と、前
記イメージセンサによる二度目以降の画像読取りにより
読取った画像のうち前記トリミング範囲内の画像を黒枠
として消去するトリミング手段とを備えることを特徴と
する画像処理装置、により達成される。
(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 projecting a negative image whose outer peripheral shape is recorded on a film and having a substantially convex quadrangle by an image sensor and include the projection image in the projection image. In the image processing apparatus for detecting, erasing and outputting the black frame, the image sensor obtains an image signal obtained at every first main scanning in the first image reading as appropriate and continuously outputs the image signal in the main scanning direction of the image sensor. Since it is first detected that a number of pixels become white, the coordinates obtained by returning a predetermined distance in the anti-main scanning direction from the coordinates of the last pixel of the continuous pixels are used as the starting point of the black frame in the main scanning direction. Since it is detected for the first time that a certain number of pixels consecutive in the main scanning direction become black, the coordinates returned by a predetermined distance in the anti-main scanning direction from the coordinates of the last pixel of this continuous pixel are Black-and-white discriminating means for repeating the operation of setting the end point of the black frame in the main scanning direction in the sub-scanning direction, memory means for storing the coordinates of the obtained end point and start point, and four lines using the stored coordinates of the end point and start point of the black frame. A straight line calculating means for obtaining a straight line equation of an edge of a black frame by a straight line approximation method; a trimming range calculating means for obtaining a trimming range using the obtained straight line equation; a memory means for storing the obtained trimming range; An image processing apparatus comprising: a trimming unit that erases, as a black frame, an image within the trimming range among images read by the second and subsequent image readings.

すなわち、主走査ライン上における黒枠の縁から座標
から、直線近似法により原稿の各辺の直線の方程式を求
め、これらの直線の方程式により黒枠の縁を決めこれら
の直線で囲まれる範囲を原稿の範囲とし、その周囲の黒
枠範囲をトリミング範囲として消去するものである。
That is, from the coordinates from the edge of the black frame on the main scanning line, the equations of the straight lines on each side of the document are obtained by a straight-line approximation method, and the edges of the black frame are determined by the equations of these straight lines. The trimming range is erased as a trimming range.

(実施例) 第1図は本発明の機能ブロック図、第1図はこれを適
用したマイクロフィルムリーダの全体構成図、第3図は
スクリーン上の主・副走査方向説明図、第4図は白黒判
別手段の原理説明図、第5図は白判別動作の流れ図、第
6図は黒判別動作の流れ図、第7図は原稿の四隅の座標
を求める回路図、第8図はその動作流れ図、第9A図はト
リミング範囲演算動作の流れ図、第9B図はその座標系説
明図である。
(Embodiment) FIG. 1 is a functional block diagram of the present invention, FIG. 1 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-scanning 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. In addition, the binarized signal β output from the CPU 34 can be recorded in an external storage device such as the optical disk device 40. Further, an image may be displayed on a CRT or the like. Therefore, a necessary document image may be read out from the optical disc device 40 and printed out by the printer 38 or displayed on the CRT as necessary. 42
Is a ROM for storing an operation program and the like of the CPU 34, and 44 is a RAM as memory means.

CPU34はまずイメージセンサ30による一回目の画像読
取りによって、CPUは一主走査ライン毎に黒枠の縁の座
標を求める。この黒枠検出のための一回目の画像読取り
は一回おきの主走査毎に行われる。この縁の検出はROM4
2に予め動作プログラムとして記憶されたCPU34の白黒判
別手段Aにより行われる(第1図)。
First, the CPU 34 obtains the coordinates of the edge of the black frame for each main scanning line by the first image reading by the image sensor 30. The first image reading for detecting the black frame is performed every other main scanning. Detection of this edge is ROM4
This is performed by the black-and-white discriminating means A of the CPU 34 previously stored as an operation program in FIG.

白黒判別手段Aは主走査ライン上で画像信号αが白か
ら黒にまたは黒から白に変化する座標xに基づき決定さ
れる。すなわち第3図のように主走査方向にχ軸、副走
査方向にy軸をとるものとして、ある主走査ライン上の
座標χの座標α(χ)が一定距離l以上白または黒を示
した場合には縁であると判断する。ここに距離lは、ラ
インセンサ30上でN0個の画素に対応するものとする。
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 coordinates α (χ) of the coordinates 上 の on a certain main scanning line are 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 1 corresponds to N 0 pixels on the line sensor 30.

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

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

以上のようにして各主走査ライン毎に黒枠の縁の座標
すなわち黒枠の終点および始点の座標を求め、これを画
像縁座標メモリ手段BとしてのRAM44に記憶する。この
ように黒枠の縁をメモリしながらラインサンサ30をy方
向に移動させて副走査を行う。CPU34はこのように求め
た画像の縁の座標から最小自乗法により原稿の各辺の直
線の方程式を求める。例えば黒枠の終点および始点の座
標のy方向への移動に対する連続的な増加または減少の
様子から、終点の集合および始点の集合は、それぞれ同
一直線付近に位置すると考えられる4つの集合に分け、
これら4つの各集合ごとに縁の座標と或る直線X=aY+
bとの距離ΔXを求め、このΔXの自乗の和が最小にな
るように係数a,bを決定するものである。四辺の直線
は、X=a1Y+b1、X=a2Y+b2、X=a3Y+b3、X=a4Y
+b4で示され、メモリされる。この動作は第1図に直線
演算手段Cで示されている。この手段Cは、CPU34の動
作プログラムとしてROM42に記憶させておくことができ
る。
As described above, the coordinates of the edge of the black frame, that is, the coordinates of the end point and the start point of the black frame are obtained for each main scanning line, and are stored in the RAM 44 as the image edge coordinate memory means B. As described above, the line sensor 30 is moved in the y-direction while the edge of the black frame is stored in the memory to perform sub-scanning. The CPU 34 calculates a straight line equation of each side of the document from the coordinates of the edge of the image thus obtained by the least square method. For example, from the state of continuous increase or decrease in the movement of the coordinates of the end point and the start point of the black frame in the y direction, the set of the end points and the set of the start points are divided into four sets each of which is considered to be located near the same straight line.
For each of these four sets, the coordinates of the edge and a certain straight line X = aY +
The distance .DELTA.X to b is determined, and the coefficients a and b are determined so that the sum of the squares of .DELTA.X is minimized. The straight lines on the four sides are X = a 1 Y + b 1 , X = a 2 Y + b 2 , X = a 3 Y + b 3 , X = a 4 Y
+ B 4 and stored. This operation is shown in FIG. This means C can be stored in the ROM 42 as an operation program of the CPU 34.

一方CPU34は原稿の四隅の座標も求める。この四隅を
求めるのは、前記のように四辺の直線方程式を用いてト
リミング範囲を決めるためである。四隅はこれら4本の
直線の交点として求めてもよいが、ここでは画像信号α
から求めている。この動作は第1図に隅座標検出手段D
で示され、例えば第7図に示すように構成できる。この
手段Dは、CPU34の動作プログラムとしROM42に記憶させ
ておくことができるが、この回路図に従ってディスクリ
ートな部品で構成してもよい。
On the other hand, the CPU 34 also obtains the coordinates of the four corners of the document. The four corners are determined in order to determine the trimming range using the linear equation of the four sides as described above. The four corners may be obtained as intersections of these four straight lines, but here, the image signal α
Seeking from. This operation is shown in FIG.
And can be configured as shown in FIG. 7, for example. This means D can be stored in the ROM 42 as an operation program of the CPU 34, but may be constituted by discrete components according to this circuit diagram.

この第7図において50は主走査中の座標Xを求めるた
めの主カウンタ、52は副走査中の座標Yを求めるための
副カウンタである。主カウンタ50は、ラインセンサ30の
各画素のデータを順次読出すためのクロックパルスCKを
積算し、その積算値Xはバス54によってレジスタR(X
1),F(X2),F(X3),R(X4)に転送される。この主カ
ウンタ50は一主走査ラインの走査が終了する度にクリア
(零復帰)される。すなわち第3図にLSYCで示すよう
に、主走査時にスクリーン28内に対応する時間だけHレ
ベルとなるLSYC信号をインバータ56で反転した信号によ
り、主カウンタ50はクリアされる。副カウンタ52はLSYC
信号を積算し、その積算値Yはバス58によってレジスタ
R(Y1),R(Y2),R(Y3),R(Y4)に転送される。この
副カウンタ52は、スクリーンの全範囲の走査が終了した
ことを示すREADY/BUSY(単にR/Bと略す)信号によりク
リヤされる。
In FIG. 7, reference numeral 50 denotes a main counter for obtaining coordinates X during main scanning, and reference numeral 52 denotes a sub-counter for obtaining coordinates Y during sub-scanning. The main counter 50 accumulates a clock pulse CK for sequentially reading data of each pixel of the line sensor 30, and the accumulated value X is stored in a register R (X
1), forwarded to F (X2), F (X3), R (X4). The main counter 50 is cleared (returned to zero) each time 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, by the inverter 56. Secondary counter 52 is LSYC
The signals are integrated, and the integrated value Y is transferred by the bus 58 to the registers R (Y1), R (Y2), R (Y3), and 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は設定数N0の設定器であり、こ
れらにより前記白黒判別手段Aは形成される。すなわち
カウンタ60は、画像信号αの白が続く度に設定数N0から
1づつ減算し、白黒変化する度にカウンタ60をN0に復帰
させ、カウント値Nが0になると原稿の主走査方向の始
めの縁とする。またこのカウンタ60は、その後は画像信
号αを反転させたにより同様に減算し、零になると原
稿の主走査方向の終りの縁とする。この結果カウンタ60
の出力信号であるW/B(白/黒)信号は、第3図に示す
ように主走査ライン上で原稿が位置する期間だけHレベ
ルとなる。
60 subtraction counter, 62 is a setter set number N 0, the monochrome determination unit A These are formed. That is, the counter 60 subtracts 1 from the set number N 0 each time the image signal α continues to be white, and returns the counter 60 to N 0 each time the image signal α changes to black and white. 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(X3)
にメモリされる。この座標X2,X3は一回おきの主走査ラ
イン毎に書換えられる。座標X2は、直前に画像を読取っ
た主走査ラインにおける座標X2がメモリされたレジスタ
R(X2)の内容とコンパレータCOM1において比較され、
P<Qの時すなわちX2が主走査の度に減少してゆく間
は、レジスタR(X2),R(Y2)の内容を書き換え続け
る。この結果レジスタR(X2),R(Y2)には第9B図のx
最小の隅の座標(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. In synchronization with the falling signal dwn of the rising signal up which is each output, the coordinates X 2 and X 3 at that time are stored in the registers F (X2) F (X3).
Is stored in the memory. The coordinates X 2 and X 3 are rewritten every other main scanning line. Coordinate X 2 are the coordinates X 2 in the main scanning line read image immediately before is compared in the context of the comparator COM1 of the memory by the register R (X2),
P <while when namely the X 2 of Q is slide into decreased every time the main scan register R (X2), continue rewriting the contents of the R (Y2). As a result, the registers R (X2) and R (Y2) have x in FIG. 9B.
The coordinates of the minimum corner (X 2 , Y 2 ) are stored.

W/B位置の立下りに同期してメモリされたレジスタF
(X3)の内容は、直前に画像を読取った主走査ラインに
おける座標X3がメモリされたレジスタR(X3)の内容と
コンパレータCOM2において比較され、P>Qの間はレジ
スタR(X3),R(Y3)の内容を書き換え続ける。この結
果レジスタR(X3),R(Y3)には第9B図のx最大の隅の
座標(X3,Y3)がメモリされる。
Register F stored in synchronization with falling of W / B position
The contents of (X3) is immediately before the coordinate X 3 in the main scanning line read image is compared in the context of the comparator COM2 of the memory by the register R (X3) to, P> between Q register R (X3), Continue to rewrite the contents of R (Y3). As a result, the coordinates (X 3 , Y 3 ) of the x-maximum corner in FIG. 9B are stored in the registers R (X3) and R (Y3).

さらに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内
の一部であるメモリ手段Eに記憶される。
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 E which is a part of the RAM 44.

CPU34はこの求めた隅の座標と、前記直線演算手段C
で求めた直線方程式とを用いてトリミング範囲を求める
(第1図、トリミング範囲演算手段F)。この手段Fは
第9A図に示す動作を行う。なおこの四隅を第7図に従っ
て求める際には、画像信号αがN0回続けて白あるいは黒
となった時の最後のX方向の座標を用いていた。すなわ
ち四隅の座標は主走査ライン上で、黒枠から画像に入る
時には画像内にN0画素分の距離lだけ入る。同様に画像
から黒枠に入る時には黒枠内にN0画素分の距離lだけ入
っている。そこでCPU34では直線方程式を求めた時と同
様に隅の座標を画像の内側へN0/2画素分(l/2の距離に
相当する)だけ移動させる処理を行う。
The CPU 34 calculates the coordinates of the obtained corner and the straight line calculating means C.
The trimming range is obtained using the linear equation obtained in (1) (FIG. 1, trimming range calculating means F). This means F performs the operation shown in FIG. 9A. When obtaining these four corners in accordance with FIG. 7, the last coordinate in the X direction when the image signal α becomes white or black continuously N 0 times is used. That four corners of the coordinate on the main scanning line, when entering the image from black frame enters a distance l of N 0 pixels in the image. It contains a distance l of N 0 pixels in the black frame when similarly entering from the image to the black frame. Therefore, the CPU 34 performs a process of moving the coordinates of the corner by N 0/2 pixels (corresponding to a distance of l / 2) to the inside of the image in the same manner as when the straight line equation is obtained.

この処理は次のように行う。まず主走査ライン上でX
の0側の縁の位置X1,X2からはN2/2(=l/2)だけ減算し
て X1=X1−l/2 X2=X2−l/2 を新しい座標とする。全く同様のxの増大側の縁の位置
X3,X4からは (3/2)N0{=(3/2)l} だけ減算して X3=X3−(3/2)l X4=X4−(3/2)l を新しい座標とする(第9A図,ステップ300)。このよ
うに決めた新しい四隅の座標と前記の四本の直線方程式
とを用いてトリミング範囲を次のようにして求める。す
なわち第9B図に示すように、Y1<Y<Y2では(ステップ
302)、(X1、Y1)と(X2、Y2)とを結ぶ直線X=a1Y+
b1を用いる(ステップ304)。そしてこの範囲では、 X<a1Y+b1 をトリミング範囲とする(ステップ306)。
This processing is performed as follows. First, X on the main scanning line
0 position X 1 of the side edge, X 2 and new coordinates N 2/2 (= l / 2) only by subtracting X 1 = X 1 -l / 2 X 2 = X 2 -l / 2 is the I do. Exactly similar position of the edge on the increasing side of x
From X 3, X 4 (3/2) N 0 {= (3/2) l} only subtracts X 3 = X 3 - (3/2 ) l X 4 = X 4 - (3/2) Let l be the new coordinates (FIG. 9A, step 300). The trimming range is obtained as follows using the coordinates of the four new corners determined in this way and the above four linear equations. That is, as shown in FIG. 9B, when Y 1 <Y <Y 2 (step
302), a straight line X = a 1 Y + connecting (X 1 , Y 1 ) and (X 2 , Y 2 )
The b 1 used (step 304). In this range, X <a 1 Y + b 1 is set as a trimming range (step 306).

Y1<Y<Y3では(ステップ308)、 X>a2Y+b2 をトリミング範囲とする(ステップ310、312)。同様に
Y2<Y<Y4、Y3<Y<Y4ではステップ(316、318)、
(322、324)のようにトリミング範囲を決定する。
In Y 1 <Y <Y 3 (step 308), X> a 2 Y + b 2 a and trimming range (step 310, 312). Likewise
If Y 2 <Y <Y 4 , Y 3 <Y <Y 4 , steps (316, 318),
The trimming range is determined as in (322, 324).

このようにして第9B図の原稿の4辺のトリミング範囲
を決定し、これらはRAM44からなるメモリ手段Gに記憶
される。
In this way, the trimming ranges of the four sides of the original shown in FIG. 9B are determined, and these are stored in the memory means G comprising the RAM 44.

なお本実施例では、直線方程式は最小自乗法により求
めているが、本発明は他の近似法例えばチュビシェフ近
似法など公知の近似法を用いて求めてもよいのは勿論で
ある。
In the present embodiment, the straight line equation is obtained by the least square method. However, the present invention may of course be obtained by using another known approximation method such as the Tubyshev approximation method.

CPU34は最初の走査によって求めた四隅の座標および
直線方程式を用いて、ステップ306、312、318、324のよ
うにトリミング範囲を決定する。
The CPU 34 determines the trimming range as in steps 306, 312, 318, and 324 using the coordinates of the four corners obtained by the first scan and the linear equation.

以後の走査ではこの範囲内の画像信号αを抽出してこ
れを所定の信号レベル、例えば原稿の下地部分と略同じ
明度の信号あるいは白に変更する(第1図,トリミング
手段H)。このように修正された画像信号αは、CPU34
内で二値化処理されてプリンタ38等のプリント手段Iに
出力されプリントされる。
In the subsequent scanning, the image signal α within this range is extracted and is changed to a predetermined signal level, for example, a signal having the same brightness as the background portion of the document or white (trimming means H in FIG. 1). The image signal α thus corrected is output to the CPU 34
Then, the image data is binarized and output to printing means I such as a printer 38 for printing.

またイメージセンサとしてはラインセンサに代えて二
次元のエリヤセンサを使用することも可能であり、この
場合にはエリアセンサは移動させずに固定したものであ
ってもよい。
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.

また画像の縁を求めるにあたって、本実施例のように
一回おきの主走査毎に縁を求めてもよいが、複数回おき
の主走査毎に求めるように構成すれば動作時間は一層短
縮でき、本発明はこのようなものも包含する。
Further, when the edge of the image is obtained, the edge may be obtained every other main scan as in the present embodiment. However, the operation time can be further shortened if the image edge is obtained every other main scan. The present invention also includes such a device.

さらにこの実施例では、原稿の四隅の座標を第7図に
示す回路で求めているが、最小自乗法などの直線近似法
で求めた各直線方程式の交点として演算により求めるこ
とも可能である。
Further, in this embodiment, the coordinates of the four corners of the document are obtained by the circuit shown in FIG. 7. However, the coordinates may be obtained by calculation as intersections of respective linear equations obtained by a linear approximation method such as the least square method.

(発明の効果) 本発明は以上のように、一度目の走査により主走査ラ
イン上の連続する一定数の画素が白または黒になること
から画像(原稿)の縁を求め、これを副走査方向へ繰り
返し、画像(原稿)の縁の直線方程式を直線近似法によ
り求め、これらの直線で囲まれる範囲の外側を黒枠を含
むトリミング範囲として記憶し、二度目以降の走査では
このトリミング範囲内の信号すなわち黒枠範囲の信号を
抽出してこれを所定の信号レベル例えば原稿下地部分の
明度や白に変更するものであるから、黒枠の縁の座標を
全ての主走査ライン毎にメモリする場合に比べて、黒枠
の縁の座標がマイクロフィルムについたゴミやキズなど
により変動しても、その影響を殆ど受けることなく画像
の縁の方程式を直線で奇麗に決定でき、プリンタ等に出
力された黒枠の縁を奇麗にトリミングすることが可能に
なる。
(Effect of the Invention) As described above, the present invention determines the edge of an image (original document) from the fact that a certain number of continuous pixels on the main scanning line become white or black by the first scan, Iteratively, the straight line equation of the edge of the image (document) is obtained by a straight line approximation method, and the outside of the range surrounded by these straight lines is stored as a trimming range including a black frame. Since the signal, that is, the signal in the black frame range is extracted and is changed to a predetermined signal level, for example, the brightness or white of the background portion of the original, the coordinates of the edge of the black frame are stored in memory for every main scanning line. Therefore, even if the coordinates of the edge of the black frame fluctuate due to dust or scratches on the microfilm, the equation of the edge of the image can be determined neatly with a straight line without being substantially affected, and output to a printer or the like. This makes it possible to trim the edge of the black frame beautifully.

また黒枠を求めるための一回目の画像読取りは、適宜
回数おきの主走査毎に求めた画像信号を用いるから、黒
枠検出のための画像読取りに要する動作時間を短縮でき
る。
In addition, the first image reading for obtaining a black frame uses the image signal obtained for each main scan at an appropriate number of times, so that the operation time required for image reading for detecting the black frame can be reduced.

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

第1図は本発明の機能ブロック図、第2図はこれを適用
したマイクロフィルムリーダの全体構成図、第3図はス
クリーン上の主副走査方向説明図、第4図は白黒判別手
段の原理説明図、第5図は白判別動作の流れ図、第6図
は黒判別動作の流れ図、第7図は原稿の四隅の座標を求
める回路図、第8図はその動作流れ図、第9A図はトリミ
ング範囲演算動作の流れ図、第9B図はその座標系説明図
である。 A……白黒判別手段、 B……画像縁座標メモリ手段、 C……縁直線算出手段、 F……トリミング範囲演算手段、 G……メモリ手段、 H……トリミング手段、 α……画像信号、 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: image edge coordinate memory means, C: edge straight line calculating means, F: trimming range calculating means, G: memory means, H: trimming means, α: image signal, 30 …… Line sensor.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】フィルムに記録された外周形状が略凸四角
形のネガ画像を投影して得られる投影画像をイメージセ
ンサで走査して読取り、この投影画像に含まれた黒枠を
検出し消去して出力する画像処理装置において、 前記イメージセンサにより一度目の画像読取りで適宜回
おきの主走査毎に求めた画像信号から前記イメージセン
サの主走査方向に連続する一定数の画素が白になること
を最初に検出したことからこの連続した画素の最後の画
素の座標より反主走査方向へ所定距離戻した座標を主走
査方向の黒枠の始点としまた前記イメージセンサの主走
査方向に連続する一定数の画素が黒になることをその後
始めて検出したことからこの連続した画素の最後の画素
の座標より反主走査方向へ所定距離戻した座標を主走査
方向の黒枠の終点とする動作を副走査方向に繰り返す白
黒判別手段と、求めた終点および始点の座標を記録する
メモリ手段と、記憶した黒枠の終点および始点の座標を
用いて4本の黒枠の縁の直線方程式を直線近似法により
求める直線演算手段と、求めた直線方程式を用いてトリ
ミング範囲を求めるトリミング範囲演算手段と、求めた
トリミング範囲を記憶するメモリ手段と、前記イメージ
センサによる二度目以降の画像読取りにより読取った画
像のうち前記トリミング範囲内の画像を黒枠として消去
するトリミング手段とを備えることを特徴とする画像処
理装置。
An image sensor scans and reads a projection image obtained by projecting a negative image whose outer peripheral shape is substantially a convex quadrangle recorded on a film, and detects and erases a black frame included in the projection image. In the image processing device for outputting, a certain number of pixels continuous in the main scanning direction of the image sensor become white from an image signal obtained at every other main scanning in the first image reading by the image sensor as appropriate. Coordinates returned by a predetermined distance in the main scanning direction from the coordinates of the last pixel of the continuous pixels from the first detection are used as the starting point of the black frame in the main scanning direction, and a fixed number of Since it is detected for the first time that the pixel becomes black, the coordinates obtained by returning a predetermined distance in the anti-main scanning direction from the coordinates of the last pixel of this continuous pixel are set as the end points of the black frame in the main scanning direction. Black-and-white discriminating means for repeating the operation in the sub-scanning direction, memory means for recording the coordinates of the obtained end point and start point, and linear approximation of the straight line equations of the edges of the four black frames using the stored coordinates of the end point and start point of the black frame. Straight line calculating means, a trimming range calculating means for obtaining a trimming range by using the obtained straight line equation, a memory means for storing the obtained trimming range, and an image read by the image sensor for the second and subsequent times. An image processing apparatus comprising: a trimming unit that erases an image within the trimming range as a black frame.
JP63049771A 1988-03-04 1988-03-04 Image processing device Expired - Fee Related JP2912371B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPH01225284A JPH01225284A (en) 1989-09-08
JP2912371B2 true JP2912371B2 (en) 1999-06-28

Family

ID=12840432

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP2912371B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0480772A (en) * 1990-07-23 1992-03-13 Ricoh Co Ltd Image forming device using photosensitive body

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6174453A (en) * 1984-09-20 1986-04-16 Toshiba Corp Picture display device
JPS62166649A (en) * 1986-01-17 1987-07-23 Canon Inc Original reader

Also Published As

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

Similar Documents

Publication Publication Date Title
US4672461A (en) Image processing apparatus
JPH05252379A (en) Image processor
JPS63261952A (en) Microreader scanner
JPH11103380A (en) Image reader
JP2912371B2 (en) Image processing device
JP2576878B2 (en) Image processing device
JPH0432358A (en) Picture reader
JP3384208B2 (en) Image reading device
JPS6146671A (en) Area designation system
JPH043655A (en) Picture processor
JP2537192B2 (en) Image playback device
JP3312787B2 (en) Image processing system
JP2958407B2 (en) Image processing device
JP2608264B2 (en) Image reading device
JP3332170B2 (en) Method and apparatus for detecting black frame of micro film reader
JPH1141450A (en) Image editing device
JPH043654A (en) Picture processor
JPH043656A (en) Picture processor
JPH06311347A (en) Print control method and device for micro film reader
JPH09261448A (en) Image processor
JPH06141179A (en) Method and device for shading correction for picture reader
JPH10229486A (en) Image reader
JPS6132653A (en) Picture inputting device
JPH04142161A (en) Picture reader
JP2001285606A (en) Image processing apparatus and image processing method

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