JPH11331593A - Film scanner - Google Patents

Film scanner

Info

Publication number
JPH11331593A
JPH11331593A JP10131956A JP13195698A JPH11331593A JP H11331593 A JPH11331593 A JP H11331593A JP 10131956 A JP10131956 A JP 10131956A JP 13195698 A JP13195698 A JP 13195698A JP H11331593 A JPH11331593 A JP H11331593A
Authority
JP
Japan
Prior art keywords
level
image
histogram
converting
minimum
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.)
Withdrawn
Application number
JP10131956A
Other languages
Japanese (ja)
Inventor
Tetsuya Toyoda
哲也 豊田
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.)
Olympus Corp
Original Assignee
Olympus Optical 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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP10131956A priority Critical patent/JPH11331593A/en
Publication of JPH11331593A publication Critical patent/JPH11331593A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/11Scanning of colour motion picture films, e.g. for telecine

Landscapes

  • Image Processing (AREA)
  • Facsimiles In General (AREA)
  • Color Television Image Signal Generators (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the color reproduceability of a film scanner by precisely judging the black level and white level of an image. SOLUTION: A latent image on a film is converted to an image signal by CCD 1 and this image signal is converted to a density value by a log conversion part 5. Then, a histogram showing the appearance frequency of the density value converted by this part 5 is prepared by a histogram preparing part 6. The minimum level and the maximum level of an image are judged by a level judging part 7 by the average of the density value within the prescribed area of the minimum value and the maximum value of the prepared histogram. The gradation of the image signal is converted by a level correcting part 9 based on the minimum level and the maximum level judged by the part 7.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明はフィルムスキャナ
に関し、より詳細には、画像の色バランス及びコントラ
ストを自動的に補正するフィルムスキャナに関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a film scanner, and more particularly, to a film scanner for automatically correcting the color balance and contrast of an image.

【0002】[0002]

【従来の技術】従来より、写真フィルムをCCDで撮像
するフィルムスキャナに於いて、撮像した画像信号のヒ
ストグラムを作成し、その分布の仕方を解析して、その
情報を基に階調変換することで画像の色バランス及びコ
ンスラストを調整する技術が知られている。
2. Description of the Related Art Conventionally, in a film scanner for photographing a photographic film with a CCD, a histogram of a photographed image signal is created, a distribution method thereof is analyzed, and gradation conversion is performed based on the information. There is known a technique for adjusting the color balance and the contrast of an image.

【0003】例えば、特開平8−307683号公報に
は、画像の濃度値と出現頻度数に関するグラフ、すなわ
ち濃度ヒストグラムを算出し、それを基にフィルムベー
ス部の濃度とイメージ部の濃度を算出、画像のコントラ
ストを判断する技術が記載されている。
For example, Japanese Patent Application Laid-Open No. 8-307683 discloses a graph relating to the density value of an image and the frequency of appearance, that is, a density histogram, and calculates the density of a film base portion and the density of an image portion based on the histogram. A technique for determining the contrast of an image is described.

【0004】また、特開平8−32808号公報には、
ヒストグラムの階調の小さい方からカウントした累積度
数が総点数に対する所定の割合を超えた点を画像信号の
基準最小値とし、階調の大きな方からカウントした累積
度数が所定の割合を超えた点を基準最大値として検出
し、それらに基づいて画像処理を行う技術が記載されて
いる。
Japanese Patent Laid-Open Publication No. 8-32808 discloses that
The point at which the cumulative frequency counted from the smaller gradation of the histogram exceeds a predetermined ratio to the total number of points is defined as the reference minimum value of the image signal, and the point at which the cumulative frequency counted from the larger gradation exceeds the predetermined ratio. Is described as a reference maximum value, and an image processing is performed based on the detected maximum value.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記特
開平8−307683号公報には、ヒストグラムから最
小レベル及び最大レベルを求める際に、単に最小値及び
最大値を用いるとしか記載されていない。これは、例え
ば図12に最大最小レベル1として示されるように、単
に最小値、最大値を用いると突発的なノイズ成分による
影響を受けやすくなり、最小レベル、最大レベルの検出
精度が悪いものとなっている。
However, the above-mentioned Japanese Patent Application Laid-Open No. Hei 8-307683 describes that only the minimum and maximum values are used when obtaining the minimum and maximum levels from the histogram. For example, as shown in FIG. 12 as the maximum / minimum level 1, if the minimum and maximum values are simply used, it is easily affected by sudden noise components, and the detection accuracy of the minimum and maximum levels is poor. Has become.

【0006】また、上記特開平8−32808号公報に
は、ヒストグラムから最小レベル及び最大レベルを求め
る際に、高濃度側と低濃度側で同じ累積度数を用いたレ
ベル検出を行っているが、図12に最大最小レベル2と
して示されるように、高濃度側はCCD出力信号のS/
Nが悪いため、検出精度が悪くなるものであった。
In Japanese Patent Application Laid-Open No. 8-32808, when the minimum level and the maximum level are obtained from the histogram, level detection is performed using the same cumulative frequency on the high density side and the low density side. As shown as the maximum / minimum level 2 in FIG.
Since N was poor, the detection accuracy was poor.

【0007】したがって、この発明は上記課題に鑑みて
なされたものであり、ヒストグラムから画像の最小値、
最大値を検出する際に、ヒストグラムに突発的なノイズ
成分が含まれていても精度の良い検出を可能にするフィ
ルムスキャナを提供することを目的とする。
[0007] Therefore, the present invention has been made in view of the above-mentioned problems, and it has been found that the minimum value of an image can be obtained from a histogram.
It is an object of the present invention to provide a film scanner capable of performing accurate detection even when a histogram includes a sudden noise component when detecting a maximum value.

【0008】[0008]

【課題を解決するための手段】すなわちこの発明は、フ
ィルム上の潜像を画像信号に変換する画像読み取り手段
と、この画像読み取り手段で読み取られた画像信号を濃
度値に変換する変換手段と、この変換手段で変換された
濃度値の出現頻度を示すヒストグラムを作成するヒスト
グラム作成手段と、このヒストグラム作成手段で作成さ
れたヒストグラムの最小値付近及び最大値付近の所定の
領域内に於ける濃度値の平均値をもって画像の最小レベ
ル及び最大レベルを判断するレベル判断手段と、この判
断手段で判断された最小レベル及び最大レベルに基づい
て画像信号の階調を変換する階調変換手段とを具備する
ことを特徴とする。
That is, the present invention provides an image reading means for converting a latent image on a film into an image signal, a converting means for converting an image signal read by the image reading means into a density value, Histogram creation means for creating a histogram indicating the frequency of appearance of the density values converted by the conversion means, and density values in predetermined areas near the minimum value and the maximum value of the histogram created by the histogram creation means Level judgment means for judging the minimum level and the maximum level of the image using the average value of the image signal, and gradation conversion means for converting the gradation of the image signal based on the minimum level and the maximum level judged by the judgment means. It is characterized by the following.

【0009】またこの発明は、フィルム上の潜像を画像
信号に変換する画像読み取り手段と、この画像読み取り
手段で読み取られた画像信号を濃度値に変換する変換手
段と、この変換手段で変換された濃度値の出現頻度を示
すヒストグラムを作成するヒストグラム作成手段と、こ
のヒストグラム作成手段で作成されたヒストグラムの最
小値付近及び最大値付近の所定の領域内に於ける濃度値
の平均値をもって画像の最小レベル及び最大レベルを判
断するレベル判断手段と、このレベル判断手段で判断さ
れた最小レベル及び最大レベルに基づいて画像信号の階
調を変換する階調変換手段とを具備し、上記レベル判断
手段で画像の最小レベルを判断する際の領域の全領域に
対する割合が、最大レベルを判断する際の領域の全領域
に対する割合よりも大きいことを特徴とする。
According to another aspect of the present invention, there is provided image reading means for converting a latent image on a film into an image signal, conversion means for converting an image signal read by the image reading means into a density value, and conversion by the conversion means. A histogram creating means for creating a histogram indicating the appearance frequency of the density values, and an average value of the density values in a predetermined area near the minimum value and the maximum value of the histogram created by the histogram creation means. A level judging means for judging a minimum level and a maximum level; and a gradation converting means for converting a gradation of an image signal based on the minimum level and the maximum level judged by the level judging means. The ratio of the area to the whole area when judging the minimum level of the image is larger than the ratio of the area to the whole area when judging the maximum level. And wherein the large.

【0010】更にこの発明は、フィルム上の潜像を画像
信号に変換する画像読み取り手段と、この画像読み取り
手段で読み取られたフィルムがネガフィルムであるかポ
ジフィルムであるかを判断するネガポジ判断手段と、上
記画像読み取り手段で読み取られた画像信号を濃度値に
変換する変換手段と、この変換手段で変換された濃度値
の出現頻度を示すヒストグラムを作成するヒストグラム
作成手段と、このヒストグラム作成手段で作成されたヒ
ストグラムの最小値付近及び最大値付近の所定の領域内
に於ける濃度値の平均値をもって画像の最小レベル及び
最大レベルを判断するレベル判断手段と、このレベル判
断手段で判断された最小レベル及び最大レベルに基づい
て画像信号の階調を変換する階調変換手段とを具備し、
上記レベル判断手段にて画像の最小レベル及び最大レベ
ルを判断する際の領域の全領域に対する割合を上記ポジ
ネガ判断手段の結果に応じて切換えることを特徴とす
る。
Further, the present invention provides an image reading means for converting a latent image on a film into an image signal, and a negative / positive judging means for judging whether the film read by the image reading means is a negative film or a positive film. Conversion means for converting an image signal read by the image reading means into a density value; a histogram creation means for creating a histogram indicating the appearance frequency of the density value converted by the conversion means; and a histogram creation means. Level determining means for determining the minimum level and maximum level of the image based on the average value of the density values in a predetermined area near the minimum value and the maximum value of the created histogram; and the minimum value determined by the level determining means. A tone conversion means for converting the tone of the image signal based on the level and the maximum level,
The ratio of the area to the entire area when the minimum level and the maximum level of the image are determined by the level determining means is switched according to the result of the positive / negative determining means.

【0011】この発明のフィルムスキャナにあっては、
フィルム上の潜像が画像読み取り手段によって画像信号
に変換され、この画像信号は変換手段で濃度値に変換さ
れる。そして、この変換手段で変換された濃度値の出現
頻度を示すヒストグラムがヒストグラム作成手段により
作成され、この作成されたヒストグラムの最小値付近及
び最大値付近の所定の領域内に於ける濃度値の平均値を
もって画像の最小レベル及び最大レベルがレベル判断手
段で判断される。この判断手段で判断された最小レベル
及び最大レベルに基づいて、画像信号の階調が階調変換
手段で変換される。
In the film scanner of the present invention,
The latent image on the film is converted into an image signal by the image reading means, and the image signal is converted into a density value by the conversion means. Then, a histogram indicating the frequency of appearance of the density values converted by the conversion means is created by the histogram creation means, and the average of the density values in a predetermined area near the minimum value and the maximum value of the created histogram is created. The minimum level and the maximum level of the image are determined by the level determining means using the values. The gradation of the image signal is converted by the gradation conversion means based on the minimum level and the maximum level determined by the determination means.

【0012】またこの発明のフィルムスキャナにあって
は、フィルム上の潜像が画像読み取り手段により画像信
号に変換される。この画像読み取り手段で読み取られた
画像信号は、変換手段によって濃度値に変換され、更に
変換された濃度値の出現頻度を示すヒストグラムがヒス
トグラム作成手段で作成される。このヒストグラム作成
手段で作成されたヒストグラムの最小値付近及び最大値
付近の所定の領域内に於ける濃度値の平均値をもって、
画像の最小レベル及び最大レベルがレベル判断手段で判
断される。このレベル判断手段で判断された最小レベル
及び最大レベルに基づいて、階調変換手段で画像信号の
階調が変換される。そして、上記レベル判断手段で画像
の最小レベルを判断する際の領域の全領域に対する割合
は、最大レベルを判断する際の領域の全領域に対する割
合よりも大きくなっている。
In the film scanner of the present invention, the latent image on the film is converted into an image signal by the image reading means. The image signal read by the image reading unit is converted into a density value by the conversion unit, and a histogram indicating the appearance frequency of the converted density value is generated by the histogram generation unit. With the average value of the density values in a predetermined area near the minimum value and the maximum value of the histogram created by the histogram creating means,
The minimum level and the maximum level of the image are determined by the level determining means. Based on the minimum level and the maximum level determined by the level determination unit, the gradation of the image signal is converted by the gradation conversion unit. The ratio of the region to the entire region when the minimum level of the image is determined by the level determining means is larger than the ratio of the region to the entire region when the maximum level is determined.

【0013】更にこの発明のフィルムスキャナにあって
は、フィルム上の潜像が画像読み取り手段により画像信
号に変換される。また、画像読み取り手段で読み取られ
たフィルムがネガフィルムであるかポジフィルムである
かがネガポジ判断手段によって判断される。上記画像読
み取り手段で読み取られた画像信号は、変換手段によっ
て濃度値に変換され、この変換手段で変換された濃度値
の出現頻度を示すヒストグラムがヒストグラム作成手段
で作成される。そして、このヒストグラム作成手段で作
成されたヒストグラムの最小値付近及び最大値付近の所
定の領域内に於ける濃度値の平均値をもって、レベル判
断手段によって画像の最小レベル及び最大レベルが判断
され、このレベル判断手段で判断された最小レベル及び
最大レベルに基づいて、階調変換手段で画像信号の階調
が変換される。そして、レベル判断手段にて、画像の最
小レベル及び最大レベルを判断する際の領域の全領域に
対する割合が、上記ポジネガ判断手段の結果に応じて切
換えられる。
Further, in the film scanner of the present invention, the latent image on the film is converted into an image signal by the image reading means. The negative / positive determining means determines whether the film read by the image reading means is a negative film or a positive film. The image signal read by the image reading means is converted into a density value by the conversion means, and a histogram indicating the appearance frequency of the density value converted by the conversion means is generated by the histogram generation means. Then, the minimum level and the maximum level of the image are determined by the level determining means based on the average value of the density values in a predetermined area near the minimum value and the maximum value of the histogram created by the histogram creating means. Based on the minimum level and the maximum level determined by the level determination unit, the gradation of the image signal is converted by the gradation conversion unit. Then, the ratio of the area to the entire area when the minimum level and the maximum level of the image are determined by the level determining means is switched according to the result of the positive / negative determining means.

【0014】これにより、ヒストグラム両端の所定領域
に於ける平均値を画像信号の最小レベル及び最大レベル
としたことで、突発的なノイズ成分の影響を排除し、精
度の良いレベル検出ができる。また、高濃度側のレベル
検出領域を低濃度側より大きくしたことで、S/Nの悪
い高濃度側でのレベル検出の精度を向上させることがで
きる。
Thus, by setting the average value in the predetermined area at both ends of the histogram as the minimum level and the maximum level of the image signal, the influence of a sudden noise component can be eliminated and accurate level detection can be performed. Further, by making the level detection area on the high density side larger than on the low density side, it is possible to improve the accuracy of level detection on the high density side where S / N is poor.

【0015】[0015]

【発明の実施の形態】以下、図面を参照してこの発明の
実施の形態を説明する。図1は、この発明の一実施の形
態に係るフィルムスキャナの構成を示すブロック図であ
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a film scanner according to one embodiment of the present invention.

【0016】図1に於いて、画像読み取り手段であるC
CD1からの画像信号は増幅器(AMP)2で増幅さ
れ、更にA/Dコンバータ3でデジタル値に量子化され
る。このA/Dコンバータ3で量子化されたデジタル値
は、フレームメモリ4に格納される。
In FIG. 1, the image reading means C
The image signal from the CD 1 is amplified by an amplifier (AMP) 2 and further quantized to a digital value by an A / D converter 3. The digital value quantized by the A / D converter 3 is stored in the frame memory 4.

【0017】フレームメモリ4に格納されたデータはl
og変換部((対数)変換手段)5を介してヒストグラ
ム作成部(ヒストグラム作成手段)6に、更にレベル判
断部(レベル判断手段)7に供給される。また、log
変換部5の出力は、ネガポジ判断部(ネガポジ判断手
段)8及び階調変換手段であるレベル補正部9にも供給
される。更に、レベル判断部7にはネガポジ判断部8の
結果と、EEPROM10及びレベル判断領域設定キー
11からの情報が供給される。
The data stored in the frame memory 4 is l
The signal is supplied to a histogram creating unit (histogram creating unit) 6 via an og converting unit ((logarithmic) converting unit) 5 and further to a level judging unit (level judging unit) 7. Also, log
The output of the conversion unit 5 is also supplied to a negative / positive judgment unit (negative / positive judgment unit) 8 and a level correction unit 9 which is a gradation conversion unit. Further, the result of the negative / positive judgment unit 8 and information from the EEPROM 10 and the level judgment area setting key 11 are supplied to the level judgment unit 7.

【0018】上記レベル補正部9はlog変換部5とレ
ベル判断部7の出力を受け、これに基づいた画像データ
をモニタ12とインターフェース(I/F)13を介し
て図示されないパーソナルコンピュータに出力する。
The level corrector 9 receives the outputs of the log converter 5 and the level determiner 7, and outputs image data based on the outputs to a personal computer (not shown) via the monitor 12 and the interface (I / F) 13. .

【0019】尚、上記log変換部5、ヒストグラム作
成部6、レベル判断部7、ネガポジ判断部8及びレベル
補正部9は、CPU14内に含まれる。CCD1はいわ
ゆるカラーエリアCCDで構成され、図示されないフィ
ルムを撮像してRGB3チャンネルの画像信号を出力す
るものである。尚、CCD1はエリアCCDに限定する
ことなく、リニアCCDを副走査する手段を使用しても
良い。
The log converter 5, the histogram generator 6, the level determiner 7, the negative / positive determiner 8, and the level corrector 9 are included in the CPU 14. The CCD 1 is constituted by a so-called color area CCD, which picks up an image of a film (not shown) and outputs image signals of three RGB channels. Note that the CCD 1 is not limited to the area CCD, and a means for sub-scanning the linear CCD may be used.

【0020】このような構成に於いて、CCD1からの
画像信号は増幅器(AMP)2で増幅され、更にA/D
コンバータ3でデジタル値に量子化される。ここで用い
られるA/Dコンバータ3の量子化能力は12ビットで
あり、入力された画像信号を4096階調に量子化する
ことができる。量子化された後のデジタル値は、RGB
とも“0”がオプティカルブラック(OB)であり、
“4095”が光源直視(透過率100%)となるよう
に規格化されている。
In such a configuration, the image signal from the CCD 1 is amplified by the amplifier (AMP) 2 and further the A / D
The digital value is quantized by the converter 3. The quantization capability of the A / D converter 3 used here is 12 bits, and the input image signal can be quantized into 4096 gradations. The digital value after quantization is RGB
Both "0" are optical black (OB),
“4095” is standardized so as to be directly viewed from the light source (transmittance 100%).

【0021】A/Dコンバータ3で量子化されたデジタ
ル値は、フレームメモリ4に格納される。このフレーム
メモリ4は、メモリ量が巨大であるので、図示されない
パーソナルコンピュータのメモリが用いられる。
The digital value quantized by the A / D converter 3 is stored in the frame memory 4. Since the frame memory 4 has a huge amount of memory, a memory of a personal computer (not shown) is used.

【0022】CPU14では、撮像された画像データに
対する各種処理、解析が行われる。以下、このCPU1
4内部での処理について説明する。log変換部5で
は、フレームメモリ4に格納されている画像データが読
み出され、透過率−濃度変換が施されて濃度に比例した
データに変換される。濃度は透過率が0のときに発散す
るので、ここでは12ビットA/Dコンバータ3の分解
能を考慮し、図2に示されるように、濃度域0〜3.6
1(=log(1/4095))をデジタル値0〜40
95に割り振ることとする。
The CPU 14 performs various processes and analyzes on the captured image data. Hereinafter, this CPU 1
4 will be described. The log converter 5 reads out the image data stored in the frame memory 4 and performs transmittance-density conversion to convert the data into data proportional to the density. Since the density diverges when the transmittance is 0, the resolution range of the 12-bit A / D converter 3 is taken into consideration here, and as shown in FIG.
1 (= log (1/4095)) is converted to a digital value of 0 to 40
95.

【0023】すなわち、変換前のデジタル値をD_lin
ear、変換後のデジタル値をD_logとすると、 D_log =4095 …(1) ここで、D_linear=0
That is, the digital value before conversion is represented by D_lin
ear, assuming that the digital value after conversion is D_log, D_log = 4095 (1) where D_linear = 0

【0024】[0024]

【数1】 (Equation 1)

【0025】ここで、1<D_linear<4095となる。
ネガポジ判断部8ではlog変換部5からの出力を受
け、その画像データがポジフィルムを撮像したものかネ
ガフィルムを撮像したものかが判断される。これは、画
像データのRGB比を見ることで、ポジかネガかを判別
することができる。
Here, 1 <D_linear <4095.
The negative / positive determination unit 8 receives the output from the log conversion unit 5 and determines whether the image data is obtained by capturing a positive film or negative film. This can be determined by looking at the RGB ratio of the image data to determine whether the image data is positive or negative.

【0026】ヒストグラム作成部6では、log変換部
5からの出力を受け、RGB毎に、図3に示されるよう
な濃度値の出現頻度を示すヒストグラムが作成される。
レベル判断部7では、ヒストグラム作成部6で作成され
たヒストグラムが用いられて、RGB毎にデータの最小
レベルと最大レベルが判断される。この判断の際には、
レベル判断領域設定キー11の設定状態によって、レベ
ル判断に用いられる領域を表すパラメータがEEPRO
M10から読み出されて使用される。レベル判断部7で
の処理及びEEPROM10のデータ構造については後
述する。
The histogram generator 6 receives the output from the log converter 5 and generates a histogram indicating the appearance frequency of the density values as shown in FIG. 3 for each of RGB.
The level determination unit 7 uses the histogram created by the histogram creation unit 6 to determine the minimum level and the maximum level of data for each of RGB. In making this decision,
Depending on the setting state of the level determination area setting key 11, a parameter representing an area used for level determination is EEPRO.
It is read from M10 and used. The processing in the level determination unit 7 and the data structure of the EEPROM 10 will be described later.

【0027】レベル補正部9では、レベル判断部7で判
断されたRGB毎の最小レベル最大レベルが用いられて
レベル補正が行われる。レベル補正の際には、同時に1
2ビットデータから8ビットデータへのデータ長圧縮も
行われる。更に、ネガポジ判断部8で判断された結果に
応じて、ネガフィルムの場合は階調反転も併せて行われ
る。
The level correction unit 9 performs level correction using the minimum level and the maximum level for each of the RGB determined by the level determination unit 7. At the time of level correction, 1
Data length compression from 2-bit data to 8-bit data is also performed. Further, in the case of a negative film, gradation inversion is also performed in accordance with the result determined by the negative / positive determination unit 8.

【0028】図4は、具体的な補正処理の様子を示した
図である。判断された最小レベルLmin と最大レベルL
max が、それぞれポジフィルムの時は0と255、ネガ
フィルムの時は255と0に線形変換される。
FIG. 4 is a diagram showing a specific correction process. The determined minimum level Lmin and maximum level L
The max is linearly converted to 0 and 255 for a positive film and to 255 and 0 for a negative film, respectively.

【0029】また、モニタ12では、レベル補正部9に
て変換された画像データが表示され、これにより、ユー
ザは処理の結果をモニタ上で確認することができる。同
時に、I/F13からは、同じ画像データが外部の機器
に出力される。仮に、ユーザが処理結果に満足しない場
合は、ユーザはレベル判断領域設定キー11にて判断領
域を変更することが可能である。レベル判断領域設定キ
ー11は、現在採用されている設定がグレーに表示され
るようになっている。
The monitor 12 displays the image data converted by the level corrector 9, so that the user can confirm the processing result on the monitor. At the same time, the same image data is output from the I / F 13 to an external device. If the user is not satisfied with the processing result, the user can change the determination area using the level determination area setting key 11. The level determination area setting key 11 displays the currently adopted setting in gray.

【0030】図5は、こうしたレベル判断領域設定の例
を示したもので、同図では「標準」が設定されている。
ユーザにより設定変更が指示された場合は、直ちにレベ
ル判断部7にて新しい設定を用いたレベル判断がされ、
レベル補正部9によりレベル補正されてモニタ12にて
その結果を確認することができる。
FIG. 5 shows an example of setting such a level judgment area. In FIG. 5, "standard" is set.
When a setting change is instructed by the user, the level judgment unit 7 immediately judges the level using the new setting.
The level is corrected by the level corrector 9 and the result can be confirmed on the monitor 12.

【0031】ここで、レベル判断部7の詳細について説
明する。レベル判断部7では、ヒストグラム作成部6で
作成されたヒストグラムが用いられて、RGB毎にデー
タの最小レベルと最大レベルが判断される。図3のヒス
トグラムの右端及び左端に示される斜線部領域は、それ
ぞれこのヒストグラムの最小レベル及び最大レベルを判
断するための領域である。最小レベル判断領域及び最大
レベル判断領域は、画像の総画素数に対する所定の割合
の画素数を含む領域であり、ヒストグラムの最小値Vmi
n からカウントして所定の割合に達したレベル(Vmin
1)までを最小レベル判断領域とし、最大値Vmax から
カウントして所定の割合に達したレベル(Vmax1)まで
を最大レベル判断領域とする。それぞれの領域の割合
は、EEPROM10に記憶されているパラメータが用
いられる。
Here, the details of the level judgment section 7 will be described. The level determination unit 7 uses the histogram created by the histogram creation unit 6 to determine the minimum level and the maximum level of data for each of RGB. The shaded areas shown on the right and left ends of the histogram in FIG. 3 are areas for determining the minimum level and the maximum level of this histogram, respectively. The minimum level determination area and the maximum level determination area are areas including a predetermined number of pixels with respect to the total number of pixels of the image, and include a minimum value Vmi of the histogram.
level (Vmin
The area up to 1) is defined as the minimum level determination area, and the area up to the level (Vmax1) counted from the maximum value Vmax and reaching a predetermined ratio is defined as the maximum level determination area. A parameter stored in the EEPROM 10 is used for the ratio of each area.

【0032】ここで、本発明では、左端の最小レベル判
断領域に含まれる画像データ値の平均値をもってヒスト
グラムの最小レベルLmin とし、右端の最大レベル判断
領域に含まれる画像データ値の平均値をもってヒストグ
ラムの最大レベルLmax とする。すなわち、
Here, in the present invention, the average value of the image data values included in the leftmost minimum level determination area is defined as the minimum level Lmin of the histogram, and the average value of the image data values included in the rightmost maximum level determination area is defined as the histogram. Is the maximum level Lmax. That is,

【0033】[0033]

【数2】 となる。(Equation 2) Becomes

【0034】EEPROM10には、例えば図6に示さ
れるようなレベル判定領域の設定に関するパラメータが
記憶されている。これらのパラメータは、最小レベル判
断領域及び最大レベル判断領域の全画素数に対する割合
を示している。図中、RP0、RP1は、それぞれポジ
フィルム用の最小レベル判断領域の割合(%)、最大レ
ベル判断領域の割合(%)を示し、RN0、RN1はそ
れぞれネガフィルム用の最小レベル判断領域の割合
(%)、最大レベル判断領域の割合(%)を示してい
る。更に、「少ない」、「標準」、「多い」という3種
類の設定は領域のサイズを示しており、ユーザはレベル
判断領域設定キー11によって3種類のなかから所望の
領域のサイズを選択することができる。
The EEPROM 10 stores parameters relating to setting of a level determination area as shown in FIG. 6, for example. These parameters indicate the ratio of the minimum level determination area and the maximum level determination area to the total number of pixels. In the figure, RP0 and RP1 indicate the ratio (%) of the minimum level judgment region for positive film and the ratio (%) of the maximum level judgment region, respectively, and RN0 and RN1 indicate the ratios of the minimum level judgment region for negative film, respectively. (%) And the ratio (%) of the maximum level judgment area. Furthermore, the three types of settings of "small", "standard", and "large" indicate the size of the area, and the user selects a desired area size from the three types using the level determination area setting key 11. Can be.

【0035】上記RN0とRN1を比較すると、「少な
い」、「標準」、「多い」の3種類のどの設定に於いて
も、RN0の方の値が大きくなっているが、これは、最
小レベル判断領域のS/Nが最大レベル判断領域のS/
Nよりも悪いことによる。
Comparing the above RN0 and RN1, the value of RN0 is larger in any of the three types of settings, "small", "standard", and "large". The S / N of the judgment area is S / N of the maximum level judgment area.
By worse than N.

【0036】一般に、CCD出力値の小さい方はS/N
が悪いうえ、更にlog変換部5にて黒に近い方のデー
タがかなり伸張されている。一方、最大レベル判断領域
は、もともとCCD出力のS/Nが良いうえ、log変
換部5にてデータが圧縮されている。こうした事情を考
慮して、最小レベル判断領域を最大レベル判断領域より
も大きくすることで、レベル判定の精度を向上させてい
る。
Generally, the smaller one of the CCD output values is S / N
Is worse, and the data closer to black is considerably expanded by the log converter 5. On the other hand, in the maximum level determination area, the S / N of the CCD output is originally good, and the data is compressed by the log converter 5. In consideration of such circumstances, the accuracy of level determination is improved by making the minimum level determination region larger than the maximum level determination region.

【0037】更に、レベル判断部7に於いては、判断の
際にレベル判断領域設定キー11の設定状態とネガポジ
判断部8からのネガポジ情報によって、EEPROM1
0からパラメータが読み出され、これがレベル判断に使
用される。例えば、レベル判断領域設定キー11で「多
い」が選択されており、ネガポジ判断部8にてフィルム
がネガであると判断されている場合、パラメータとして
RN0=4、RN1=2がEEPROM10から読み出
される。そして、
Further, in the level judging section 7, at the time of the judgment, the setting of the level judging area setting key 11 and the negative / positive information from the negative / positive judging section 8 determine the EEPROM 1.
A parameter is read from 0 and is used for level determination. For example, when “many” is selected by the level determination area setting key 11 and the negative / positive determination unit 8 determines that the film is negative, RN0 = 4 and RN1 = 2 are read from the EEPROM 10 as parameters. . And

【0038】[0038]

【数3】 (Equation 3)

【0039】となるようにVmin1及びVmax1判断され、
レベル判断領域が確認される。更に、上記(4)式及び
(5)式に従ってLmin 及びLmax が算出される。Lmi
n 及びLmax は、RGB3チャンネルそれぞれについて
求められ、合計6種類のレベル値がレベル補正部9に送
られる。
Vmin1 and Vmax1 are determined so that
The level determination area is confirmed. Further, Lmin and Lmax are calculated according to the above equations (4) and (5). Lmi
n and Lmax are obtained for each of the three RGB channels, and a total of six types of level values are sent to the level corrector 9.

【0040】次に、図7乃至図11のフローチャートを
参照して、本実施の形態の動作を説明する。図7は、こ
のフイルムスキャナの全体の動作の流れを示すフローチ
ャートである。
Next, the operation of the present embodiment will be described with reference to the flowcharts of FIGS. FIG. 7 is a flowchart showing the flow of the overall operation of the film scanner.

【0041】図示されない電源スイッチのオンによって
本シーケンスがスタートされ、先ずステップS1にて、
CCD1により撮像が行われる。そして、ステップSに
て、このCCD1からの画像信号がAMP2で増幅され
る。更に、ステップ3でA/Dコンバータ3でデジタル
値に量子化されて、ステップ4でフレームメモリ4に格
納される。この後、CPU14内での処理に移行する。
This sequence is started by turning on a power switch (not shown). First, in step S1,
Imaging is performed by the CCD 1. Then, in step S, the image signal from the CCD 1 is amplified by the AMP 2. Further, the data is quantized to a digital value by the A / D converter 3 in step 3 and stored in the frame memory 4 in step 4. Thereafter, the processing shifts to processing in the CPU 14.

【0042】すなわち、ステップS5では、log変換
部5にてフレームメモリ4に格納されている画像データ
が読み出され、log変換が施される。ここでlog変
換されたデータはヒストグラム作成部6に転送され、ス
テップS6に於いてRGB毎にヒストグラムが作成され
る。また、ステップ7では、ネガポジ判断部8にてネガ
ポジが判断され、その判断結果がレベル判断部7に転送
される。
That is, in step S5, the image data stored in the frame memory 4 is read out by the log converter 5 and subjected to log conversion. Here, the log-converted data is transferred to the histogram creating section 6, and in step S6, a histogram is created for each of RGB. Further, in step 7, the negative / positive judgment is made by the negative / positive judging section 8, and the judgment result is transferred to the level judging section 7.

【0043】続いて、ステップS8では、レベル判断部
7にて、上記ヒストグラム作成部6で作成されたヒスト
グラムが用いられて、RGB毎にデータの最小レベルL
minと最大レベルLmax が判断され、レベル補正部に転
送される。更に、ステップS9では、判断されたLmin
及びLmax 、更に上記ネガポジ判断結果が用いられて、
レベル補正部9にてレベルの補正が施される。
Subsequently, in step S8, the level judging section 7 uses the histogram created by the histogram creating section 6 to generate the minimum level L of data for each of RGB.
The min and the maximum level Lmax are determined and transferred to the level correction unit. Further, in step S9, the determined Lmin
And Lmax, and using the above negative / positive judgment result,
The level is corrected by the level corrector 9.

【0044】このレベルが補正された補正画像が、ステ
ップS10にてモニタ12に表示される。更に、ステッ
プ11にて、I/F13から補正画像が外部の機器に出
力されて、この処理が終了する。
The corrected image whose level has been corrected is displayed on the monitor 12 in step S10. Further, in step 11, the corrected image is output from the I / F 13 to an external device, and this processing ends.

【0045】図8は、レベル補正判断領域設定キー11
にて設定が変更された際の処理動作を説明するフローチ
ャートである。ステップS21にてレベル判断領域設定
キー11の設定が変更されると、続くステップS22
で、レベル判断部7にて、ヒストグラム作成部6で作成
されたヒストグラムが用いられてRGB毎にデータの最
小レベルLmin と最大レベルLmax が再び判断され、レ
ベル補正部7に転送される。
FIG. 8 shows a level correction determination area setting key 11
6 is a flowchart illustrating a processing operation when a setting is changed in FIG. If the setting of the level determination area setting key 11 is changed in step S21, the subsequent step S22
Then, the level judging section 7 judges again the minimum level Lmin and the maximum level Lmax of the data for each of RGB using the histogram created by the histogram creating section 6 and transfers the data to the level correcting section 7.

【0046】次いで、ステップS23にて、上記判断さ
れたLmin 及びLmax 、更にネガポジ判断結果が用いら
れて、レベル補正部9にてレベルの補正が施される。そ
して、ステップ24にて、レベルの補正された補正画像
がモニタ12に表示される。更に、ステップ25にて、
I/F13から補正画像が外部の機器に出力されて、処
理が終了する。
Next, in step S23, the level is corrected by the level corrector 9 using the determined Lmin and Lmax and the result of the negative / positive determination. Then, in step 24, the corrected image whose level has been corrected is displayed on the monitor 12. Further, in step 25,
The corrected image is output from the I / F 13 to an external device, and the process ends.

【0047】図9は、図7のフローチャートのステップ
8及び図8のフローチャートのステップ22に於けるサ
ブルーチン「レベル判断」の詳細動作を説明するフロー
チャートである。この処理は、全てレベル判断部7にて
行われる。
FIG. 9 is a flowchart for explaining the detailed operation of the subroutine "level judgment" in step 8 of the flowchart of FIG. 7 and step 22 of the flowchart of FIG. All of this processing is performed by the level determination unit 7.

【0048】先ず、ステップS31にて、レベル判断領
域設定キー11の状態が「少ない」、「標準」、「多
い」のうちどの状態にあるかが参照される。次に、ステ
ップS32に於いて、フィルムの種類が判断される。こ
こで、フィルムがポジの場合はステップS33に移行し
てパラメータRP0及びRP1がEEPROM10から
読み出される。一方、ネガの場合はステップS34に移
行してRN0及びRN1がEEPROM10から読み出
される。
First, in step S31, the state of the level determination area setting key 11 among "low", "standard", and "high" is referred to. Next, in step S32, the type of film is determined. If the film is positive, the process proceeds to step S33, and the parameters RP0 and RP1 are read from the EEPROM 10. On the other hand, in the case of a negative, the process proceeds to step S34, and RN0 and RN1 are read from the EEPROM 10.

【0049】続いて、ステップS35にて、ヒストグラ
ム作成部6で作成されたヒストグラムの最小レベルVmi
n 及び最大レベルVmax が判断される。そして、ステッ
プS36にて、EEPROM10から読み出されたパラ
メータに基づいて、上記(5)式及び(6)式が用いら
れて、Vmin1及びVmax1が判断される。
Subsequently, in step S35, the minimum level Vmi of the histogram created by the histogram creating section 6
n and the maximum level Vmax are determined. Then, in step S36, based on the parameters read from the EEPROM 10, Vmin1 and Vmax1 are determined using the above equations (5) and (6).

【0050】ステップS37では、判断されたVmin1及
びVmax1に基づいて、上記(3)式及び(4)式4より
Lmin 及びLmax が算出される。続いて、ステップS3
8にて、算出されたLmin とLmax との差がRange
として Range (R)=Lmax (R)−Lmin (R) …(7) Range (G)=Lmax (G)−Lmin (G) …(8) Range (B)=Lmax (B)−Lmin (B) …(9) が算出される。
In step S37, Lmin and Lmax are calculated from the above equations (3) and (4) based on the determined Vmin1 and Vmax1. Subsequently, step S3
At 8, the difference between the calculated Lmin and Lmax is Range
Range (R) = Lmax (R)-Lmin (R) ... (7) Range (G) = Lmax (G)-Lmin (G) ... (8) Range (B) = Lmax (B)-Lmin (B ) (9) is calculated.

【0051】次に、ステップS39に於いて、算出され
たRangeが所定の条件を満たしているかどうかが判
断される。ここで、条件を満たしていない場合はステッ
プS40またはステップS41に移行して、それぞれL
min またはLmax が変更されるレベル変更処理がなされ
る。ここで、ポジの場合はステップS40へ、ネガの場
合はステップS41でそれぞれ施される。
Next, in step S39, it is determined whether or not the calculated Range satisfies a predetermined condition. Here, if the condition is not satisfied, the process proceeds to step S40 or step S41, and L
Level changing processing for changing min or Lmax is performed. Here, in the case of a positive, it is performed in step S40, and in the case of a negative, it is performed in step S41.

【0052】そして、最後に、ステップS42にて、L
min 及びLmax がレベル補正部9に転送されて、本サブ
ルーチンが終了する。図10は、図9のフローチャート
のステップS40に於けるサブルーチン「レベル変更処
理(ポジ)」の処理動作を説明するフローチャートであ
る。
Finally, at step S42, L
The values min and Lmax are transferred to the level corrector 9, and the subroutine ends. FIG. 10 is a flowchart for explaining the processing operation of the subroutine "level change processing (positive)" in step S40 of the flowchart in FIG.

【0053】ポジフィルムの場合、Lmin (G)とLma
x (G)との差である。Range(G)は、ほぼ画像
の輝度のレンジを示していると考えて良い。このRan
ge(G)が極端に狭い(ここではLimit以下とし
ている)ということは、もともとシーン全体が暗く、シ
ーンの中に白部分がないことを意味する。
In the case of a positive film, Lmin (G) and Lma
x (G). Range (G) may be considered to substantially indicate the range of luminance of the image. This Ran
Extremely narrow geo (G) (here, equal to or less than Limit) means that the entire scene is originally dark and there is no white portion in the scene.

【0054】一方、レベル補正部9ではLmin がシーン
の中の黒部分、Lmax が白部分として階調変換が施され
る。よって、本サブルーチンでは、Range(G)の
値が所定の値(ここではLimit)以下である場合は
全体が暗いシーンであると判断し、Lmax が前もって補
正されることで、画像を不必要に明るく階調変換してし
まうことを避けている。
On the other hand, in the level correction section 9, gradation conversion is performed with Lmin being a black part in the scene and Lmax being a white part. Therefore, in the present subroutine, when the value of Range (G) is equal to or less than a predetermined value (Limit in this case), it is determined that the entire scene is a dark scene, and Lmax is corrected in advance, so that the image becomes unnecessary. Bright gradation conversion is avoided.

【0055】先ずステップS51に於いて、Range
(G)とLimitとが比較される。ここで、Rang
e(G)がLimitより大きい場合はステップS53
へ移行し、Range(G)がLimit以下である場
合はステップS52へ移行する。
First, in step S51, the Range
(G) and Limit are compared. Where Rang
If e (G) is larger than Limit, step S53
Then, if Range (G) is equal to or smaller than Limit, the process proceeds to step S52.

【0056】ステップS52では、Range(G)が
Limitで置き換えられ、Range(R)及びRa
nge(B)もRange(G)と同比率で値が変更さ
れる。そして、ステップS53では、Lmax がLmin と
Rangeとの和で置き換えられることで、Lmax が補
正される。この後、本サブルーチンが終了する。
In step S52, Range (G) is replaced with Limit, and Range (R) and Ra are replaced.
The value of nge (B) is changed at the same ratio as that of Range (G). Then, in step S53, Lmax is corrected by replacing Lmax with the sum of Lmin and Range. Thereafter, this subroutine ends.

【0057】図11は、図9のステップS41に於ける
サブルーチン「レベル変更処理(ネガ)」の処理動作を
説明するフローチャートである。ネガフィルムの場合も
ポジフィルムと同様、Rangeがほぼ画像の輝度のレ
ンジを示していると考えて良く、このRangeが極端
に狭いということは、もともとシーン全体が暗くシーン
の中に白部分がないことを意味する。更に、ネガフィル
ムのRGBそれぞれのガンマ特性から、一般的に Range (R)<Range (G)<Range (B) …(10) となる性質がある。
FIG. 11 is a flowchart for explaining the processing operation of the subroutine "level change processing (negative)" in step S41 of FIG. In the case of a negative film, as in the case of a positive film, it can be considered that the Range substantially indicates the range of the luminance of the image. The fact that the Range is extremely narrow means that the entire scene is originally dark and there is no white portion in the scene. Means that. Further, from the gamma characteristics of each of the RGB of the negative film, there is generally a property that Range (R) <Range (G) <Range (B) (10).

【0058】ところが、色に偏りがあるシーン等では、
この関係が崩れる場合があり、ヒストグラムから判断さ
れたLmin 、Lmax がそのまま用いられて階調変換が施
されると、カラーバランスが崩れてしまうと言った問題
がある。そこで、本サブルーチンでは、Rangeが所
定の値(ここではLimit)以下にならないことと上
記(10)式との両方の条件を満たすようにLmin 、L
max が補正されることで、画像の明るさとカラーバラン
スが狂ってしまうことを避けている。
However, in a scene or the like in which colors are biased,
This relationship may be lost, and there is a problem that if tone conversion is performed using Lmin and Lmax determined from the histogram as they are, the color balance will be lost. Therefore, in this subroutine, Lmin, Lmin are set so that Range does not become less than a predetermined value (Limit in this case) and both of the conditions of the above equation (10) are satisfied.
By correcting max, the brightness and color balance of the image are not disrupted.

【0059】先ず、ステップS61に於いて、Rang
e(R)とLimitとが比較される。ここで、Ran
ge(R)がLimitより大きい場合はステップS6
3へ移行する。一方、Range(R)がLimit以
下である場合は、ステップS62に移行してRange
(R)がLimitで置き換えられる。
First, in step S61, Rang
e (R) and Limit are compared. Where Ran
If ge (R) is larger than Limit, step S6
Move to 3. On the other hand, if Range (R) is equal to or smaller than Limit, the process shifts to step S62 to select Range (R).
(R) is replaced by Limit.

【0060】続いて、ステップS63に於いて、Ran
ge(G)とRange(R)とが比較される。ここ
で、Range(G)がRange(R)より大きい場
合はステップS65へ移行する。一方、Range
(G)がRange(R)以下である場合は、ステップ
S64へ移行してRange(G)がRange(R)
で置き換えられる。
Subsequently, in step S63, Ran
geo (G) and Range (R) are compared. Here, when Range (G) is larger than Range (R), the process proceeds to step S65. On the other hand, Range
If (G) is less than or equal to Range (R), the process proceeds to step S64, where Range (G) is changed to Range (R).
Is replaced by

【0061】同様に、ステップS65に於いて、Ran
ge(B)とRange(G)とが比較される。ここ
で、Range(B)がRange(G)より大きい場
合はステップS67へ移行する。一方、Range
(B)がRange(G)以下である場合はステップS
66へ移行してRange(B)がRange(G)で
置き換えられる。
Similarly, in step S65, Ran
ge (B) and Range (G) are compared. Here, when Range (B) is larger than Range (G), the process proceeds to step S67. On the other hand, Range
If (B) is less than or equal to Range (G), step S
Proceeding to 66, Range (B) is replaced with Range (G).

【0062】最後に、ステップS67では、Lmin (R
GBそれぞれ)がLmax (RGBそれぞれ)とRang
e(RGBそれぞれ)との和で置き換えられることで、
Lmin が補正されて、本サブルーチンが終了する。
Finally, at step S67, Lmin (R
GB) and Lmax (RGB) and Rang
e (each of RGB)
This subroutine ends after Lmin is corrected.

【0063】尚、この発明の上記実施態様によれば、以
下の如き構成を得ることができる。すなわち、 (1) フィルム上の潜像を画像信号に変換する画像読
み取り手段と、この画像読み取り手段で読み取られた画
像信号を濃度値に変換する対数変換手段と、この対数変
換手段で変換された濃度値の出現頻度を示すヒストグラ
ムを作成するヒストグラム作成手段と、このヒストグラ
ム作成手段で作成されたヒストグラムの下端部及び上端
部の所定の領域内に於ける濃度値の平均値をもって画像
の最小レベル及び最大レベルを判断するレベル判断手段
と、このレベル判断手段で判断された最小レベル及び最
大レベルに基づいて画像信号の階調を変換する階調変換
手段とを具備することを特徴とするフィルムスキャナ。
According to the above embodiment of the present invention, the following configuration can be obtained. (1) Image reading means for converting a latent image on a film into an image signal, logarithmic conversion means for converting an image signal read by the image reading means into a density value, and conversion by the logarithmic conversion means. A histogram creating means for creating a histogram indicating the appearance frequency of the density value; and a minimum level of the image based on an average value of the density values in predetermined regions at a lower end and an upper end of the histogram created by the histogram creating means. A film scanner comprising: a level judging means for judging a maximum level; and a tone converting means for converting a tone of an image signal based on the minimum level and the maximum level judged by the level judging means.

【0064】(2) ネガフィルム上の潜像を画像信号
に変換する画像読み取り手段と、この画像読み取り手段
で読み取られた画像信号を濃度値に変換する対数変換手
段と、この対数変換手段で変換された濃度値の出現頻度
を示すヒストグラムを作成するヒストグラム作成手段
と、このヒストグラム作成手段で作成されたヒストグラ
ムの上端部及び下端部の所定の領域内に於ける濃度値の
平均値をもって画像の最小レベル及び最大レベルを判断
するレベル判断手段と、このレベル判断手段で判断され
た最小レベル及び最大レベルに基づいて画像信号の階調
を変換する階調変換手段とを具備し、上記レベル判断手
段にて画像の最小レベル(高濃度側)を判断する際の領
域の全領域に対する割合が最大レベル(低濃度側)を判
断する際の領域の全領域に対する割合よりも大きいこと
を特徴とするフィルムスキャナ。
(2) Image reading means for converting a latent image on a negative film into an image signal, logarithmic conversion means for converting an image signal read by the image reading means into a density value, and conversion by the logarithmic conversion means Histogram creating means for creating a histogram indicating the frequency of appearance of the generated density values, and an average value of the density values in predetermined regions at the upper end and lower end of the histogram created by the histogram creating means. Level determining means for determining the level and the maximum level; and gradation converting means for converting the gradation of the image signal based on the minimum level and the maximum level determined by the level determining means. The ratio of the area to the entire area when judging the minimum level (high density side) of the image is the entire area when judging the maximum level (low density side). Film scanner characterized by being greater than the ratio to the area.

【0065】(3) フィルム上の潜像を画像信号に変
換する画像読み取り手段と、この画像読み取り手段で読
み取られたフィルムがポジフィルムであるかネガフィル
ムであるかを判断するポジネガ判断手段と、上記画像読
み取り手段で読み取られた画像信号を濃度値に変換する
対数変換手段と、この対数変換手段で変換された濃度値
の出現頻度を示すヒストグラムを作成するヒストグラム
作成手段と、このヒストグラム作成手段で作成されたヒ
ストグラムの上端部及び下端部の所定の領域内に於ける
濃度値の平均値をもって画像の最小レベル及び最大レベ
ルを判断するレベル判断手段と、このレベル判断手段で
判断された最小レベル及び最大レベルに基づいて画像信
号の階調を変換する階調変換手段とを具備し、上記レベ
ル判断手段にて画像の最小レベル及び最大レベルを判断
する際の領域の全領域に対する割合をポジネガ判断手段
の結果に応じて切り換えることを特徴とするフィルムス
キャナ。
(3) Image reading means for converting a latent image on the film into an image signal, positive / negative determining means for determining whether the film read by the image reading means is a positive film or a negative film, A logarithmic conversion unit for converting the image signal read by the image reading unit into a density value, a histogram generation unit for generating a histogram indicating an appearance frequency of the density value converted by the logarithmic conversion unit, and a histogram generation unit. Level determining means for determining a minimum level and a maximum level of an image based on an average value of density values in predetermined regions at an upper end and a lower end of the created histogram; and a minimum level and a maximum level determined by the level determining means. Gradation conversion means for converting the gradation of the image signal based on the maximum level. Wherein the ratio of the area to the entire area when the minimum level and the maximum level are determined is switched according to the result of the positive / negative determination means.

【0066】(4) フィルム上の潜像を画像信号に変
換する画像読み取り手段と、この画像読み取り手段で読
み取られた画像信号を濃度値に変換する対数変換手段
と、この対数変換手段で変換された濃度値の出現頻度を
示すヒストグラムを作成するヒストグラム作成手段と、
このヒストグラム作成手段で作成されたヒストグラムの
上端部及び下端部の所定の領域内に於ける濃度値の平均
値をもって画像の最小レベル及び最大レベルを判断する
レベル判断手段と、このレベル判断手段にて画像の最小
レベル及び最大レベルを判断する際の領域の全領域に対
する割合を設定するレベル領域設定手段と、上記レベル
判断手段で判断された最小レベル及び最大レベルに基づ
いて画像信号の階調を変換する階調変換手段とを具備す
ることを特徴とするフィルムスキャナ。
(4) Image reading means for converting a latent image on a film into an image signal, logarithmic conversion means for converting an image signal read by the image reading means into a density value, and conversion by the logarithmic conversion means. Histogram creating means for creating a histogram indicating the frequency of appearance of the density value,
Level determining means for determining the minimum level and maximum level of the image based on the average value of the density values in predetermined regions at the upper end and lower end of the histogram created by the histogram creating means; Level area setting means for setting the ratio of the area to the entire area when determining the minimum level and the maximum level of the image; and converting the gradation of the image signal based on the minimum level and the maximum level determined by the level determining means. A film scanner, comprising:

【0067】(5) フィルム上の画像を複数の色毎の
画像信号に変換する画像読み取り手段と、上記画像信号
の色毎の出現頻度を示すヒストグラムを作成するヒスト
グラム作成手段と、このヒストグラム作成手段で作成さ
れたヒストグラムより色毎の白レベルを演算する白レベ
ル決定手段と、上記ヒストグラム作成手段で作成された
ヒストグラムより色毎の黒レベルを演算する黒レベル決
定手段と、上記黒レベル若しくは白レベルに基づいて画
像信号を階調変換する階調変換手段と、上記ヒストグラ
ムの画像レンジが所定値よりも大きいか否か判別する判
別手段と、この判別手段の判別結果に基づいて、階調変
換量を制限する階調変換量制限手段と、を具備すること
を特徴とする画像読取装置。
(5) Image reading means for converting an image on a film into image signals for a plurality of colors, histogram creating means for creating a histogram indicating the appearance frequency of each color of the image signal, and histogram creating means A white level determining means for calculating a white level for each color from the histogram created by the above, a black level determining means for calculating a black level for each color from the histogram created by the histogram creating means, and the black level or white level Gradation conversion means for performing gradation conversion of an image signal based on the above, a determination means for determining whether or not the image range of the histogram is larger than a predetermined value, and a gradation conversion amount based on a determination result of the determination means. An image reading device comprising: a gradation conversion amount limiting unit that limits the amount of gradation conversion.

【0068】(6) フィルム上の画像を複数の色毎の
画像信号に変換する画像読み取り手段と、上記画像信号
の色毎の出現頻度を示すヒストグラムを作成するヒスト
グラム作成手段、フィルムがネガかポジか判別するネガ
ポジ判別手段と、上記ヒストグラムより色毎の白レベル
を演算する白レベル決定手段と、上記ヒストグラムより
色毎の黒レベルを演算する黒レベル決定手段と、上記黒
レベル若しくは白レベルに基づいてネガ画像信号を階調
変換する第1の階調変換手段と、上記黒レベル若しくは
白レベルに基づいてポジ画像信号を階調変換する第2の
階調変換手段とを具備し、上記ネガポジ判別手段の判別
結果に基づいて、第1若しくは第2の階調変換を行うこ
とを特徴とする画像読取装置。
(6) Image reading means for converting an image on a film into image signals for a plurality of colors, histogram creating means for creating a histogram indicating the appearance frequency of each color of the image signal, and whether the film is negative or positive. Negative / positive discriminating means for discriminating whether or not, a white level determining means for calculating a white level for each color from the histogram, a black level determining means for calculating a black level for each color from the histogram, and based on the black level or white level A first gradation conversion means for performing gradation conversion of a negative image signal, and a second gradation conversion means for performing gradation conversion of a positive image signal based on the black level or the white level. An image reading apparatus for performing first or second gradation conversion based on a result of determination by a means.

【0069】(7) フィルム上の画像を複数の色毎の
画像信号に変換する画像読み取り手段と、上記画像信号
の色毎の出現頻度を示すヒストグラムを作成するヒスト
グラム作成手段と、フィルムがネガかポジかを判別する
ネガポジ判別手段と、上記ネガポジ判別手段の判別結果
に基づいて、ネガ用白若しくは黒レベルを演算するため
のデータ領域を指定するネガ用データ領域指定手段と、
上記ネガポジ判断手段の判別結果に基づいて、ポジ用白
若しくは黒レベルを演算するためのデータ領域を指定す
るポジ用データ領域指定手段と、上記ネガ用データ領域
指定手段若しくはポジ用データ領域指定手段に基づいて
画像信号の白若しくは黒レベルを演算する白若しくは黒
レベルの演算手段と、この演算手段で演算された白レベ
ル若しくは黒レベルに基づいて画像信号を階調変換する
階調変換手段と、を具備することを特徴とする画像読取
装置。
(7) Image reading means for converting an image on a film into image signals for a plurality of colors, histogram creating means for creating a histogram indicating the appearance frequency of each color of the image signal, and whether the film is negative. Negative / positive discriminating means for discriminating a positive, based on the discrimination result of the negative / positive discriminating means, a negative data area specifying means for specifying a data area for calculating a negative white or black level,
Based on the determination result of the negative / positive determining means, a positive data area specifying means for specifying a data area for calculating a positive white or black level, and a negative data area specifying means or a positive data area specifying means. A white or black level calculating means for calculating the white or black level of the image signal based on the image signal, and a tone converting means for converting the image signal based on the white or black level calculated by the calculating means. An image reading apparatus, comprising:

【0070】(8) フィルム上の画像を複数の色毎の
画像信号に変換する画像読み取り手段と、上記画像信号
の色毎の出現頻度を示すヒストグラムを作成するヒスト
グラム作成手段と、画像信号の白若しくは黒レベルを演
算するためのデータ領域を指定するデータ領域指定手段
と、このデータ領域指定手段に基づいて画像信号の白若
しくは黒レベルを演算する白若しくは黒レベルの演算手
段と、上記演算された黒レベル若しくは白レベルに基づ
いて画像信号を階調変換する階調変換手段と、を具備す
ることを特徴とする画像読取装置。
(8) Image reading means for converting an image on a film into image signals for a plurality of colors, histogram creating means for creating a histogram indicating the appearance frequency of each color of the image signal, Alternatively, a data area specifying means for specifying a data area for calculating a black level, a white or black level calculating means for calculating a white or black level of an image signal based on the data area specifying means, An image reading device comprising: a gradation conversion unit that performs gradation conversion of an image signal based on a black level or a white level.

【0071】(9) フィルム上の画像を複数の色毎の
画像信号に変換する画像読み取り手段と、上記画像信号
の色毎の出現頻度を示すヒストグラムを作成するヒスト
グラム作成手段と、色毎のヒストグラムから該ヒストグ
ラムと同じ色の白レベルを演算する第1の演算手段と、
色毎のヒストグラムから該ヒストグラムと異なる色の白
レベルを演算する第2の演算手段と、画像信号に白点が
あるか否かを判別する白点判別手段と、この白点判別手
段に基づいて第1若しくは第2白レベル演算を選択する
選択手段と、この選択手段で選択された白レベルに基づ
いて画像信号を階調変換する階調変換手段と、を具備す
ることを特徴とする画像読取装置。
(9) Image reading means for converting an image on a film into image signals for a plurality of colors, histogram creating means for creating a histogram indicating the appearance frequency of each color of the image signal, and histogram for each color First calculating means for calculating a white level of the same color as the histogram from
A second calculating means for calculating a white level of a color different from the histogram from a histogram for each color, a white point determining means for determining whether or not the image signal has a white point, and a white point determining means based on the white point determining means. An image reading apparatus comprising: a selection unit that selects the first or second white level calculation; and a gradation conversion unit that performs gradation conversion of an image signal based on the white level selected by the selection unit. apparatus.

【0072】[0072]

【発明の効果】以上のようにこの発明によれば、ヒスト
グラムから画像の最小値、最大値を検出する際に、ヒス
トグラムに突発的なノイズ成分が含まれていても精度の
良い検出を可能にするフィルムスキャナを提供すること
ができる。また、CCD出力やその後の階調変換による
S/N劣化を考慮して検出を行うことで、更に精度の良
い検出を可能にする。
As described above, according to the present invention, when the minimum value and the maximum value of an image are detected from a histogram, accurate detection can be performed even if a sudden noise component is included in the histogram. A film scanner can be provided. Further, by performing the detection in consideration of the S / N deterioration due to the CCD output and the subsequent gradation conversion, more accurate detection is possible.

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

【図1】この発明の一実施の形態に係るフィルムスキャ
ナの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a film scanner according to an embodiment of the present invention.

【図2】フィルム濃度とデジタル値との割り振りを説明
する図である。
FIG. 2 is a diagram illustrating the assignment of film density and digital value.

【図3】濃度値の出現頻度を示すヒストグラムである。FIG. 3 is a histogram showing the appearance frequency of density values.

【図4】具体的な補正処理の様子を示した図である。FIG. 4 is a diagram showing a specific correction process.

【図5】レベル判断領域設定の例を示したもので、「標
準」が設定されている状態を示した図である。
FIG. 5 is a diagram illustrating an example of setting of a level determination area, in which “standard” is set.

【図6】EEPROM10に記憶されているレベル判定
領域の設定に関するパラメータの例を示した図である。
FIG. 6 is a diagram showing an example of parameters related to setting of a level determination area stored in the EEPROM 10.

【図7】本実施の形態の動作を説明するもので、フイル
ムスキャナの全体の動作の流れを示すフローチャートで
ある。
FIG. 7 is a flowchart for explaining the operation of this embodiment and showing the flow of the entire operation of the film scanner.

【図8】レベル補正判断領域設定キー11にて設定が変
更された際の処理動作を説明するフローチャートであ
る。
FIG. 8 is a flowchart illustrating a processing operation when the setting is changed by the level correction determination area setting key 11.

【図9】図7のフローチャートのステップ8及び図8の
フローチャートのステップ22に於けるサブルーチン
「レベル判断」の詳細動作を説明するフローチャートで
ある。
9 is a flowchart illustrating a detailed operation of a subroutine “level judgment” in step 8 of the flowchart of FIG. 7 and step 22 of the flowchart of FIG. 8;

【図10】図9のフローチャートのステップS40に於
けるサブルーチン「レベル変更処理(ポジ)」の処理動
作を説明するフローチャートである。
10 is a flowchart illustrating a processing operation of a subroutine “level change processing (positive)” in step S40 of the flowchart in FIG. 9;

【図11】図9のステップS41に於けるサブルーチン
「レベル変更処理(ネガ)」の処理動作を説明するフロ
ーチャートである。
FIG. 11 is a flowchart illustrating a processing operation of a subroutine “level change processing (negative)” in step S41 of FIG. 9;

【図12】従来のフィルムスキャナの濃度値の出現頻度
を示すヒストグラムである。
FIG. 12 is a histogram showing the appearance frequency of density values of a conventional film scanner.

【符号の説明】[Explanation of symbols]

1 CCD、 2 増幅器(AMP)、 3 A/Dコンバータ、 4 フレームメモリ、 5 log変換部、 6 ヒストグラム作成部、 7 レベル判断部、 8 ネガポジ判断部、 9 レベル補正部、 10 EEPROM、 11 レベル判断領域設定キー、 12 モニタ、 13 インターフェース(I/F)、 14 CPU。 1 CCD, 2 amplifier (AMP), 3 A / D converter, 4 frame memory, 5 log conversion unit, 6 histogram creation unit, 7 level judgment unit, 8 negative / positive judgment unit, 9 level correction unit, 10 EEPROM, 11 level judgment Area setting key, 12 monitor, 13 interface (I / F), 14 CPU.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 フィルム上の潜像を画像信号に変換する
画像読み取り手段と、 この画像読み取り手段で読み取られた画像信号を濃度値
に変換する変換手段と、 この変換手段で変換された濃度値の出現頻度を示すヒス
トグラムを作成するヒストグラム作成手段と、 このヒストグラム作成手段で作成されたヒストグラムの
最小値付近及び最大値付近の所定の領域内に於ける濃度
値の平均値をもって画像の最小レベル及び最大レベルを
判断するレベル判断手段と、 この判断手段で判断された最小レベル及び最大レベルに
基づいて画像信号の階調を変換する階調変換手段とを具
備することを特徴とするフィルムスキャナ。
1. An image reading means for converting a latent image on a film into an image signal, a conversion means for converting an image signal read by the image reading means into a density value, and a density value converted by the conversion means A histogram creating means for creating a histogram indicating the frequency of appearance of the image; and a minimum level of the image based on an average value of density values in a predetermined area near a minimum value and a maximum value of the histogram created by the histogram creating means. A film scanner comprising: a level determining means for determining a maximum level; and a tone converting means for converting a tone of an image signal based on the minimum level and the maximum level determined by the determining means.
【請求項2】 フィルム上の潜像を画像信号に変換する
画像読み取り手段と、 この画像読み取り手段で読み取られた画像信号を濃度値
に変換する変換手段と、 この変換手段で変換された濃度値の出現頻度を示すヒス
トグラムを作成するヒストグラム作成手段と、 このヒストグラム作成手段で作成されたヒストグラムの
最小値付近及び最大値付近の所定の領域内に於ける濃度
値の平均値をもって画像の最小レベル及び最大レベルを
判断するレベル判断手段と、 このレベル判断手段で判断された最小レベル及び最大レ
ベルに基づいて画像信号の階調を変換する階調変換手段
とを具備し、 上記レベル判断手段で画像の最小レベルを判断する際の
領域の全領域に対する割合が、最大レベルを判断する際
の領域の全領域に対する割合よりも大きいことを特徴と
するフィルムスキャナ。
2. An image reading means for converting a latent image on a film into an image signal, a conversion means for converting an image signal read by the image reading means into a density value, and a density value converted by the conversion means A histogram creating means for creating a histogram indicating the frequency of appearance of the image; and a minimum level of the image based on an average value of density values in a predetermined area near a minimum value and a maximum value of the histogram created by the histogram creating means. Level determining means for determining the maximum level; and gradation converting means for converting the gradation of the image signal based on the minimum level and the maximum level determined by the level determining means. The ratio of the area to the whole area when judging the minimum level is larger than the ratio of the area to the whole area when judging the maximum level. Film scanner according to claim.
【請求項3】 フィルム上の潜像を画像信号に変換する
画像読み取り手段と、 この画像読み取り手段で読み取られたフィルムがネガフ
ィルムであるかポジフィルムであるかを判断するネガポ
ジガ判断手段と、 上記画像読み取り手段で読み取られた画像信号を濃度値
に変換する変換手段と、 この変換手段で変換された濃度値の出現頻度を示すヒス
トグラムを作成するヒストグラム作成手段と、 このヒストグラム作成手段で作成されたヒストグラムの
最小値付近及び最大値付近の所定の領域内に於ける濃度
値の平均値をもって画像の最小レベル及び最大レベルを
判断するレベル判断手段と、 このレベル判断手段で判断された最小レベル及び最大レ
ベルに基づいて画像信号の階調を変換する階調変換手段
とを具備し、 上記レベル判断手段にて画像の最小レベル及び最大レベ
ルを判断する際の領域の全領域に対する割合を上記ポジ
ネガ判断手段の結果に応じて切換えることを特徴とする
フィルムスキャナ。
3. An image reading means for converting a latent image on a film into an image signal; a negative / positive determining means for determining whether the film read by the image reading means is a negative film or a positive film; Conversion means for converting the image signal read by the image reading means into a density value; histogram creation means for creating a histogram indicating the appearance frequency of the density value converted by the conversion means; Level determining means for determining the minimum and maximum levels of the image based on the average value of the density values in a predetermined area near the minimum value and the maximum value of the histogram; and the minimum and maximum levels determined by the level determining means. And a gradation converting means for converting the gradation of the image signal based on the level. Wherein the ratio of the area to the entire area when the minimum level and the maximum level are determined is switched in accordance with the result of the positive / negative determination means.
JP10131956A 1998-05-14 1998-05-14 Film scanner Withdrawn JPH11331593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10131956A JPH11331593A (en) 1998-05-14 1998-05-14 Film scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10131956A JPH11331593A (en) 1998-05-14 1998-05-14 Film scanner

Publications (1)

Publication Number Publication Date
JPH11331593A true JPH11331593A (en) 1999-11-30

Family

ID=15070149

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10131956A Withdrawn JPH11331593A (en) 1998-05-14 1998-05-14 Film scanner

Country Status (1)

Country Link
JP (1) JPH11331593A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008033966A (en) * 2007-10-12 2008-02-14 Fujitsu Ltd Image processing program
US7480397B2 (en) 2003-04-18 2009-01-20 Casio Computer Co., Ltd. Fingerprint image reading apparatus
JP2014526745A (en) * 2011-09-12 2014-10-06 グーグル・インコーポレーテッド System for extending content
CN105847776A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 White balance determination method based on high color temperatures

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7480397B2 (en) 2003-04-18 2009-01-20 Casio Computer Co., Ltd. Fingerprint image reading apparatus
JP2008033966A (en) * 2007-10-12 2008-02-14 Fujitsu Ltd Image processing program
JP4640850B2 (en) * 2007-10-12 2011-03-02 富士通株式会社 Image processing program
JP2014526745A (en) * 2011-09-12 2014-10-06 グーグル・インコーポレーテッド System for extending content
CN105847776A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 White balance determination method based on high color temperatures

Similar Documents

Publication Publication Date Title
JP3359116B2 (en) Image processing method and apparatus
US7945109B2 (en) Image processing based on object information
US7315657B2 (en) Image processing apparatus, image processing method, computer program and storage medium
EP1898624B1 (en) Image processing device, image processing method, image processing program product, and image-capturing device
US5130935A (en) Color image processing apparatus for extracting image data having predetermined color information from among inputted image data and for correcting inputted image data in response to the extracted image data
US6975437B2 (en) Method, apparatus and recording medium for color correction
US6873729B2 (en) Method, apparatus and computer program product for processing image data
EP2076053A1 (en) Image processing method, image processing program, image processing device, and camera
US8724898B2 (en) Signal processor and storage medium storing signal processing program
CN101151883A (en) Image processing method, display image processing method, image processing device, and integrated circuit containing the image processing device
JPH11331596A (en) Image processing method and its device
US7545421B2 (en) Apparatus, system, and method for optimizing gamma curves for digital image devices
US7636108B2 (en) Image pickup device, white balance processing method, program, and storage medium
US6041136A (en) Image processing apparatus and method
JP2004200902A (en) Image processor, electronic camera, and image processing program
US20020008762A1 (en) Method, apparatus and recording medium for image processing
US20090096898A1 (en) Image-taking apparatus and image signal processing program
US20060159340A1 (en) Digital image photographing apparatus and method
JPH1013682A (en) Image processing method
JPH11331593A (en) Film scanner
JP3378601B2 (en) Image processing device
JP4118864B2 (en) Imaging device
JPH1141622A (en) Image processor
JPH0750761A (en) Color reproducing mthod for image processing system constituted of independent type input/output machine
JP5475293B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050802