JP2000278530A - Image processor, image processing method and recording medium recorded with image processing program - Google Patents

Image processor, image processing method and recording medium recorded with image processing program

Info

Publication number
JP2000278530A
JP2000278530A JP11084360A JP8436099A JP2000278530A JP 2000278530 A JP2000278530 A JP 2000278530A JP 11084360 A JP11084360 A JP 11084360A JP 8436099 A JP8436099 A JP 8436099A JP 2000278530 A JP2000278530 A JP 2000278530A
Authority
JP
Japan
Prior art keywords
image
luminance
value
histogram
correction
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
JP11084360A
Other languages
Japanese (ja)
Inventor
Juichi Kuramoto
寿一 倉本
Minoru Uchida
内田  稔
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.)
TOYO JOHO SYST KK
Noritsu Koki Co Ltd
Original Assignee
TOYO JOHO SYST KK
Noritsu Koki 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 TOYO JOHO SYST KK, Noritsu Koki Co Ltd filed Critical TOYO JOHO SYST KK
Priority to JP11084360A priority Critical patent/JP2000278530A/en
Publication of JP2000278530A publication Critical patent/JP2000278530A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily and surely obtain high contrast images even from an exposure excessive or exposure insufficient photo film. SOLUTION: In the luminance image density histogram of images to be outputted, in the case that an output range is less than a desired range, by using a correction gamma calculated by a correction value calculation part 6, the luminance image density histogram is extended so as to make the output range equal to or more than the desired range. Thus, even when the image is recorded in a narrow luminance range on the exposure excessive or exposure insufficient photo film, the image is outputted in a wide luminance range. Also, since the correction gamma is automatically obtained by the correction value calculation part 6 without the intervention of an operator, the time and labor are not required for calculating the correction gamma.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えばネガフィル
ムのような写真フィルムに記録された画像に対応する画
像データに画像処理を施して写真焼付装置に供給する画
像処理装置と、画像処理方法と、画像処理装置に画像処
理を実行させるための画像処理プログラムを記録した記
録媒体とに関するものであり、特に、露光過多や露光不
足のフィルムに記録された画像を鮮やかに再現すること
のできる画像処理装置、画像処理方法および画像処理プ
ログラムを記録した記録媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus which performs image processing on image data corresponding to an image recorded on a photographic film such as a negative film and supplies the processed image data to a photographic printing apparatus. The present invention relates to a recording medium on which an image processing program for causing an image processing apparatus to execute image processing is recorded, and particularly to an image processing capable of vividly reproducing an image recorded on an overexposed or underexposed film. The present invention relates to an apparatus, an image processing method, and a recording medium on which an image processing program is recorded.

【0002】[0002]

【従来の技術】従来から、ネガフィルムに記録された画
像を印画紙に焼き付ける写真焼付装置として、ネガフィ
ルムを介して印画紙を直接露光するアナログプリンタ
や、ネガフィルムに記録された画像をスキャナ等で一旦
読み取り、得られた画像データに基づいて印画紙を露光
するデジタルプリンタが種々提案されている。特に、デ
ジタルプリンタは、画像データに対して色補正や濃度補
正等の画像処理を行う画像処理装置と組み合わせて用い
ることで、アナログプリンタでは実現できないような色
補正や濃度補正等を行うことができると共に、顧客の要
望に応じた画像を容易にかつ迅速に得ることができると
いう利点があり、現在広く用いられている。
2. Description of the Related Art Conventionally, as a photographic printing apparatus for printing an image recorded on a negative film on photographic paper, an analog printer for directly exposing the photographic paper via a negative film, a scanner for printing an image recorded on the negative film, and the like. Various types of digital printers have been proposed in which a photographic paper is exposed on the basis of image data obtained by temporarily reading the photographic paper. In particular, a digital printer can perform color correction, density correction, and the like that cannot be realized by an analog printer by using the digital printer in combination with an image processing apparatus that performs image processing such as color correction and density correction on image data. At the same time, there is an advantage that an image according to a customer's request can be obtained easily and quickly, and is now widely used.

【0003】ところで、例えば夏の浜辺やスキー場で写
真を撮影する場合には、カメラのシャッタ速度、絞り等
を適切に調整しない限り、露光過多となる場合が多い。
また、例えば暗室でストロボをたかずに写真を撮影する
と当然ながら露光不足となる。
By the way, when taking a picture on a beach or a ski resort in summer, for example, the exposure is often excessive unless the shutter speed and aperture of the camera are adjusted appropriately.
Also, for example, if a photograph is taken without using a strobe in a dark room, the exposure is naturally insufficient.

【0004】露光過多や露光不足のカラーネガフィルム
を用いて印画紙に焼き付けた画像は、コントラストの低
い、めりはりのない画像となる。これは、カラーネガフ
ィルムが、一般的に図6に示すような特性を有してお
り、露光過多のフィルムでは同図中の幅aでしか濃度を
表現できず、また、露光不足のフィルムでは同図中の幅
bでしか濃度を表現できないからである。つまり、適正
露光におけるフィルム濃度の幅cに比べてかなり狭い帯
域でしか、濃度を表現できないからである。また、フィ
ルム上に形成される画像は、露光過多の場合は全体的に
黒っぽく、露光不足の場合は全体的に白っぽくなり、こ
のことも印画紙上に焼き付けられる画像が低コントラス
ト画像となってしまう原因の一つである。
An image printed on photographic paper using an overexposed or underexposed color negative film has a low contrast and is smooth. This is because a color negative film generally has characteristics as shown in FIG. 6, and a density of an overexposed film can be expressed only by the width a in the figure, and a film of an underexposed film has the same characteristics. This is because the density can be expressed only by the width b in the figure. That is, the density can be expressed only in a band that is considerably narrower than the width c of the film density in the proper exposure. In addition, the image formed on the film is entirely dark when overexposed, and entirely white when underexposed, which also causes the image printed on photographic paper to be a low contrast image. one of.

【0005】そこで、従来では、低コントラスト画像を
めりはりのある鮮やかな画像に補正すべく、アナログプ
リンタではフィルム全体の露光時間を変えることにより
対応していた。また、デジタルプリンタでは、フィルム
画像を一旦スキャナ等でデジタルの画像データに落と
し、これを画像処理装置においてオペレータ自身が手動
で作成したLUT(ルックアップテーブル)を用いて変
換する、等の措置を講じていた。
Therefore, conventionally, in order to correct a low-contrast image into a sharp and vivid image, an analog printer has responded by changing the exposure time of the entire film. In a digital printer, a film image is temporarily converted into digital image data by a scanner or the like, and the image is converted using an LUT (lookup table) manually created by an operator in the image processing apparatus. I was

【0006】[0006]

【発明が解決しようとする課題】ところが、アナログプ
リンタでの上記手法では、濃度補正や色補正を部分的に
行うことができず、画像全体の濃度を濃くするか薄くす
る、画像全体を黄色くするか青くする、という補正しか
できない。したがって、画像全体としてはある程度見栄
え良く仕上がるものの、高コントラストでめりはりのあ
る画像は得られない。したがって、アナログプリンタで
は低コントラスト画像を高コントラスト画像に補正する
ことができないと言える。
However, in the above-described method using an analog printer, density correction and color correction cannot be partially performed, and the density of the entire image is increased or decreased, and the entire image is yellowed. You can only make it blue. Therefore, although the image as a whole looks good to a certain extent, an image with high contrast and sharpness cannot be obtained. Therefore, it can be said that an analog printer cannot correct a low-contrast image to a high-contrast image.

【0007】また、デジタルプリンタでの上記手法で
は、濃度補正や色補正を部分的に行うことはできるが、
高コントラストに補正できるLUTを、オペレータがモ
ニタ等を見ながら試行錯誤で作成しなければならず、手
間がかかり面倒である。
[0007] Further, in the above-described method using a digital printer, density correction and color correction can be partially performed.
An operator must create an LUT that can be corrected to a high contrast by trial and error while looking at a monitor or the like, which is troublesome and troublesome.

【0008】本発明は、上記の問題点を解決するために
なされたもので、その目的は、露光過多や露光不足の写
真フィルムからでも高コントラスト画像を容易にかつ確
実に得ることのできる画像処理装置、画像処理方法およ
び画像処理プログラムを記録した記録媒体を提供するこ
とにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to provide an image processing apparatus capable of easily and reliably obtaining a high-contrast image even from an overexposed or underexposed photographic film. It is an object of the present invention to provide an apparatus, an image processing method, and a recording medium that records an image processing program.

【0009】[0009]

【課題を解決するための手段】請求項1の発明に係る画
像処理装置は、上記の課題を解決するために、デジタル
画像の画像データに基づいて出力すべき画像の輝度画像
濃度ヒストグラムを作成するヒストグラム作成手段と、
上記輝度画像濃度ヒストグラムにおける輝度値の出力レ
ンジを求める出力レンジ検出手段と、上記出力レンジが
所望の範囲に満たない場合に、上記出力レンジが所望の
範囲以上となるように輝度画像濃度ヒストグラムを伸張
できるような補正値を算出する補正値算出手段と、上記
補正値を用いて元の画像データを補正する補正手段とを
備えていることを特徴としている。
In order to solve the above-mentioned problems, an image processing apparatus according to the present invention creates a luminance image density histogram of an image to be output based on image data of a digital image. Means for creating a histogram,
Output range detecting means for obtaining an output range of a luminance value in the luminance image density histogram; and expanding the luminance image density histogram so that the output range is equal to or more than a desired range when the output range is less than a desired range. It is characterized by comprising a correction value calculating means for calculating a correction value that can be obtained, and a correcting means for correcting the original image data using the correction value.

【0010】上記の構成によれば、ヒストグラム作成手
段にて作成した輝度画像濃度ヒストグラム(以下、単に
ヒストグラムと記載する)において、出力レンジ検出手
段が検出した輝度値の出力レンジが所望の範囲に満たな
い場合には、補正値算出手段が算出する補正値を用いて
補正手段が元の画像データを補正する。これにより、た
とえ露光過多や露光不足の写真フィルムに狭い輝度範囲
で画像が記録されていても、この画像を上記の補正によ
って広い輝度範囲で出力することが可能となる。また、
上記の補正値はオペレータが介入することなく、補正値
算出手段によって自動的に得られるので、補正値の算出
に手間がかかることはない。
According to the above arrangement, in the luminance image density histogram (hereinafter simply referred to as a histogram) created by the histogram creating means, the output range of the brightness value detected by the output range detecting means satisfies a desired range. If not, the correction unit corrects the original image data using the correction value calculated by the correction value calculation unit. Thus, even if an image is recorded in a narrow luminance range on an overexposed or underexposed photographic film, the image can be output in a wide luminance range by the above correction. Also,
Since the correction value is automatically obtained by the correction value calculating means without the intervention of the operator, there is no trouble in calculating the correction value.

【0011】したがって、上記構成によれば、露光過多
や露光不足の写真フィルムからでも、高コントラストの
画像を容易にかつ確実に得ることができ、露光過多や露
光不足のフィルムに記録された画像を鮮やかに再現する
ことができる。
Therefore, according to the above configuration, a high-contrast image can be easily and reliably obtained even from an overexposed or underexposed photographic film, and an image recorded on an overexposed or underexposed film can be obtained. It can be reproduced vividly.

【0012】請求項2の発明に係る画像処理装置は、上
記の課題を解決するために、請求項1の構成において、
上記出力レンジ検出手段は、輝度画像濃度ヒストグラム
における輝度値の最小値と最大値とに基づいて輝度値の
出力レンジを求めるものであり、上記補正値算出手段
は、検出した輝度値の最小値が上記所望の範囲の最小値
となるように輝度画像濃度ヒストグラムを伸張できるよ
うな補正値を算出することをことを特徴としている。
According to a second aspect of the present invention, there is provided an image processing apparatus according to the first aspect, wherein:
The output range detecting means obtains an output range of the luminance value based on the minimum value and the maximum value of the luminance value in the luminance image density histogram, and the correction value calculating means determines that the minimum value of the detected luminance value is It is characterized in that a correction value is calculated so that the luminance image density histogram can be expanded so as to be the minimum value in the desired range.

【0013】例えば、元の画像データに基づいて作成し
たヒストグラムが高輝度側に偏っている場合には、上記
の補正により、輝度値の最大値と最小値との差が所望の
範囲に対応する長さとはなるが、ヒストグラムの輝度値
の最小値が所望の範囲の最小値とはならない場合があ
る。すると、一番黒く表現されなければならない部分が
例えば灰色に近い黒で表現されて、結果的に黒の締まり
およびめりはりの不十分な画像が得られてしまうことが
ある。
For example, when the histogram created based on the original image data is biased toward the high luminance side, the difference between the maximum value and the minimum value of the luminance value corresponds to a desired range by the above correction. Although it is the length, the minimum value of the luminance value of the histogram may not be the minimum value of the desired range. Then, the portion that must be represented blackest is represented, for example, by black, which is close to gray, and as a result, an image with insufficient black tightness and insufficient rim may be obtained.

【0014】しかし、上記構成によれば、輝度値の最小
値が所望の範囲の最小値となるようにヒストグラムが伸
張されるので、画像中の最も暗い部分は本来の黒(輝度
値が最小の黒)で表現されることとなり、画像に黒の締
まりを確実に持たせることが可能となる。したがって、
めりはりのある画像を確実に得ることができ、高コント
ラスト画像をより一層確実に実現することができる。
However, according to the above configuration, the histogram is expanded so that the minimum value of the luminance value becomes the minimum value of the desired range. (Black), and it is possible to ensure that the image has black tightness. Therefore,
A sharp image can be reliably obtained, and a high-contrast image can be more reliably realized.

【0015】請求項3の発明に係る画像処理装置は、上
記の課題を解決するために、請求項1または2の構成に
おいて、上記補正値算出手段は、輝度値に応じて輝度画
像濃度ヒストグラムの伸張度合いが異なるような補正値
を算出することを特徴としている。
According to a third aspect of the present invention, in the image processing apparatus according to the first or second aspect of the present invention, the correction value calculating means is configured to calculate a luminance image density histogram according to a luminance value. It is characterized in that correction values having different degrees of expansion are calculated.

【0016】上記の構成によれば、例えばヒストグラム
の高輝度側はそのままにしておいて、低輝度側だけを伸
張したり、高輝度側および低輝度側をともに伸張する場
合であっても低輝度側だけをより多く伸張したりするこ
とができる。また、ヒストグラムの低輝度側と高輝度側
との2領域だけではなく、ヒストグラムを多領域に分け
て伸張度合いをそれぞれの領域ごとに異ならせることも
できる。したがって、ヒストグラムの低輝度側や高輝度
側への偏り具合に応じたコントラスト補正や、ヒストグ
ラムの形状に応じたコントラスト補正など、コントラス
ト補正における様々な対応が可能となり、これによっ
て、フィルムに記録された画像を最適なコントラストで
表現することができる。
According to the above configuration, for example, when the high-luminance side of the histogram is left as it is, only the low-luminance side is expanded, or even when both the high-luminance side and the low-luminance side are expanded, the low-luminance side is used. Or only the sides can be stretched more. In addition, the histogram may be divided into multiple regions instead of only the two regions on the low luminance side and the high luminance side of the histogram, and the degree of expansion may be different for each region. Therefore, various corrections in contrast correction, such as contrast correction according to the degree of deviation of the histogram toward the low luminance side or high luminance side, and contrast correction according to the shape of the histogram, can be performed. Images can be expressed with optimal contrast.

【0017】請求項4の発明に係る画像処理装置は、上
記の課題を解決するために、請求項1ないし3のいずれ
かの構成において、輝度画像濃度ヒストグラムの伸張度
合いは変更可能であることを特徴としている。
According to a fourth aspect of the present invention, there is provided an image processing apparatus according to any one of the first to third aspects, wherein the degree of expansion of the luminance image density histogram can be changed. Features.

【0018】上記の構成によれば、ヒストグラムの伸張
度合いを例えばオペレータからの入力指示によって適宜
変更することができるので、高コントラスト画像を得る
際の補正の強度をその都度設定することができ、これに
よって、様々な高コントラスト画像を実現することがで
きる。
According to the above arrangement, the degree of expansion of the histogram can be changed as appropriate by, for example, an input instruction from an operator. Therefore, the intensity of correction for obtaining a high-contrast image can be set each time. Accordingly, various high-contrast images can be realized.

【0019】請求項5の発明に係る画像処理方法は、上
記の課題を解決するために、デジタル画像の画像データ
に基づいて出力すべき画像の輝度画像濃度ヒストグラム
を作成する第1の工程と、上記輝度画像濃度ヒストグラ
ムにおける輝度値の出力レンジを求める第2の工程と、
上記出力レンジが所望の範囲に満たない場合に、上記出
力レンジが所望の範囲以上となるように輝度画像濃度ヒ
ストグラムを伸張できるような補正値を算出する第3の
工程と、上記補正値を用いて元の画像データを補正する
第4の工程とからなることを特徴としている。
According to a fifth aspect of the present invention, there is provided an image processing method comprising: a first step of creating a luminance image density histogram of an image to be output based on image data of a digital image; A second step of obtaining a luminance value output range in the luminance image density histogram;
A third step of calculating a correction value that can expand the luminance image density histogram so that the output range is equal to or larger than the desired range when the output range is less than the desired range; And a fourth step of correcting the original image data.

【0020】上記の方法によれば、作成したヒストグラ
ムにおける輝度値の出力レンジが所望の範囲に満たない
場合には、出力レンジが所望の範囲以上となるようにヒ
ストグラムを伸張できるような補正値を用いて元の画像
データが補正される。これにより、たとえ露光過多や露
光不足の写真フィルムに狭い輝度範囲で画像が記録され
ていても、この画像を上記の補正によって広い輝度範囲
で出力することが可能となる。
According to the above-described method, when the output range of the luminance value in the created histogram is less than the desired range, a correction value which can expand the histogram so that the output range is equal to or larger than the desired range is obtained. To correct the original image data. Thus, even if an image is recorded in a narrow luminance range on an overexposed or underexposed photographic film, the image can be output in a wide luminance range by the above correction.

【0021】したがって、上記方法によれば、露光過多
や露光不足の写真フィルムからでも、高コントラストの
画像を容易にかつ確実に得ることができ、露光過多や露
光不足のフィルムに記録された画像を鮮やかに再現する
ことができる。
Therefore, according to the above method, a high-contrast image can be easily and reliably obtained even from an overexposed or underexposed photographic film, and an image recorded on an overexposed or underexposed film can be obtained. It can be reproduced vividly.

【0022】請求項6の発明に係る画像処理方法は、上
記の課題を解決するために、請求項5の構成において、
上記第2の工程は、輝度画像濃度ヒストグラムにおける
輝度値の最小値と最大値とに基づいて輝度値の出力レン
ジを求める工程であり、上記第3の工程は、検出した輝
度値の最小値が上記所望の範囲の最小値となるように輝
度画像濃度ヒストグラムを伸張できるような補正値を算
出する工程であることを特徴としている。
According to a sixth aspect of the present invention, there is provided an image processing method according to the fifth aspect, wherein:
The second step is a step of obtaining an output range of the luminance value based on the minimum value and the maximum value of the luminance value in the luminance image density histogram. The third step is that the minimum value of the detected luminance value is It is characterized in that it is a step of calculating a correction value such that the luminance image density histogram can be expanded so as to be the minimum value in the desired range.

【0023】例えば、元の画像データに基づいて作成し
たヒストグラムが高輝度側に偏っている場合には、上記
の補正により、輝度値の最大値と最小値との差が所望の
範囲に対応する長さとはなるが、ヒストグラムの輝度値
の最小値が所望の範囲の最小値とはならない場合があ
る。すると、一番黒く表現されなければならない部分が
例えば灰色に近い黒で表現されて、結果的に黒の締まり
およびめりはりの不十分な画像が得られてしまうことが
ある。
For example, when the histogram created based on the original image data is biased toward the high luminance side, the difference between the maximum value and the minimum value of the luminance value corresponds to a desired range by the above correction. Although it is the length, the minimum value of the luminance value of the histogram may not be the minimum value of the desired range. Then, the portion that must be represented blackest is represented, for example, by black, which is close to gray, and as a result, an image with insufficient black tightness and insufficient rim may be obtained.

【0024】しかし、上記方法によれば、輝度値の最小
値が所望の範囲の最小値となるようにヒストグラムが伸
張されるので、画像中の最も暗い部分は本来の黒(輝度
値が最小の黒)で表現されることとなり、画像に黒の締
まりを確実に持たせることが可能となる。したがって、
めりはりのある画像を確実に得ることができ、高コント
ラスト画像をより一層確実に実現することができる。
However, according to the above method, the histogram is expanded so that the minimum value of the luminance value becomes the minimum value of the desired range. (Black), and it is possible to ensure that the image has black tightness. Therefore,
A sharp image can be reliably obtained, and a high-contrast image can be more reliably realized.

【0025】請求項7の発明に係る画像処理方法は、上
記の課題を解決するために、請求項5または6の方法に
おいて、上記第3の工程は、輝度値に応じて輝度画像濃
度ヒストグラムの伸張度合いが異なるような補正値を算
出する工程であることを特徴としている。
According to a seventh aspect of the present invention, there is provided an image processing method according to the fifth or sixth aspect, wherein the third step comprises the steps of: It is characterized in that it is a step of calculating a correction value having a different degree of expansion.

【0026】上記の方法によれば、例えばヒストグラム
の高輝度側はそのままにしておいて、低輝度側だけを伸
張したり、高輝度側および低輝度側をともに伸張する場
合であっても低輝度側だけをより多く伸張したりするこ
とができる。また、ヒストグラムの低輝度側と高輝度側
との2領域だけではなく、ヒストグラムを多領域に分け
て伸張度合いをそれぞれの領域ごとに異ならせることも
できる。したがって、ヒストグラムの低輝度側や高輝度
側への偏り具合に応じたコントラスト補正や、ヒストグ
ラムの形状に応じたコントラスト補正など、コントラス
ト補正における様々な対応が可能となり、これによっ
て、フィルムに記録された画像を最適なコントラストで
表現することができる。
According to the above-described method, for example, when the high luminance side of the histogram is left as it is, only the low luminance side is expanded, or even if both the high luminance side and the low luminance side are expanded, the low luminance side Or only the sides can be stretched more. In addition, the histogram may be divided into multiple regions instead of only the two regions on the low luminance side and the high luminance side of the histogram, and the degree of expansion may be different for each region. Therefore, various corrections in contrast correction, such as contrast correction according to the degree of deviation of the histogram toward the low luminance side or high luminance side, and contrast correction according to the shape of the histogram, can be performed. Images can be expressed with optimal contrast.

【0027】請求項8の発明に係る画像処理プログラム
を記録した記録媒体は、上記の課題を解決するために、
デジタル画像の画像データに基づいて出力すべき画像の
輝度画像濃度ヒストグラムを作成する第1の処理と、上
記輝度画像濃度ヒストグラムにおける輝度値の出力レン
ジを求める第2の処理と、上記出力レンジが所望の範囲
に満たない場合に、上記出力レンジが所望の範囲以上と
なるように輝度画像濃度ヒストグラムを伸張できるよう
な補正値を算出する第3の処理と、上記補正値を用いて
元の画像データを補正する第4の処理とをコンピュータ
に実行させるための画像処理プログラムを記録してなる
ことを特徴としている。
According to another aspect of the present invention, there is provided a recording medium on which an image processing program is recorded.
A first process of creating a luminance image density histogram of an image to be output based on image data of a digital image, a second process of obtaining an output range of a luminance value in the luminance image density histogram, And a third process of calculating a correction value that can expand the luminance image density histogram so that the output range is equal to or greater than the desired range when the output image range is smaller than the desired range. And an image processing program for causing a computer to execute the fourth process for correcting the error.

【0028】上記の構成によれば、作成したヒストグラ
ムにおける輝度値の出力レンジが所望の範囲に満たない
場合には、出力レンジが所望の範囲以上となるようにヒ
ストグラムを伸張できるような補正値を用いて元の画像
データが補正される。これにより、たとえ露光過多や露
光不足の写真フィルムに狭い輝度範囲で画像が記録され
ていても、この画像を上記の補正によって広い輝度範囲
で出力することが可能となる。
According to the above configuration, when the output range of the luminance value in the created histogram is less than the desired range, the correction value that can expand the histogram so that the output range is equal to or larger than the desired range is set. To correct the original image data. Thus, even if an image is recorded in a narrow luminance range on an overexposed or underexposed photographic film, the image can be output in a wide luminance range by the above correction.

【0029】したがって、上記構成によれば、露光過多
や露光不足の写真フィルムからでも、高コントラストの
画像を容易にかつ確実に得ることができ、露光過多や露
光不足のフィルムに記録された画像を鮮やかに再現する
ことができる。
Therefore, according to the above configuration, a high-contrast image can be easily and reliably obtained even from an overexposed or underexposed photographic film, and an image recorded on an overexposed or underexposed film can be obtained. It can be reproduced vividly.

【0030】請求項9の発明に係る画像処理プログラム
を記録した記録媒体は、上記の課題を解決するために、
請求項8の構成において、上記第2の処理は、輝度画像
濃度ヒストグラムにおける輝度値の最小値と最大値とに
基づいて輝度値の出力レンジを求める処理であり、上記
第3の処理は、検出した輝度値の最小値が上記所望の範
囲の最小値となるように輝度画像濃度ヒストグラムを伸
張できるような補正値を算出する処理であることを特徴
としている。
According to a ninth aspect of the present invention, there is provided a recording medium on which an image processing program is recorded.
In the configuration according to claim 8, the second process is a process for obtaining an output range of the luminance value based on a minimum value and a maximum value of the luminance value in the luminance image density histogram. It is characterized in that it is a process of calculating a correction value such that the luminance image density histogram can be expanded so that the minimum value of the obtained luminance value becomes the minimum value of the desired range.

【0031】例えば、元の画像データに基づいて作成し
たヒストグラムが高輝度側に偏っている場合には、上記
の補正により、輝度値の最大値と最小値との差が所望の
範囲に対応する長さとはなるが、ヒストグラムの輝度値
の最小値が所望の範囲の最小値とはならない場合があ
る。すると、一番黒く表現されなければならない部分が
例えば灰色に近い黒で表現されて、結果的に黒の締まり
およびめりはりの不十分な画像が得られてしまうことが
ある。
For example, when the histogram created based on the original image data is biased toward the high luminance side, the difference between the maximum value and the minimum value of the luminance value corresponds to a desired range by the above correction. Although it is the length, the minimum value of the luminance value of the histogram may not be the minimum value of the desired range. Then, the portion that must be represented blackest is represented, for example, by black, which is close to gray, and as a result, an image with insufficient black tightness and insufficient rim may be obtained.

【0032】しかし、上記構成によれば、輝度値の最小
値が所望の範囲の最小値となるようにヒストグラムが伸
張されるので、画像中の最も暗い部分は本来の黒(輝度
値が最小の黒)で表現されることとなり、画像に黒の締
まりを確実に持たせることが可能となる。したがって、
めりはりのある画像を確実に得ることができ、高コント
ラスト画像をより一層確実に実現することができる。
However, according to the above configuration, the histogram is expanded so that the minimum value of the luminance value becomes the minimum value of the desired range. (Black), and it is possible to ensure that the image has black tightness. Therefore,
A sharp image can be reliably obtained, and a high-contrast image can be more reliably realized.

【0033】請求項10の発明に係る画像処理プログラ
ムを記録した記録媒体は、上記の課題を解決するため
に、請求項8または9の構成において、上記第3の処理
は、輝度値に応じて輝度画像濃度ヒストグラムの伸張度
合いが異なるような補正値を算出する処理であることを
特徴としている。
According to a tenth aspect of the present invention, in a recording medium recording an image processing program according to the eighth aspect of the present invention, the third processing is performed according to a luminance value. It is characterized in that it is a process of calculating a correction value such that the degree of expansion of the luminance image density histogram is different.

【0034】上記の構成によれば、例えばヒストグラム
の高輝度側はそのままにしておいて、低輝度側だけを伸
張したり、高輝度側および低輝度側をともに伸張する場
合であっても低輝度側だけをより多く伸張したりするこ
とができる。また、ヒストグラムの低輝度側と高輝度側
との2領域だけではなく、ヒストグラムを多領域に分け
て伸張度合いをそれぞれの領域ごとに異ならせることも
できる。したがって、ヒストグラムの低輝度側や高輝度
側への偏り具合に応じたコントラスト補正や、ヒストグ
ラムの形状に応じたコントラスト補正など、コントラス
ト補正における様々な対応が可能となり、これによっ
て、フィルムに記録された画像を最適なコントラストで
表現することができる。
According to the above configuration, for example, when the high-luminance side of the histogram is left as it is, only the low-luminance side is expanded, or even when both the high-luminance side and the low-luminance side are expanded, the low-luminance side is used. Or only the sides can be stretched more. In addition, the histogram may be divided into multiple regions instead of only the two regions on the low luminance side and the high luminance side of the histogram, and the degree of expansion may be different for each region. Therefore, various corrections in contrast correction, such as contrast correction according to the degree of deviation of the histogram toward the low luminance side or high luminance side, and contrast correction according to the shape of the histogram, can be performed. Images can be expressed with optimal contrast.

【0035】[0035]

【発明の実施の形態】本発明の実施の一形態について、
図1ないし図5に基づいて説明すれば、以下の通りであ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described.
The following is a description based on FIGS. 1 to 5.

【0036】本実施形態に係るデジタル露光システム
は、図1に示すように、フィルムスキャナ1と、画像処
理装置2と、写真焼付装置3とで構成されている。フィ
ルムスキャナ1は、例えば、写真フィルムであるネガフ
ィルムを介して得られる光をCCD(Charge Coupled D
evice )等で受光することにより、ネガフィルムに記録
された画像を読み取ると共に、上記画像に応じた画像デ
ータをR、G、Bごとに画像処理装置2に出力するもの
である。
As shown in FIG. 1, the digital exposure system according to the present embodiment includes a film scanner 1, an image processing device 2, and a photographic printing device 3. The film scanner 1 converts light obtained through a negative film, which is a photographic film, into a CCD (Charge Coupled D), for example.
evice), the image recorded on the negative film is read, and image data corresponding to the image is output to the image processing device 2 for each of R, G, and B.

【0037】写真焼付装置3は、画像処理装置2からの
画像データに基づいて感光材料である印画紙を露光する
ことにより、印画紙上に画像を焼き付けるデジタルプリ
ンタである。印画紙を露光する露光部としては、デジタ
ル画像データに応じて印画紙への照射光を変調できるも
のであればよく、例えばPLZT露光ヘッド、DMD
(デジタルマイクロミラーデバイス)、LCD(液晶表
示装置)、LEDパネル、レーザー、FOCRT(Fibe
r Optic Cathode Ray Tube)、CRT等で構成される。
The photographic printing device 3 is a digital printer that prints an image on a photographic paper by exposing a photographic paper, which is a photosensitive material, based on image data from the image processing device 2. The exposure unit that exposes the photographic paper may be any unit that can modulate the irradiation light on the photographic paper according to the digital image data. For example, a PLZT exposure head, a DMD
(Digital micromirror device), LCD (liquid crystal display), LED panel, laser, FOCRT (Fibe
r Optic Cathode Ray Tube), CRT, etc.

【0038】なお、写真焼付装置3は、ネガフィルムの
スキャニングと印画紙の露光とを両方行うことができる
構成であってもよい。この場合、デジタル露光システム
を画像処理装置2と写真焼付装置3とで構成することに
より、システムの簡素化を図ることができる。
The photographic printing apparatus 3 may be configured to perform both scanning of a negative film and exposure of photographic paper. In this case, by configuring the digital exposure system with the image processing device 2 and the photographic printing device 3, the system can be simplified.

【0039】画像処理装置2は、フィルムスキャナ1か
らの画像データに対して色補正や濃度補正、階調変換等
の画像処理を行い、写真焼付装置3に供給するものであ
り、図1に示すように、ヒストグラム作成部4(ヒスト
グラム作成手段)と、出力レンジ検出部5(出力レンジ
検出手段)と、補正値算出部6(補正値算出手段)と、
補正部7(補正手段)とを備えている。
The image processing apparatus 2 performs image processing such as color correction, density correction and gradation conversion on image data from the film scanner 1 and supplies the image data to the photographic printing apparatus 3 as shown in FIG. As described above, the histogram creation unit 4 (histogram creation unit), the output range detection unit 5 (output range detection unit), the correction value calculation unit 6 (correction value calculation unit)
And a correction unit 7 (correction means).

【0040】ヒストグラム作成部4は、フィルムスキャ
ナ1にて得られたデジタル画像の画像データに基づい
て、図2(a)に示すような輝度画像濃度ヒストグラム
(以下、単にヒストグラムと称する)を作成するもので
ある。このヒストグラムは、画像データの各画素ごとの
輝度値とその度数との関係を示したものであり、フィル
ムスキャナ1からの画像データがR、G、B形式であれ
ば、ヒストグラム作成部4にて輝度画像データに変換さ
れた後、ヒストグラムが作成される。なお、輝度画像デ
ータは、例えば(R+G+B)/3や、0.30R+
0.59G+0.11Bを演算することによって求めら
れる。
The histogram creating section 4 creates a luminance image density histogram (hereinafter simply referred to as a histogram) as shown in FIG. 2A based on the image data of the digital image obtained by the film scanner 1. Things. This histogram shows the relationship between the luminance value of each pixel of the image data and its frequency. If the image data from the film scanner 1 is in the R, G, B format, the histogram creation unit 4 After being converted into luminance image data, a histogram is created. The luminance image data is, for example, (R + G + B) / 3 or 0.30R +
It is obtained by calculating 0.59G + 0.11B.

【0041】また、ヒストグラム作成部4は、元の画像
データに通常の入力ガンマを掛けて得られる画像のヒス
トグラムや、補正値算出部6にて算出された補正ガンマ
(後述する)を元の画像データに掛けて得られる画像の
ヒストグラムも作成する。これにより、ヒストグラム作
成部4にて、出力すべき画像のヒストグラムが得られる
こととなる。
The histogram creating unit 4 also calculates a histogram of an image obtained by multiplying the original image data by a normal input gamma or a correction gamma (described later) calculated by the correction value calculating unit 6. A histogram of the image obtained by multiplying the data is also created. As a result, the histogram of the image to be output is obtained in the histogram creating unit 4.

【0042】なお、上記の入力ガンマとは、フィルムの
特性、フィルムスキャナ1のCCDの受光感度、CCD
の設定等に応じて決まる係数であり、画像データに上記
の入力ガンマを掛けたものを写真焼付装置3に供給する
ことにより、きれいで標準的な画像を得ることが可能と
なる。
The input gamma is defined as film characteristics, light receiving sensitivity of the CCD of the film scanner 1, CCD
Is supplied to the photographic printing apparatus 3 by multiplying the image data by the above-mentioned input gamma, so that a clear and standard image can be obtained.

【0043】出力レンジ検出部5は、上記のヒストグラ
ム、および、上記ヒストグラムに通常の入力ガンマを掛
けたと想定した場合に得られるヒストグラムにおける輝
度値の最小値および最大値を検出すると共に、検出した
輝度値の最大値と最小値とに基づいてヒストグラムにお
ける輝度値の出力レンジ(ヒストグラムの長さ)を求め
る。
The output range detecting section 5 detects the minimum value and the maximum value of the luminance values in the histogram and the histogram obtained when it is assumed that the input histogram is multiplied by the normal input gamma. An output range (length of the histogram) of the luminance value in the histogram is obtained based on the maximum value and the minimum value of the values.

【0044】ここで、上記各ヒストグラムの両最端部
は、他と比べて極端に度数が少なく、本来、誤差の範囲
と考えられる。そこで、出力レンジ検出部5は、全度数
の例えば0.5%に相当する量だけヒストグラムの両端
をカットし、誤差範囲を除いてから、輝度値の最小値お
よび最大値を求めるようになっている。このようにヒス
トグラムの有効部分だけに基づいて本発明のコントラス
ト補正を行うことにより、高コントラスト画像を得る際
の信頼性を高めることができる。
Here, both extreme ends of each of the above-mentioned histograms have extremely low frequencies as compared with the other histograms, and are considered to be essentially error ranges. Therefore, the output range detection unit 5 cuts both ends of the histogram by an amount corresponding to, for example, 0.5% of the total frequency, removes the error range, and then obtains the minimum value and the maximum value of the luminance value. I have. As described above, by performing the contrast correction of the present invention based only on the effective portion of the histogram, it is possible to enhance the reliability when obtaining a high-contrast image.

【0045】なお、ヒストグラムの両端をカットする量
については、上記の量に限定されるわけではなく、誤差
の範囲に応じた量であればよい。以下の説明において、
ヒストグラムの最小値および最大値を求める場合は、こ
のようにヒストグラムの両端を所定量カットしてから行
うものとする。
Note that the amount of cutting both ends of the histogram is not limited to the above amount, but may be any amount according to the range of the error. In the following description,
When obtaining the minimum value and the maximum value of the histogram, it is assumed that both ends of the histogram are cut by a predetermined amount in this way.

【0046】補正値算出部6は、出力レンジ検出部5に
て得られる上記出力レンジが所望の範囲(例えば8ビッ
トでは0(黒)から255(白)まで)に満たない場合
に、上記出力レンジが所望の範囲以上となるようにヒス
トグラムを伸張できるような補正ガンマ(補正値)を算
出する。補正部7は、補正値算出部6にて得られた補正
ガンマを、元の画像データ(画素値または輝度値)に掛
け合わせることにより、元の画像データを補正する。
When the output range obtained by the output range detector 5 is less than a desired range (for example, from 0 (black) to 255 (white) for 8 bits), the correction value calculator 6 A correction gamma (correction value) that can expand the histogram so that the range is equal to or larger than a desired range is calculated. The correction unit 7 corrects the original image data by multiplying the original image data (pixel value or luminance value) by the correction gamma obtained by the correction value calculation unit 6.

【0047】ここで、上記の補正ガンマを上述した入力
ガンマとは別に算出する理由は以下の通りである。つま
り、露光過多や露光不足のフィルムに記録された画像の
ヒストグラムが例えば図2(a)のようであるとする
と、上記画像に対応する画像データに入力ガンマを掛け
ただけでは、図2(b)に示すように、ヒストグラムの
最小値cおよび最大値dがそれぞれ所望の範囲の最小値
0および最大値255に到達しない。ヒストグラムの出
力レンジが所望の範囲を全て使い切らない結果、上記の
画像は低コントラスト画像となってしまう。
Here, the reason why the above-mentioned correction gamma is calculated separately from the above-mentioned input gamma is as follows. That is, if a histogram of an image recorded on an overexposed or underexposed film is as shown in FIG. 2A, for example, multiplying the image data corresponding to the image by the input gamma only results in FIG. ), The minimum value c and the maximum value d of the histogram do not reach the minimum value 0 and the maximum value 255 of the desired range, respectively. As a result that the output range of the histogram does not completely use the desired range, the above image becomes a low-contrast image.

【0048】そこで、本発明では、上記の補正ガンマを
元の画像データに先に掛け合わせておくことで、その
後、これに通常の入力ガンマを掛け合わせた際には、ヒ
ストグラムの出力レンジが所望の範囲を全て使い切るよ
うになり、その結果、高コントラスト画像が得られるよ
うになる。つまり、本発明は、元の画像データに通常の
入力ガンマを掛けても補正できない量を補正ガンマにて
補正しておくものである。
Therefore, in the present invention, the above-mentioned correction gamma is multiplied by the original image data first, and when this is then multiplied by the normal input gamma, the output range of the histogram becomes the desired range. Is used up, and as a result, a high-contrast image can be obtained. That is, in the present invention, an amount that cannot be corrected by multiplying the original image data by the normal input gamma is corrected by the correction gamma.

【0049】次に、画像処理装置2における動作につい
て、主に図3のフローチャートに基づいて説明する。な
お、本発明では、画像データに先に補正ガンマを掛けて
所定の処理を行った後、通常の入力ガンマを掛ける処理
を行っており、S1〜S11は、このような補正ガンマ
を求める処理に対応している。実際に、画像データに入
力ガンマを掛けて最終的に出力画像を得るのは、S12
以降の工程であることを先に断っておく。
Next, the operation of the image processing apparatus 2 will be described mainly with reference to the flowchart of FIG. In the present invention, after performing a predetermined process by multiplying the image data first by the correction gamma, a process of multiplying the input data by a normal input gamma is performed. Yes, it is. Actually, the output image is finally obtained by multiplying the image data by the input gamma in S12.
It is refused earlier that this is a subsequent step.

【0050】まず、ヒストグラム作成部4は、フィルム
スキャナ1から送られる画像データに基づいて輝度値と
その度数との関係を示すヒストグラムを作成する(ステ
ップ1;以下ステップは単にSと略記する)。すると、
出力レンジ検出部5は、図2(a)に示すように、上記
のヒストグラムの両端から全度数の0.5%に相当する
量をカットし、残ったヒストグラムにおける輝度値の最
小値aおよび最大値bを検出する(S2)。
First, the histogram creating section 4 creates a histogram indicating the relationship between the luminance value and the frequency based on the image data sent from the film scanner 1 (step 1; hereinafter, the steps are simply abbreviated as S). Then
As shown in FIG. 2A, the output range detection unit 5 cuts an amount corresponding to 0.5% of the total frequency from both ends of the histogram, and outputs the minimum value a and the maximum luminance value a in the remaining histogram. The value b is detected (S2).

【0051】続いて、ヒストグラム作成部4は、元の画
像データに通常の入力ガンマを掛けたと仮定した場合の
画像のヒストグラムを作成し、出力レンジ検出部5は、
上記のヒストグラムに基づいて、図2(b)に示すよう
に、S2と同様の手法で輝度値の最小値cおよび最大値
dを計算すると共に、最大値dと最小値cとの差から上
記のヒストグラムの長さ(ヒストグラムの出力レンジ)
を計算する(S3)。
Subsequently, the histogram creating section 4 creates a histogram of the image assuming that the original image data is multiplied by the normal input gamma, and the output range detecting section 5
Based on the histogram, as shown in FIG. 2B, the minimum value c and the maximum value d of the luminance value are calculated by the same method as in S2, and the difference between the maximum value d and the minimum value c is calculated from the difference between the maximum value d and the minimum value c. Histogram length (histogram output range)
Is calculated (S3).

【0052】次に、補正値算出部6は、S3にて得られ
たヒストグラムの長さと、所望の範囲(例えば0〜25
5)に対応する長さ(例えば256)とを比較し、ヒス
トグラムの長さが所望の範囲と対応する長さと一致して
いれば、補正ガンマとして、画像データに補正ガンマを
掛けてもヒストグラムが変化しないような値(例えば
“1”)を設定する。また、補正値算出部6は、ヒスト
グラムの長さが所望の範囲と対応する長さよりも大きけ
れば、ヒストグラムの長さが所望の範囲と対応する長さ
と一致するようにヒストグラムを収縮できるような値
(例えば“1”よりも小さな値)を補正ガンマとして設
定する。さらに、補正値算出部6は、ヒストグラムの長
さが所望の範囲と対応する長さよりも小さければ、ヒス
トグラムの長さが所望の範囲と対応する長さと一致する
ようにヒストグラムを伸張できるような値(例えば
“1”よりも大きな値)を補正ガンマとして設定する
(S4)。
Next, the correction value calculator 6 determines the length of the histogram obtained in S3 and the desired range (for example, 0 to 25).
5) is compared with a length (for example, 256), and if the length of the histogram matches the length corresponding to the desired range, the histogram is used as the correction gamma even if the image data is multiplied by the correction gamma. A value that does not change (for example, “1”) is set. Further, the correction value calculating unit 6 determines a value that can reduce the histogram so that the length of the histogram matches the length corresponding to the desired range if the length of the histogram is larger than the length corresponding to the desired range. (For example, a value smaller than “1”) is set as the correction gamma. Further, the correction value calculation unit 6 determines a value that can expand the histogram so that the length of the histogram matches the length corresponding to the desired range if the length of the histogram is smaller than the length corresponding to the desired range. (For example, a value larger than "1") is set as the correction gamma (S4).

【0053】つまり、S4では、補正値算出部6は、S
3のヒストグラムの画像データに補正ガンマを掛けるこ
とによって、ヒストグラムの長さが所望の範囲と対応し
た長さとなる図2(c)に示すヒストグラムが得られる
ような補正ガンマを求めることになる。
That is, in S4, the correction value calculation unit 6
By multiplying the image data of the histogram No. 3 by the correction gamma, a correction gamma is obtained such that the histogram shown in FIG. 2C whose histogram length corresponds to the desired range is obtained.

【0054】次に、補正値算出部6は、S4にて得られ
た補正ガンマと閾値(例えば“1”)とを比較し(S
5)、補正ガンマが閾値よりも大きければ、上記補正ガ
ンマをヒストグラム作成部4に送ることにより、ヒスト
グラム作成部4が元の画像データに上記補正ガンマを掛
けて得られる画像のヒストグラムを作成する。そして、
出力レンジ検出部5は、上記ヒストグラムの輝度値の最
小値および最大値を計算する(S6)。
Next, the correction value calculation section 6 compares the correction gamma obtained in S4 with a threshold value (for example, "1") (S4).
5) If the correction gamma is larger than the threshold value, the correction gamma is sent to the histogram creation unit 4 so that the histogram creation unit 4 creates a histogram of an image obtained by multiplying the original image data by the correction gamma. And
The output range detection unit 5 calculates the minimum value and the maximum value of the luminance value of the histogram (S6).

【0055】一方、S5にて、補正ガンマが閾値よりも
小さければ、補正値算出部6は、画像データに通常の入
力ガンマを掛けるだけでヒストグラムの長さが所望の範
囲と対応する長さを越えるため、ヒストグラムを伸張す
る補正は必要でないと判断し、S3に得られた値をその
ままヒストグラムの最小値および最大値とする(S
7)。
On the other hand, if the correction gamma is smaller than the threshold value in S5, the correction value calculator 6 simply multiplies the image data by the normal input gamma to determine the length of the histogram corresponding to the desired range. Therefore, it is determined that the correction for expanding the histogram is not necessary, and the values obtained in S3 are used as the minimum and maximum values of the histogram as they are (S3).
7).

【0056】ところで、例えば、図4(a)に示すよう
に、元のヒストグラムが最初から全体的に低輝度側に偏
っている場合には、元の画像データに補正ガンマおよび
/または入力ガンマを掛けると、図4(b)に示すよう
に、ヒストグラムの長さは所望の範囲と対応する長さと
はなっているが、高輝度側でヒストグラムが所望の範囲
の最大値に達しない場合がある。しかし、低輝度側でヒ
ストグラムが所望の範囲の最小値に達しているので、こ
の場合、黒の締まりおよびめりはりのある画像が得られ
る。
By the way, for example, as shown in FIG. 4A, when the original histogram is entirely biased toward the low luminance side from the beginning, the correction gamma and / or the input gamma are added to the original image data. When multiplied, as shown in FIG. 4B, the length of the histogram is the length corresponding to the desired range, but the histogram may not reach the maximum value of the desired range on the high luminance side. . However, since the histogram has reached the minimum value of the desired range on the low luminance side, an image with black tightness and sharpness is obtained in this case.

【0057】しかし、図5(a)に示すように、元のヒ
ストグラムが最初から全体的に高輝度側に偏っている場
合には、元の画像データに補正ガンマおよび/または入
力ガンマを掛けると、図5(b)に示すように、低輝度
側でヒストグラムが所望の範囲の最小値に達しない場合
があり、この場合は黒の締まりが悪く、全体的にぼんや
りとした、いわゆる眠たい画像となる。
However, as shown in FIG. 5A, when the original histogram is entirely biased toward the high luminance side from the beginning, the original image data is multiplied by the correction gamma and / or the input gamma. As shown in FIG. 5B, there are cases where the histogram does not reach the minimum value in the desired range on the low-luminance side, in which case the black is not tight and the whole image is blurred, which is a so-called sleepy image. Become.

【0058】そこで、本発明では、元のヒストグラムの
低輝度側や高輝度側への偏りに関係なく黒の締まりのあ
る画像を確実に得るため、ヒストグラムをLow側とH
igh側とに分け、以下に示すように必要に応じてLo
w側の補正ガンマを修正するようにしている。なお、上
記のLow側とは、所望の範囲の中のあるポイント(例
えば8ビットであれば例えば128)よりも小さいほう
のヒストグラムであり、上記のHigh側とは、上記ポ
イントよりも大きいほうのヒストグラムである。
Therefore, according to the present invention, in order to reliably obtain an image with black tightness irrespective of the bias of the original histogram toward the low luminance side or the high luminance side, the histogram is set to the low side and the H side.
and the Lo side as necessary, as shown below.
The correction gamma on the w side is corrected. The low side is a histogram smaller than a certain point (for example, 128 in the case of 8 bits) in a desired range, and the high side is a histogram which is larger than the point. It is a histogram.

【0059】ここで、ヒストグラムのHigh側を補正
するHigh側補正ガンマについては、補正値算出部6
は、S4にて得られた補正ガンマをそのままHigh側
補正ガンマとして設定する(S8)。一方、ヒストグラ
ムのLow側を補正するLow側補正ガンマについて
は、補正値算出部6は、次のようにしてその設定を行
う。
Here, with respect to the High-side correction gamma for correcting the High side of the histogram, the correction value calculation unit 6
Sets the correction gamma obtained in S4 as it is as the High-side correction gamma (S8). On the other hand, with respect to the low-side correction gamma for correcting the low side of the histogram, the correction value calculation unit 6 performs the setting as follows.

【0060】まず、補正値算出部6は、S6またはS7
のヒストグラムの最小値と閾値(例えば所望の範囲の最
小値である0)とを比較し(S9)、ヒストグラムの最
小値が閾値よりも大きい場合には、図5(c)に示すよ
うに、ヒストグラムの最小値が閾値となるようにLow
側のヒストグラムを伸張できるような補正値を再計算し
(S10)、これをLow側補正ガンマとして設定する
(S11)。一方、S9にて、ヒストグラムの最小値が
閾値以下の場合には、そのままS11に移行し、補正値
算出部6は、S4で得られた補正ガンマをLow側補正
ガンマとして設定する。
First, the correction value calculation unit 6 determines whether S6 or S7
The minimum value of the histogram is compared with a threshold value (for example, 0 which is the minimum value of a desired range) (S9). If the minimum value of the histogram is larger than the threshold value, as shown in FIG. Low so that the minimum value of the histogram becomes the threshold
A correction value that can expand the histogram on the side is recalculated (S10), and this is set as a low-side correction gamma (S11). On the other hand, if the minimum value of the histogram is equal to or smaller than the threshold in S9, the process directly proceeds to S11, and the correction value calculation unit 6 sets the correction gamma obtained in S4 as the low-side correction gamma.

【0061】最後に、補正部7は、S8およびS11に
て設定された両補正ガンマを、元の画像データ(画素値
または輝度値)に掛け合わせ、Low側およびHigh
側のコントラスト補正を行う(S12)。その後、この
画像データに通常の入力ガンマが掛けて得られる画像が
出力される。
Finally, the correcting section 7 multiplies the original image data (pixel value or luminance value) by the two correction gammas set in S8 and S11, and outputs the Low side and High level.
Side contrast correction is performed (S12). Thereafter, an image obtained by multiplying this image data by a normal input gamma is output.

【0062】以上のように、本発明によれば、例えば露
光過多や露光不足のフィルムに記録された画像のよう
に、画像データのヒストグラムの出力レンジが所望の範
囲を使い切っていない場合には、所望の範囲を使い切る
ようにヒストグラムを伸張する補正を行って、適正露光
の場合と同様に、広い輝度範囲で画像を表現することが
できる。したがって、露光過多や露光不足のフィルムに
基づいて画像を印画紙に焼き付ける場合であっても、通
常ならば低コントラストで焼き付けられる画像を高コン
トラストで焼き付けることができ、露光過多や露光不足
のフィルムに記録された画像を救済することができる。
As described above, according to the present invention, when an output range of a histogram of image data does not use up a desired range, for example, an image recorded on an overexposed or underexposed film, By performing correction to expand the histogram so as to use up the desired range, an image can be expressed in a wide luminance range as in the case of proper exposure. Therefore, even when printing an image on photographic paper based on an overexposed or underexposed film, an image that would normally be printed with low contrast can be printed with high contrast, and overexposed or underexposed film can be printed. The recorded image can be rescued.

【0063】また、低輝度側でヒストグラムが所望の範
囲の最小値に必ず達するようにヒストグラムを伸張して
いるので、黒の締まりの良好な高コントラスト画像を確
実に得ることができる。
Further, since the histogram is expanded so that the histogram always reaches the minimum value in the desired range on the low luminance side, a high-contrast image with good black tightness can be reliably obtained.

【0064】ところで、本実施形態では、補正値算出部
6は、ヒストグラムをLow側とHigh側との2つの
分けてそれぞれの領域ごとに補正ガンマを設定したが、
輝度値に応じてヒストグラムを3以上の多領域に分け
て、それぞれの領域ごとにヒストグラムの伸張度合いが
異なるような補正ガンマを算出するようにしてもよい。
この場合、ヒストグラムの低輝度側や高輝度側への偏り
具合に応じたコントラスト補正や、ヒストグラムの形状
に応じたコントラスト補正など、コントラスト補正にお
ける様々な対応が可能となり、フィルムに記録された画
像を最適なコントラストで表現することが可能となる。
In the present embodiment, the correction value calculation unit 6 sets the correction gamma for each area by dividing the histogram into two parts, a low side and a high side.
The histogram may be divided into three or more regions according to the luminance value, and a correction gamma may be calculated such that the degree of expansion of the histogram differs for each region.
In this case, various corrections can be made in contrast correction, such as contrast correction according to the degree of deviation of the histogram toward the low luminance side or high luminance side, and contrast correction according to the shape of the histogram. It is possible to express with an optimum contrast.

【0065】また、S2・S3においてヒストグラムの
両端をカットする量や、S5・S9で示した閾値等のパ
ラメータは、オペレータが自由に設定変更することもで
きるし、常に固定しておくこともできる。このようにパ
ラメータを変更可能とすることにより、補正の強度(ヒ
ストグラムの伸張度合い)をその都度変更することがで
きるので、補正強度の異なる様々な高コントラスト画像
を実現することができる。
The parameters such as the amount of cutting both ends of the histogram in S2 and S3 and the thresholds shown in S5 and S9 can be freely changed by the operator, or can be fixed at all times. . Since the parameters can be changed in this manner, the intensity of correction (the degree of expansion of the histogram) can be changed each time, so that various high-contrast images having different correction intensities can be realized.

【0066】なお、本実施形態では、ヒストグラムのL
ow側でのみ補正値を再検討するようにした例を示した
が、これと併せて、High側でも、輝度値の最大値が
出力レンジの最大値以上となる補正値を再検討するよう
にしてもよい。このような両補正値に基づいて元の画像
データを補正することにより、ヒストグラムのLow側
やHigh側への偏り具合に関係なく黒の締まりが良好
な画像が得られるばかりでなく、高彩度部分の色までも
鮮やかに表現した画像が得られるようになる。
In this embodiment, the histogram L
An example in which the correction value is reviewed only on the ow side has been described. In addition, on the High side, a correction value in which the maximum value of the luminance value is equal to or larger than the maximum value of the output range is reviewed. You may. By correcting the original image data based on such both correction values, not only is it possible to obtain an image with good black tightness irrespective of the degree of deviation of the histogram to the low side or high side, but also to obtain a high chroma portion. Images that express vividly even colors can be obtained.

【0067】なお、本実施形態では、輝度値を8ビット
(0〜255の256階調)で示しているが、これはほ
んの一例であり、例えば12ビット(0〜4095まで
の4096階調)やその他のビット数で示すことも勿論
可能である。
In this embodiment, the luminance value is represented by 8 bits (256 tones from 0 to 255), but this is only an example, and for example, 12 bits (4096 tones from 0 to 4095). Of course, it is also possible to indicate with other bit numbers.

【0068】本実施形態で説明した画像処理をコンピュ
ータとしての画像処理装置2に実行させるためのプログ
ラムを、光ディスク、光磁気ディスク等の記録媒体に記
録しておき、このような記録媒体を用いて画像処理装置
2を自動的に稼働させる構成としてもよい。
A program for causing the image processing apparatus 2 as a computer to execute the image processing described in the present embodiment is recorded on a recording medium such as an optical disk, a magneto-optical disk, and the like. The image processing device 2 may be configured to operate automatically.

【0069】[0069]

【発明の効果】請求項1の発明に係る画像処理装置は、
以上のように、デジタル画像の画像データに基づいて出
力すべき画像の輝度画像濃度ヒストグラムを作成するヒ
ストグラム作成手段と、上記輝度画像濃度ヒストグラム
における輝度値の出力レンジを求める出力レンジ検出手
段と、上記出力レンジが所望の範囲に満たない場合に、
上記出力レンジが所望の範囲以上となるように輝度画像
濃度ヒストグラムを伸張できるような補正値を算出する
補正値算出手段と、上記補正値を用いて元の画像データ
を補正する補正手段とを備えている構成である。
According to the first aspect of the present invention, there is provided an image processing apparatus comprising:
As described above, a histogram creating unit that creates a luminance image density histogram of an image to be output based on image data of a digital image, an output range detecting unit that calculates an output range of a luminance value in the luminance image density histogram, If the output range is less than the desired range,
A correction value calculation unit that calculates a correction value that can expand the luminance image density histogram so that the output range is equal to or greater than a desired range; and a correction unit that corrects original image data using the correction value. Configuration.

【0070】それゆえ、たとえ露光過多や露光不足の写
真フィルムに狭い輝度範囲で画像が記録されていても、
この画像を上記の補正によって広い輝度範囲で出力する
ことが可能となる。また、上記の補正値はオペレータが
介入することなく、補正値算出手段によって自動的に得
られるので、補正値の算出に手間がかかることはない。
Therefore, even if an image is recorded in a narrow luminance range on an overexposed or underexposed photographic film,
This image can be output in a wide luminance range by the above correction. Further, since the correction value is automatically obtained by the correction value calculating means without intervention of the operator, there is no trouble in calculating the correction value.

【0071】したがって、上記構成によれば、露光過多
や露光不足の写真フィルムからでも、高コントラストの
画像を容易にかつ確実に得ることができ、露光過多や露
光不足のフィルムに記録された画像を鮮やかに再現する
ことができるという効果を奏する。
Therefore, according to the above configuration, a high-contrast image can be easily and reliably obtained even from an overexposed or underexposed photographic film, and an image recorded on an overexposed or underexposed film can be obtained. This has the effect that it can be reproduced vividly.

【0072】請求項2の発明に係る画像処理装置は、以
上のように、請求項1の構成において、上記出力レンジ
検出手段は、輝度画像濃度ヒストグラムにおける輝度値
の最小値と最大値とに基づいて輝度値の出力レンジを求
めるものであり、上記補正値算出手段は、検出した輝度
値の最小値が上記所望の範囲の最小値となるように輝度
画像濃度ヒストグラムを伸張できるような補正値を算出
する構成である。
As described above, in the image processing apparatus according to the second aspect of the present invention, in the configuration of the first aspect, the output range detecting means is configured to detect the output range based on the minimum value and the maximum value of the luminance value in the luminance image density histogram. The correction value calculating means calculates a correction value that can expand the luminance image density histogram so that the minimum value of the detected luminance value becomes the minimum value of the desired range. It is a configuration for calculating.

【0073】それゆえ、輝度値の最小値が所望の範囲の
最小値となるようにヒストグラムが伸張されるので、画
像中の最も暗い部分は本来の黒で表現されることとな
り、画像に黒の締まりを確実に持たせることが可能とな
る。したがって、請求項1の構成による効果に加えて、
めりはりのある画像を確実に得ることができ、高コント
ラスト画像をより一層確実に実現することができるとい
う効果を奏する。
Therefore, since the histogram is expanded so that the minimum value of the luminance value becomes the minimum value of the desired range, the darkest part in the image is represented by the original black, and the black It is possible to ensure tightness. Therefore, in addition to the effect of the structure of claim 1,
This has the effect that a sharp image can be reliably obtained, and a high-contrast image can be realized more reliably.

【0074】請求項3の発明に係る画像処理装置は、以
上のように、請求項1または2の構成において、上記補
正値算出手段は、輝度値に応じて輝度画像濃度ヒストグ
ラムの伸張度合いが異なるような補正値を算出する構成
である。
As described above, in the image processing apparatus according to the third aspect of the present invention, in the configuration of the first or second aspect, the correction value calculating means varies the degree of expansion of the luminance image density histogram according to the luminance value. Such a correction value is calculated.

【0075】それゆえ、ヒストグラムの低輝度側や高輝
度側への偏り具合に応じたコントラスト補正や、ヒスト
グラムの形状に応じたコントラスト補正など、コントラ
スト補正における様々な対応が可能となり、請求項1ま
たは2の構成による効果に加えて、フィルムに記録され
た画像を最適なコントラストで表現することができると
いう効果を奏する。
Therefore, various countermeasures can be taken in contrast correction, such as contrast correction according to the degree of deviation of the histogram toward the low luminance side or high luminance side, and contrast correction according to the shape of the histogram. In addition to the effect of the second configuration, there is an effect that an image recorded on a film can be expressed with optimum contrast.

【0076】請求項4の発明に係る画像処理装置は、以
上のように、請求項1ないし3のいずれかの構成におい
て、輝度画像濃度ヒストグラムの伸張度合いは変更可能
である構成である。
According to a fourth aspect of the present invention, as described above, in any one of the first to third aspects, the degree of expansion of the luminance image density histogram can be changed.

【0077】それゆえ、高コントラスト画像を得る際の
補正の強度を、オペレータ等がその都度設定することが
でき、これによって、請求項1ないし3のいずれかの構
成による効果に加えて、様々な高コントラスト画像を実
現することができるという効果を奏する。
Therefore, the intensity of correction for obtaining a high-contrast image can be set each time by an operator or the like, whereby various effects can be obtained in addition to the effects of any one of the first to third aspects. There is an effect that a high-contrast image can be realized.

【0078】請求項5の発明に係る画像処理方法は、以
上のように、デジタル画像の画像データに基づいて出力
すべき画像の輝度画像濃度ヒストグラムを作成する第1
の工程と、上記輝度画像濃度ヒストグラムにおける輝度
値の出力レンジを求める第2の工程と、上記出力レンジ
が所望の範囲に満たない場合に、上記出力レンジが所望
の範囲以上となるように輝度画像濃度ヒストグラムを伸
張できるような補正値を算出する第3の工程と、上記補
正値を用いて元の画像データを補正する第4の工程とか
らなる構成である。
In the image processing method according to the fifth aspect of the present invention, as described above, the first method of creating a luminance image density histogram of an image to be output based on image data of a digital image is provided.
And a second step of obtaining an output range of a luminance value in the luminance image density histogram; and, when the output range is less than a desired range, the luminance image is adjusted so that the output range is equal to or more than a desired range. The configuration includes a third step of calculating a correction value that can expand the density histogram, and a fourth step of correcting the original image data using the correction value.

【0079】それゆえ、たとえ露光過多や露光不足の写
真フィルムに狭い輝度範囲で画像が記録されていても、
この画像を上記の補正によって広い輝度範囲で出力する
ことが可能となる。したがって、露光過多や露光不足の
写真フィルムからでも、高コントラストの画像を容易に
かつ確実に得ることができ、露光過多や露光不足のフィ
ルムに記録された画像を鮮やかに再現することができる
という効果を奏する。
Therefore, even if an image is recorded in a narrow luminance range on an overexposed or underexposed photographic film,
This image can be output in a wide luminance range by the above correction. Therefore, high-contrast images can be easily and reliably obtained even from overexposed and underexposed photographic films, and the effect of vivid reproduction of images recorded on overexposed and underexposed films can be obtained. To play.

【0080】請求項6の発明に係る画像処理方法は、以
上のように、請求項5の構成において、上記第2の工程
は、輝度画像濃度ヒストグラムにおける輝度値の最小値
と最大値とに基づいて輝度値の出力レンジを求める工程
であり、上記第3の工程は、検出した輝度値の最小値が
上記所望の範囲の最小値となるように輝度画像濃度ヒス
トグラムを伸張できるような補正値を算出する工程であ
る構成である。
According to a sixth aspect of the present invention, in the image processing method according to the fifth aspect, the second step is based on the minimum value and the maximum value of the luminance value in the luminance image density histogram. The third step is a step of calculating a correction value that can expand the luminance image density histogram so that the minimum value of the detected luminance value becomes the minimum value of the desired range. This is a configuration that is a step of calculating.

【0081】それゆえ、輝度値の最小値が所望の範囲の
最小値となるようにヒストグラムが伸張されるので、画
像中の最も暗い部分は本来の黒で表現されることとな
り、画像に黒の締まりを確実に持たせることが可能とな
る。したがって、請求項5の方法による効果に加えて、
めりはりのある画像を確実に得ることができ、高コント
ラスト画像をより一層確実に実現することができるとい
う効果を奏する。
Therefore, since the histogram is expanded so that the minimum value of the luminance value becomes the minimum value of the desired range, the darkest part in the image is represented by the original black, and the black It is possible to ensure tightness. Therefore, in addition to the effect of the method of claim 5,
This has the effect that a sharp image can be reliably obtained, and a high-contrast image can be realized more reliably.

【0082】請求項7の発明に係る画像処理方法は、以
上のように、請求項5または6の方法において、上記第
3の工程は、輝度値に応じて輝度画像濃度ヒストグラム
の伸張度合いが異なるような補正値を算出する工程であ
る構成である。
As described above, in the image processing method according to the seventh aspect of the present invention, in the method of the fifth or sixth aspect, in the third step, the degree of expansion of the luminance image density histogram varies depending on the luminance value. The configuration is a process of calculating such a correction value.

【0083】それゆえ、ヒストグラムの低輝度側や高輝
度側への偏り具合に応じたコントラスト補正や、ヒスト
グラムの形状に応じたコントラスト補正など、コントラ
スト補正における様々な対応が可能となり、請求項5ま
たは6の構成による効果に加えて、フィルムに記録され
た画像を最適なコントラストで表現することができると
いう効果を奏する。
Therefore, various countermeasures in contrast correction, such as contrast correction according to the degree of deviation of the histogram toward the low luminance side and high luminance side, and contrast correction according to the shape of the histogram, can be made. In addition to the effect of the configuration of the sixth aspect, there is an effect that an image recorded on a film can be expressed with an optimum contrast.

【0084】請求項8の発明に係る画像処理プログラム
を記録した記録媒体は、以上のように、デジタル画像の
画像データに基づいて出力すべき画像の輝度画像濃度ヒ
ストグラムを作成する第1の処理と、上記輝度画像濃度
ヒストグラムにおける輝度値の出力レンジを求める第2
の処理と、上記出力レンジが所望の範囲に満たない場合
に、上記出力レンジが所望の範囲以上となるように輝度
画像濃度ヒストグラムを伸張できるような補正値を算出
する第3の処理と、上記補正値を用いて元の画像データ
を補正する第4の処理とをコンピュータに実行させるた
めの画像処理プログラムを記録してなる構成である。
The recording medium storing the image processing program according to the eighth aspect of the present invention provides a first processing for creating a luminance image density histogram of an image to be output based on image data of a digital image, as described above. A second step of obtaining an output range of a luminance value in the luminance image density histogram;
And a third process of calculating a correction value that can expand the luminance image density histogram so that the output range is equal to or greater than the desired range when the output range is less than the desired range. An image processing program for causing a computer to execute a fourth process of correcting the original image data using the correction value is recorded.

【0085】それゆえ、たとえ露光過多や露光不足の写
真フィルムに狭い輝度範囲で画像が記録されていても、
この画像を上記の補正によって広い輝度範囲で出力する
ことが可能となる。したがって、露光過多や露光不足の
写真フィルムからでも、高コントラストの画像を容易に
かつ確実に得ることができ、露光過多や露光不足のフィ
ルムに記録された画像を鮮やかに再現することができる
という効果を奏する。
Therefore, even if an image is recorded in a narrow luminance range on an overexposed or underexposed photographic film,
This image can be output in a wide luminance range by the above correction. Therefore, high-contrast images can be easily and reliably obtained even from overexposed and underexposed photographic films, and the effect of vivid reproduction of images recorded on overexposed and underexposed films can be obtained. To play.

【0086】請求項9の発明に係る画像処理プログラム
を記録した記録媒体は、以上のように、請求項8の構成
において、上記第2の処理は、輝度画像濃度ヒストグラ
ムにおける輝度値の最小値と最大値とに基づいて輝度値
の出力レンジを求める処理であり、上記第3の処理は、
検出した輝度値の最小値が上記所望の範囲の最小値とな
るように輝度画像濃度ヒストグラムを伸張できるような
補正値を算出する処理である構成である。
According to a ninth aspect of the present invention, in the recording medium storing the image processing program according to the eighth aspect of the present invention, the second processing comprises the steps of: The third process is a process for obtaining an output range of a luminance value based on the maximum value.
The configuration is a process of calculating a correction value that can expand the luminance image density histogram so that the detected minimum value of the luminance value becomes the minimum value of the desired range.

【0087】それゆえ、輝度値の最小値が所望の範囲の
最小値となるようにヒストグラムが伸張されるので、画
像中の最も暗い部分は本来の黒で表現されることとな
り、画像に黒の締まりを確実に持たせることが可能とな
る。したがって、請求項8の構成による効果に加えて、
めりはりのある画像を確実に得ることができ、高コント
ラスト画像をより一層確実に実現することができるとい
う効果を奏する。
Therefore, since the histogram is expanded so that the minimum value of the luminance value becomes the minimum value of the desired range, the darkest part in the image is represented by the original black, and the black It is possible to ensure tightness. Therefore, in addition to the effect of the structure of claim 8,
This has the effect that a sharp image can be reliably obtained, and a high-contrast image can be realized more reliably.

【0088】請求項10の発明に係る画像処理プログラ
ムを記録した記録媒体は、以上のように、請求項8また
は9の構成において、上記第3の処理は、輝度値に応じ
て輝度画像濃度ヒストグラムの伸張度合いが異なるよう
な補正値を算出する処理である構成である。
According to a tenth aspect of the present invention, as described above, in the recording medium according to the eighth or ninth aspect, the third processing is performed by a luminance image density histogram according to a luminance value. This is a configuration for calculating a correction value such that the degree of expansion is different.

【0089】それゆえ、ヒストグラムの低輝度側や高輝
度側への偏り具合に応じたコントラスト補正や、ヒスト
グラムの形状に応じたコントラスト補正など、コントラ
スト補正における様々な対応が可能となり、請求項8ま
たは9の構成による効果に加えて、フィルムに記録され
た画像を最適なコントラストで表現することができると
いう効果を奏する。
Therefore, various countermeasures in contrast correction, such as contrast correction according to the degree of bias of the histogram toward the low luminance side and high luminance side, and contrast correction according to the shape of the histogram, can be made. In addition to the effect of the configuration of 9, the image recorded on the film can be expressed with optimal contrast.

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

【図1】本発明に係る画像処理装置および上記画像処理
装置を含むデジタル露光システムの概略の構成を示すブ
ロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an image processing apparatus according to the present invention and a digital exposure system including the image processing apparatus.

【図2】(a)は、フィルムスキャナにて読み取った画
像データに基づいて作成したヒストグラムを示す説明図
である。(b)は、上記画像データに入力ガンマを掛け
たと仮定した場合のヒストグラムを示す説明図である。
(c)は、上記ヒストグラムを伸張したときに、ヒスト
グラムの長さが所望の範囲と対応する長さとなる当該ヒ
ストグラムを示す説明図である。
FIG. 2A is an explanatory diagram showing a histogram created based on image data read by a film scanner. (B) is an explanatory diagram showing a histogram when it is assumed that the image data is multiplied by an input gamma.
FIG. 4C is an explanatory diagram showing the histogram in which the length of the histogram becomes a length corresponding to a desired range when the histogram is expanded.

【図3】上記画像処理装置における動作の流れを示すフ
ローチャートである。
FIG. 3 is a flowchart illustrating a flow of an operation in the image processing apparatus.

【図4】(a)は、フィルムスキャナにて読み取った画
像データに基づいて作成したヒストグラムが低輝度側に
偏っている場合の、当該ヒストグラムを示す説明図であ
る。(b)は、上記ヒストグラムを伸張したときに、ヒ
ストグラムの長さが所望の範囲と対応する長さとなる当
該ヒストグラムを示す説明図である。
FIG. 4A is an explanatory diagram showing a histogram created based on image data read by a film scanner when the histogram is biased toward a low luminance side. (B) is an explanatory view showing the histogram in which the length of the histogram becomes a length corresponding to a desired range when the histogram is expanded.

【図5】(a)は、フィルムスキャナにて読み取った画
像データに基づいて作成したヒストグラムが高輝度側に
偏っている場合の、当該ヒストグラムを示す説明図であ
る。(b)は、上記ヒストグラムを伸張したときに、ヒ
ストグラムの長さが所望の範囲と対応する長さとなる当
該ヒストグラムを示す説明図である。(c)は、上記ヒ
ストグラムをLow側とHigh側とに分け、それぞれ
対応する画像データを別々の補正ガンマで補正したとき
の画像のヒストグラムを示す説明図である。
FIG. 5A is an explanatory diagram showing a histogram created based on image data read by a film scanner when the histogram is biased toward a high luminance side. (B) is an explanatory view showing the histogram in which the length of the histogram becomes a length corresponding to a desired range when the histogram is expanded. FIG. 3C is an explanatory diagram showing a histogram of an image when the histogram is divided into a low side and a high side, and the corresponding image data is corrected by different correction gammas.

【図6】フィルム露光量とフィルム濃度との関係を示す
グラフである。
FIG. 6 is a graph showing the relationship between film exposure and film density.

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

2 画像処理装置 4 ヒストグラム作成部(ヒストグラム作成手段) 5 出力レンジ検出部(出力レンジ検出手段) 6 補正値算出部(補正値算出手段) 7 補正部(補正手段) 2 Image processing device 4 Histogram creation unit (histogram creation unit) 5 Output range detection unit (output range detection unit) 6 Correction value calculation unit (correction value calculation unit) 7 Correction unit (correction unit)

───────────────────────────────────────────────────── フロントページの続き (72)発明者 内田 稔 大阪府吹田市江の木町11番30号 株式会社 東洋情報システム内 Fターム(参考) 5B057 AA20 BA02 CA01 CA08 CA12 CA16 CB08 CB12 CB16 CE11 CH18 DC23 5C022 AB17 AB33 AC42 5C072 AA01 BA19 RA20 UA17 UA20 VA03 XA01 XA10 5C077 MP08 NN03 NP01 PP15 PP32 PP43 PQ08 PQ19 PQ22 TT06 TT10  ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Minoru Uchida 11-30 Enomachi, Suita-shi, Osaka F-term in Toyo Information System Co., Ltd. (Reference) 5B057 AA20 BA02 CA01 CA08 CA12 CA16 CB08 CB12 CB16 CE11 CH18 DC23 5C022 AB17 AB33 AC42 5C072 AA01 BA19 RA20 UA17 UA20 VA03 XA01 XA10 5C077 MP08 NN03 NP01 PP15 PP32 PP43 PQ08 PQ19 PQ22 TT06 TT10

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】デジタル画像の画像データに基づいて出力
すべき画像の輝度画像濃度ヒストグラムを作成するヒス
トグラム作成手段と、 上記輝度画像濃度ヒストグラムにおける輝度値の出力レ
ンジを求める出力レンジ検出手段と、 上記出力レンジが所望の範囲に満たない場合に、上記出
力レンジが所望の範囲以上となるように輝度画像濃度ヒ
ストグラムを伸張できるような補正値を算出する補正値
算出手段と、 上記補正値を用いて元の画像データを補正する補正手段
とを備えていることを特徴とする画像処理装置。
1. A histogram creating means for creating a brightness image density histogram of an image to be output based on image data of a digital image; an output range detecting means for obtaining an output range of a brightness value in the brightness image density histogram; When the output range is less than the desired range, a correction value calculating unit that calculates a correction value that can expand the luminance image density histogram so that the output range is equal to or more than the desired range; and An image processing apparatus comprising: a correction unit configured to correct original image data.
【請求項2】上記出力レンジ検出手段は、輝度画像濃度
ヒストグラムにおける輝度値の最小値と最大値とに基づ
いて輝度値の出力レンジを求めるものであり、 上記補正値算出手段は、検出した輝度値の最小値が上記
所望の範囲の最小値となるように輝度画像濃度ヒストグ
ラムを伸張できるような補正値を算出することを特徴と
する請求項1に記載の画像処理装置。
2. An output range detecting means for obtaining an output range of a luminance value based on a minimum value and a maximum value of a luminance value in a luminance image density histogram. 2. The image processing apparatus according to claim 1, wherein a correction value is calculated such that the luminance image density histogram can be expanded so that the minimum value is the minimum value in the desired range.
【請求項3】上記補正値算出手段は、輝度値に応じて輝
度画像濃度ヒストグラムの伸張度合いが異なるような補
正値を算出することを特徴とする請求項1または2に記
載の画像処理装置。
3. The image processing apparatus according to claim 1, wherein said correction value calculating means calculates a correction value such that the degree of expansion of the luminance image density histogram varies according to the luminance value.
【請求項4】輝度画像濃度ヒストグラムの伸張度合いは
変更可能であることを特徴とする請求項1ないし3のい
ずれかに記載の画像処理装置。
4. The image processing apparatus according to claim 1, wherein the degree of expansion of the luminance image density histogram can be changed.
【請求項5】デジタル画像の画像データに基づいて出力
すべき画像の輝度画像濃度ヒストグラムを作成する第1
の工程と、 上記輝度画像濃度ヒストグラムにおける輝度値の出力レ
ンジを求める第2の工程と、 上記出力レンジが所望の範囲に満たない場合に、上記出
力レンジが所望の範囲以上となるように輝度画像濃度ヒ
ストグラムを伸張できるような補正値を算出する第3の
工程と、 上記補正値を用いて元の画像データを補正する第4の工
程とからなることを特徴とする画像処理方法。
5. A first method for creating a luminance image density histogram of an image to be output based on image data of a digital image.
And a second step of obtaining an output range of a luminance value in the luminance image density histogram. If the output range is less than a desired range, the luminance image is adjusted so that the output range is equal to or more than a desired range. An image processing method, comprising: a third step of calculating a correction value capable of expanding a density histogram; and a fourth step of correcting original image data using the correction value.
【請求項6】上記第2の工程は、輝度画像濃度ヒストグ
ラムにおける輝度値の最小値と最大値とに基づいて輝度
値の出力レンジを求める工程であり、 上記第3の工程は、検出した輝度値の最小値が上記所望
の範囲の最小値となるように輝度画像濃度ヒストグラム
を伸張できるような補正値を算出する工程であることを
特徴とする請求項5に記載の画像処理方法。
6. The second step is a step of obtaining an output range of the luminance value based on the minimum value and the maximum value of the luminance value in the luminance image density histogram. 6. The image processing method according to claim 5, further comprising the step of calculating a correction value capable of expanding the luminance image density histogram so that the minimum value is the minimum value in the desired range.
【請求項7】上記第3の工程は、輝度値に応じて輝度画
像濃度ヒストグラムの伸張度合いが異なるような補正値
を算出する工程であることを特徴とする請求項5または
6に記載の画像処理方法。
7. The image according to claim 5, wherein the third step is a step of calculating a correction value such that the degree of expansion of the luminance image density histogram is different according to the luminance value. Processing method.
【請求項8】デジタル画像の画像データに基づいて出力
すべき画像の輝度画像濃度ヒストグラムを作成する第1
の処理と、 上記輝度画像濃度ヒストグラムにおける輝度値の出力レ
ンジを求める第2の処理と、 上記出力レンジが所望の範囲に満たない場合に、上記出
力レンジが所望の範囲以上となるように輝度画像濃度ヒ
ストグラムを伸張できるような補正値を算出する第3の
処理と、 上記補正値を用いて元の画像データを補正する第4の処
理とをコンピュータに実行させるための画像処理プログ
ラムを記録した記録媒体。
8. A first method for creating a luminance image density histogram of an image to be output based on image data of a digital image.
And a second process for obtaining an output range of the brightness value in the brightness image density histogram; and a process for setting the brightness image so that the output range is equal to or more than a desired range when the output range is less than a desired range. A recording in which an image processing program for causing a computer to execute a third process of calculating a correction value capable of expanding a density histogram and a fourth process of correcting original image data using the correction value is recorded. Medium.
【請求項9】上記第2の処理は、輝度画像濃度ヒストグ
ラムにおける輝度値の最小値と最大値とに基づいて輝度
値の出力レンジを求める処理であり、 上記第3の処理は、検出した輝度値の最小値が上記所望
の範囲の最小値となるように輝度画像濃度ヒストグラム
を伸張できるような補正値を算出する処理であることを
特徴とする請求項8に記載の画像処理プログラムを記録
した記録媒体。
9. The second process is a process for obtaining an output range of a luminance value based on a minimum value and a maximum value of a luminance value in a luminance image density histogram. 9. The image processing program according to claim 8, wherein the correction value is a process of calculating a correction value that can expand the luminance image density histogram so that the minimum value is the minimum value in the desired range. recoding media.
【請求項10】上記第3の処理は、輝度値に応じて輝度
画像濃度ヒストグラムの伸張度合いが異なるような補正
値を算出する処理であることを特徴とする請求項8また
は9に記載の画像処理プログラムを記録した記録媒体。
10. The image according to claim 8, wherein the third processing is processing for calculating a correction value such that the degree of expansion of the luminance image density histogram is different according to the luminance value. A recording medium on which a processing program is recorded.
JP11084360A 1999-03-26 1999-03-26 Image processor, image processing method and recording medium recorded with image processing program Withdrawn JP2000278530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11084360A JP2000278530A (en) 1999-03-26 1999-03-26 Image processor, image processing method and recording medium recorded with image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11084360A JP2000278530A (en) 1999-03-26 1999-03-26 Image processor, image processing method and recording medium recorded with image processing program

Publications (1)

Publication Number Publication Date
JP2000278530A true JP2000278530A (en) 2000-10-06

Family

ID=13828366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11084360A Withdrawn JP2000278530A (en) 1999-03-26 1999-03-26 Image processor, image processing method and recording medium recorded with image processing program

Country Status (1)

Country Link
JP (1) JP2000278530A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030087692A (en) * 2002-05-09 2003-11-15 엘지전자 주식회사 Method For Enlarging Dynamic Range Of Plasma Display Panel And Apparatus Of Driving Using Thereof
JP2004355566A (en) * 2003-05-30 2004-12-16 Casio Comput Co Ltd Image-processing device, image data correction program and fingerprint collation device
KR100480166B1 (en) * 2002-05-11 2005-04-06 엘지전자 주식회사 Apparatus And Method For Compensating Color Of Plasma Display Panel Using An Enlarging Method Of Dynamic Range
KR100480165B1 (en) * 2002-05-11 2005-04-06 엘지전자 주식회사 Apparatus And Method For Driving Plasma Display Panel Using An Enlarging Method Of Dynamic Range
KR100480177B1 (en) * 2002-08-29 2005-04-06 엘지전자 주식회사 Apparatus And Method For Driving Plasma Display Panel Using An Enlarging Method Of Dynamic Range
WO2005057541A1 (en) * 2003-12-10 2005-06-23 Lg Electronics Inc. Method and apparatus for driving plasma display panel using an enlarging of dynamic range
US7142712B2 (en) 2001-06-14 2006-11-28 Matsushita Electric Industrial Co., Ltd Automatic tone correction apparatus, automatic tone correction method, and automatic tone correction program storage mediums
JP2008060838A (en) * 2006-08-30 2008-03-13 Ricoh Co Ltd Image signal processor, image forming apparatus, image signal processing method, program and recording medium
JP2015125583A (en) * 2013-12-26 2015-07-06 キヤノン株式会社 Image processor and imaging device
KR101766168B1 (en) 2013-10-18 2017-08-07 가부시키가이샤 리코 Image processing apparatus, image processing system, image processing method, and recording medium
JP2017143321A (en) * 2016-02-08 2017-08-17 Necプラットフォームズ株式会社 Image data converter, image data conversion method, image data conversion program, pos terminal, and server
US10009588B2 (en) 2013-12-26 2018-06-26 Canon Kabushiki Kaisha Image processing apparatus and imaging apparatus

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7142712B2 (en) 2001-06-14 2006-11-28 Matsushita Electric Industrial Co., Ltd Automatic tone correction apparatus, automatic tone correction method, and automatic tone correction program storage mediums
KR20030087692A (en) * 2002-05-09 2003-11-15 엘지전자 주식회사 Method For Enlarging Dynamic Range Of Plasma Display Panel And Apparatus Of Driving Using Thereof
KR100480165B1 (en) * 2002-05-11 2005-04-06 엘지전자 주식회사 Apparatus And Method For Driving Plasma Display Panel Using An Enlarging Method Of Dynamic Range
KR100480166B1 (en) * 2002-05-11 2005-04-06 엘지전자 주식회사 Apparatus And Method For Compensating Color Of Plasma Display Panel Using An Enlarging Method Of Dynamic Range
KR100480177B1 (en) * 2002-08-29 2005-04-06 엘지전자 주식회사 Apparatus And Method For Driving Plasma Display Panel Using An Enlarging Method Of Dynamic Range
JP2004355566A (en) * 2003-05-30 2004-12-16 Casio Comput Co Ltd Image-processing device, image data correction program and fingerprint collation device
WO2005057541A1 (en) * 2003-12-10 2005-06-23 Lg Electronics Inc. Method and apparatus for driving plasma display panel using an enlarging of dynamic range
JP2008060838A (en) * 2006-08-30 2008-03-13 Ricoh Co Ltd Image signal processor, image forming apparatus, image signal processing method, program and recording medium
KR101766168B1 (en) 2013-10-18 2017-08-07 가부시키가이샤 리코 Image processing apparatus, image processing system, image processing method, and recording medium
JP2015125583A (en) * 2013-12-26 2015-07-06 キヤノン株式会社 Image processor and imaging device
US10009588B2 (en) 2013-12-26 2018-06-26 Canon Kabushiki Kaisha Image processing apparatus and imaging apparatus
JP2017143321A (en) * 2016-02-08 2017-08-17 Necプラットフォームズ株式会社 Image data converter, image data conversion method, image data conversion program, pos terminal, and server
WO2017138055A1 (en) * 2016-02-08 2017-08-17 Necプラットフォームズ株式会社 Image data conversion apparatus, image data conversion method, image data conversion program, computer, pos terminal apparatus, and server
CN108476271A (en) * 2016-02-08 2018-08-31 Nec平台株式会社 Image data conversion equipment, image data conversion method, image data conversion program, computer, POS terminal equipment and server
US10523842B2 (en) 2016-02-08 2019-12-31 Nec Platforms, Ltd. Image data conversion device, image data conversion method, image data conversion program, computer, POS terminal device, and server

Similar Documents

Publication Publication Date Title
US5278641A (en) Brightness referenced color image correcting apparatus
JP3725454B2 (en) Output image adjustment for image files
US6674544B2 (en) Image processing method and apparatus
JP2001298619A (en) Method and device for image processing
JP2000278530A (en) Image processor, image processing method and recording medium recorded with image processing program
JP2002125130A (en) Image processing unit, image processing method, and recording medium for recording image processing program
JP3581270B2 (en) Image processing apparatus, image processing method, and recording medium recording image processing program
US20040184672A1 (en) Image processing method and apparatus for correcting photographic images
JP2000067215A (en) Image processing method
JPH11191871A (en) Image processor
JP2001358957A (en) Image processing method and image processing unit and recording medium
JP2003134354A (en) Image processing apparatus and method therefor
JPH11249241A (en) Image processing method and image processing device
US7292379B2 (en) Image reader and image reading method
JP2003283849A (en) Method for detecting and correcting red eye
JP3794367B2 (en) Image processing method, image processing apparatus, photo processing apparatus, image processing program, and recording medium recording the image processing program
JP5045808B2 (en) Output image adjustment for image files
JPH09102873A (en) Judgement method for exposure state of photograph
JP2004112756A (en) Output image adjustment of image file
US6037109A (en) Device and method for reproducing originals onto light-sensitive material
JP2004082703A (en) Method of adjusting output image in image file
JP3823883B2 (en) Image processing apparatus, image processing method, image processing program, recording medium recording image processing program, and photo printing apparatus
JPH1013680A (en) Image processing method and image processor
JP3999157B2 (en) Output image adjustment for image files
JP3823864B2 (en) Image processing apparatus, image processing method, program, and recording medium

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: 20060606