JPH01136110A - Image detecting method - Google Patents

Image detecting method

Info

Publication number
JPH01136110A
JPH01136110A JP62293960A JP29396087A JPH01136110A JP H01136110 A JPH01136110 A JP H01136110A JP 62293960 A JP62293960 A JP 62293960A JP 29396087 A JP29396087 A JP 29396087A JP H01136110 A JPH01136110 A JP H01136110A
Authority
JP
Japan
Prior art keywords
image
histogram
output signal
value
decided
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
JP62293960A
Other languages
Japanese (ja)
Other versions
JPH0711619B2 (en
Inventor
Hisamitsu Hori
堀 久満
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 JP62293960A priority Critical patent/JPH0711619B2/en
Priority to US07/274,544 priority patent/US4899194A/en
Publication of JPH01136110A publication Critical patent/JPH01136110A/en
Publication of JPH0711619B2 publication Critical patent/JPH0711619B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Projection Apparatus (AREA)
  • Focusing (AREA)
  • Variable Magnification In Projection-Type Copying Machines (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

PURPOSE:To decide whether an image exists or not in a short time and with high accuracy by comparing a frequency value of a histogram for showing the number of picture elements to an output signal of an image sensor, with a prescribed value, and also, comparing the number of times of a polarity inversion obtained by binarizing the output signal of the image sensor, with a prescribed value. CONSTITUTION:When an expanse in the axis-of-abscissa direction of a histogram derived from an image signal of a narrow area, namely, the overall length L1 in the axis-of-abscissa direction in which the histogram exceeds a set value exceeds a set value, it is decided that an image exists, and by using this area. Also, when the overall length L becomes below the set value and it is decided that no image exists, this histogram derives binarization levels (a), (b) by using a histogram whose crest is high and whose width is narrow. Thereafter, while changing a focus zone, an output signal of a line sensor is binarized in a real time, and with respect to the focus zone in which the number of times of its polarity inversion exceeds a prescribed value, it is decided that an image exists. In such a way, whether the image exists or not can be decided in a short time and with high accuracy.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、CODラインセンサなどのイメージセンサを
用いて合焦判別するオートフォーカス装置の画像検出方
法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image detection method for an autofocus device that determines focus using an image sensor such as a COD line sensor.

(発明の技術的背景) CODラインセンサなどのイメージセンサを用いたオー
トフォーカス方法が種々提案されている。しかしこのオ
ートフォーカス動作にはその動作に適した画像領域の投
影光がイメージセンサに入力されていることが前提とな
る。例えば単一明度の画像領域や濃度変化の頻度が少な
い領域では正しいオートフォーカス動作ができず誤動作
の原因となる。
(Technical Background of the Invention) Various autofocus methods using image sensors such as COD line sensors have been proposed. However, this autofocus operation presupposes that projection light of an image area suitable for the operation is input to the image sensor. For example, in an image area with a single brightness or in an area where the density changes infrequently, correct autofocus operation cannot be performed, resulting in malfunction.

そこでオートフォーカス動作に先行してオートフォーカ
スに適する画像領域であるか否かを判断する方法が提案
されている0例えばイメージセンサの出力信号を所定の
二値化レベルで二値化し、その極性反転回数換言すれば
白黒反転回数を求め所定回数以上であれば画像有りとす
るものかある、しかしこの方法は画像のバックグラウン
ド濃度やフィルム原画のネガ・ポジ極性により二値化レ
ベルを変更する必要があるため、バックグラウンド濃度
を予め求めておく必要が生じる0例えば先行する走査(
プリスキャン)によって画像全面のヒストグラムを求め
、このヒルトゲラムを用いてバックグラウンド濃度を決
める方法がある。しかしこのように画像全面のプリスキ
ャンによりヒストグラムを求めるものでは動作時間が長
くなるよいう問題が生じる。ここに動作時間を短縮する
ために小さい領域のみの画像信号に基づきヒストグラム
を作ることも考えられるが、この場合には精度が低下す
るという問題が生じる。
Therefore, a method has been proposed that determines whether the image area is suitable for autofocus prior to the autofocus operation. In other words, there is a method that calculates the number of black and white inversions and if it is a predetermined number or more, it is determined that an image exists. However, this method requires changing the binarization level depending on the background density of the image and the negative/positive polarity of the original film. Therefore, it is necessary to calculate the background density in advance.For example, in the previous scan (
There is a method in which a histogram of the entire image is obtained by pre-scanning, and the background density is determined using this hilt gel. However, when the histogram is obtained by pre-scanning the entire image, a problem arises in that the operation time is long. In order to shorten the operation time, it is conceivable to create a histogram based on image signals of only a small area, but in this case, a problem arises in that the accuracy decreases.

特に、文字列など画像密度の高い画像部分でバックグラ
ンド濃度を求め、このバックグラウンド濃度より2値化
のスライスレベルを決めた場合、精度の低下が著しい。
In particular, when the background density is determined in an image portion with high image density, such as a character string, and the slice level for binarization is determined based on this background density, the accuracy decreases significantly.

(発明の目的) 本発明はこのような事情に鑑みなされたものであり、フ
ィルム原画のネガ・ポジ極性が不明な場合であっても、
狭い領域の画像信号を用いて短時間で高精度に画像の有
無を判断できるオートフォーカス装置の画像検出方法を
提供することを目的とする。
(Object of the Invention) The present invention was made in view of the above circumstances, and even if the negative/positive polarity of the original film is unknown,
It is an object of the present invention to provide an image detection method for an autofocus device that can determine the presence or absence of an image with high precision in a short time using an image signal in a narrow area.

・(発明の構成) 本発明によればこの目的は、画像投影光をイメージセン
サにより走査して得られるイメージセンサの出力信号を
用いて、投影レンズを合焦位置に制御するオートフォー
カス装置の画像検出方法において、前記イメージセンサ
の出力信号に対する画素数を示すヒストグラムの頻度値
が設定値以上となる前記出力信号の範囲の全長を求め、
この全長と一定値とを比較し、前者が後者以上なら適切
な画像有りとしてオートフォーカス動作を行う一方、前
者が後者以下ならばこのヒストグラムを用いて二値化レ
ベルを求め、この二値化レベルを用いてイメージセンサ
の出力信号を二値化して極性反転回数を積算し、この極
性反転回数が一定値以上になるフォーカスゾーンを画像
有りとしてオートフォーカス動作を行うことを特徴とす
るオートフォーカス装置の画像検出方法により達成され
る。
- (Structure of the Invention) According to the present invention, this purpose is to improve the image quality of an autofocus device that controls a projection lens to a focused position using an output signal of an image sensor obtained by scanning image projection light with an image sensor. In the detection method, the total length of the range of the output signal in which a frequency value of a histogram indicating the number of pixels for the output signal of the image sensor is equal to or greater than a set value is determined;
This total length is compared with a certain value, and if the former is greater than or equal to the latter, it is assumed that there is an appropriate image and autofocus operation is performed.If the former is less than or equal to the latter, the binarization level is determined using this histogram, and this binarization level An autofocus device characterized in that it binarizes the output signal of an image sensor using , integrates the number of polarity inversions, and performs an autofocus operation by treating a focus zone where the number of polarity inversions exceeds a certain value as an image. This is achieved by an image detection method.

(原理) 第5図のN−1,P−1はマイクロリーグプリンタにお
けるCCDラインセンサの出力信号Vの時間tに対する
変化を、また同図N−2、P−2はそれぞれのヒストグ
ラムを示している。
(Principle) N-1 and P-1 in Figure 5 show the changes over time t in the output signal V of the CCD line sensor in a microleague printer, and N-2 and P-2 in the same figure show their respective histograms. There is.

ここにN−1、N−2は原画がネガフィルムの場合、P
−1、P−2はポジフィルムの場合である。
Here, N-1 and N-2 are P if the original is a negative film.
-1 and P-2 are for positive films.

一般に原稿の黒化率は6%程度であり、高くても20〜
30%が限界である。従ってラインセンサ上ではバック
グラウンドに対応する画素が圧倒的に多くなる。またこ
のバックグラウンドの濃度は一枚あるいは一本のフィル
ム内ではその変動が少なく比較的安定している。従って
出力信号V(濃度りに対応している)に対する画素数N
を示すヒストグラム(N−2、P−2)は、バックグラ
ウンド濃度01.02に大きな最大値A、Bを持つこと
になる。そして適切な画像が含まれていなければその最
大値は著しく高くなり、また画像が含まれていれば低く
なると共に広がることになる。従ってこのヒストグララ
ムの横軸方向(出力信号、濃度に対応)の広がりが一定
以上なら画像有りとし、一定以下なら画像無しと判別す
ることが可能である。ここに各ヒストグラムの面積はラ
インセンサの画素数に対応して一定である。
Generally, the blackening rate of originals is about 6%, and at most 20~20%.
The limit is 30%. Therefore, on the line sensor, the number of pixels corresponding to the background becomes overwhelmingly large. Further, the density of this background is relatively stable with little variation within one sheet or one film. Therefore, the number of pixels N for the output signal V (corresponding to density)
The histogram (N-2, P-2) showing the background density has large maximum values A and B at 01.02. If a suitable image is not included, the maximum value will be extremely high, and if an image is included, the maximum value will become lower and wider. Therefore, if the spread of this histogram in the horizontal axis direction (corresponding to the output signal and density) is above a certain level, it can be determined that an image exists, and if it is below a certain level, it can be determined that there is no image. Here, the area of each histogram is constant corresponding to the number of pixels of the line sensor.

このヒストグラムからバックグラウンド濃度DI、D?
および二値化レベルa、bを求める場合には、最大値A
、Hの山が高くその幅が狭い場合、換言すればヒストグ
ラムの横軸方向の広がりが小さい場合の方がバックグラ
ンド部分が多い領域にてヒストグラムを求めたことにな
るので精度向上の点から望ましい。
From this histogram, the background concentration DI, D?
And when determining the binarization levels a and b, the maximum value A
, when the peak of H is high and its width is narrow, in other words, when the spread of the histogram in the horizontal axis direction is small, this means that the histogram is obtained in an area with a large amount of background, which is desirable from the viewpoint of improving accuracy. .

本発明はこのような点に着目し、狭い領域の画像信号か
ら求めたヒストグラムの横軸方向の広がり、すなわちヒ
ストグラムが設定値以上となる横軸方向の全長L+が設
定値LO以上となる場合には画、像有りとし、この領域
を用いてオートフォーカス動作を行うことにより動作時
間の大幅の短縮を可能とする。
The present invention focuses on such points, and when the spread in the horizontal axis direction of the histogram obtained from the image signal of a narrow area, that is, the total length L+ in the horizontal axis direction at which the histogram exceeds the set value, is equal to or larger than the set value LO. It is assumed that there is an image, and by performing an autofocus operation using this area, it is possible to significantly shorten the operation time.

またヒストグラムの広がりを示す全長りが設、定値Lo
以下となって適切な画像無しと判断した時には、この時
のヒストグラムは山が高く幅が狭くなりバックグラウン
ド濃度を高精度に決定するのに好適であることに着目し
、二値化レベルa。
In addition, the total length indicating the spread of the histogram is set, and the set value Lo
When it is determined that there is no suitable image in the following conditions, the histogram at this time has high peaks and a narrow width, which is suitable for determining the background density with high accuracy, and the binarization level is set to a.

bを求める。例えば第5図(N−3)。Find b. For example, FIG. 5 (N-3).

(P−3)に示すように、ネガ原稿の時にはヒストグラ
ムが最大となる濃度DIより濃い側に画像が有り、反対
にポジ原画の時には濃度D2より薄い側に画像が有る。
As shown in (P-3), when it is a negative original, the image is on the darker side than the density DI where the histogram is maximum, and on the other hand, when it is a positive original, the image is on the side where the density is lighter than the density D2.

従ってヒストグラムの最大値の山が一定の設定値χ0と
交わる2点のうち大きい点の濃度に一定値αを加算した
濃度aをネガの二値化レベルに、また小さい点の濃度か
ら一定値βを減算した濃度すをポジの二値化レベルに採
用することができる。
Therefore, the density a obtained by adding a fixed value α to the density of the larger point of the two points where the peak of the maximum value of the histogram intersects with a fixed set value χ0 is the negative binarization level, and the fixed value β is determined from the density of the smaller point. The density obtained by subtracting can be used as the positive binarization level.

本発明はヒストグラムの広がりを示す全長りが設定値L
o以下となって画像無しと判断した時には、このヒスト
グラムは山が高く幅が狭いし壱らじびヒストグラムを用
いて前記のように二値化レベルa、bを求め、以後はフ
ォーカスゾーンを変更しながら、リアルタイムでライン
センサの出力信号を二値化し、その極性反転回数が一定
以上となるフォーカスゾーンを画像有りとするものであ
る。
In the present invention, the total length indicating the spread of the histogram is the set value L.
o or less and it is determined that there is no image, this histogram has high peaks and a narrow width, and the binarization levels a and b are obtained as described above using the first histogram. From then on, the focus zone is changed. At the same time, the output signal of the line sensor is binarized in real time, and a focus zone where the number of polarity inversions is a certain number or more is determined to be an image.

(実施例) 第1図は本発明の一実施例であるリーグプリンタの全体
概略図、第2図はそのオートフォーカス制御装置のブロ
ック図、第3図は動作の流れ図、また第4図は各部の出
力波形図である。
(Embodiment) Fig. 1 is an overall schematic diagram of a league printer that is an embodiment of the present invention, Fig. 2 is a block diagram of its autofocus control device, Fig. 3 is a flowchart of its operation, and Fig. 4 is a diagram of each part. FIG.

第1.2図において符号lOはマイクロフィッシュやマ
イクロロールフィルムなどのマイクロ写真の原画である
。12は光源であり、光源12の光はコンデンサレンズ
14、防熱フィルタ16、反射鏡18を介して原画10
の下面に導かれる。
In FIG. 1.2, the symbol 1O is the original image of a microphotograph such as microfiche or microroll film. 12 is a light source, and the light from the light source 12 is transmitted to the original image 10 via a condenser lens 14, a heat shielding filter 16, and a reflecting mirror 18.
guided to the underside of

リーダモードにおいては、原画IOの透過光(画像投影
光)は、投影レンズ20、反射鏡22.24.26によ
って透過型スクリーン28に導かれ、このスクリーン2
8に原画10の拡大投影像を結像する。プリンタモード
においては、反射鏡24は第1図仮想線位置に回動し、
投影光は反射鏡22.30.32によってPPC方式の
スリット露光型プリンタ34に導かれる。プリンタ34
の感光ドラム36の回転に同期して反射鏡22.30が
移動し、感光ドラム36上に潜像が形成される。この潜
像は所定の極性に帯電されたトナーにより可視像化され
、このトナー像が転写紙38に転写される。
In the reader mode, the transmitted light (image projection light) of the original image IO is guided to the transmissive screen 28 by the projection lens 20 and the reflecting mirrors 22, 24, 26.
8, an enlarged projected image of the original image 10 is formed. In the printer mode, the reflecting mirror 24 is rotated to the imaginary line position in FIG.
The projection light is guided to a PPC type slit exposure type printer 34 by reflecting mirrors 22, 30, 32. printer 34
The reflecting mirrors 22 and 30 move in synchronization with the rotation of the photosensitive drum 36, and a latent image is formed on the photosensitive drum 36. This latent image is made visible by toner charged to a predetermined polarity, and this toner image is transferred onto the transfer paper 38.

50はフォーカス制御用光学系であり、画像投影光の光
軸上に配置された半透鏡52と、投影レンズ54と、イ
メージセンサとしてのCCDラインセンサ56と、サー
ボモータ58とを備える。
Reference numeral 50 denotes a focus control optical system, which includes a semi-transparent mirror 52 disposed on the optical axis of image projection light, a projection lens 54, a CCD line sensor 56 as an image sensor, and a servo motor 58.

投影レンズ20を通過した投影光の一部は半透鏡52に
より投影レンズ54を通してラインセンサ56に導かれ
る。ラインセンサ56はモータ58により光軸に直交す
る方向へ移動可能となっている。また投影レンズ54は
、投影光がスクリーン28あるいは感光ドラム36の投
影面上に合焦する位置に投影レンズ20を置いた時に、
ラインセンサ56の受光面上にも正確に結像するように
、その焦点距離が決められている。
A portion of the projection light that has passed through the projection lens 20 is guided by a semi-transparent mirror 52 to a line sensor 56 through a projection lens 54 . The line sensor 56 is movable by a motor 58 in a direction perpendicular to the optical axis. Furthermore, when the projection lens 20 is placed at a position where the projection light is focused on the screen 28 or the projection surface of the photosensitive drum 36,
The focal length of the line sensor 56 is determined so that the image is accurately formed on the light receiving surface of the line sensor 56.

オートフォーカス機構は投影レンズ20を光軸方向に進
退動させるサーボモータ60を備え、投影光がスクリー
ン28あるいは感光ドラム36の投影面上に正しく結像
するように制御手段48により焦点制御される。
The autofocus mechanism includes a servo motor 60 that moves the projection lens 20 forward and backward in the optical axis direction, and the focus is controlled by the control means 48 so that the projection light is correctly focused on the screen 28 or the projection surface of the photosensitive drum 36.

制御手段48は第2図に示すように構成される。すなわ
ちクロック62が出力するクロックパルスに同期してC
ODドライバ64はラインセンサ56を駆動する。この
ラインセンサ56はその一走査毎に各画素の入射光量に
対応して電圧変化するパルス電圧を出力する。このパル
ス電圧は、各画素の特性のバラツキなどのために同じ光
量が投影されていても各画素毎に変動する。信号処理回
路66は各画素のこの特性のバラツキを補正し、かつ波
形整形して第5図N−1,P−1の出力信号Vとする。
The control means 48 is constructed as shown in FIG. In other words, in synchronization with the clock pulse output by the clock 62, C
The OD driver 64 drives the line sensor 56. This line sensor 56 outputs a pulse voltage that changes in voltage in accordance with the amount of light incident on each pixel for each scan. This pulse voltage varies from pixel to pixel even if the same amount of light is projected due to variations in the characteristics of each pixel. The signal processing circuit 66 corrects this variation in characteristics of each pixel and shapes the waveform to produce output signals V shown in FIG. 5 N-1 and P-1.

このように信号処理された出力信号VはA/D変換器6
8でデジタル信号に変換され、入カインターフェース7
0を介してCPU72に入力される。 第2図で74は
CPU72の制御プログラム等を記憶するROM、76
はRAM、78は出力インターフェース、80および8
2はD/A変換器、84.86はそれぞれモータ58.
60を駆動するドライバである。
The output signal V processed in this way is sent to the A/D converter 6.
8 is converted into a digital signal, and input interface 7
0 to the CPU 72. In FIG. 2, 74 is a ROM that stores control programs for the CPU 72, and 76
is RAM, 78 is output interface, 80 and 8
2 is a D/A converter, 84.86 is a motor 58.
This is a driver that drives 60.

第2図で100.102は比較器であり、各比較器io
0.102の非反転入力端には出力信号Vが入力され、
反転入力端にはそれぞれ後記するようにしてCPU72
で求めたネガ用およびポジ用の二値化レベルa、bが入
力される(第5図参照)、従ってこれら比較器100,
102の出力は第4図c、dで示すようにV>a、V>
bの範囲でHレベルとなる。108.110は単安定マ
ルチバイブレータであり、比較器100.102の出力
c、dの波形の立上がりに同期して一定時間幅の極性反
転パルスe、fを出力する。
In Figure 2, 100.102 is a comparator, and each comparator io
The output signal V is input to the non-inverting input terminal of 0.102,
The inverting input terminal is connected to the CPU 72 as described later.
The negative and positive binarization levels a and b determined in are input (see FIG. 5), so these comparators 100,
The output of 102 is V>a, V> as shown in Fig. 4c and d.
It becomes H level in the range b. Reference numerals 108 and 110 designate monostable multivibrators, which output polarity inversion pulses e and f of a constant time width in synchronization with the rise of the waveforms of the outputs c and d of the comparators 100 and 102.

これらの極性反転パルスe、fはラインセンサ56の一
走査毎にカウンタ112.114で積算される。これら
のカウント値Nn、Npはそれぞれ極性反転回数を示し
、それぞれ設定器116゜118で設定された一定値M
n、Mpと比較器120.122において比較される。
These polarity inversion pulses e and f are integrated by counters 112 and 114 every time the line sensor 56 scans. These count values Nn and Np each indicate the number of times of polarity reversal, and are each a constant value M set by the setting device 116 and 118.
n and Mp in comparators 120 and 122.

そして各カウント値Nn、Npが一定値Mn、Mpに達
すると比較器120,122は画像有りとしてHレベル
となる信号g、hを出力する。信号g、hはCPU72
に入力され、いずれかの信号gまたはhがHレベルとな
ればCPU72は画像有りとする。この時Hレベルとな
る信号gまたはhに対応して原画のネガ・ポジを判断し
、対応した二値化レベルaまたはbを用いてオートフォ
ーカス動作を行う。
When each count value Nn, Np reaches a certain value Mn, Mp, the comparators 120, 122 output signals g, h which become H level indicating that an image is present. Signals g and h are from the CPU 72
If either signal g or h becomes H level, the CPU 72 determines that there is an image. At this time, it is determined whether the original image is negative or positive in accordance with the signal g or h which is at the H level, and an autofocus operation is performed using the corresponding binarization level a or b.

次に本実施例の動作を説明する。制御手段48は、CP
U72で設定されたゾーンに対応する領域の投影光がラ
インセンサ56に入射するようにサーボモータ58を制
御する。使用者は反射鏡24を第1図実線位置においた
リーダモードを選択し、目標原画をスクリーン28に投
影させる(第3図、ステップ100)、この投影光の一
部は半透鏡52によってラインセンサ56に導かれる。
Next, the operation of this embodiment will be explained. The control means 48
The servo motor 58 is controlled so that the projection light in the area corresponding to the zone set in U72 is incident on the line sensor 56. The user selects the reader mode with the reflecting mirror 24 positioned at the solid line position in FIG. 56.

制御手段48は次にラインセンサ56の出力信号Vを読
み込ん−で記憶する一方(ステップ102)、この出力
信号Vに基づいて露光量測定を行う(ステップ104)
。すなわち信号処理回路66の出力信号Vはインターフ
ェース70を介してCPU72に読込まれ、CPU72
で露光量制御が行われる。露光量が適正でなければ(ス
テップ106)光量を変更しくステップ108)、再度
露光量測定を行う。この露光量の調整は、例えばライン
センサ56の各画素の出力信号電圧のうち、バックグラ
ウンド領域に対応する画素の電圧を選んでこれが所定電
圧になるように光源12の光量を調整することにより行
われる。
The control means 48 then reads and stores the output signal V of the line sensor 56 (step 102), and measures the exposure amount based on this output signal V (step 104).
. That is, the output signal V of the signal processing circuit 66 is read into the CPU 72 via the interface 70, and
Exposure amount control is performed in . If the exposure amount is not appropriate (step 106), the amount of light should be changed (step 108), then the exposure amount is measured again. This exposure amount adjustment is performed, for example, by selecting the voltage of the pixel corresponding to the background area from among the output signal voltages of each pixel of the line sensor 56, and adjusting the light amount of the light source 12 so that this becomes a predetermined voltage. be exposed.

次に制御手段48はラインセンサ56に入力された投影
光にオートフォーカスに適した画像が含まれるか否かを
判断する。すなわち出力信号Vに基づき第5図N−2、
P−2に示すヒストグラムを求め(ステップ110)、
その縦軸の頻度Nが設定値%以上となる横軸の範囲すな
わち出力信号あるいは濃度の範囲の全長りを求める。こ
の全長りが一定値Lo以上であれば(ステップ112)
適正な画像が有るとして(ステップ114)制御手段4
8はオートフォーカス制御を行う(ステップ116)。
Next, the control means 48 determines whether or not the projection light input to the line sensor 56 includes an image suitable for autofocus. That is, based on the output signal V, N-2 in FIG.
Obtain the histogram shown in P-2 (step 110),
The total length of the range on the horizontal axis, that is, the range of the output signal or concentration, in which the frequency N on the vertical axis is equal to or greater than the set value % is determined. If this total length is greater than or equal to a certain value Lo (step 112)
Assuming that there is a proper image (step 114), the control means 4
8 performs autofocus control (step 116).

このオートフォーカス制御の方法は種々のものが適用可
能であり、例えば出力信号Vからコントラストが最大と
なる投影レンズ20の位置を求め、その位置を合焦とす
る(ステップ118)。
Various methods can be used for this autofocus control. For example, the position of the projection lens 20 at which the contrast is maximized is determined from the output signal V, and that position is determined to be in focus (step 118).

この合焦状態でプリンタモードにすれば(ステップ12
0)、反射鏡24が第1図仮想線位置に回動し、転写紙
38に画像が転写されてハードコピーが得られる。
If you switch to printer mode in this focused state (step 12)
0), the reflecting mirror 24 is rotated to the position shown by the imaginary line in FIG. 1, and the image is transferred onto the transfer paper 38 to obtain a hard copy.

ステップ112において全長りが一定値Lo以下になれ
ば適切な画像が無いものとして制御手段48はこのヒス
トグラムを用いてネガ用およびポジ用に二値化レベルa
、bを求める(ステップ122)、すなわち前記したよ
うにヒストグラムの最大値の山が設定値χ0と交わる2
点のうち大きい方の点の濃度に一定値αを加算してネガ
用のレベルaを、小さい方の濃度から一定値βを減算し
てポジ用のレベルbを求める。CPU72はラインセン
サ56をモータ58により移動して異なるフォーカスゾ
ーンを選定しくステップ124)、新たに走査して得ら
れる出力信号■をこれらの二値化レベルa、bによりリ
アルタイムで二値化しくステップ126)、その極性反
転回数Nn、Npをカウンタ112.114で積算する
(ステップ128)。そしてカウント値Nn 。
In step 112, if the total length is less than a certain value Lo, it is assumed that there is no suitable image, and the control means 48 uses this histogram to set the binarization level a to negative and positive.
, b (step 122), that is, as mentioned above, the peak of the maximum value of the histogram intersects with the set value χ0.
A constant value α is added to the density of the larger point among the points to obtain a negative level a, and a positive level b is obtained by subtracting a constant value β from the smaller density. The CPU 72 moves the line sensor 56 by the motor 58 to select a different focus zone (step 124), and binarizes the newly scanned output signal (2) in real time using these binarization levels a and b. 126), and the counters 112 and 114 add up the number of polarity reversals Nn and Np (step 128). and count value Nn.

Npが一定値M!1.MPより大きければ比較器120
.122は画像有りとするHレベルの信号gまたはhを
CPU72に出力する(ステップ130)。CPU72
は信号g、hのいずれもがHレベルにならなければ画像
無しとして新しい領域にラインセンサ56を移動させス
テップ126〜130の動作を繰り返す。信号g、hの
いずれかがHレベルであれば適正な画像有りとしくステ
ップ114)制御手段48はオートフォーカス制御を行
う(ステップ116,118)、そしてプリンタモード
にすればハードコピーが得られる(ステップ120)。
Np is a constant value M! 1. If it is larger than MP, comparator 120
.. 122 outputs an H level signal g or h indicating that an image is present to the CPU 72 (step 130). CPU72
If both signals g and h do not reach the H level, it is determined that there is no image and the line sensor 56 is moved to a new area and the operations of steps 126 to 130 are repeated. If either the signal g or h is at H level, it is assumed that there is a proper image (step 114), and the control means 48 performs autofocus control (steps 116, 118), and if the printer mode is set, a hard copy can be obtained (step 114). Step 120).

以上の実施例ではネガ用およびポジ用の二値化レベルa
、bを求め、これにより二値化した時の極性反転回数を
ネガ用、ポジ用に対応して同時に並行して求めているか
ら、信号g、hのいずれかがHレベルになることから原
画のネガ・ポジの判別も同時に行うことができる。しか
し本発明はネガ・ポジの種類を手動入力し、これに対応
して二値化レベルa、bの一方のみを求めるようにした
ものを含む。
In the above embodiment, the binarization level a for negative and positive
, b are calculated, and the number of polarity inversions when binarized is calculated in parallel for negative and positive signals. Since either signal g or h becomes H level, it is the original image. It is also possible to distinguish between negative and positive images at the same time. However, the present invention includes a method in which the type of negative or positive is manually input and only one of the binarization levels a and b is determined accordingly.

なおイメージセンサはCCDラインセンサに限られるも
のではなく、MO3型ラインセンサ、あるいはエリアセ
ンサであってもよい。
Note that the image sensor is not limited to a CCD line sensor, but may be an MO3 type line sensor or an area sensor.

(発明の効果) 本発明は以上のように、イメージセンサの出力信号のヒ
ストグラムを求め、第1段階として、このヒストグラム
の縦軸である頻度値が設定値以上となる横軸の範囲すな
わち出力信号範囲あるいは濃度範囲の全長りを求め、こ
の全長りが一定値以上であればオートフォーカスに適し
た画像有りと判断してオートフォーカス動作を行うから
、動作時間が非常に短縮できる。またこの全長が設定値
以下であれば、文字列と画像密度の高い部分以外の領域
でヒストグラムを求めたと判断することが可能であるか
ら画像無しとし、この時のヒストグラムは山が高いので
バックグラウンド濃度を高精度に決定するのに好適であ
り、このヒストグラムを用いて二値化レベルを求める。
(Effects of the Invention) As described above, the present invention obtains a histogram of the output signal of an image sensor, and as a first step, calculates the range on the horizontal axis in which the frequency value on the vertical axis of this histogram is equal to or higher than a set value, that is, the output signal. The total length of the range or density range is determined, and if this total length is equal to or greater than a certain value, it is determined that there is an image suitable for autofocusing, and the autofocusing operation is performed, so the operating time can be greatly reduced. Also, if this total length is less than the set value, it is possible to determine that the histogram has been obtained in areas other than the character string and the high-density part of the image, so it is assumed that there is no image, and the histogram at this time has high peaks, so the background This histogram is suitable for determining density with high precision, and the binarization level is determined using this histogram.

そして以後新しいフォーカスゾーン毎にリアルタイムで
イメージセンサ出力信号を二値化しその極性反転回数が
一定以上なら画像有りとする。このため画像の全面に対
するヒストグラムを求めるまでもなく、狭い領域に対す
るヒストグラムから画像の有無を短時間かつ高精度に判
断できる。また二値化レベルを求めた後は極性反転回数
が新たなフォーカスゾーンに対しリアルタイムで求めら
れるから動作時間が長くなることも無い。
Thereafter, the image sensor output signal is binarized in real time for each new focus zone, and if the number of polarity inversions is greater than a certain value, it is determined that an image exists. Therefore, there is no need to obtain a histogram for the entire image, and the presence or absence of an image can be determined in a short time and with high precision from the histogram for a narrow area. Further, after determining the binarization level, the number of polarity inversions is determined in real time for a new focus zone, so the operation time does not become long.

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

第1図は本発明の一実施例であるリーグプリンタの全体
概略図、第2図はそのオートフォーカス制御装置のブロ
ック図、第3図は動作の流れ図、第4図は各部の出力波
形図、第5図は原理を説明するためのイメージセンサの
出力信号およびそのヒストグラムを示す図である。 10・・・原画、 20・・・投影レンズ、 56・・・−次元固体イメージセンサ。 N・・・頻度値、 χ・・・設定値、 L・・・全長、Lo・・・一定値、 a、b・・・二値化レベル、 Nn Np・・・極性反転回数。 特許出願人 富士写真フィルム株式会社代 理 人 弁
理士 山 1)文 雄 (他1名) 第1図 好 j
Fig. 1 is an overall schematic diagram of a league printer that is an embodiment of the present invention, Fig. 2 is a block diagram of its autofocus control device, Fig. 3 is a flow chart of its operation, Fig. 4 is an output waveform diagram of each part, FIG. 5 is a diagram showing an output signal of an image sensor and its histogram for explaining the principle. DESCRIPTION OF SYMBOLS 10... Original picture, 20... Projection lens, 56... -dimensional solid-state image sensor. N...Frequency value, χ...Setting value, L...Total length, Lo...Constant value, a, b...Binarization level, Nn Np...Number of polarity reversals. Patent applicant Fuji Photo Film Co., Ltd. Agent Patent attorney Yama 1) Yu Fumi (and 1 other person) Figure 1 Koj

Claims (1)

【特許請求の範囲】 画像投影光をイメージセンサにより走査して得られるイ
メージセンサの出力信号を用いて、投影レンズを合焦位
置に制御するオートフォーカス装置の画像検出方法にお
いて、 前記イメージセンサの出力信号に対する画素数を示すヒ
ストグラムの頻度値が設定値以上となる前記出力信号の
範囲の全長を求め、この全長と一定値とを比較し、前者
が後者以上なら適切な画像有りとしてオートフォーカス
動作を行う一方、前者が後者以下ならばこのヒストグラ
ムを用いて二値化レベルを求め、この二値化レベルを用
いてイメージセンサの出力信号を二値化して極性反転回
数を積算し、この極性反転回数が一定値以上になるフォ
ーカスゾーンを画像有りとしてオートフォーカス動作を
行うことを特徴とするオートフォーカス装置の画像検出
方法。
[Scope of Claim] An image detection method for an autofocus device that controls a projection lens to a focusing position using an output signal of an image sensor obtained by scanning image projection light with an image sensor, comprising: an output signal of the image sensor; Find the total length of the range of the output signal in which the frequency value of the histogram indicating the number of pixels for the signal is equal to or greater than a set value, compare this total length with a constant value, and if the former is equal to or greater than the latter, an appropriate image is assumed and autofocus operation is performed. On the other hand, if the former is less than the latter, use this histogram to find the binarization level, use this binarization level to binarize the output signal of the image sensor, accumulate the number of polarity inversions, and calculate the number of polarity inversions. 1. An image detection method for an autofocus device, characterized in that an autofocus operation is performed with a focus zone in which is equal to or greater than a certain value as an image.
JP62293960A 1987-11-24 1987-11-24 Image detection method Expired - Fee Related JPH0711619B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62293960A JPH0711619B2 (en) 1987-11-24 1987-11-24 Image detection method
US07/274,544 US4899194A (en) 1987-11-24 1988-11-22 Method of and device for detecting image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62293960A JPH0711619B2 (en) 1987-11-24 1987-11-24 Image detection method

Publications (2)

Publication Number Publication Date
JPH01136110A true JPH01136110A (en) 1989-05-29
JPH0711619B2 JPH0711619B2 (en) 1995-02-08

Family

ID=17801416

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62293960A Expired - Fee Related JPH0711619B2 (en) 1987-11-24 1987-11-24 Image detection method

Country Status (1)

Country Link
JP (1) JPH0711619B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009291252A (en) * 2008-06-02 2009-12-17 Nidek Co Ltd Occular fundus imaging apparatus
JP2009291253A (en) * 2008-06-02 2009-12-17 Nidek Co Ltd Ophthalmic photographing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009291252A (en) * 2008-06-02 2009-12-17 Nidek Co Ltd Occular fundus imaging apparatus
JP2009291253A (en) * 2008-06-02 2009-12-17 Nidek Co Ltd Ophthalmic photographing apparatus

Also Published As

Publication number Publication date
JPH0711619B2 (en) 1995-02-08

Similar Documents

Publication Publication Date Title
US4899194A (en) Method of and device for detecting image
JPH01136110A (en) Image detecting method
JP2547621B2 (en) Image region detection method and apparatus for image processing apparatus
JPH01120517A (en) Image detecting method
JPH01182813A (en) Image detection
JPH01182814A (en) Image detection
JPH01182815A (en) Image detection
JP2540030B2 (en) Autofocus method
JPS6370813A (en) Automatic focusing method
JPH01116611A (en) Image detecting method
JPH01116610A (en) Image detecting method
JPH0192710A (en) Image detecting method
JPS61236272A (en) Automatic focusing mechanism for image reader
JPS62283308A (en) Automatic focusing method
JPS6370814A (en) Automatic focusing method
JPS63135910A (en) Auto focusing method
JPH0612375B2 (en) Image detection method for optical device
JPS62115973A (en) Picture processing method and its device
JPH0612374B2 (en) Image detection method for optical device
JPS6325609A (en) Auto-focusing method
JPH01311761A (en) Picture position detecting method for picture processing unit
JPS62283307A (en) Automatic focusing method
JPS60220334A (en) Automatic exposure adjusting method
JPH0820585B2 (en) Micro film reader autofocus method
JPH0746199B2 (en) Autofocus method for microfilm reader printer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees