JPH01225284A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH01225284A
JPH01225284A JP63049771A JP4977188A JPH01225284A JP H01225284 A JPH01225284 A JP H01225284A JP 63049771 A JP63049771 A JP 63049771A JP 4977188 A JP4977188 A JP 4977188A JP H01225284 A JPH01225284 A JP H01225284A
Authority
JP
Japan
Prior art keywords
edge
image
signal
coordinates
trimming range
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.)
Granted
Application number
JP63049771A
Other languages
Japanese (ja)
Other versions
JP2912371B2 (en
Inventor
Tetsuya Takamori
哲弥 高森
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

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To clearly trim the edge of a picture by obtaining the linear equation of the edge of the picture according to a linear approximation and deciding a trimming range. CONSTITUTION:A picture signal obtained by a first scanning by an image sensor is inputted to a black and white discriminating means A to obtain the edge of the picture and store the coordinate of the obtained edge in a memory means B. A straight line operating means C uses the coordinates of the obtained edges to obtain an equation for the line edge of the picture according to the linear approximation. A trimming range operating means F uses the obtained linear equation to decide the trimming range. A trimming means H extracts the signal within the trimming range in the picture signal obtained by the scanning after a second time to change to a prescribed signal level and transmit this picture signal to a print means I.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、マイクロフィルムリーグなどの装置に適用さ
れ、画像をイメージセンサにより読取ることにより得た
画像出力により画像をプリンタやCRTなどに出力する
ようにした画像処理装置に関するものである。
[Detailed Description of the Invention] (Industrial Application Field) The present invention is applied to a device such as a microfilm league, which outputs an image to a printer, CRT, etc. by reading the image with an image sensor. The present invention relates to an image processing device configured as described above.

(発明の技術的背景) マイクロフィルムリーグなどにおいて、原稿(画像)を
イメージセンサで読取るものがある。
(Technical Background of the Invention) Some microfilm leagues and the like read originals (images) with an image sensor.

この場合読取るべき原稿の周囲には背景が含まれている
0例えばネガのマイクロフィルムでは原稿周囲に黒枠の
背景が生じる。このためイメージセンサで原稿を読取っ
た場合にはこの黒枠部分がそのまま読取られ、この画像
信号により画像をプリントしたりCRT (陰極線管、
ブラウン管)に出力する際には黒枠がそのまま表れると
いう不都合があった。またPPC方式のプリンタを用い
る場合にはトナーの使用量が増えるという問題も生じる
In this case, a background is included around the document to be read. For example, in the case of negative microfilm, a black frame background appears around the document. Therefore, when an image sensor reads a document, this black frame is read as is, and this image signal is used to print an image or use a CRT (cathode ray tube)
When outputting to a cathode ray tube), there was an inconvenience that the black frame would appear as is. Furthermore, when using a PPC printer, there is a problem that the amount of toner used increases.

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

しかしこの装置によれば、マイクロフィルムに付着する
ゴミやマイクロフィルムに付いたキズなどによる雑音の
影響を受は易く、トリミングの縁の線が奇麗にならない
という問題が有る。
However, this device is susceptible to noise caused by dust adhering to the microfilm or scratches on the microfilm, and there is a problem in that the edges of the trimming are not clean.

(発明の目的) 本発明はこのような事情に鑑みなされたものであり、ゴ
ミやキズの影響を受けにくく、原稿の周囲のトリミング
範囲を奇麗にトリミングすることができるようにした画
像処理装置を提供することを目的とする。
(Objective of the Invention) The present invention has been made in view of the above circumstances, and provides an image processing device that is not easily affected by dust or scratches and is capable of neatly trimming the trimming range around the document. The purpose is to provide.

(発明の構成) 本発明によればこの目的は、画像をその背景と共にイメ
ージセンサで走査して読取り、この読取った画像信号に
基づいて画像を出力する画像処理装置において、前記イ
メージセンサによる一度目の走査で得た画像信号から画
像の縁を求める白黒判別手段と、求めた縁の座標を記憶
するメモリ手段と、記憶した縁の座標を用いて画像の縁
の直線方程式を直線近似法により求める直線演算手段と
、求めた直線方程式を用いてトリミング範囲を決めるト
リミング範囲決定手段と、このトリミング範囲を記憶す
るメモリ手段と、前記イメージセンサによる二度目以降
の走査により得られる画像信号の内前記トリミング範囲
内の信号を抽出して所定の信号レベルに変更するトリミ
ング手段とを備えることを特徴とする画像処理装置によ
り達成される。
(Structure of the Invention) According to the present invention, it is an object of the present invention to provide an image processing apparatus that scans and reads an image together with its background using an image sensor and outputs an image based on the read image signal. A black and white discrimination means for determining the edge of the image from the image signal obtained by scanning, a memory means for storing the coordinates of the determined edge, and a linear equation of the edge of the image is determined by a straight line approximation method using the stored coordinates of the edge. a linear calculation means, a trimming range determining means for determining a trimming range using the obtained linear equation, a memory means for storing the trimming range, and a trimming range determining means for determining the trimming range from among the image signals obtained by the second and subsequent scans by the image sensor. This is achieved by an image processing apparatus characterized by comprising a trimming means for extracting a signal within the range and changing the signal level to a predetermined signal level.

すなわち、主走査ライン上における原稿の縁の座標から
、直線近似法により原稿の各辺の直線の方程式を求め、
これらの直線の方程式により原稿の縁を決めトリミング
範囲を決定するものである。
That is, from the coordinates of the edge of the document on the main scanning line, use the straight line approximation method to find the equation of the straight line on each side of the document.
These straight line equations determine the edge of the document and the trimming range.

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

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

スクリーン28の背面には、イメージセンサの一例とし
てのCCDラインセンサ30が左右に移動可能に配設さ
れている。すなわちこのラインセンサ30はスクリーン
28を縦断する方向に長く配置され、ラインセンサ30
はその長さ方向(主走査方向)に画像を読出して画像信
号αを順次時系列信号として出力することにより主走査
を行い、またこのラインセンサ28をモータ31によっ
て左右方向に移動させることにより副走査を行う、この
ラインセンサ30の画像信号αは入力インターフェース
32を介してCPU34に入力され、ここで植種の処理
が行われ、画像信号が二値化される。この二値化された
画像信号βは出力インターフェース36を介してプリン
タ38に出力され、ここで画像がプリントアウトされ、
ハードコピーが得られる。またCPU34が出力する二
値化された信号βは光デイスク装置40等の外部記憶装
置に記録できる。さらにCRTなどで画像を表示しても
よい。従って必要に応じて光デイスク装置40から必要
な原稿の画像を読出してプリンタ38によりプリントア
ウトしたりCRTに表示してもよい、なお42はCPU
34の動作プログラム等を記憶するROM、44はメモ
リ手段としてのRAMである。
A CCD line sensor 30, which is an example of an image sensor, is disposed on the back side of the screen 28 so as to be movable left and right. That is, this line sensor 30 is arranged long in the direction that traverses the screen 28, and the line sensor 30
performs main scanning by reading out the image in its length direction (main scanning direction) and sequentially outputting the image signal α as a time-series signal. The image signal α of this line sensor 30 that performs scanning is input to the CPU 34 via the input interface 32, where the seeding process is performed and the image signal is binarized. This binarized image signal β is output to the printer 38 via the output interface 36, where the image is printed out.
You can get a hard copy. Further, the binary signal β outputted by the CPU 34 can be recorded in an external storage device such as an optical disk device 40. Furthermore, the image may be displayed on a CRT or the like. Therefore, if necessary, a necessary original image may be read out from the optical disk device 40 and printed out by the printer 38 or displayed on a CRT.
A ROM 34 stores operating programs, etc., and a RAM 44 serves as a memory means.

CPU34はまずイメージセンサ30による−回目の走
査によって、CPUは−1走査ライン毎に原稿の縁の座
標を求める。この縁の検出はROM42に予め動作プロ
グラムとして記憶されたCPU34の白黒判別手段Aに
より行われる(第1図)。
First, the CPU 34 calculates the coordinates of the edge of the document every -1 scan line by the -th scan by the image sensor 30. Detection of this edge is performed by the black and white discrimination means A of the CPU 34, which is stored in the ROM 42 in advance as an operating program (FIG. 1).

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

第5図は主走査中に信号αが黒から白に変わる座標Xを
求める動作流れ図で、第4図のXa点を求めるものであ
る。まずスクリーン28の下縁のχ=0の位置から上方
へ主走査を開始しくステップ100A)、次の位置χ=
1の画素による信号α(1)が白でなければ(ステップ
102A。
FIG. 5 is an operation flowchart for determining the coordinate X at which the signal α changes from black to white during main scanning, and is used to determine the point Xa in FIG. First, start the main scanning upward from the position χ=0 of the lower edge of the screen 28 (step 100A), and then move to the next position χ=0.
If the signal α(1) due to pixel 1 is not white (step 102A).

104A)、N=Noとする(ステップ106A)、α
(χ)が白ならNから1を減算しくステップ108A)
、白がNo画素続けば(ステップll0A)、この画素
のNo画素前から原稿が有ると判断し、χ−No/2を
縁の座標又として採用する(ステップ112A)、この
一定値N。
104A), N=No (step 106A), α
If (χ) is white, subtract 1 from N (Step 108A)
, if white continues for No pixels (Step 110A), it is determined that there is a document from No pixels before this pixel, and χ-No/2 is adopted as the edge coordinate (Step 112A), this constant value N.

はスクリーン上での距離文に等しいものとする。is equivalent to the distance sentence on the screen.

第6図は信号αが白から黒に変わる座標Xを求める流れ
図で、第4図のXb点を求めるものである。すなわち主
走査ラインでχが次第に増加しくステップ120A)、
信号α(χ)が黒でなければ(ステップ122−A)N
=Noに戻しくステップ124A)、黒であればN=1
を減算しくステップ126A)、黒が一定距離見に対応
する回数No続けば(ステップ128A)そのN。
FIG. 6 is a flowchart for determining the coordinate X at which the signal α changes from white to black, and is used to determine the point Xb in FIG. That is, χ gradually increases in the main scanning line (step 120A),
If the signal α(χ) is not black (step 122-A)N
= No (Step 124A), if black, N = 1
(step 126A), and if black continues for the number of times corresponding to constant distance viewing (step 128A), then the number N.

画素前から原稿は無いと判断し、X−(3/2)Noを
白から黒になる縁の座標Xとして採用する。
It is determined that there is no document from before the pixel, and X-(3/2) No. is adopted as the coordinate X of the edge that changes from white to black.

以上のようにして各主走査ライン毎に原稿の縁の座標を
求め、これを画像縁座標メモリ手段BとしてのRAM4
4に記憶する。このようにに稿の縁をメモリしながらラ
インセンサ30をy方向に移動させて副走査を行う、C
PU34はこのように求めた画像の縁の座標から最小自
乗法により原稿の各辺の直線の方程式を求める。すなわ
ち、成る直線X=aY+bと縁との距離ΔXを求め、こ
のΔXの自乗の和が最小になるように係数a、bを決定
するものである。この動作は第1図に直線演算手段Cで
示されている。この手段Cは、CPU34の動作プログ
ラムとしてROM42に記憶させておくことができる。
As described above, the coordinates of the edge of the document are obtained for each main scanning line, and these are stored in the RAM 4 as the image edge coordinate memory means B.
Store in 4. In this way, sub-scanning is performed by moving the line sensor 30 in the y direction while memorizing the edge of the document.C
The PU 34 calculates the equation of a straight line on each side of the document using the method of least squares from the coordinates of the edges of the image thus calculated. That is, the distance ΔX between the straight line X=aY+b and the edge is determined, and the coefficients a and b are determined so that the sum of the squares of this ΔX is minimized. This operation is shown by linear calculation means C in FIG. This means C can be stored in the ROM 42 as an operation program for the CPU 34.

一方CPU34は原稿の四隅の座標も求める。On the other hand, the CPU 34 also obtains the coordinates of the four corners of the document.

この動作は第1図に隅座標検出手段りで示され、例えば
第7図に示すように構成できる。この手段りは、CPU
34の動作プログラムとしROM42に記憶させておく
ことができるが、この回路図に従ってディスクリートな
部品で構成してもよい。
This operation is shown by the corner coordinate detection means in FIG. 1, and can be configured as shown in FIG. 7, for example. This means that the CPU
34 operation programs can be stored in the ROM 42, but it may also be constructed from discrete components according to this circuit diagram.

この第7図において50は主走査中の座標Xを求めるた
めの主カウンタ、52は副走査中の座標Yを求めるため
の副カウンタである。主カウンタ50は、ラインセンサ
30の各画素のデータを順次読出すためのクロックパル
スGKを積算し、その積算値又はパス54によってレジ
スタR(XI)、F (X2)、F (X3)、R(X
4)に転送される。この主カウンタ50は−1走査ライ
ンの走査が終了する度にクリヤ(零復帰)される、すな
わち第3図にLSYCで示すように、主走査時にスクリ
ーン28内に対応する時間だけHレベルとなるLSYC
信号をインバータ56で反転した信号により、主カウン
タ50はクリヤされる。副カウンタ52はLSYC信号
を積算し。
In FIG. 7, 50 is a main counter for determining the coordinate X during main scanning, and 52 is a sub counter for determining the coordinate Y during sub-scanning. The main counter 50 integrates clock pulses GK for sequentially reading data of each pixel of the line sensor 30, and uses the integrated value or the path 54 to register R (XI), F (X2), F (X3), R (X
4). This main counter 50 is cleared (returned to zero) every time the scanning of the -1 scanning line is completed, that is, as shown by LSYC in FIG. LSYC
The main counter 50 is cleared by a signal obtained by inverting the signal by an inverter 56. The sub counter 52 integrates the LSYC signal.

その積算値Yはバス58によってレジスタR(Yl)、
R(Y2)、R(Y3)、R(Y4)に転送される。こ
の副カウンタ52は、スクリーンの全範囲の走査が終了
したことを示すREADY/;′BUSY(単にR/B
と略す)信号によりクリヤされる。
The integrated value Y is transferred to register R (Yl) by bus 58.
Transferred to R(Y2), R(Y3), and R(Y4). This sub-counter 52 indicates READY/;'BUSY (simply R/B
Cleared by a signal (abbreviated as ).

60は減算カウンタ、62は設定数Noの設定器であり
、これらにより前記白黒判別手段Aは形成される。すな
わちカウンタ60は、画像信号αの白が続く度に設定数
Noから1づつ減算し、白黒変化する度にカウンタ60
をNoに復帰させ、カウント値Nが0になると原稿の主
走査方向の始めの縁とする。またこのカウンタ60は、
その後は画像信号αを反転させた:により同様に減算し
、零になると原稿の主走査方向の終りの縁とする。この
結果カウンタ60の出力信号であるW/B(白/黒)信
号は、第3図に示すように主走査ライン上で原稿が位置
する期間だけHレベルとなる。
60 is a subtraction counter, and 62 is a setter for setting number No. These constitute the black and white discrimination means A. That is, the counter 60 subtracts one from the set number No. each time the image signal α continues to be white, and the counter 60 subtracts one from the set number No. every time the image signal α continues to be white.
is reset to No, and when the count value N reaches 0, it is determined as the first edge of the document in the main scanning direction. Moreover, this counter 60 is
Thereafter, the image signal α is inverted and subtracted in the same manner as follows, and when it becomes zero, it is determined as the end edge of the document in the main scanning direction. As a result, the W/B (white/black) signal which is the output signal of the counter 60 is at H level only during the period when the document is positioned on the main scanning line, as shown in FIG.

このW/B信号は副走査が終了するまでの間で最初にH
レベルになる座標がフリップフロップFFで検出される
。この座標(x、、yl)は第9B図に示すようにY最
小の隅であり、レジスタR(Xi)、R(Yl)にメモ
リされる。またこのW/B信号の立上りが立上り検出回
路64により検出され、立下りが立下り検出回路66に
より検出される。それぞれの出力である立上り信号up
と立下り信号dwnとに同期してその時の座標x2.x
3がレジスタF (X2)F (X3) にメモリされ
る。この座標x2.x3は主走査ライン毎に書換えられ
る。座標x2は、直前の主走査ラインにおける座標x2
がメモリされたレジスタR(x2)の内容とコンパレー
タCOMIにおいて比較され、P<Qの時すなわちx2
が主走査の度に減少してゆく間は、レジスタR(X2)
、R(Y2)の内容を書き換え続ける。この結果レジス
タR(X2)、R(Y2) には第9B図ノχ最小の隅
の座標(x2.y2)がメモリされる。
This W/B signal is initially set to H until the end of sub-scanning.
The coordinates at the level are detected by the flip-flop FF. These coordinates (x, yl) are the minimum Y corner as shown in FIG. 9B, and are stored in registers R(Xi) and R(Yl). Further, a rising edge of this W/B signal is detected by a rising edge detection circuit 64, and a falling edge thereof is detected by a falling edge detection circuit 66. Rise signal up which is each output
and the falling signal dwn, the coordinates at that time x2. x
3 is stored in register F (X2)F (X3). This coordinate x2. x3 is rewritten for each main scanning line. The coordinate x2 is the coordinate x2 on the immediately previous main scanning line.
is compared with the contents of the memorized register R(x2) in the comparator COMI, and when P<Q, that is, x2
While decreasing with each main scan, register R(X2)
, R(Y2) continues to be rewritten. As a result, the coordinates (x2.y2) of the minimum corner of χ in FIG. 9B are stored in registers R(X2) and R(Y2).

W/B位置の立下りに同期してメモリされたレジスタF
(X3)の内容は、直前の主走査ラインにおける座標x
3がメモリされたレジスタR(x3)の内容とコンパレ
ータC0M2において比較され、P>Qの間はレジスタ
R(X3)、R(Y3)の内容を書き換え続ける。この
結果レジスタR(X3)、R(Y3) には第9B図(
F)X最大の隅の座標(x3.y3)がメモリされる。
Register F stored in memory in synchronization with the falling edge of the W/B position
The content of (X3) is the coordinate x in the previous main scanning line.
3 is compared with the memorized contents of register R(x3) in comparator C0M2, and while P>Q, the contents of registers R(X3) and R(Y3) continue to be rewritten. The result registers R(X3) and R(Y3) are shown in Figure 9B (
F) The coordinates of the maximum X corner (x3.y3) are memorized.

さらにW/B信号がHレベルになる度にその座標x、y
はレジスタR(X4)、R(Yl)を書き換え、W/B
信号がHレベルにならなくなれば最後にHレベルになっ
た座標X4.Ylがそのままメモリされる。
Furthermore, each time the W/B signal goes to H level, its coordinates x, y
rewrites registers R(X4) and R(Yl) and writes W/B
When the signal no longer reaches H level, the coordinate X4. which reached H level last. Yl is stored as is.

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

CPU34はこの求めた隅の座標と、前記直線演算手段
Cで求めた直線方程式とを用いてトリミング範囲を求め
る(第1図、トリミング範囲演算手段F)、この手段F
は第9A図に示す動作を行う、前記のように求めた四隅
の座標および縁の座標は1画像信号αがNo回続けて白
あるいは黒となったX方向の座標を示す、このためCP
U34は主走査ライン上でXの0側の縁の位置Xs  
The CPU 34 uses the obtained corner coordinates and the linear equation obtained by the linear calculation means C to obtain the trimming range (FIG. 1, trimming range calculation means F).
performs the operation shown in FIG. 9A. The coordinates of the four corners and the coordinates of the edges obtained as described above indicate the coordinates in the X direction where one image signal α becomes white or black consecutively No times. Therefore, CP
U34 is the position Xs of the 0 side edge of X on the main scanning line
.

x2からはNo /2 (=l/2)だけ減算してXI
 =X+ −172 X2 =X2−文/2 を新しい座標とする。全く同様にXの増大側の縁の位置
x3.x、からは (3/ 2 ) N o  (” (3/ 2 ) l
 )だけ減算して X3 =X3−(3/2)I Xs =Xs −(3/2)皇 を新しい座標とする(第9A図、ステップ300)、こ
のように決めた新しい四隅の座標を用いて各辺の直線を
直線近似法の一例である最小自乗法により求める。すな
わち第9B図に示すように、YlくYくY2では(ステ
ップ302)、X=X−1/2で各主走査ライン上の縁
の座標を移動してこの直線X=aIY+blを求める(
ステップ304)、そしてこの範囲では、X(alY+
bI をトリミング範囲とする(ステップ306)。
Subtract No /2 (=l/2) from x2 and get XI
=X+ -172 X2 =X2-sentence/2 are set as new coordinates. In exactly the same way, the position of the edge on the increasing side of X x3. x, from (3/2) No (” (3/2) l
) and set the new coordinates to X3 = X3 - (3/2)I The straight line on each side is determined by the least squares method, which is an example of a straight line approximation method. That is, as shown in FIG. 9B, in Yl x Y x Y2 (step 302), the coordinates of the edge on each main scanning line are moved by X = X - 1/2 to obtain this straight line X = aIY + bl (
step 304), and in this range, X(alY+
Let bI be the trimming range (step 306).

YlくYくY3では(ステップ308)、X=X−(3
/2)lで座標移動し X>a2Y+b2 をトリミング範囲とする(ステップ310.312)、
同様にY2 <Y<Yl 、Y3 <Y<Ylでは(ス
テップ314,320)ステップ316.322の座標
移動をして、ステップ318.324のようにトリミン
グ範囲を決定する。
In Yl x Y x Y3 (step 308), X=X-(3
/2) Move the coordinates with l and set X>a2Y+b2 as the trimming range (steps 310 and 312),
Similarly, when Y2 < Y < Yl and Y3 < Y < Yl (steps 314, 320), the coordinates are moved in steps 316 and 322, and the trimming range is determined as in steps 318 and 324.

このようにして第9B図の原稿の4辺の直線の方程式X
=aY+bを決定しこれらはRAM44からなるメモリ
手段Gに記憶される。
In this way, the equation of the straight line on the four sides of the manuscript in Figure 9B
=aY+b are determined and these are stored in the memory means G consisting of RAM44.

なお本実施例では、直線方程式は最小自乗法により求め
ているが、本発明は他の近似法例えばチエビシエフ近似
法など公知の近似法を用いて求めてもよいのは勿論であ
る。
In this embodiment, the linear equation is determined by the least squares method, but it goes without saying that the linear equation may be determined by using other approximation methods, such as the Tievisiev approximation method or other known approximation methods.

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

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

以上の実施例はマイクロフィルムリーグに適用したもの
であるが、本発明はPPC複写機などの画像処理装置に
も適用でき、これらを包含する。
Although the embodiments described above are applied to microfilm leagues, the present invention can also be applied to and includes image processing apparatuses such as PPC copying machines.

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

また白黒判別手段Aは、白または黒の画像信号αがNo
回続けて出力されたことから原稿の縁を判断しているが
、本発明はこれに限定されるものではない。
Further, the black and white discrimination means A determines whether the white or black image signal α is No.
Although the edge of the document is determined based on the fact that the document has been output repeatedly, the present invention is not limited to this.

また画像の縁を求めるに当っては、本実施例のように主
走査毎に縁を求めてもよいが、−回おきの主走査や複数
回おきの主走査毎に求めるように構成すれば動作時間が
短縮でき、本発明はこのようなものも包含する。
Furthermore, when determining the edges of the image, the edges may be determined for each main scan as in this embodiment, but it may be configured to be determined for every - every main scan or every multiple main scans. The operating time can be shortened, and the present invention also encompasses such things.

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

(発明の効果) 本発明は以上のように、−度目の走査により画像(原稿
)の縁の直線方程式を直線近似法により求め、トリミン
グ範囲を決定して記憶し、二度目以降の走査ではこのト
リミング範囲内の信号を抽出してこれを所定の信号レベ
ル例えば原稿下地部分の明度や白に変更するものである
から、原稿の縁の座標を全ての主走査ライン毎にメモリ
する場合に比へて、画像の縁の座標がフィルムのゴミや
キズなどにより変動しても、その影響を殆ど受けること
なく画像の縁の方程式を直線で奇麗に決定でき、プリン
タ等に出力された画像の縁を奇麗にトリミングすること
が可能になる。
(Effects of the Invention) As described above, the present invention calculates the linear equation of the edge of the image (original) by the linear approximation method in the −th scan, determines and stores the trimming range, and stores this in the second and subsequent scans. The purpose is to extract the signal within the trimming range and change it to a predetermined signal level, such as the brightness or white of the background part of the document, so if you want to memorize the coordinates of the edge of the document for every main scanning line, it is necessary to use the ratio. Even if the coordinates of the image edge change due to dust or scratches on the film, the equation of the image edge can be determined neatly as a straight line without being affected by it, and the edge of the image output to a printer etc. can be determined neatly. This allows for beautiful trimming.

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

第1図は本発明の機能ブロック図、第1図はこれを適用
したマイクロフィルムリーグの全体構成図、第3図はス
クリーン上の主副走査方向説明図、第4図は白黒判別手
段の原理説明図、第5図は白判別動作の流れ図、第6図
は黒判別動作の流れ図、第7図は原稿の四隅の座標を求
める回路図、第8図はその動作流れ図、第9A図はトリ
ミング範囲演算動作の流れ図、第9B図はその座標系説
明図である。 A・・・白黒判別手段。 B・・・画像縁座機メモリ手段、 C・・・縁直線算出手段、 F・・・トリミング範囲演算手段、 G・・・メモリ手段、 H・・・トリミング手段、 α・・・画像信号、 30・・・ラインセンサ。 特許出願人 富士写真フィルム株式会社代 理 人 弁
理士 山 1)文 雄 (他−名) 第2図 第3図 第4図 第5図 第す図 手続補正書動式) 特許庁長官 小 川 邦 夫 殿 2、発明の名称 画像処理装置 3、補正をする者 事件との関係   特許出願人 住所 神奈川県南足柄市中沼210番地名称 (52G
)富士写真フィルム株式会社代表者  大 西   賞 4、代理人 住 所  東京都港区西新橋1丁目6番21号大和銀行
虎ノ門ビル (電話591−7556)6、補正の対象 明細書の「図面の簡単な説明」の欄 7、補正の内容 明細書第17頁第15〜16行 「第1図はこれを」を「第2図はこれを」と補正する。 /airyべ
Fig. 1 is a functional block diagram of the present invention, Fig. 1 is an overall configuration diagram of a microfilm league to which this is applied, Fig. 3 is an illustration of the main and sub-scanning directions on the screen, and Fig. 4 is the principle of black and white discrimination means. Explanatory drawings: Figure 5 is a flowchart of the white discrimination operation, Figure 6 is a flowchart of the black discrimination operation, Figure 7 is a circuit diagram for determining the coordinates of the four corners of the document, Figure 8 is the operation flowchart, and Figure 9A is the trimming. FIG. 9B, which is a flowchart of the range calculation operation, is an explanatory diagram of the coordinate system. A... Black and white discrimination means. B... Image edge seater memory means, C... Edge straight line calculation means, F... Trimming range calculation means, G... Memory means, H... Trimming means, α... Image signal, 30...Line sensor. Patent Applicant Fuji Photo Film Co., Ltd. Agent Patent Attorney Yama 1) Yu Fumi (and other names) Figure 2 Figure 3 Figure 4 Figure 5 Figure 5 Procedure Amendment Form) Commissioner of the Japan Patent Office Kuni Ogawa Husband 2, Name of the invention Image processing device 3, Relationship with the person making the amendment Patent applicant address 210 Nakanuma, Minamiashigara City, Kanagawa Prefecture Name (52G
) Fuji Photo Film Co., Ltd. Representative: Sho Ohnishi 4, Agent Address: Yamato Bank Toranomon Building, 1-6-21 Nishi-Shinbashi, Minato-ku, Tokyo (Telephone: 591-7556) 6, In column 7 of ``Brief explanation,'' page 17, lines 15-16 of the specification of amendments, ``This is shown in Figure 1'' is corrected to ``This is shown in Figure 2.'' /airybe

Claims (1)

【特許請求の範囲】 画像をその背景と共にイメージセンサで走査して読取り
、この読取った画像信号に基づいて画像を出力する画像
処理装置において、 前記イメージセンサによる一度目の走査で得た画像信号
から画像の縁を求める白黒判別手段と、求めた縁の座標
を記憶するメモリ手段と、記憶した縁の座標を用いて画
像の縁の直線方程式を直線近似法により求める直線演算
手段と、求めた直線方程式を用いてトリミング範囲を決
めるトリミング範囲決定手段と、このトリミング範囲を
記憶するメモリ手段と、前記イメージセンサによる二度
目以降の走査により得られる画像信号の内前記トリミン
グ範囲内の信号を抽出して所定の信号レベルに変更する
トリミング手段とを備えることを特徴とする画像処理装
置。
[Scope of Claims] An image processing device that scans and reads an image together with its background using an image sensor, and outputs an image based on the read image signal, comprising: A black and white discrimination means for determining the edge of an image, a memory means for storing the coordinates of the determined edge, a linear calculation means for calculating a straight line equation of the edge of the image by a straight line approximation method using the stored coordinates of the edge, and the determined straight line. a trimming range determining means for determining a trimming range using an equation; a memory means for storing the trimming range; An image processing device comprising: trimming means for changing the signal level to a predetermined signal level.
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 true JPH01225284A (en) 1989-09-08
JP2912371B2 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5162850A (en) * 1990-07-23 1992-11-10 Ricoh Company, Ltd. Image forming apparatus using a linear equation to sense surface potential
CN108724317A (en) * 2018-05-16 2018-11-02 广东白云学院 Cutting system and method for cutting out

Citations (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

Patent Citations (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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5162850A (en) * 1990-07-23 1992-11-10 Ricoh Company, Ltd. Image forming apparatus using a linear equation to sense surface potential
CN108724317A (en) * 2018-05-16 2018-11-02 广东白云学院 Cutting system and method for cutting out
CN108724317B (en) * 2018-05-16 2024-04-19 广东白云学院 Cutting system and cutting method

Also Published As

Publication number Publication date
JP2912371B2 (en) 1999-06-28

Similar Documents

Publication Publication Date Title
JPH05252379A (en) Image processor
JP2768786B2 (en) Image reading device
US5608544A (en) Framed-area defining rectangle forming device
JPS6113867A (en) Area designation system
JPH01225284A (en) Picture processor
JPH043656A (en) Picture processor
JP2576878B2 (en) Image processing device
JPH043655A (en) Picture processor
JPS6146671A (en) Area designation system
JP3332170B2 (en) Method and apparatus for detecting black frame of micro film reader
JPH043654A (en) Picture processor
JP3077862B2 (en) In-focus position detection method in image reading device
JP3312787B2 (en) Image processing system
JPH0519351A (en) Microfilm reader
JP2968819B2 (en) Image processing device
JP2608264B2 (en) Image reading device
JP3021018B2 (en) Digital image processing device
JPH06233112A (en) Black frame detecting method for microfilm reader
JPH0416059A (en) Picture processor
JPH01126877A (en) Shading correcting method
JP2922618B2 (en) Digital image processing device
JP2774402B2 (en) Image processing device
JPH0795344B2 (en) Image correction method
JP3634531B2 (en) Shading correction method and overhead projector
JPH09261448A (en) Image processor

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