JPH0968764A - Method for image processing - Google Patents
Method for image processingInfo
- Publication number
- JPH0968764A JPH0968764A JP8157195A JP15719596A JPH0968764A JP H0968764 A JPH0968764 A JP H0968764A JP 8157195 A JP8157195 A JP 8157195A JP 15719596 A JP15719596 A JP 15719596A JP H0968764 A JPH0968764 A JP H0968764A
- Authority
- JP
- Japan
- Prior art keywords
- value
- image
- maximum value
- film
- minimum value
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 34
- 238000000034 method Methods 0.000 title description 14
- 238000012937 correction Methods 0.000 claims abstract description 40
- 238000003672 processing method Methods 0.000 claims description 25
- 238000013459 approach Methods 0.000 claims description 5
- 239000003086 colorant Substances 0.000 claims description 4
- 238000012935 Averaging Methods 0.000 claims description 2
- 230000001186 cumulative effect Effects 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 238000004804 winding Methods 0.000 description 3
- 230000003321 amplification Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 235000002597 Solanum melongena Nutrition 0.000 description 1
- 244000061458 Solanum melongena Species 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Control Of Exposure In Printing And Copying (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は画像処理方法に係
り、特にフイルム画像の露光アンダー、オーバー等の露
光状態を判定し、その判定結果に対応して画像処理する
画像処理方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method, and more particularly to an image processing method for determining an exposure state such as underexposure or overexposure of a film image and performing image processing according to the determination result.
【0002】[0002]
【従来の技術】図11はネガフイルムの特性曲線を示す
グラフであり、A、B及びCはそれぞれ標準、露光アン
ダー及びオーバーの露光域を示している。同図に示すよ
うに、撮影時の露光がアンダーもしくはオーバーなネガ
画像は、標準露光のネガ画像と階調特性が異なり、ガン
マ特性も異なる。尚、種々の階調特性をもった画像信号
に対応できるように、可変ガンマを用いた信号処理回路
としては、特開平4−107083号公報に記載のもの
がある。この信号処理回路は、アナログ処理で、ニー特
性をもつガンマ補正回路の前段及び後段にそれぞれ可変
ゲイン増幅回路を設け、これらの可変ゲイン増幅回路の
ゲインを調整することによりガンマを変えるようにして
いる。2. Description of the Related Art FIG. 11 is a graph showing a characteristic curve of a negative film, and A, B and C show exposure areas of standard, underexposure and overexposure, respectively. As shown in the figure, a negative image with underexposed or overexposed light has different gradation characteristics and different gamma characteristics from the standard exposure negative image. Incidentally, as a signal processing circuit using variable gamma so as to be able to deal with image signals having various gradation characteristics, there is a signal processing circuit described in Japanese Patent Application Laid-Open No. 4-107083. This signal processing circuit is an analog processing, and a variable gain amplification circuit is provided in each of a front stage and a rear stage of a gamma correction circuit having a knee characteristic, and gamma is changed by adjusting gains of these variable gain amplification circuits. .
【0003】また、露光アンダー及びオーバーのネガ画
像は、図11からも明らかなように濃度域が標準露光の
ものよりも狭い。特願平6−274946号明細書に
は、軟調な画像や硬調な画像の調子を整える画像処理方
法が提案されている。一方、従来、カラー画像を撮像し
て得たR,G,Bの画像信号のホワイトバランス、ブラ
ックバランスを調整する画像処理方法として、R,G,
Bの画像信号からそれぞれ基準最大値及び基準最小値を
求め、これらの基準最大値及び基準最小値がそれぞれ所
定の階調となるようにオフセット及びホワイトバランス
ゲインを求め、これらのオフセット及びホワイトバラン
スゲインによってR,G,Bの画像信号のオフセット及
びゲイン制御を行う方法がある。尚、上記基準最大値及
び基準最小値は、画像信号の各階調に対するヒストグラ
ムを求め、そのヒストグラムから基準最大値及び基準最
小値を決定するようにしている。Further, the negative image of underexposure and overexposure has a narrower density range than that of standard exposure, as is apparent from FIG. Japanese Patent Application No. 6-274946 proposes an image processing method for adjusting the tone of a soft image or a hard image. On the other hand, conventionally, as an image processing method for adjusting white balance and black balance of R, G, and B image signals obtained by capturing color images, R, G, and
The reference maximum value and the reference minimum value are obtained from the image signal of B, the offset and the white balance gain are obtained so that the reference maximum value and the reference minimum value have predetermined gradations, respectively, and the offset and the white balance gain are obtained. There is a method of performing offset and gain control of R, G, and B image signals. The reference maximum value and the reference minimum value are obtained by obtaining a histogram for each gradation of the image signal and determining the reference maximum value and the reference minimum value from the histogram.
【0004】[0004]
【発明が解決しようとする課題】ところで、対数変換を
用いないで画像信号のガンマ補正等を行う場合には、ア
ンダーもしくはオーバーなネガ画像は、標準露光のネガ
画像とガンマ特性が異なるため、露光状態に応じたガン
マ補正を行う必要がある。標準露光のネガ画像と同様な
ガンマ補正を行うと、アンダーなネガ画像は暗くなり、
オーバーなネガ画像は明るすぎて調子が好ましくないと
いう問題がある。By the way, when gamma correction or the like of an image signal is performed without using logarithmic conversion, an under or over negative image has a different gamma characteristic from the standard exposure negative image. It is necessary to perform gamma correction according to the state. If you perform the same gamma correction as the standard exposure negative image, the underexposed negative image becomes darker,
There is a problem that an over negative image is too bright and the tone is unfavorable.
【0005】また、軟調な画像や硬調な画像の調子を整
える際に、アンダーもしくはオーバーなネガ画像に対し
て、標準露光のネガ画像と同様にして画像の調子を整え
ると、調子が変わり過ぎて不自然になるという問題があ
る。更に、極端に彩度の高い領域が存在するカラー画像
においては、R,G,B毎の基準最大値、基準最小値が
ばらつく傾向にあり、例えば、図12に示すように、B
の基準最小値が他の色の基準最小値よりも極端に大きく
なる場合がある。Further, when adjusting the tone of a soft-tone image or a hard-tone image, if the tone of the image is adjusted to the under- or over-negative image in the same manner as the standard-exposure negative image, the tone changes too much. There is a problem of becoming unnatural. Further, in a color image in which an extremely saturated region exists, the reference maximum value and the reference minimum value for each of R, G, and B tend to vary. For example, as shown in FIG.
The reference minimum value of may be extremely larger than the reference minimum values of other colors.
【0006】このような場合に、R,G,Bの画像信号
から得られた基準最大値及び基準最小値をそのまま使用
して、R,G,Bの画像信号のオフセット及びゲイン制
御を行うと、ホワイトバランスもしくはブラックバラン
スを崩し、良好な色再現が実現できないという問題が生
じる。即ち、図12に示すようなシーンでは、Bの画像
信号のホワイトバランスゲインが他の色の画像信号より
も極端に強くかけられてしまうため、全体的に青くなっ
てしまうという問題(カラーフェリア)が生じる。In such a case, if the reference maximum value and the reference minimum value obtained from the R, G, B image signals are used as they are, the offset and gain control of the R, G, B image signals is performed. However, there is a problem in that the white balance or the black balance is lost and good color reproduction cannot be realized. That is, in the scene as shown in FIG. 12, the white balance gain of the B image signal is applied extremely strongly as compared with the image signals of other colors, so that the image becomes blue as a whole (color ferria). Occurs.
【0007】本発明の目的は、フイルム画像の露光アン
ダー、オーバー等の露光状態を簡単に且つ精度よく判定
することができる画像処理方法を提供することにある。
本発明の他の目的は、フイルム画像の露光状態がばらつ
いていても、良好な調子再現ができる画像処理方法を提
供することにある。本発明の更に他の目的は、極端に彩
度の高い領域が存在し、各色別の基準最大値、基準最小
値が大きくばらつくようなカラー画像であっても、良好
な色再現が実現できる画像処理方法を提供することにあ
る。An object of the present invention is to provide an image processing method capable of easily and accurately determining an exposure state such as underexposure or overexposure of a film image.
Another object of the present invention is to provide an image processing method capable of reproducing a good tone even if the exposure state of the film image varies. Still another object of the present invention is an image in which excellent color reproduction can be realized even in a color image in which a region having extremely high saturation exists and the reference maximum value and the reference minimum value for each color greatly vary. It is to provide a processing method.
【0008】[0008]
【課題を解決するための手段】本発明は前記目的を達成
するために、現像済み写真フイルムに写し込まれたフイ
ルム画像を撮像し、前記撮像時に得られた画像信号の基
準最大値及び基準最小値、又は基準最大値、基準最小値
及び平均値を求め、前記求めた基準最大値、基準最小値
及び平均値のうちの少なくとも1つに基づいて前記フイ
ルム画像の露光状態を判定し、前記基準最大値及び基準
最小値と前記判定結果に基づいて画像処理を行うことを
特徴としている。例えば、ネガフイルムの露光状態の判
定は基準最大値を用い、この基準最大値がオーバー露光
判定ための基準値以下の場合には、オーバー露光とみな
し、アンダー露光判定ための基準値以上の場合には、ア
ンダー露光とみなす。In order to achieve the above-mentioned object, the present invention takes a film image imprinted on a developed photographic film, and sets a reference maximum value and a reference minimum value of an image signal obtained at the time of the image pickup. Value, or a reference maximum value, a reference minimum value and an average value, and determines the exposure state of the film image based on at least one of the obtained reference maximum value, reference minimum value and average value, Image processing is performed based on the maximum value and the reference minimum value and the determination result. For example, the reference maximum value is used to determine the exposure state of the negative film.If this reference maximum value is less than or equal to the reference value for overexposure determination, it is considered as overexposure, and if it is greater than or equal to the reference value for underexposure determination. Is considered as underexposure.
【0009】尚、これらの判定に用いる基準最大値及び
基準最小値は、もともと画像処理に利用されるもので、
露光状態の判定のために別途検出する必要がなく、露光
状態の判定を簡便に行うことができる。また、前記求め
た基準最大値、基準最小値及び平均値からフイルム画像
の露光状態の判定精度が高い値を当該フイルム画像の露
光状態に応じて適宜選択し、その選択した値に基づいて
前記フイルム画像の露光状態を判定するようにしてい
る。例えば、前記求めた基準最大値が、当該基準最大値
に基づく前記フイルム画像の露光状態の判定精度が低下
する所定の閾値以上になると、前記基準最大値に代えて
前記平均値に基づいて前記フイルム画像の露光状態を判
定し、これにより精度の高い露光状態の判定を可能にし
ている。更に、複数回の撮像によって得た複数の基準最
大値等を平均した値に基づいてフイルム画像の露光状態
を判定し、これにより精度の高い露光状態の判定を可能
にしている。更にまた、フイルムの未露光部分の撮像時
に得られる画像信号の平均値に基づいて前記基準最大値
等を正規化し、これによりフイルムベースの濃度やアン
プゲイン等の影響を受けない値を得るようにしている。The reference maximum value and the reference minimum value used for these determinations are originally used for image processing.
It is not necessary to separately detect for the determination of the exposure state, and the determination of the exposure state can be easily performed. Further, a value having a high determination accuracy of the exposure state of the film image is appropriately selected from the obtained reference maximum value, reference minimum value and average value according to the exposure state of the film image, and the film is selected based on the selected value. The exposure state of the image is determined. For example, when the obtained reference maximum value is equal to or more than a predetermined threshold value that decreases the accuracy of determining the exposure state of the film image based on the reference maximum value, the film is based on the average value instead of the reference maximum value. The exposure state of the image is determined, which enables highly accurate determination of the exposure state. Further, the exposure state of the film image is determined based on an average value of a plurality of reference maximum values and the like obtained by a plurality of times of image pickup, which enables highly accurate determination of the exposure state. Furthermore, the reference maximum value and the like are normalized based on the average value of the image signal obtained when the unexposed portion of the film is imaged, thereby obtaining a value that is not affected by the film base density, amplifier gain, or the like. ing.
【0010】また、本発明は、フイルム画像を撮像して
得た画像信号の基準最大値及び基準最小値を求め、該基
準最大値及び基準最小値がそれぞれ所定の階調となるよ
うに前記画像信号を補正した後、ガンマ補正する画像処
理方法において、前記フイルム画像の露光状態を判定
し、前記露光状態の判定結果に基づいてアンダー露光と
判定すると、前記ガンマ補正時のガンマを標準露光時に
比べて小さくし、これにより中間調が暗くならないよう
にし、また、オーバー露光と判定すると、前記ガンマ補
正時のガンマを標準露光時に比べて大きくし、これによ
り中間調が明るすぎないように調子を整えるようにして
いる。Further, according to the present invention, a reference maximum value and a reference minimum value of an image signal obtained by picking up a film image are obtained, and the image is adjusted so that the reference maximum value and the reference minimum value have predetermined gradations. After the signal is corrected, in the image processing method of gamma correction, the exposure state of the film image is determined, and if underexposure is determined based on the determination result of the exposure state, the gamma at the gamma correction is compared to that at the standard exposure. To prevent the intermediate tone from becoming dark, and when it is determined that overexposure has occurred, the gamma at the time of gamma correction is made larger than that at the standard exposure, thereby adjusting the tone so that the intermediate tone is not too bright. I am trying.
【0011】更に、本発明は、フイルム画像を撮像して
得た画像信号の基準最大値及び基準最小値を求め、前記
基準最大値と基準最小値との比又は差が、所望の調子が
得られるように予め設定した第1の閾値と第2の閾値と
の範囲に入るように前記基準最大値及び基準最小値のう
ちの少なくとも一方を補正し、その補正した基準最大値
及び基準最小値がそれぞれ所定の階調となるように前記
画像信号を補正し、これにより硬調及び硬調の画像が所
望の調子となるように整えるようにしている。このと
き、前記基準最大値及び基準最小値のうちの少なくとも
一方を補正する時の前記第1の閾値及び第2の閾値を、
フイルム画像の露光状態によって変更するようにしてい
る。即ち、アンダー露光又はオーバー露光と判定する
と、前記第1の閾値及び第2の閾値を、それらよりもそ
れぞれ低い第3の閾値及び第4の閾値に変更し、これに
より、アンダー露光又はオーバー露光のフイルム画像の
調子が不自然に変わらず、良好な調子再現ができるよう
にしている。Further, according to the present invention, a reference maximum value and a reference minimum value of an image signal obtained by picking up a film image are obtained, and a ratio or a difference between the reference maximum value and the reference minimum value gives a desired tone. As described above, at least one of the reference maximum value and the reference minimum value is corrected so as to fall within the range between the first threshold value and the second threshold value, and the corrected reference maximum value and the reference minimum value are The image signals are corrected so as to have predetermined gradations, respectively, and thereby, the hard tone image and the hard tone image are adjusted to have a desired tone. At this time, the first threshold value and the second threshold value when correcting at least one of the reference maximum value and the reference minimum value,
It is changed according to the exposure state of the film image. That is, when it is determined that the underexposure or the overexposure is performed, the first threshold value and the second threshold value are changed to the third threshold value and the fourth threshold value, which are lower than those, respectively. The tone of the film image does not change unnaturally, and good tone reproduction is possible.
【0012】また、本発明は、カラー画像を撮像して各
色別の画像信号を得、この撮像時に得られた各色別の画
像信号の基準最大値及び基準最小値を求め、該基準最大
値及び基準最小値がそれぞれ所定の階調となるように前
記画像信号を補正し、これにより各色別の基準最大値、
基準最小値が大きくばらつくようなカラー画像であって
も良好な色再現が実現できるようにしている。即ち、各
色別の基準最大値の比又は差を求め、この比又は差が所
望のホワイトバランス調整が可能な所定の範囲内か否か
を判別し、前記所定の範囲を越えている場合には、各基
準最大値及び/又は各基準最小値が互いに近づくように
各色別の基準最大値及び/又は基準最小値を補正する。
これにより、各基準最大値、基準最小値のバラツキが抑
制され、良好な色再現が実現できるようになる。尚、基
準最大値の代わりに基準最小値を用いて上記と同様な判
別を行うようにしてもよい。Further, according to the present invention, a color image is picked up to obtain an image signal for each color, a reference maximum value and a reference minimum value of the image signal for each color obtained at the time of this image pickup are obtained, and the reference maximum value and The image signal is corrected so that the reference minimum value has a predetermined gradation, whereby the reference maximum value for each color,
Even in the case of a color image in which the reference minimum value greatly varies, good color reproduction can be realized. That is, the ratio or difference of the reference maximum value for each color is obtained, and it is determined whether or not this ratio or difference is within a predetermined range in which desired white balance adjustment is possible. , The reference maximum value and / or the reference minimum value for each color are corrected so that the reference maximum value and / or the reference minimum value approach each other.
As a result, variations in the reference maximum value and the reference minimum value are suppressed, and good color reproduction can be realized. It should be noted that instead of the reference maximum value, the reference minimum value may be used to perform the same determination as above.
【0013】[0013]
【発明の実施の形態】以下添付図面に従って本発明に係
る画像処理方法の好ましい実施の形態に付いて詳説す
る。図1は本発明が適用されるフイルムスキャナの実施
の形態を示す要部ブロック図である。このフイルムスキ
ャナは、主として照明用の光源10、撮影レンズ12、
CCDラインセンサ14、アナログアンプ16、A/D
コンバータ18、デジタル信号処理回路20、モータ3
1、キャプスタン32及びピンチローラ33を含むフイ
ルム駆動装置、中央処理装置(CPU)40、積算ブロ
ック41等を備えている。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of an image processing method according to the present invention will be described in detail below with reference to the accompanying drawings. FIG. 1 is a block diagram of essential parts showing an embodiment of a film scanner to which the present invention is applied. This film scanner mainly includes a light source 10 for illumination, a photographing lens 12,
CCD line sensor 14, analog amplifier 16, A / D
Converter 18, digital signal processing circuit 20, motor 3
1, a film driving device including a capstan 32 and a pinch roller 33, a central processing unit (CPU) 40, an integrating block 41, and the like.
【0014】光源10は、フイルムカートリッジ50内
から引き出される現像済みのネガフイルム52を図示し
ない赤外カットフィルタを介して照明し、フイルム52
を透過した透過光は、撮影レンズ12を介してCCDラ
インセンサ14の受光面に結像される。CCDラインセ
ンサ14は、フイルム搬送方向と直交する方向に102
4画素分の受光部が配設されており、CCDラインセン
サ14の受光面に結像された画像光は、R,G,Bフィ
ルタが設けられた各受光部で電荷蓄積され、光の強さに
応じた量のR,G,Bの信号電荷に変換される。このよ
うにして蓄積されたR,G,Bの電荷は、CCD駆動回
路15から加えられる1ライン周期のリードゲートパル
スが加えられると、シフトレジスタに転送されたのちレ
ジスタ転送パルスによって順次電圧信号として出力され
る。また、このCCDラインセンサ14は、各受光部に
隣接してシャッターゲート及びシャッタードレインが設
けられており、このシャッターゲートをシャッターゲー
トパルスによって駆動することにより、受光部に蓄積さ
れた電荷をシャッタードレインに掃き出すことができ
る。即ち、このCCDラインセンサ14は、CCD駆動
回路15から加えられるシャッターゲートパルスに応じ
て受光部に蓄積する電荷を制御することができる、いわ
ゆる電子シャッター機能を有している。The light source 10 illuminates the developed negative film 52 drawn out from the film cartridge 50 through an infrared cut filter (not shown), and the film 52 is illuminated.
The transmitted light transmitted through is imaged on the light receiving surface of the CCD line sensor 14 via the taking lens 12. The CCD line sensor 14 is placed in the direction 102 orthogonal to the film transport direction.
The light receiving portion for four pixels is provided, and the image light imaged on the light receiving surface of the CCD line sensor 14 is accumulated in each light receiving portion provided with the R, G, B filters, and the intensity of the light is increased. It is converted into R, G, and B signal charges in an amount corresponding to the level. The R, G, and B charges thus accumulated are transferred to the shift register when a read gate pulse of one line period applied from the CCD drive circuit 15 is applied, and then sequentially converted into voltage signals by register transfer pulses. Is output. Further, the CCD line sensor 14 is provided with a shutter gate and a shutter drain adjacent to each light receiving portion. By driving this shutter gate with a shutter gate pulse, the electric charge accumulated in the light receiving portion is shutter drained. Can be swept up to. That is, the CCD line sensor 14 has a so-called electronic shutter function capable of controlling the electric charge accumulated in the light receiving portion according to the shutter gate pulse applied from the CCD drive circuit 15.
【0015】上記CCDラインセンサ14から読み出さ
れたR,G,B電圧信号は、図示しないCDSクランプ
によってクランプされてアナログアンプ16に加えら
れ、ここで後述するようにゲインが制御される。アナロ
グアンプ16から出力される1コマ分のR,G,B電圧
信号は、A/Dコンバータ18によって点順次のR,
G,Bデジタル画像信号に変換されたのち、デジタル信
号処理回路20によって後述する白バランス、黒バラン
ス、ネガポジ反転、ガンマ補正等が行われたのち、図示
しない画像メモリに記憶される。The R, G, B voltage signals read from the CCD line sensor 14 are clamped by a CDS clamp (not shown) and applied to the analog amplifier 16, and the gain is controlled as described later. The R, G, B voltage signals for one frame output from the analog amplifier 16 are dot-sequential R, G, B voltage signals by the A / D converter 18.
After being converted into G and B digital image signals, the digital signal processing circuit 20 performs white balance, black balance, negative / positive inversion, gamma correction, etc., which will be described later, and then stores them in an image memory (not shown).
【0016】尚、画像メモリに記憶された1コマ分の画
像信号は、繰り返し読み出され、D/Aコンバータによ
ってアナログ信号に変換されたのち、エンコーダでNT
SC方式の複合映像信号に変換されてモニタTVに出力
される。これにより、モニタTVよってフイルム画像を
見ることができるようになる。フイルム駆動装置は、フ
イルムカートリッジ50のスプール50Aと係合し、そ
のスプール50Aを正転/逆転駆動するフイルム供給部
と、このフイルム供給部から送出されるフイルム52を
巻き取るフイルム巻取部と、フイルム搬送路に配設さ
れ、フイルム52をモータ31によって駆動されるキャ
プスタン32とピンチローラ33とで挟持してフイルム
52を所望の速度で搬送する手段とから構成されてい
る。尚、上記フイルム供給部は、フイルムカートリッジ
50のスプール50Aを図1上で時計回り方向に駆動
し、フイルム先端がフイルム巻取部によって巻き取られ
るまでフイルムカートリッジ50からフイルム52を送
り出すようにしている。また、CPU40は、モータ回
転数/方向制御回路34を通じてモータ31の正転/逆
転、起動/停止、パルス幅変調によるフイルム搬送速度
の制御を行うことができる。The image signal for one frame stored in the image memory is repeatedly read out, converted into an analog signal by the D / A converter, and then NT by the encoder.
It is converted into an SC composite video signal and output to the monitor TV. As a result, the film image can be viewed on the monitor TV. The film drive device engages with the spool 50A of the film cartridge 50 and drives the spool 50A in forward / reverse rotation, and a film take-up unit that takes up the film 52 sent from the film supply unit. The film 52 is arranged in the film transport path, and is constituted by means for sandwiching the film 52 between a capstan 32 driven by a motor 31 and a pinch roller 33 and transporting the film 52 at a desired speed. The film supply unit drives the spool 50A of the film cartridge 50 in the clockwise direction in FIG. 1 to feed the film 52 from the film cartridge 50 until the leading end of the film is wound by the film winding unit. . Further, the CPU 40 can control forward / reverse rotation of the motor 31, start / stop, and control of the film transport speed by pulse width modulation through the motor rotation speed / direction control circuit 34.
【0017】次に、図2に示すフローチャートを参照し
ながら画像処理の手順を説明する。まず、フイルムカー
トリッジ50がカートリッジ収納部(図示せず)にセッ
トされ、フイルムカートリッジ50からフイルム52が
送り出されてフイルム先端がフイルム巻取部の巻取軸に
巻き付けられると(フイルムローディングが完了する
と)、以下に示すキャリブレーションを実行する(ステ
ップS10)。Next, the procedure of image processing will be described with reference to the flowchart shown in FIG. First, the film cartridge 50 is set in a cartridge storage unit (not shown), the film 52 is sent out from the film cartridge 50, and the leading end of the film is wound around the winding shaft of the film winding unit (when the film loading is completed). The following calibration is executed (step S10).
【0018】即ち、CCDラインセンサ14の電子シャ
ッタ値T1 を規定値(例えば40%)に設定し、フイル
ム52の未露光部分(例えば、フイルム先端のネガベー
ス)を撮像する。そして、R,G,Bの各信号がそれぞ
れ所定の最大値(即ち、A/Dコンバータ18の入力レ
ンジが最大)になるようにアナログアンプ16のゲイン
を決定する。That is, the electronic shutter value T 1 of the CCD line sensor 14 is set to a prescribed value (for example, 40%), and an unexposed portion of the film 52 (for example, a negative base at the tip of the film) is imaged. Then, the gain of the analog amplifier 16 is determined so that each of the R, G, and B signals has a predetermined maximum value (that is, the input range of the A / D converter 18 is maximum).
【0019】このようにしてアナログアンプ16のゲイ
ンを調整したのち、フイルム52を一定速度で搬送し、
フイルム画像のスキャン(プリスキャン)を実行する
(ステップS20)。このプリスキャン中に、CCDラ
インセンサ14、アナログアンプ16及びA/Dコンバ
ータ18を介して積算ブロック41に点順次のR,G,
Bデジタル画像信号が取り込まれる。After adjusting the gain of the analog amplifier 16 in this way, the film 52 is conveyed at a constant speed,
A scan (prescan) of the film image is executed (step S20). During this pre-scan, a dot-sequential R, G, and
The B digital image signal is captured.
【0020】積算ブロック41は、R,G,Bデジタル
画像信号毎に所定の積算エリアのデジタル画像信号の階
調(この実施の形態では、8ビット(0〜255)の階
調)を積算し、その積算エリアの平均階調を求め、1画
面に付き5000〜10000点数の積算エリアの各階
調データを作成する。更に、積算ブロック41は、順次
作成される階調データに基づいて各階調毎の度数をカウ
ントし、この度数が階調データの総点数に対して設定さ
れた閾値TH(この実施の形態では総点数の1%)を越
えた場合にはカウントを停止する。The integrating block 41 integrates the gradation (8 bits (0 to 255) gradation in this embodiment) of the digital image signal in a predetermined integrating area for each R, G, B digital image signal. Then, the average gradation of the integrated area is obtained, and each gradation data of the integrated area of 5000 to 10000 points is created per screen. Furthermore, the integration block 41 counts the frequency for each gradation based on the gradation data that is sequentially created, and this frequency is a threshold value TH (in this embodiment, the total value) set for the total score of the gradation data. If it exceeds 1% of the score), stop counting.
【0021】即ち、積算ブロック41は、図3に示すよ
うに0〜255までの全ての階調に対して最大閾値TH
までカウントした簡易ヒストグラム(図3中の斜線で示
すヒストグラム)を作成する(ステップS21)。尚、
上記閾値THを越える度数をカウントしないことによ
り、カウンタのビット数を大幅に低減することができ
る。また、図3上で2点鎖線は、総点数をカウントした
場合の本来のヒストグラムである。That is, the integration block 41, as shown in FIG. 3, has a maximum threshold value TH for all gradations from 0 to 255.
A simple histogram (a histogram shown by diagonal lines in FIG. 3) counted up to is created (step S21). still,
By not counting the frequency that exceeds the threshold TH, the number of bits of the counter can be significantly reduced. Further, the chain double-dashed line in FIG. 3 is the original histogram when the total number of points is counted.
【0022】CPU40は、図3に示した簡易ヒストグ
ラムの階調の小さい方から度数を順次累算し、その累算
度数が前記閾値THと一致又は最初に越えたときの階調
を基準最小値としてR,G,B毎に求めるとともに、簡
易ヒストグラムの階調の大きい方から度数を順次累算
し、その累算度数が前記閾値THと一致又は最初に越え
たときの階調を基準最大値としてR,G,B毎に求め
る。更に、簡易ヒストグラムより、R,G,B中の最大
値Dmax を求める(ステップS22)。The CPU 40 sequentially accumulates the frequencies from the one with the smallest gradation in the simple histogram shown in FIG. 3, and the gradation when the accumulated frequency coincides with the threshold value TH or first exceeds the reference value is the reference minimum value. As the R, G, and B values, the frequencies are sequentially accumulated from the one with the highest gradation in the simple histogram, and the gradation when the accumulated frequency matches or first exceeds the threshold TH is the reference maximum value. As R, G, B. Further, the maximum value Dmax among R, G and B is obtained from the simple histogram (step S22).
【0023】次に、上記のようにして求めた基準最大値
及び基準最小値に基づいてフイルム画像の露光アンダ
ー、オーバー等の露光状態の判定、及び軟調、硬調等の
調子判定を行い、また、最大値Dmax により電子シャッ
タ値T2 を決定する(ステップS23)。即ち、露光状
態の判定は基準最大値を用い、この基準最大値がオーバ
ー露光判定のための基準値以下の場合には、オーバー露
光とみなし、アンダー露光判定のための基準値以上の場
合には、アンダー露光とみなす。Next, based on the reference maximum value and the reference minimum value obtained as described above, the exposure state such as underexposure or overexposure of the film image is determined, and the tone determination such as soft tone or hard tone is performed. The electronic shutter value T 2 is determined by the maximum value Dmax (step S23). That is, the reference maximum value is used for the determination of the exposure state, and if this reference maximum value is less than or equal to the reference value for overexposure determination, it is considered as overexposure, and if it is greater than or equal to the reference value for underexposure determination. , Underexposure.
【0024】尚、フイルム画像の露光状態の判定は、ア
ンダー露光、標準露光、及びオーバー露光の判定に限ら
ず、より細かく露光状態を判定するようにしてもよい。
また、露光状態の判定は基準最大値を用いる場合に限ら
ず、上記基準最小値や前述した全階調データの平均値を
用いるようにしてもよく、更には基準最大値、基準最小
値及び平均値のうちの任意の2つ又は3つを使用して露
光状態の判定を行うようにしてもよい。The determination of the exposure state of the film image is not limited to the determination of underexposure, standard exposure, and overexposure, and the exposure state may be determined more finely.
Further, the determination of the exposure state is not limited to the case where the reference maximum value is used, and the reference minimum value or the average value of all the gradation data described above may be used, and further, the reference maximum value, the reference minimum value and the average value. The exposure state may be determined using any two or three of the values.
【0025】図4はフイルム画像の露光状態に対応する
基準最大値と平均値とを示す折れ線グラフである。ここ
で、図4に示す基準最大値及び平均値は、それぞれステ
ップS10でのキャリブレーション後に、ネガベースを
撮像して得られた画像信号の平均値によって、次式に示
すように正規化した値である。FIG. 4 is a line graph showing the reference maximum value and the average value corresponding to the exposure state of the film image. Here, the reference maximum value and the average value shown in FIG. 4 are values normalized by the average value of the image signals obtained by imaging the negative base after the calibration in step S10 as shown in the following equation. is there.
【0026】[0026]
【数1】 [Equation 1]
【0027】[0027]
【数2】 尚、上記のように正規化した値を使用することにより、
キャリブレーション時の最大値に若干変動幅(アナログ
ゲインの決定にある幅)があっても、その影響を受けな
い基準最大値及び平均値が得られる。[Equation 2] By using the normalized value as above,
Even if the maximum value at the time of calibration has a slight fluctuation range (the range for determining the analog gain), the reference maximum value and average value that are not affected by the fluctuation range can be obtained.
【0028】図4に示す基準最大値の3本の折れ線グラ
フは、標準露光のフイルム画像と、−1EV〜−3EV
のアンダー露光のフイルム画像と、ネガベースと、1E
V〜6EVのオーバー露光のフイルム画像をそれぞれ3
0回撮像し、この撮像によって求めた30個の基準最大
値の平均値(図4上の◆)から作成した折れ線グラフ
と、30個の基準最大値の最大値(図4上の■)から作
成した折れ線グラフと、30個の基準最大値の最小値
(図4上の▲)から作成した折れ線グラフである。同様
に、図4に示す平均値の折れ線グラフは、或る1回の撮
像によって求めたフイルム画像の平均値から作成した折
れ線グラフである。The three line graphs of the reference maximum value shown in FIG. 4 are the standard exposure film image and -1EV to -3EV.
Underexposed film image, negative base and 1E
3 over-exposed film images of V to 6 EV each
From a line graph created from the average value of 30 reference maximum values (◆ in FIG. 4) obtained by imaging 0 times and the maximum value of 30 reference maximum values (■ in FIG. 4) It is the line graph created and the line graph created from the minimum value of the 30 reference maximum values (A in FIG. 4). Similarly, the line graph of the average values shown in FIG. 4 is a line graph created from the average values of the film images obtained by a certain image pickup.
【0029】同図に示すように、アンダー露光(−1E
V〜−3EV)のフイルム画像は、露光状態の変化に対
する基準最大値の変化が小さく(即ち、折れ線グラフの
勾配が小さく)、式(1)によって求めた正規化した基
準最大値に基づいてフイルム画像の露光状態を正確に判
定することができない。例えば、−2EVのフイルム画
像の30個の基準最大値のうちの最大値(図4上の■)
は、−3EVのフイルム画像の30個の基準最大値のう
ちの最小値(図4上の▲)よりも大きくなり、基準最大
値の大きさとフイルム画像の露光状態との関係が逆にな
る場合がある。As shown in the figure, underexposure (-1E
The film images of (V to -3EV) have a small change in the reference maximum value with respect to the change of the exposure state (that is, the gradient of the line graph is small), and the film is based on the normalized reference maximum value obtained by the equation (1). The exposure state of the image cannot be accurately determined. For example, the maximum value of the 30 reference maximum values of the -2EV film image (■ in FIG. 4)
Is larger than the minimum value (▲ in FIG. 4) of the 30 reference maximum values of the -3EV film image, and the relationship between the size of the reference maximum value and the exposure state of the film image is reversed. There is.
【0030】そこで、本発明の他の実施の形態では、基
準最大値以外にフイルム画像の平均値を用い、アンダー
露光のフイルム画像の露光状態は、平均値に基づいて判
定するようにしている。即ち、正規化した基準最大値が
所定の値(基準最大値に基づくフイルム画像の露光状態
の判定精度が保証される値で、図4に示す実施の形態で
は110)以上になると、前記正規化した基準最大値に
代えて、式(2)によって求めた正規化した平均値に基
づいてフイルム画像の露光状態を判定するようにしてい
る。Therefore, in another embodiment of the present invention, the average value of the film image is used in addition to the reference maximum value, and the exposure state of the underexposed film image is determined based on the average value. That is, when the normalized reference maximum value becomes equal to or greater than a predetermined value (a value that guarantees the determination accuracy of the exposure state of the film image based on the reference maximum value, 110 in the embodiment shown in FIG. 4), the normalization is performed. Instead of the reference maximum value, the exposure state of the film image is determined based on the normalized average value obtained by the equation (2).
【0031】正規化した平均値は、フイルム画像がアン
ダー露光の場合には図4に示すように正規化した基準最
大値よりも勾配が大きい。従って、フイルム画像がアン
ダー露光の場合に、正規化した平均値に基づいてフイル
ム画像の露光状態を判定することにより、精度の良い判
定ができる。また、夜間に人物をフラッシュ撮影したフ
イルム画像の場合、そのフイルム画像の最大基準値は、
フラッシュの届かない背景に依存した値となるが、平均
値はフラッシュによって照明された人物の明るさが加味
される。従って、正規化した平均値を用いてフイルム画
像の露光状態を判定することにより、人物(主要被写
体)を重視した露光状態の判定ができるという利点があ
る。When the film image is underexposed, the normalized average value has a larger slope than the normalized reference maximum value as shown in FIG. Therefore, when the film image is underexposed, the exposure state of the film image is determined based on the normalized average value, so that accurate determination can be performed. In the case of a film image obtained by shooting a person with flash at night, the maximum reference value of the film image is
The value depends on the background that the flash does not reach, but the average value takes into account the brightness of the person illuminated by the flash. Therefore, by determining the exposure state of the film image using the normalized average value, there is an advantage that the exposure state can be determined with an emphasis on the person (main subject).
【0032】尚、上記実施の形態では、基準最大値と平
均値とを切り替えて使用するようにしたが、これに限ら
ず、基準最大値、基準最小値及び平均値のうち、フイル
ム画像の露光状態に応じてフイルム画像の露光状態の判
定精度が高くなる値を適宜選択し、その選択した値に基
づいてフイルム画像の露光状態を判定するようにしても
よい。In the above embodiment, the reference maximum value and the average value are switched and used, but the present invention is not limited to this, and the exposure of the film image is selected from the reference maximum value, the reference minimum value and the average value. It is also possible to appropriately select a value that increases the accuracy of determining the exposure state of the film image according to the state and determine the exposure state of the film image based on the selected value.
【0033】また、フイルム画像の露光状態を判定する
ためのフイルム画像から得られる情報として、同一のフ
イルム画像を複数回撮像して得られた複数の基準最大値
を平均した値(図4上の◆で示した折れ線グラフ参照)
を使用してもよい。この場合には、アンダー露光のフイ
ルム画像でも高精度に基準最大値を求めることができる
ため、フイルム画像の露光状態を正確に判定することが
できる。尚、上記平均化した基準最大値に限らず、平均
化した基準最小値、平均化したフイルム画像の平均値等
を用いてフイルム画像の露光状態を判定してもよい。As information obtained from the film image for determining the exposure state of the film image, a value obtained by averaging a plurality of reference maximum values obtained by photographing the same film image a plurality of times (in FIG. 4). (Refer to the line graph shown by ◆)
May be used. In this case, the reference maximum value can be obtained with high accuracy even for an underexposed film image, so that the exposure state of the film image can be accurately determined. The exposure state of the film image may be determined by using not only the averaged reference maximum value but also the averaged reference minimum value, the averaged average value of the film image, and the like.
【0034】一方、フイルム画像の軟調、硬調等の調子
判定は、基準最大値と基準最小値との比(以下、輝度比
という)に基づいて行う。即ち、Gの輝度比Gmax /G
minと、硬調を示す所定の閾値Th1 及び軟調を示す所
定の閾値Th2 とを比較する。そして、輝度比Gmax /
Gmin が閾値Th1 以下の場合には硬調とみなし、輝度
比Gmax /Gmin が閾値Th2 以上の場合には軟調とみ
なす。ここで、上記閾値Th1 及び閾値Th2 は、標準
露光と判定されたネガ画像に対して設定されたものであ
り、前述したオーバー露光又はアンダー露光と判定され
たネガ画像に対しては、上記閾値Th1 及び閾値Th2
よりもそれぞれ低く設定された閾値Th 3 及び閾値Th
4 に基づいて調子判定を行う。On the other hand, the soft and hard tones of the film image
The judgment is made by the ratio of the reference maximum value and the reference minimum value (hereinafter, the brightness ratio
Based on). That is, the brightness ratio G of Gmax/ G
minAnd a predetermined threshold Th that indicates a high contrast1And places that exhibit a soft tone
Constant threshold Th2Compare with. And the brightness ratio Gmax/
GminIs the threshold Th1In the following cases, it is regarded as a high contrast and the brightness
Ratio Gmax/ GminIs the threshold Th2If it is above, it is considered to be soft
Eggplant Here, the threshold Th1And threshold Th2Is the standard
This is set for the negative image that was judged to be exposed.
Is judged to be overexposure or underexposure described above.
For the negative image, the threshold Th1And threshold Th2
Threshold values Th that are set lower than ThreeAnd threshold Th
FourThe condition is determined based on.
【0035】また、電子シャッタ値T2 の決定は、簡易
ヒストグラムより求めた最大値Dmax を用い、後述する
ファインスキャン時における最大値が所定値(例えば8
ビット系の場合には255)になるように電子シャッタ
値T2 を決定する。即ち、電子シャッタ値T2 を、次
式、Further, the electronic shutter value T 2 is determined by using the maximum value Dmax obtained from the simple histogram, and the maximum value at the time of fine scanning described later is a predetermined value (for example, 8).
In the case of a bit system, the electronic shutter value T 2 is determined so as to be 255). That is, the electronic shutter value T 2 is given by
【0036】[0036]
【数3】T2 =255*T1 /Dmax …(3) により決定する。ここで、T1 は、プリスキャン時の電
子シャッタ値である。次に、R,G,B毎に求めた基準
最大値Rmax , Gmax ,Bmax 及び基準最小値Rmin ,
Gmin ,Bmin を、上記露光状態、調子の判定結果及び
電子シャッタ値T2 に基づいて補正する(ステップS2
4)。## EQU3 ## Determined by T 2 = 255 * T 1 / Dmax (3). Here, T 1 is an electronic shutter value at the time of prescan. Next, the reference maximum values R max, G max , B max and the reference minimum value R min, obtained for each of R, G, and B.
G min and B min are corrected based on the exposure state, the tone determination result, and the electronic shutter value T 2 (step S2).
4).
【0037】先ず、上記調子判定によって硬調あるいは
軟調と判定されると、標準露光のネガ画像では、輝度比
Gmax /Gmin が上記閾値Th1 〜閾値Th1 の範囲に
入るように、オーバー露光又はアンダー露光のネガ画像
では、輝度比Gmax /Gminが上記閾値Th3 〜閾値T
h4 の範囲に入るように基準最大値Gmax 及び基準最小
値Gmin のうちの少なくとも一方を補正する。また、基
準最大値Rmax , Bma x 及び基準最小値Rmin , Bmin
も基準最大値Gmax 及び基準最小値Gmin の補正に対応
して補正する。尚、輝度比が上記閾値の範囲に入ってい
る場合には、基準最大値及び基準最小値の補正は行わな
い。また、この実施の形態では、基準最大値と基準最小
値との比に基づいて軟調、硬調等の調子判定を行うよう
にしたが、これに限らず、基準最大値と基準最小値との
差に基づいて調子判定を行うようにしてもよい。First, when it is determined that the tone is hard or soft by the tone determination, in a negative image of standard exposure, overexposure is performed so that the brightness ratio G max / G min falls within the range of the threshold Th 1 to the threshold Th 1. Alternatively, in a negative image of underexposure, the luminance ratio G max / G min is the threshold value Th 3 to the threshold value T.
At least one of the reference maximum value G max and the reference minimum value G min is corrected so as to fall within the range of h 4 . The reference maximum value R max, B ma x and the reference minimum value R min, B min
Is corrected corresponding to the correction of the reference maximum value G max and the reference minimum value G min . When the brightness ratio is within the range of the threshold value, the reference maximum value and the reference minimum value are not corrected. Further, in this embodiment, the tone determination of soft tone, hard tone, etc. is performed based on the ratio between the reference maximum value and the reference minimum value, but the present invention is not limited to this, and the difference between the reference maximum value and the reference minimum value. The condition may be determined based on the.
【0038】次に、ファインスキャン時にはプリスキャ
ン時に比べて、T2 /T1 倍だけ露出量が大きくなるた
め、プリスキャン時とファインスキャン時との電子シャ
ッタ値の変更量だけ基準最大値及び基準最小値を補正す
る。このようにして最終的に求めた基準最大値及び基準
最小値に基づいて、白バランス及び黒バランスを合わせ
るために使用するオフセット、ホワイトバランスゲイン
(WBゲイン)を決定する(ステップS25)。Next, during fine scanning, the exposure amount becomes T 2 / T 1 times larger than during prescanning, so the amount of change in the electronic shutter value during prescanning and fine scanning is the reference maximum value and reference value. Correct the minimum value. In this way, the offset and white balance gain (WB gain) used for adjusting the white balance and the black balance are determined based on the reference maximum value and the reference minimum value finally obtained (step S25).
【0039】即ち、CPU40は、最終的に求めた基準
最大値に基づいてR,G,B毎のオフセットを次式、That is, the CPU 40 calculates the offset for each R, G, B based on the finally obtained reference maximum value by the following equation:
【0040】[0040]
【数4】 オフセット=255−Gmax …(4) により算出するとともに、基準最大値及び基準最小値に
基づいてR,G,B毎のゲインを、次式、[Equation 4] Offset = 255−G max (4) The gain for each of R, G and B is calculated based on the reference maximum value and the reference minimum value by the following equation,
【0041】[0041]
【数5】 WBゲイン=255/(Gmax −Gmin ) …(5) により算出する。尚、式(4)、(5)は、Gに関する
ものであるが、他の色チャンネルも同様にして算出す
る。また、ステップS25では、ネガ画像の露光状態に
基づいてR,G,B毎のガンマゲインを決定するが、そ
の詳細については後述する。WB gain = 255 / (G max −G min ) ... (5) The expressions (4) and (5) relate to G, but other color channels are calculated in the same manner. In step S25, the R, G, and B gamma gains are determined based on the exposure state of the negative image, the details of which will be described later.
【0042】次に、上記決定された電子シャッタ値
T2 、オフセット、WBゲイン及びガンマゲインに基づ
いてネガ画像のファインスキャンを実行する(ステップ
S30)。即ち、ファインスキャン時には、CCDライ
ンセンサ14の電子シャッタ値をT2 に設定し、フイル
ム52を一定速度で搬送し、フイルム画像のスキャン
(ファインスキャン)を実行する。このファインスキャ
ン中に、CCDラインセンサ14、アナログアンプ16
及びA/Dコンバータ18を介してデジタル信号処理回
路20に点順次のR,G,Bデジタル画像信号が出力さ
れる。Next, a fine scan of the negative image is executed based on the electronic shutter value T 2 , offset, WB gain and gamma gain determined above (step S30). That is, at the time of fine scanning, the electronic shutter value of the CCD line sensor 14 is set to T 2 , the film 52 is conveyed at a constant speed, and the film image is scanned (fine scanning). During this fine scan, the CCD line sensor 14 and the analog amplifier 16
Also, dot-sequential R, G, B digital image signals are output to the digital signal processing circuit 20 via the A / D converter 18.
【0043】次に、デジタル信号処理回路20における
信号処理について説明する。ファインスキャン時にA/
Dコンバータ18から出力されるオリジナルGorgに対
して、次式、Next, the signal processing in the digital signal processing circuit 20 will be described. A / during fine scan
For the original G org output from the D converter 18, the following equation,
【0044】[0044]
【数6】 G1=Gorg +オフセット …(6) に示すようにGのオフセットを加算することによって黒
点オフセットされたデジタル画像信号G1を得ることが
できる。R,Bのオリジナルについても同様の処理を行
うことににより、R,G,Bデジタル画像信号のピーク
値(ポジ画像の黒)が一致させられる(図5(A)参
照)。[ Equation 6] G1 = G org + offset (6) By adding the G offset, the digital image signal G1 with the black point offset can be obtained. By performing the same processing on the R and B originals, the peak values of the R, G, and B digital image signals (black of the positive image) are matched (see FIG. 5A).
【0045】続いて、上記オフセットされたデジタル画
像信号G1に対して、次式、Then, for the offset digital image signal G1, the following equation:
【0046】[0046]
【数7】 G2=255−G1 …(7) の演算を実行することにより、ネガポジ反転が行われる
(図5(B)参照)。次に、ネガポジ反転されたデジタ
ル画像信号G2に対して、式(5)で求めたWBゲイン
を、次式に示すように乗算することにより、## EQU00007 ## Negative-positive inversion is performed by executing the calculation of G2 = 255-G1 (7) (see FIG. 5B). Next, by multiplying the negative-positive inverted digital image signal G2 by the WB gain obtained by the equation (5) as shown in the following equation,
【0047】[0047]
【数8】 G3=G2×WBゲイン …(8) R,G,Bデジタル画像信号の他方のピーク値(ポジ画
像の白)が一致させられる(図5(C)参照)。最後
に、5Bゲインが乗算されたR,G,Bデジタル画像信
号にそれぞれ異なるガンマ補正を行うことにより、グレ
ーが合わせられる(図5(D)参照)。## EQU00008 ## G3 = G2.times.WB gain (8) The other peak values (white of the positive image) of the R, G, B digital image signals are matched (see FIG. 5C). Finally, different gamma corrections are performed on the R, G, and B digital image signals multiplied by the 5B gain, so that grays are matched (see FIG. 5D).
【0048】次に、上記ガンマ補正について更に詳細に
説明する。先ず、ガンマ補正をする際の基準となるルッ
クアップテーブル(以下、ベースLUTという)を準備
する。このベースLUTは、ネガフイルムがもっている
ガンマの曲線とブラウン管に出力される映像信号がもっ
ているガンマ(一般的にはγ=0.45)の曲線との差分を
示すガンマ補正値が各階調毎に記憶されている。尚、入
出力特性を示す実際のルックアップテーブル(以下、実
際のLUTという)は、図6(A)に示すように関数y
=xからベースLUT(ガンマ補正値)を差し引いたも
のである。Next, the gamma correction will be described in more detail. First, a lookup table (hereinafter referred to as a base LUT) that serves as a reference when performing gamma correction is prepared. This base LUT stores a gamma correction value for each gradation, which indicates the difference between the gamma curve of a negative film and the gamma curve of a video signal output to a cathode-ray tube (generally γ = 0.45). Has been done. An actual look-up table (hereinafter, referred to as an actual LUT) showing the input / output characteristics is a function y as shown in FIG.
= X minus the base LUT (gamma correction value).
【0049】また、ベースLUTに対して、ガンマゲイ
ンを乗算することにより、ベースLUTを変化させるこ
とができる(図6(B)参照)。これにより1つのベー
スLUTから適宜のガンマゲインを乗算することによ
り、R,G,B毎にガンマ補正値が伸長又は圧縮された
LUTを得ることができる。尚、図6(C)は、関数y
=xからそれぞれR,G,B毎にガンマ補正値が伸長又
は圧縮されたLUTを差し引くことにより得られるR,
G,B毎の実際のLUTである。The base LUT can be changed by multiplying the base LUT by the gamma gain (see FIG. 6B). Thus, by multiplying an appropriate gamma gain from one base LUT, it is possible to obtain an LUT in which the gamma correction value is expanded or compressed for each of R, G, and B. Note that FIG. 6C shows the function y
= X obtained by subtracting the LUT in which the gamma correction values are expanded or compressed for R, G, and B, respectively,
It is an actual LUT for each of G and B.
【0050】従って、前述した式(6)〜(8)によっ
て白バランス及び黒バランスが合わされ、ネガポジ反転
された点順次のR,G,Bデジタル画像信号に対してガ
ンマ補正を行う場合には、点順次のR,G,Bデジタル
画像信号に基づいて前記ベースLUTから順次ガンマ補
正値を読み出し、そのガンマ補正値にR,G,B毎のガ
ンマゲインを乗算して適宜伸長又は圧縮したガンマ補正
値を求め、点順次のR,G,Bデジタル画像信号から色
別に伸長又は圧縮したガンマ補正値を減算することによ
り点順次で各色別にガンマ補正を行うことができる。Therefore, when the white balance and the black balance are adjusted by the above-mentioned equations (6) to (8) and the gamma correction is performed on the negative-positive inverted dot-sequential R, G, B digital image signals, Gamma correction values are sequentially read out from the base LUT based on dot-sequential R, G, B digital image signals, and the gamma correction values are multiplied by R, G, B gamma gains and expanded or compressed as appropriate. Is obtained, and the gamma correction value expanded or compressed for each color is subtracted from the dot-sequential R, G, B digital image signal to perform the gamma correction for each color in the dot sequence.
【0051】ところで、R,G,B毎の上記ガンマゲイ
ンは、予め標準露光のネガフイルムの階調特性に応じて
設定されているが、図7(A)に示すように撮影時の露
光状態の異なるネガは、階調特性が異なり、図7(B)
に示すようにガンマ特性も異なる。従って、図7(C)
に示すようにネガの露光量に応じてベースLUTを変化
させる必要がある。The gamma gain for each of R, G, and B is set in advance according to the gradation characteristic of the negative film of standard exposure, but as shown in FIG. The gradation characteristics of different negatives are different, and the difference is shown in FIG.
The gamma characteristics are also different as shown in. Therefore, FIG.
As shown in, it is necessary to change the base LUT according to the negative exposure amount.
【0052】そこで、ネガ画像の露光状態の判定結果を
利用し、色別のガンマゲイン(Rga mgain,Ggamgain,B
gamgain )を露光状態に応じて変化させ、ネガ画像の露
光状態に応じたガンマ補正を行うようにしている。即
ち、ネガ画像がアンダー露光状態と判定された場合に
は、標準露光のガンマゲインよりもガンマゲインを小さ
くし、一方、オーバー露光状態と判定された場合には、
標準露光のガンマゲインよりもガンマゲインを大きく
し、これにより調子を整えるようにしている。Therefore, the gamma gain (R ga mgain, G gamgain, B) for each color is utilized by utilizing the determination result of the exposure state of the negative image.
gamgain ) is changed according to the exposure state, and gamma correction is performed according to the exposure state of the negative image. That is, when the negative image is determined to be underexposed, the gamma gain is made smaller than the gamma gain of standard exposure, while when it is determined to be overexposed,
The gamma gain is set to be larger than the gamma gain of standard exposure, and the tone is adjusted accordingly.
【0053】図8は図1に示したデジタル信号処理回路
20の内部構成を含むブロック図である。このデジタル
信号処理回路20は上述したデジタル信号処理を行うも
ので、主として加算器21、22、24、乗算器23、
26、及びベースLUT25から構成されている。加算
器21には、A/Dコンバータ18から点順次のR,
G,Bデジタル画像信号CMPAD が入力している。尚、デ
ジタル画像信号CMPAD は、所定のクロックにしたがって
時系列的にR,G,B,Gと流れている。FIG. 8 is a block diagram including the internal configuration of the digital signal processing circuit 20 shown in FIG. The digital signal processing circuit 20 performs the digital signal processing described above, and mainly includes adders 21, 22, 24, a multiplier 23,
26 and a base LUT 25. The adder 21 includes a dot-sequential R,
G, B digital image signal CMPAD is input. The digital image signal CMPAD flows in time series R, G, B, G according to a predetermined clock.
【0054】一方、CPU40は、式(4)及び(5)
に示したようにR,G,B毎にオフセット(Roffset,
Goffset,Boffset)及びWBゲイン(Rwbgain, G
wbgain,Bwbgain)を算出して記憶するとともに、R,
G,B毎にガンマゲイン(Rga mgain,Ggamgain,B
gamgain )を記憶している。また、これらのオフセット
等は、各コマ毎に記憶されている。そして、アドレスデ
コーダ42によってスキャンしようとするコマに対応す
るオフセット等が選択され、図8中のINTDATA によって
R,G,Bのオフセットはレジスタ43R,43G,4
3Bに格納され、R,G,Bのゲインはレジスタ44
R,44G,44Bに格納され、R,G,Bのガンマゲ
インはレジスタ45R,45G,45Bに格納される。
尚、これらのレジスタには、1コマ分のR,G,Bデジ
タル画像信号が処理されるまで保持される。On the other hand, the CPU 40 uses the equations (4) and (5).
As shown in, the offset (R offset,
G offset , B offset ) and WB gain (R wbgain, G
wbgain , B wbgain ) is calculated and stored, and R,
Gamma gain (R ga mgain, G gamgain, B
gamgain ) is remembered. Further, these offsets and the like are stored for each frame. Then, an offset or the like corresponding to the frame to be scanned is selected by the address decoder 42, and the R, G, B offsets are registered by the registers 43R, 43G, 4 by INTDATA in FIG.
3B, the gains of R, G and B are stored in the register 44.
It is stored in R, 44G, 44B, and the gamma gains of R, G, B are stored in the registers 45R, 45G, 45B.
Incidentally, these registers hold the R, G, B digital image signals for one frame until they are processed.
【0055】レジスタ43R,43G,43Bに格納さ
れたオフセット(Roffset, Goffs et,Boffset)はマ
ルチプレクサ46に加えられており、マルチプレクサ4
6の他の入力には、前記所定のクロックを分周して作成
されたタイミング信号INTCOLSL0,1が加えられてい
る。マルチプレクサ46は、タイミング信号INTCOLSL
0,1によって3つのオフセットからいずれか1つのオ
フセットを選択し、この選択したオフセットをデジタル
信号処理回路20の加算器21の他の入力に出力する。The offsets (R offset, G offs et , B offset ) stored in the registers 43R, 43G, 43B are added to the multiplexer 46, and the multiplexer 4
Timing signals INTCOLSL0, 1 generated by dividing the frequency of the predetermined clock are applied to the other inputs of the reference numeral 6. The multiplexer 46 uses the timing signal INTCOLSL
One of the three offsets is selected by 0 and 1, and the selected offset is output to the other input of the adder 21 of the digital signal processing circuit 20.
【0056】同様にして、マルチプレクサ47は、レジ
スタ44R,44G,44Bから入力する3つのWBゲ
イン(Rwbgain, Gwbgain,Bwbgain)のうちの1つの
ゲインを選択し、この選択したWBゲインを乗算器23
に出力し、また、マルチプレクサ48は、レジスタ45
R,45G,45Bから入力する3つのガンマゲイン
(Rgamgain,Ggamgain,Bgamgain )からいずれか1つ
のガンマゲインを選択し、この選択したガンマゲインを
乗算器26に出力する。Similarly, the multiplexer 47 selects one of the three WB gains (R wbgain, G wbgain , B wbgain ) input from the registers 44R, 44G, 44B and selects the selected WB gain. Multiplier 23
To the register 45.
Any one gamma gain is selected from the three gamma gains (R gamgain, G gamgain, B gamgain ) input from R, 45G, and 45B, and the selected gamma gain is output to the multiplier 26.
【0057】一方、加算器21には前述したようにデジ
タル画像信号CMPAD が入力しており、加算器21はデジ
タル画像信号CMPAD とオフセットとを加算する。これに
より、黒点オフセットされたデジタル画像信号が得られ
る(式(6)、図5(A)参照)。加算器21から出力
される黒点オフセットされたデジタル画像信号は、加算
器22の負入力に加えられ、加算器22の正入力には白
ピークレベルを示す値(255)が加えられており、加
算器22は255から黒点オフセットされたデジタル画
像信号を減算する。これによりネガポジ反転されたデジ
タル画像信号が得られる(式(7)、図5(B)参
照)。On the other hand, as described above, the digital image signal CMPAD is input to the adder 21, and the adder 21 adds the digital image signal CMPAD and the offset. As a result, a digital image signal with a black point offset is obtained (equation (6), see FIG. 5A). The black-dot-offset digital image signal output from the adder 21 is added to the negative input of the adder 22, and the positive input of the adder 22 is added with a value (255) indicating the white peak level. The device 22 subtracts the black-point-offset digital image signal from 255. As a result, a negative-positive inverted digital image signal is obtained (see formula (7) and FIG. 5B).
【0058】続いて、ネガポジ反転されたデジタル画像
信号は、乗算器23に加えられる。乗算器23の他の入
力にはマルチプレクサ47からWBゲインが加えられて
おり、乗算器23は2入力を乗算することにより、R,
G,Bデジタル画像信号のポジ画像の白を合わせる(式
(8)、図5(C)参照)。次に、乗算器23から出力
されるデジタル画像信号は、加算器24及びベースLU
T25に加えられる。ベースLUT25は、図6(A)
に示したように入力信号の階調に応じたガンマ補正値を
有しており、入力するデジタル画像信号の階調に応じた
ガンマ補正値を読み出し、このガンマ補正値を乗算器2
6に出力する。乗算器26の他の入力にはマルチプレク
サ48からネガ画像の露光状態に応じたガンマゲイン
(ネガ画像の露光状態がアンダーになるにしたがって小
さく、オーバーになるにしたがって大きいガンマゲイ
ン)が加えられており、乗算器23は2入力を乗算する
ことにより、R,G,Bデジタル画像信号の色別のガン
マ補正値を生成し、これを加算器24の負入力に出力す
る。Subsequently, the negative-positive inverted digital image signal is added to the multiplier 23. The WB gain is applied to the other input of the multiplier 23 from the multiplexer 47, and the multiplier 23 multiplies the two inputs to obtain R,
The whites of the positive images of the G and B digital image signals are matched (see equation (8) and FIG. 5 (C)). Next, the digital image signal output from the multiplier 23 is added to the adder 24 and the base LU.
Added to T25. The base LUT 25 is shown in FIG.
As shown in FIG. 3, it has a gamma correction value corresponding to the gradation of the input signal, reads the gamma correction value corresponding to the gradation of the input digital image signal, and uses this gamma correction value in the multiplier 2
6 is output. To the other input of the multiplier 26, a gamma gain according to the exposure state of the negative image (smaller as the exposure state of the negative image becomes smaller, and larger as the exposure state of the negative image becomes larger) is applied from the multiplexer 48 to the multiplication. The device 23 multiplies the two inputs to generate a gamma correction value for each color of the R, G, B digital image signals, and outputs this to the negative input of the adder 24.
【0059】加算器24は入力するR,G,Bデジタル
画像信号から各色別に伸長又は圧縮されたガンマ補正値
を減算する。これによりガンマ補正された正規のR,
G,Bデジタル画像信号RGBGgam が得られる。尚、
ガンマ補正方法は、この実施の形態に示すベースLUT
を使用する方法に限らず、可変ガンマが可能なガンマ補
正方法であれば、いかなる方法でもよい。例えば、ネガ
画像の露光状態に応じた複数のガンマ補正用のLUTを
設け、ネガ画像の露光状態の判定結果に基づいて前記複
数のガンマ補正用のLUTから最適なLUTを選択し、
その選択したLUTを用いてガンマ補正を行うようにし
てもよい。The adder 24 subtracts the expanded or compressed gamma correction value for each color from the input R, G, B digital image signals. With this, gamma-corrected regular R,
G, B digital image signals RGBG gam are obtained. still,
The gamma correction method is based on the base LUT shown in this embodiment.
The method is not limited to the above method, and any method may be used as long as it is a gamma correction method that allows variable gamma. For example, a plurality of gamma correction LUTs corresponding to the exposure state of the negative image are provided, and an optimum LUT is selected from the plurality of gamma correction LUTs based on the determination result of the exposure state of the negative image.
Gamma correction may be performed using the selected LUT.
【0060】次に、良好な色再現を可能にする画像処理
方法について、図9に示すフローチャートを参照しなが
ら説明する。まず、プリスキャンを実行し(ステップS
110)、簡易ヒストグラム(図3参照)を作成して基
準最小値Rmin , Gmin ,Bmin 及び基準最大値R
max , G max ,Bmax を求める(ステップS112)。
尚、ここまでの処理は、図2のフローチャートで示した
処理と同様なため、その詳細な説明は省略する。Next, image processing that enables good color reproduction
For the method, refer to the flowchart shown in FIG.
Will be described. First, prescan is executed (step S
110), a simple histogram (see Fig. 3) is created and
Semi-minimum value Rmin,Gmin, BminAnd reference maximum value R
max,G max, BmaxIs calculated (step S112).
The processing up to this point is shown in the flowchart of FIG.
Since it is similar to the processing, detailed description thereof will be omitted.
【0061】次に、上記のようにして求めた基準最大値
Rmax , Gmax ,Bmax から、各基準最大値の比X及び
Yを、次式、 X=Rmax /Gmax Y=Bmax /Gmax により求める(ステップS114)。そして、これらの
比X、Yに基づいて各色別の基準最大値のバラツキが、
所望のホワイトバランス調整が可能な所定の範囲内か否
かを判別する(ステップS116)。Next, from the reference maximum values R max, G max , and B max obtained as described above, the ratio X and Y of each reference maximum value is calculated by the following equation: X = R max / G max Y = B It is determined by max / G max (step S114). Then, based on these ratios X and Y, the variation of the reference maximum value for each color is
It is determined whether or not it is within a predetermined range in which desired white balance adjustment is possible (step S116).
【0062】即ち、図10に示すようにカラーフェリア
検出枠を設定し、上記比X、Yによって定まる図10上
の座標が、このカラーフェリア検出枠から外れた場合に
は、カラーフェリアシーンと判断する。そして、カラー
フェリアシーンと判断すると、R,Bの基準最大値R
max , Bmax をGの基準最大値Gmax に近づけるように
補正するとともに、R,Bの基準最小値Rmin ,Bmin
をGの基準最小値Gminに近づけるように補正する(ス
テップS118)。That is, when the color ferria detection frame is set as shown in FIG. 10 and the coordinates in FIG. 10 determined by the ratios X and Y deviate from this color ferria detection frame, it is determined that it is a color ferria scene. To do. Then, when it is judged that the scene is a color ferria scene, the reference maximum value R of R and B
The max and B max are corrected so as to be close to the G reference maximum value G max , and the R and B reference minimum values R min and B min are corrected.
Is corrected so as to approach the G reference minimum value G min (step S118).
【0063】このステップS118では、例えば上記比
X、Yに対する基準の比をそれぞれXref =K1、Y
ref =K2とすると、R,Bの基準最大値Rmax , B
max は、それぞれ、次式に示すRmax ′, Bmax ′に補
正される。 Rmax ′=K1*Gmax Bmax ′=K2*Gmax また、基準最小1Rmin ,Bmin も同様に補正する。即
ち、R,Bの基準最小値Rmin ,Bmin は、それぞれ、
予め決められた基準の比K3、K4及びGの基準最小値
Gmin により、次式に示すRmin ′,Bmin ′に補正さ
れる。In this step S118, for example, the reference ratios for the ratios X and Y are set to X ref = K1 and Y, respectively.
If ref = K2, the reference maximum values R max, B of R and B
max is corrected to R max ′ and B max ′ shown in the following equations, respectively. R max ′ = K1 * G max B max ′ = K2 * G max The reference minimums 1 R min and B min are similarly corrected. That is, the reference minimum values R min and B min of R and B are respectively
Based on the predetermined reference ratios K3, K4 and the reference minimum value G min of G, R min ′ and B min ′ shown in the following equations are corrected.
【0064】 Rmin ′=K3*Gmin Bmin ′=K4*Gmin 次に、カラーフェリアシーンと判断すると、上記補正し
た基準最小値、基準最大値を使用し、カラーフェリアシ
ーンでないと判断すると、ステップS112で求めた基
準最小値、基準最大値をそのまま使用して、前述した式
(4)、(5)により白バランス及び黒バランスを合わ
せるために使用するオフセット、ホワイトバランスゲイ
ン(WBゲイン)を決定する(ステップS120)。R min ′ = K3 * G min B min ′ = K4 * G min Next, when it is determined that a color ferria scene is used, it is determined that the corrected reference minimum value and reference maximum value are used, and it is not a color ferria scene. , The offset and the white balance gain (WB gain) used to adjust the white balance and the black balance by the above equations (4) and (5) using the reference minimum value and the reference maximum value obtained in step S112 as they are. Is determined (step S120).
【0065】次に、上記決定されたオフセット及びWB
ゲインに基づいてネガ画像のファインスキャンを実行す
る(ステップS122)。即ち、ファインスキャン時に
は、フイルム52を一定速度で搬送し、フイルム画像の
スキャン(ファインスキャン)を実行する(ステップS
122)。このファインスキャン中に、CCDラインセ
ンサ14、アナログアンプ16及びA/Dコンバータ1
8を介してデジタル信号処理回路20に点順次のR,
G,Bデジタル画像信号が出力される。Next, the determined offset and WB
Fine scan of the negative image is executed based on the gain (step S122). That is, at the time of fine scanning, the film 52 is conveyed at a constant speed to scan the film image (fine scanning) (step S).
122). During this fine scan, the CCD line sensor 14, the analog amplifier 16 and the A / D converter 1
To the digital signal processing circuit 20 via 8
G and B digital image signals are output.
【0066】尚、この実施の形態では、各色別の基準最
大値の比に基づいて基準最大値、基準最小値を補正する
か否かを判別するようにしたが、これに限らず、各色別
の基準最大値の差を求め、この差から基準最大値、基準
最小値を補正するか否かを判別してもよい。また、基準
最大値の代わりに基準最小値を用いて、上記と同様な判
別を行うようにしてもよい。また、この実施の形態で
は、基準最大値と基準最小値の両方を補正するようにし
たが、基準最大値及び基準最小値のいずれか一方を補正
するようにしてもよい。更に、R,Bの基準最大値及び
基準最小値を、Gの基準最大値、基準最小値に近づける
ように補正するようにしたが、これに限らず、各色別の
基準最大値及び/又は各色別の基準最小値を、各値が近
づくように補正する方法であれば如何なる方法でもよ
い。In this embodiment, whether or not to correct the reference maximum value and the reference minimum value is determined based on the ratio of the reference maximum value for each color. However, the present invention is not limited to this, and it is not limited to this. It is also possible to determine the difference between the reference maximum values of and determine whether or not to correct the reference maximum value and the reference minimum value from this difference. Further, instead of the reference maximum value, the reference minimum value may be used to perform the same determination as above. Further, in this embodiment, both the reference maximum value and the reference minimum value are corrected, but either the reference maximum value or the reference minimum value may be corrected. Further, the reference maximum value and the reference minimum value of R and B are corrected so as to approach the reference maximum value and the reference minimum value of G. However, the present invention is not limited to this, and the reference maximum value and / or each color of each color is corrected. Any method may be used as long as it is a method of correcting another reference minimum value so that each value approaches each other.
【0067】[0067]
【発明の効果】以上説明したように本発明に係る画像処
理方法によれば、フイルム画像の撮像時に得られる画像
信号の基準最大値及び基準最小値に基づいて画像処理す
る際に、フイルム画像の露光状態に応じて画像処理を行
うため、良好な調子再現が可能となる。特に、フイルム
画像の露光状態の判定に前記基準最大値又は基準最小値
を用いると、露光状態の判定に必要な回路やソフトの負
荷を最小限にすることができ、露光状態の判定を簡便に
行うことができる。また、複数回の撮像によって得た複
数の基準最大値等を平均した値に基づいてフイルム画像
の露光状態を判定し、あるいはフイルム画像の基準最大
値、基準最小値及び平均値からフイルム画像の露光状態
の判定精度が高い値を当該フイルム画像の露光状態に応
じて適宜選択し、その選択した値に基づいてフイルム画
像の露光状態を判定しているため、露光アンダー、オー
バーのフイルム画像であっても精度の高い露光状態の判
定ができる。更にまた、フイルムの未露光部分の撮像時
に得られる画像信号の平均値に基づいて前記基準最大値
等を正規化するようにしているため、フイルムベースの
濃度やアンプゲイン等の影響を受けないフイルム画像の
露光状態の判定ができる。As described above, according to the image processing method of the present invention, when the image processing is performed based on the reference maximum value and the reference minimum value of the image signal obtained when the film image is captured, Since image processing is performed according to the exposure state, good tone reproduction is possible. In particular, if the reference maximum value or the reference minimum value is used for the determination of the exposure state of the film image, the load of the circuit and software required for the determination of the exposure state can be minimized, and the determination of the exposure state can be simplified. It can be carried out. In addition, the exposure state of the film image is determined based on an average value of a plurality of reference maximum values obtained by imaging a plurality of times, or the film image is exposed from the reference maximum value, the reference minimum value, and the average value of the film image. A value with high accuracy in determining the state is appropriately selected according to the exposure state of the film image, and the exposure state of the film image is determined based on the selected value. Can determine the exposure state with high accuracy. Furthermore, since the reference maximum value and the like are normalized based on the average value of the image signal obtained when the unexposed portion of the film is imaged, the film is not affected by the density of the film base or the amplifier gain. The exposure state of the image can be determined.
【0068】また、本発明によれば、フイルム画像の露
光状態がアンダー露光時には、ガンマ補正時のガンマを
小さくし、また、オーバー露光時には、ガンマを大きく
するようにしたため、アンダー露光及びオーバー露光時
の中間調の明るさを適正にすることができる。また、フ
イルム画像の基準最大値と基準最小値との比又は差が、
予め設定した第1、第2の閾値の範囲に入るように基準
最大値及び基準最小値のうちの少なくとも一方を補正
し、これにより硬調及び硬調の画像の調子を整えるよう
にしているが、更にフイルム画像の露光状態がアンダー
露光又はオーバー露光時には、前記第1、第2の閾値を
それらよりもそれぞれ低い第3、第4の閾値に変更する
ようにしたため、フイルム画像の調子が不自然に変わら
ず、良好な調子再現ができる。Further, according to the present invention, when the exposure state of the film image is underexposure, the gamma at the time of gamma correction is made small, and at the time of overexposure, the gamma is made large, so that at the time of underexposure and overexposure. The halftone brightness of can be adjusted appropriately. Also, the ratio or difference between the reference maximum value and the reference minimum value of the film image is
At least one of the reference maximum value and the reference minimum value is corrected so as to fall within the range of the first and second threshold values set in advance, thereby adjusting the tone of the hard-tone image and the hard-tone image. When the exposure state of the film image is underexposed or overexposed, the first and second threshold values are changed to the third and fourth threshold values respectively lower than them, so that the tone of the film image changes unnaturally. No, you can reproduce good tone.
【0069】更に、本発明によれば、極端に彩度の高い
領域が存在し、各色別の基準最大値、基準最小値が大き
くばらつくようなカラーフェリアシーンであっても、こ
のようなシーンの場合には各色別の基準最大値及び/又
は基準最小値のバラツキを補正するようにしたため、所
望のホワイトバランス調整が可能となり、良好な色再現
が実現できる。Further, according to the present invention, even in a color feria scene in which there is an extremely high saturation area and the reference maximum value and the reference minimum value for each color vary greatly, In this case, since the variation of the reference maximum value and / or the reference minimum value for each color is corrected, desired white balance adjustment becomes possible, and good color reproduction can be realized.
【図1】図1は本発明が適用されるフイルムスキャナの
実施の形態を示す要部ブロック図である。FIG. 1 is a principal block diagram showing an embodiment of a film scanner to which the present invention is applied.
【図2】図2は図1に示したフイルムスキャナでの画像
処理手順を説明するために用いたフローチャートであ
る。FIG. 2 is a flowchart used to explain an image processing procedure in the film scanner shown in FIG.
【図3】図3は基準最大値及び基準最小値の求め方を説
明するために用いたヒストグラムである。FIG. 3 is a histogram used for explaining how to obtain a reference maximum value and a reference minimum value.
【図4】図4はフイルム画像の露光状態に対応する基準
最大値と平均値とを示す折れ線グラフである。FIG. 4 is a line graph showing a reference maximum value and an average value corresponding to an exposure state of a film image.
【図5】図5(A)乃至(D)はそれぞれ図1のデジタ
ル信号処理回路の各部における処理内容を示すグラフで
ある。5A to 5D are graphs showing processing contents in respective units of the digital signal processing circuit of FIG. 1, respectively.
【図6】図6(A)乃至(C)はそれぞれガンマ補正方
法の一例を説明するために用いたグラフである。6A to 6C are graphs used to describe an example of a gamma correction method.
【図7】図7(A)乃至(C)はそれぞれ露光状態の異
なるネガの階調特性、ガンマ特性及びベースLUTを示
すグラフである。FIGS. 7A to 7C are graphs showing negative tone characteristics, gamma characteristics, and base LUT of different exposure states.
【図8】図8は図1のデジタル信号処理回路の詳細な構
成を示すブロック図である。FIG. 8 is a block diagram showing a detailed configuration of the digital signal processing circuit of FIG.
【図9】図9は図1に示したフイルムスキャナでの他の
画像処理手順を説明するために用いたフローチャートで
ある。9 is a flowchart used for explaining another image processing procedure in the film scanner shown in FIG.
【図10】図10はカラーフェリアシーンの判別等を説
明するために用いたグラフである。FIG. 10 is a graph used for explaining discrimination of a color ferria scene and the like.
【図11】図11はネガフイルムの特性曲線を示すグラ
フである。FIG. 11 is a graph showing a characteristic curve of a negative film.
【図12】図12はBの基準最小値が他の色の基準最小
値よりも極端に大きい場合のR,G,Bのヒストグラム
である。FIG. 12 is a histogram of R, G, and B when the reference minimum value of B is extremely larger than the reference minimum values of other colors.
10…光源 12…撮影レンズ 14…CCDラインセンサ 15…CCD駆動回路 18…A/Dコンバータ 20…デジタル信号処理回路 21、22、24…加算器 23、26…乗算器 25…ベースLUT 40…中央処理装置(CPU) 41…積算ブロック 50…フイルムカートリッジ 52…ネガフイルム 10 ... Light source 12 ... Photographing lens 14 ... CCD line sensor 15 ... CCD drive circuit 18 ... A / D converter 20 ... Digital signal processing circuit 21, 22, 24 ... Adder 23, 26 ... Multiplier 25 ... Base LUT 40 ... Center Processor (CPU) 41 ... Accumulation block 50 ... Film cartridge 52 ... Negative film
Claims (13)
イルム画像を撮像し、 前記撮像時に得られた画像信号の基準最大値及び基準最
小値、又は基準最大値、基準最小値及び平均値を求め、 前記求めた基準最大値、基準最小値及び平均値のうちの
少なくとも1つに基づいて前記フイルム画像の露光状態
を判定し、 前記基準最大値及び基準最小値と前記判定結果に基づい
て画像処理を行うことを特徴とする画像処理方法。1. A film image imprinted on a developed photographic film is taken, and a reference maximum value and a reference minimum value, or a reference maximum value, a reference minimum value and an average value of the image signal obtained at the time of the image pickup are obtained. An exposure state of the film image is determined based on at least one of the obtained reference maximum value, reference minimum value and average value, and image processing is performed based on the reference maximum value and reference minimum value and the determination result. An image processing method comprising:
ための前記基準最大値、基準最小値又は平均値として、
同一のフイルム画像を複数回撮像して得られた複数の基
準最大値、複数の基準最小値又は複数の平均値を平均し
た値を使用することを特徴とする請求項1の画像処理方
法。2. As the reference maximum value, reference minimum value or average value for determining the exposure state of the film image,
2. The image processing method according to claim 1, wherein a value obtained by averaging a plurality of reference maximum values, a plurality of reference minimum values, or a plurality of average values obtained by capturing the same film image a plurality of times is used.
平均値からフイルム画像の露光状態の判定精度が高い値
を当該フイルム画像の露光状態に応じて適宜選択し、そ
の選択した値に基づいて前記フイルム画像の露光状態を
判定することを特徴とする請求項1の画像処理方法。3. A value having a high determination accuracy of the exposure state of the film image is appropriately selected from the obtained reference maximum value, reference minimum value and average value according to the exposure state of the film image, and based on the selected value. 2. The image processing method according to claim 1, wherein the exposure state of the film image is determined.
値に基づく前記フイルム画像の露光状態の判定精度が保
証される値以上になると、前記基準最大値に代えて前記
平均値に基づいて前記フイルム画像の露光状態を判定す
ることを特徴とする請求項1の画像処理方法。4. When the obtained reference maximum value is equal to or higher than a value that guarantees the determination accuracy of the exposure state of the film image based on the reference maximum value, the average value is used instead of the reference maximum value. The image processing method according to claim 1, wherein an exposure state of the film image is determined.
マ分の全ての階調データを求め、 前記1コマ分の全ての階調データを階調毎にカウントし
てヒストグラムを作成する際に、所定の度数を上限とし
た簡易ヒストグラムを作成し、 前記基準最大値は、前記簡易ヒストグラムの階調の大き
い方からカウントした累積度数が前記階調データの総点
数に対する所定の割合を越えた点に基づいて求め、 前記基準最小値は、前記簡易ヒストグラムの階調の小さ
い方からカウントした累積度数が前記階調データの総点
数に対する所定の割合を越えた点に基づいて求めるよう
にしたことを特徴とする請求項1の画像処理方法。5. When all gradation data for one frame is obtained from the image signal obtained at the time of image pickup, and all gradation data for one frame is counted for each gradation to create a histogram. , A simple histogram with a predetermined frequency as an upper limit is created, and the reference maximum value is a point at which the cumulative frequency counted from the larger gradation of the simple histogram exceeds a predetermined ratio with respect to the total score of the gradation data. The reference minimum value is obtained based on a point where the cumulative frequency counted from the smaller gradation of the simple histogram exceeds a predetermined ratio with respect to the total score of the gradation data. The image processing method according to claim 1, which is characterized in that.
されたエリアにおける平均の階調データである請求項5
の画像処理方法。6. The grayscale data is average grayscale data in an area divided in units of a plurality of pixels.
Image processing method.
現像済み写真フイルムの未露光部分を所定の露出状態で
撮像し、 前記未露光部分の撮像時に得られた画像信号が所定の信
号レベルとなるように前記所定の露出状態を修正し、 前記修正した露出状態で前記フイルム画像を撮像するよ
うにしたことを特徴とする請求項1の画像処理方法。7. Before capturing the film image, an unexposed portion of the developed photographic film is captured in a predetermined exposure state, and an image signal obtained when capturing the unexposed portion has a predetermined signal level. 2. The image processing method according to claim 1, wherein the predetermined exposure state is corrected so that the film image is captured in the corrected exposure state.
ための前記基準最大値、基準最小値又は平均値は、前記
未露光部分の撮像時に得られた画像信号の平均値に基づ
いて正規化された値である請求項1の画像処理方法。8. The reference maximum value, reference minimum value, or average value for determining the exposure state of the film image is normalized based on the average value of image signals obtained at the time of capturing the unexposed portion. The image processing method according to claim 1, wherein
基準最大値及び基準最小値を求め、該基準最大値及び基
準最小値がそれぞれ所定の階調となるように前記画像信
号を補正するとともに、ガンマ補正する画像処理方法に
おいて、 前記フイルム画像の露光状態を判定し、 前記露光状態の判定結果に基づいてアンダー露光と判定
すると、前記ガンマ補正時のガンマを標準露光時に比べ
て小さくし、オーバー露光と判定すると、前記ガンマ補
正時のガンマを標準露光時に比べて大きくするようにし
たことを特徴とする画像処理方法。9. A reference maximum value and a reference minimum value of an image signal obtained by picking up a film image are obtained, and the image signal is corrected so that the reference maximum value and the reference minimum value have predetermined gradations, respectively. Along with, in an image processing method for gamma correction, the exposure state of the film image is determined, and if underexposure is determined based on the determination result of the exposure state, the gamma at the time of gamma correction is made smaller than that at the time of standard exposure, An image processing method characterized in that, when it is determined that overexposure, gamma at the time of gamma correction is made larger than that at standard exposure.
の基準最大値及び基準最小値を求め、前記基準最大値と
基準最小値との比又は差が、所望の調子が得られるよう
に予め設定した第1の閾値と第2の閾値との範囲に入る
ように前記基準最大値及び基準最小値のうちの少なくと
も一方を補正し、その補正した基準最大値及び基準最小
値がそれぞれ所定の階調となるように前記画像信号を補
正する画像処理方法において、 前記フイルム画像の露光状態を判定し、 前記露光状態の判定結果に基づいてアンダー露光又はオ
ーバー露光と判定すると、前記第1の閾値及び第2の閾
値を、該第1の閾値及び第2の閾値よりもそれぞれ低い
第3の閾値及び第4の閾値に変更するようにしたことを
特徴とする画像処理方法。10. A reference maximum value and a reference minimum value of an image signal obtained by capturing a film image are obtained, and a ratio or a difference between the reference maximum value and the reference minimum value is set in advance so that a desired tone is obtained. At least one of the reference maximum value and the reference minimum value is corrected so as to fall within the range between the set first threshold value and the set second threshold value, and the corrected reference maximum value and reference minimum value are respectively predetermined floors. In the image processing method for correcting the image signal so as to obtain a gradation, the exposure state of the film image is determined, and when it is determined as underexposure or overexposure based on the determination result of the exposure state, the first threshold value and An image processing method, wherein the second threshold value is changed to a third threshold value and a fourth threshold value which are lower than the first threshold value and the second threshold value, respectively.
を、前記基準最大値、基準最小値及び前記画像信号の平
均値のうちの少なくとも1つに基づいて行うことを特徴
とする請求項9又は10の画像処理方法。11. The exposure state of the film image is determined based on at least one of the reference maximum value, the reference minimum value, and the average value of the image signal. Image processing method.
号を得、 前記撮像時に得られた各色別の画像信号の基準最大値及
び基準最小値を求め、 各色別の基準最大値の比又は差、及び各色別の基準最小
値の比又は差のうちの少なくとも一方の比又は差を求
め、 前記求めた比又は差が、所望のホワイトバランス調整が
可能な所定の範囲内か否かを判別し、 前記求めた比又は差が前記範囲を越えている場合には、
前記各色別の基準最大値及び/又は各色別の基準最小値
を、各値が近づくように補正し、 前記求めた比又は差が前記範囲を越えていない場合に
は、前記補正前の基準最大値及び基準最小値がそれぞれ
所定の階調となるように前記画像信号を補正し、 前記求めた比又は差が前記範囲を越えている場合には、
前記補正した基準最大値及び基準最小値がそれぞれ所定
の階調となるように前記画像信号を補正することを特徴
とする画像処理方法。12. A color image is picked up to obtain an image signal for each color, a reference maximum value and a reference minimum value of the image signal for each color obtained at the time of picking up are obtained, and a ratio of the reference maximum value for each color or The difference or the ratio or difference of at least one of the reference minimum values of the respective colors or the difference is obtained, and it is determined whether or not the obtained ratio or difference is within a predetermined range in which desired white balance adjustment is possible. However, when the obtained ratio or difference exceeds the above range,
The reference maximum value for each color and / or the reference minimum value for each color are corrected so that the values are close to each other, and when the obtained ratio or difference does not exceed the range, the reference maximum value before correction is set. When the image signal is corrected so that the value and the reference minimum value are each a predetermined gradation, and the obtained ratio or difference exceeds the range,
An image processing method, characterized in that the image signal is corrected so that the corrected reference maximum value and reference minimum value have predetermined gradations.
画像信号であり、前記求めた比又は差が前記範囲を越え
ている場合には、Gの基準最大値及び/又は基準最小値
に近づくように、他の色の基準最大値及び/又は基準最
小値を補正することを特徴とする請求項12の画像処理
方法。13. The image signal for each color is an R, G, B image signal, and when the obtained ratio or difference exceeds the range, the reference maximum value and / or the reference minimum value of G are set. 13. The image processing method according to claim 12, wherein the reference maximum value and / or the reference minimum value of another color is corrected so as to approach the value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP15719596A JP3876932B2 (en) | 1995-06-23 | 1996-06-18 | Image processing method |
Applications Claiming Priority (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7-158004 | 1995-06-23 | ||
JP15800695 | 1995-06-23 | ||
JP15800595 | 1995-06-23 | ||
JP7-158006 | 1995-06-23 | ||
JP15800495 | 1995-06-23 | ||
JP7-158005 | 1995-06-23 | ||
JP15719596A JP3876932B2 (en) | 1995-06-23 | 1996-06-18 | Image processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0968764A true JPH0968764A (en) | 1997-03-11 |
JP3876932B2 JP3876932B2 (en) | 2007-02-07 |
Family
ID=27473471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP15719596A Expired - Fee Related JP3876932B2 (en) | 1995-06-23 | 1996-06-18 | Image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3876932B2 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6694051B1 (en) | 1998-06-24 | 2004-02-17 | Canon Kabushiki Kaisha | Image processing method, image processing apparatus and recording medium |
JP2008124890A (en) * | 2006-11-14 | 2008-05-29 | Seiko Epson Corp | Exposure discrimination device and method |
JP2009038827A (en) * | 2006-02-21 | 2009-02-19 | Seiko Epson Corp | Exposure discrimination device and method |
US7768674B2 (en) | 2006-02-21 | 2010-08-03 | Seiko Epson Corporation | Exposure determining device and exposure determining method |
US8265429B2 (en) | 2007-12-28 | 2012-09-11 | Canon Kabushiki Kaisha | Image processing apparatus and methods for laying out images |
-
1996
- 1996-06-18 JP JP15719596A patent/JP3876932B2/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6694051B1 (en) | 1998-06-24 | 2004-02-17 | Canon Kabushiki Kaisha | Image processing method, image processing apparatus and recording medium |
JP2009038827A (en) * | 2006-02-21 | 2009-02-19 | Seiko Epson Corp | Exposure discrimination device and method |
US7768674B2 (en) | 2006-02-21 | 2010-08-03 | Seiko Epson Corporation | Exposure determining device and exposure determining method |
JP2008124890A (en) * | 2006-11-14 | 2008-05-29 | Seiko Epson Corp | Exposure discrimination device and method |
US8265429B2 (en) | 2007-12-28 | 2012-09-11 | Canon Kabushiki Kaisha | Image processing apparatus and methods for laying out images |
Also Published As
Publication number | Publication date |
---|---|
JP3876932B2 (en) | 2007-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5926562A (en) | Image processing method using reference values to determine exposure state | |
US7750950B2 (en) | Image pickup apparatus and image processing method | |
JP3487361B2 (en) | Exposure control device for film scanner, image signal processing method and gamma correction method | |
JP3456032B2 (en) | Image processing method | |
US6181880B1 (en) | Image data recording method and frame image regenerating method | |
JP3967510B2 (en) | Digital camera | |
JP3876932B2 (en) | Image processing method | |
JP3092397B2 (en) | Imaging device | |
JP3575113B2 (en) | Film image processing method | |
JP3823865B2 (en) | Image processing method, image processing program, and recording medium on which image processing program is recorded | |
JPH0638043A (en) | Quantization circuit | |
JP3534273B2 (en) | Pre-scanning method for film scanner | |
JP3605856B2 (en) | Image processing device | |
JPH10322592A (en) | Method and device for controlling electronic camera | |
JP3714491B2 (en) | Outline enhancement method | |
JP2003299107A (en) | Imaging device | |
JP3605813B2 (en) | Exposure control device and method for film scanner | |
JP3446843B2 (en) | Gamma correction method | |
JPH1023324A (en) | Imaging device | |
JP3896424B2 (en) | Image signal processing method and gamma correction method for film scanner | |
JP3958708B2 (en) | Gamma correction method | |
US6246433B1 (en) | Film image capturing method | |
JPH07322274A (en) | Image processing method | |
JPH07322282A (en) | Gamma correction method | |
JPH0937086A (en) | Calibration method of negative scanner |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050209 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050907 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20051107 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060111 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060310 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060530 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060727 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20060905 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20061011 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061024 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091110 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091110 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |