JP2007074373A - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP2007074373A JP2007074373A JP2005259287A JP2005259287A JP2007074373A JP 2007074373 A JP2007074373 A JP 2007074373A JP 2005259287 A JP2005259287 A JP 2005259287A JP 2005259287 A JP2005259287 A JP 2005259287A JP 2007074373 A JP2007074373 A JP 2007074373A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- image
- input image
- compression
- density
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 148
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 230000006835 compression Effects 0.000 claims abstract description 97
- 238000007906 compression Methods 0.000 claims abstract description 97
- 238000012937 correction Methods 0.000 claims abstract description 72
- 239000003086 colorant Substances 0.000 claims abstract description 43
- 238000010191 image analysis Methods 0.000 claims description 33
- 238000000034 method Methods 0.000 claims description 13
- 239000000284 extract Substances 0.000 claims description 4
- 238000006243 chemical reaction Methods 0.000 description 45
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 7
- 238000009825 accumulation Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 229920006395 saturated elastomer Polymers 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000009792 diffusion process Methods 0.000 description 2
- 238000001454 recorded image Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000003705 background correction Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000001739 density measurement Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000002844 melting Methods 0.000 description 1
- 230000008018 melting Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000011347 resin Substances 0.000 description 1
- 229920005989 resin Polymers 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 229910052709 silver Inorganic materials 0.000 description 1
- 239000004332 silver Substances 0.000 description 1
- -1 silver halide Chemical class 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Facsimiles In General (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
本発明は、フィルムに記録された画像などを適正な写真プリントなどに仕上げるための画像処理装置、および画像処理方法に関し、特に、フィルムに記録された画像の濃度域に関わらず、色再現性が優れた高画質の仕上りプリントなどの画像を得ることができる画像処理装置、および画像処理方法に関するものである。 The present invention relates to an image processing apparatus and an image processing method for finishing an image or the like recorded on a film into an appropriate photographic print or the like, and in particular, color reproducibility regardless of the density range of an image recorded on a film. The present invention relates to an image processing apparatus and an image processing method capable of obtaining an image such as an excellent high-quality finished print.
従来、フィルムのような撮影輝度のダイナミックレンジが広いメディアから限られた再現濃度範囲のペーパ(印画紙)にプリントし、写真プリントを得る場合、フィルムに記録された画像を写真プリントなどに適正に仕上げるために種々の画像処理が行われている(特許文献1等参照)。 Conventionally, when printing on paper (printing paper) with a limited reproduction density range from media with a wide dynamic range of shooting brightness such as film, the image recorded on the film is appropriate for photographic printing etc. Various image processing is performed for finishing (see Patent Document 1 and the like).
例えば、フィルム画像を適正な写真プリントなどに仕上げるために、ハイパートーン処理と呼ばれる画像処理方法が用いられている。
ハイパートーン処理は、入力画像データを低周波成分と高周波成分とに分離して、低周波成分に対して階調の伸張を行い、この階調が伸張された画像データに、さらに入力画像データを足すことにより、画像のメリハリ感を損なわずに階調を伸張することができる画像処理である。ハイパートーン処理は、特にフィルムのような撮影輝度のダイナミックレンジが広いメディアから限られた再現濃度範囲のペーパ(印画紙)にプリントする際、ハイライトおよびシャドーの損失を低減することが可能である。
For example, an image processing method called hypertone processing is used to finish a film image into an appropriate photographic print.
Hypertone processing separates input image data into low-frequency components and high-frequency components, performs gradation expansion on the low-frequency components, and further adds input image data to the image data with the expanded gradation. By adding the image processing, the gradation can be extended without impairing the sharpness of the image. Hypertone processing can reduce loss of highlights and shadows, especially when printing on media with a wide dynamic range of shooting brightness, such as film, on paper (printing paper) with a limited reproduction density range. .
図6(a)は、従来のハイパートーン処理をする画像処理装置を示すブロック図であり、(b)は、図6(a)の従来の画像処理装置におけるルックアップテーブル(LUT)の変換テーブルを示すグラフである。
図6(a)に示すように、従来のハイパートーン処理する画像処理装置110は、明暗信号生成部112と、ボケ画像生成部114と、ルックアップテーブル(以下、LUTという)116と、画像解析部117と、加算器118とを有する。また、入力画像データは、被写体の画像が記録されたフィルムをスキャナで読み取って得られたものであり、プレスキャンデータは、入力画像データよりも低い解像度で読み取って得られたデータである。
6A is a block diagram showing a conventional image processing apparatus that performs hypertone processing, and FIG. 6B is a conversion table of a lookup table (LUT) in the conventional image processing apparatus of FIG. 6A. It is a graph which shows.
As shown in FIG. 6A, a conventional
明暗信号生成部112は、入力画像データ(SR、SG、SB)のR、G、Bの各色の画像データから、二値の明暗画像データ(Y)を作成するものである。明暗画像データ(Y)は、例えば、R、G、Bの各色の画像データ(SR、SG、SB)の平均値の3分の1を取ることにより作成される。すなわち、明暗画像データは、Y=(SR+SG+SB)/3により作成される。
The light / dark
ボケ画像生成部114は、明暗信号生成部112により作成された明暗画像データの低周波成分(Y_b)(以下、ボケ画像データ(Y_b)という)を得るものである。
The blurred
LUT116は、ボケ画像生成部114により得られたボケ画像データ(Y_b)に画像処理を行って、入力画像データのダイナミックレンジを圧縮するための圧縮処理用画像データを作成するものである。このLUT116は、例えば、図6(b)に示すように、傾きが一定の直線120で表わされる変換テーブルが設定されている。このLUT116により、画像の明部の濃度が加算され、画像の暗部の濃度が減算される。また、主要被写体等の画像の中心濃度は変わらない。
The
画像解析部117は、プレスキャンデータについて画像解析を行い、LUY116の変換テーブルをシーンに応じて設定するものである。
The
加算器118は、入力画像データ(SR、SG、SB)と、明暗信号生成部112、ボケ画像生成部114およびLUT116により処理されたボケ画像データ(Y_b)とを加算するものである。これにより、主たる画像データのダイナミックレンジが圧縮された出力画像データ(OR、OG、OB)が作成される。
ここで、出力画像データ(OR、OG、OB)と、入力画像データ(SR、SG、SB)との関係は、下記数式(1)〜(3)のように表わすことができる。下記数式(1)〜(3)において、LUT(Y_b)は、ボケ画像データが変換テーブルに入力されたことを示す。
The
Here, the relationship between the output image data (O R , O G , O B ) and the input image data (S R , S G , S B ) is expressed as the following mathematical formulas (1) to (3). Can do. In the following mathematical formulas (1) to (3), LUT (Y_b) indicates that blurred image data has been input to the conversion table.
OR=SR+LUT(Y_b) ・・・数式(1) O R = S R + LUT ( Y_b) ··· Equation (1)
OG=SG+LUT(Y_b) ・・・数式(2) O G = S G + LUT (Y_b) (2)
OB=SB+LUT(Y_b) ・・・数式(3) O B = S B + LUT (Y_b) (3)
従来のハイパートーン処理においては、入力画像データと、明暗信号生成部112、ボケ画像生成部114、およびLUT116により入力画像データが処理されて得られたボケ画像データとを加算することにより、入力画像データのダイナミックレンジを非線形に圧縮して、図7に示すように、高濃度側の中高周波成分132aおよび低濃度側の中高周波成分134aを有する入力画像データ130aについて、プリント再現域まで高濃度側の中高周波成分132bおよび低濃度側の中高周波成分134bが維持された出力画像データ130bを得ることができる。このように、出力画像データ130bのダイナミックレンジ、ならびに明部と暗部との階調および濃度を適正なものとしている。よって、高画質な画像が再現された写真プリントが得られる。
また、従来のハイパートーン処理においては、上記数式(1)〜(3)に示すように、R、G、B各色は、同じ量だけ変化し、色相が変化せず、違和感がない処理をすることができる。
In the conventional hypertone processing, the input image data is added to the blurred image data obtained by processing the input image data by the light / dark
Further, in the conventional hypertone processing, as shown in the above formulas (1) to (3), the R, G, and B colors are changed by the same amount, the hue does not change, and the processing without feeling uncomfortable is performed. be able to.
このようなハイパートーン処理を用いた画像処理装置が他にも提案されている(特許文献1参照)。
特許文献1には、カラー画像を表すデジタル画像信号を可視像として再生する画像再生方法が開示されている。この特許文献1の画像再生方法においては、デジタル画像信号を明暗信号に変換し、この明暗信号に基づいてカラー画像のボケ画像を表すボケ画像信号を作成する。そして、デジタル画像信号、およびボケ画像信号に対して相対応する画素についての信号間で減算を行って差信号を得る。この差信号に対して所定の画像処理を施して処理済画像信号を得る。この処理済画像信号を用いることにより、画像全体のコントラストは、弱められているものの、高周波成分により表わされる局所的なコントラストは、原画像であるカラー画像と同様な写真プリントを作製することができる。
Other image processing apparatuses using such hypertone processing have been proposed (see Patent Document 1).
Patent Document 1 discloses an image reproduction method for reproducing a digital image signal representing a color image as a visible image. In the image reproduction method of Patent Document 1, a digital image signal is converted into a light / dark signal, and a blurred image signal representing a blurred image of a color image is created based on the light / dark signal. Then, a difference signal is obtained by performing subtraction between the signals for the pixels corresponding to the digital image signal and the blurred image signal. The difference signal is subjected to predetermined image processing to obtain a processed image signal. By using this processed image signal, the contrast of the entire image is weakened, but the local contrast represented by the high-frequency component can produce a photographic print similar to the color image that is the original image. .
このように、従来、画像信号の持つ濃度範囲が印画紙などの再現媒体の再現可能範囲より広い場合、低周波成分のみを抽出して圧縮することによって、中高周波成分を維持しながら全体を圧縮して再現することが可能である。 In this way, conventionally, when the density range of the image signal is wider than the reproducible range of reproduction media such as photographic paper, only the low frequency component is extracted and compressed, so that the whole is compressed while maintaining the middle high frequency component And can be reproduced.
しかしながら、ネガフィルムに記録された画像を光電的に読み取った画像信号について処理を行う場合、図8に示すように、ネガフィルムにおける露光量(なお、露光量は対数で示している)と濃度との関係を示す赤(R)の特性曲線140、G(緑)の特性曲線142、およびB(青)の特性曲線144において、特性曲線140、142、144の足部αおよび肩部βでは、R、G、Bの色バランスが崩れている。このため、ネガフィルムに記録された画像の記録濃度域が広くフィルムの足部αおよび肩部βに及ぶ場合には、R、G、Bの色バランスが崩れて記録されることになる。このように、色バランスが崩れて記録された画像を、印画紙の再現域まで圧縮すると、フィルムに記録された被写体(記録画像)が本来の色とは、異なった色で再現されてしまう虞がある。すなわち、カラーフェリアが発生する虞がある。現状では、このような色再現性を考慮したものはない。
However, when processing an image signal obtained by photoelectrically reading an image recorded on a negative film, as shown in FIG. 8, the exposure amount (the exposure amount is shown in logarithm) and density in the negative film In the red (R)
本発明の目的は、前記従来技術に基づく問題点を解消し、記録された画像が、フィルムの特性曲線上の足部および肩部の領域の濃度を有するものであっても、色再現性が優れた高画質の仕上りプリントなどの画像を得ることができる画像処理装置、および画像処理方法を提供することにある。 The object of the present invention is to solve the problems based on the prior art, and even if the recorded image has the density of the foot and shoulder areas on the characteristic curve of the film, the color reproducibility is high. An object of the present invention is to provide an image processing apparatus and an image processing method capable of obtaining an image such as an excellent high-quality finished print.
上記目的を達成するために、本発明の第1の態様は、フィルムに記録された画像が光電的に少なくとも赤、緑、青の3原色で読み取られて得られた入力画像データに所定の画像処理を施し、出力用の出力画像データとする画像処理装置であって、前記入力画像データのダイナミックレンジの圧縮処理を行う処理手段を有し、前記処理手段は、前記入力画像データのダイナミックレンジの圧縮条件を設定する設定部を有するものであり、前記設定部は、フィルムの種類ごとにフィルムの前記3原色の特性曲線が記録されたフィルムデータベース、および前記フィルムデータベースを参照して、前記画像が記録されたフィルムの3原色の特性曲線を得、前記フィルムの前記3原色の特性曲線と、前記入力画像データの各画素の3原色の各色の濃度とを比較し、前記入力画像データのうち、画素の3原色の各色の濃度が前記特性曲線の足部または肩部にあるものについては、それぞれ前記特性曲線に基づいてカラーバランスが適正になるように各色の濃度の補正量を設定し、前記補正量を用いて前記ダイナミックレンジの圧縮条件を設定する画像解析部を備えるものであり、前記画像解析部は、画素の3原色の各色の濃度が前記特性曲線の足部または肩部ではないものについては、補正量を設定することなく、前記ダイナミックレンジの圧縮条件を設定することを特徴とする画像処理装置を提供するものである。 To achieve the above object, according to a first aspect of the present invention, there is provided a predetermined image as input image data obtained by photoelectrically reading an image recorded on a film with at least three primary colors of red, green, and blue. An image processing apparatus that performs processing to obtain output image data for output, and includes processing means for performing compression processing of a dynamic range of the input image data, and the processing means has a dynamic range of the input image data. A setting unit for setting compression conditions; the setting unit refers to a film database in which the characteristic curves of the three primary colors of the film are recorded for each type of film, and the film database. A characteristic curve of the three primary colors of the recorded film is obtained, and the characteristic curve of the three primary colors of the film and the density of each of the three primary colors of each pixel of the input image data In the input image data, the density of each of the three primary colors of the pixels is at the foot or shoulder of the characteristic curve so that the color balance is appropriate based on the characteristic curve. An image analysis unit that sets a correction amount of the density of each color and sets the compression condition of the dynamic range using the correction amount, and the image analysis unit has a density of each of the three primary colors of the pixel as described above. An object of the present invention is to provide an image processing apparatus characterized in that the compression condition of the dynamic range is set without setting a correction amount for a characteristic curve that is not a foot or a shoulder.
本発明においては、前記処理手段は、前記入力画像データの明暗画像データを作成する作成手段と、前記明暗画像データの低周波成分を抽出する抽出手段と、前記設定部により設定された圧縮条件に基づく圧縮量で前記入力画像データを圧縮するための圧縮処理用画像データを、前記低周波成分と前記補正量とに基づいて作成する圧縮処理用画像データ作成手段と、前記圧縮処理用画像データと前記入力画像データとを加算する加算器とを備えることが好ましい。 In the present invention, the processing means is a creation means for creating bright and dark image data of the input image data, an extraction means for extracting a low frequency component of the bright and dark image data, and a compression condition set by the setting unit. Compression processing image data creating means for creating compression processing image data for compressing the input image data with a compression amount based on the low frequency component and the correction amount; and the compression processing image data; An adder for adding the input image data is preferably provided.
また、本発明においては、前記処理手段は、前記入力画像データの明暗画像データを前記入力画像データと前記補正量とに基づいて作成する作成手段と、前記明暗画像データの低周波成分を抽出する抽出手段と、前記設定部により設定された圧縮条件に基づく圧縮量で前記入力画像データを圧縮するための圧縮処理用画像データを、前記低周波成分から作成する圧縮処理用画像データ作成手段と、前記圧縮処理用画像データと前記入力画像データとを加算する加算器とを備えることが好ましい。 Further, in the present invention, the processing means extracts a low-frequency component of the light / dark image data, creating means for creating light / dark image data of the input image data based on the input image data and the correction amount. Extraction processing; and compression processing image data creation means for creating compression processing image data for compressing the input image data with a compression amount based on the compression condition set by the setting unit, from the low frequency component; It is preferable that an adder that adds the image data for compression processing and the input image data is provided.
また、本発明の第2の態様は、フィルムに記録された画像が光電的に少なくとも赤、緑、青の3原色で読み取られて得られた入力画像データに所定の画像処理を施し、出力用の出力画像データとする画像処理方法であって、前記入力画像データの各画素の濃度を特定する工程と、前記画像が記録されたフィルムの種類を特定し、特定されたフィルムの前記3原色の特性曲線と、前記入力画像データの各画素の3原色の各色の濃度とを比較し、画素の3原色の各色の濃度が前記特性曲線の足部または肩部にあるものについては、それぞれ前記特性曲線に基づいてカラーバランスが適正になるように各色の濃度の補正量を設定する工程と、濃度が前記特性曲線の足部または肩部にあるものについては、前記補正量の情報を用いて、前記入力画像データのダイナミックレンジの圧縮条件を設定し、画素の3原色の各色の濃度が前記特性曲線の足部または肩部ではないものは、補正量を設定することなく、前記ダイナミックレンジの圧縮条件を設定する工程と、前記設定されたダイナミックレンジの圧縮条件に応じて、前記入力画像データのダイナミックレンジの圧縮処理を行う工程とを有することを特徴とする画像処理方法を提供するものである。 Further, the second aspect of the present invention is to perform predetermined image processing on input image data obtained by photoelectrically reading an image recorded on a film with at least three primary colors of red, green, and blue, and for output. The image processing method for generating the output image data includes: specifying a density of each pixel of the input image data; specifying a film type on which the image is recorded; and specifying the three primary colors of the specified film. The characteristic curve is compared with the density of each of the three primary colors of each pixel of the input image data, and the characteristic of each of the three primary colors of the pixel at the foot or shoulder of the characteristic curve For the step of setting the correction amount of the density of each color so that the color balance is appropriate based on the curve, and the case where the density is on the foot or shoulder of the characteristic curve, using the correction amount information, The input image data If the density of each of the three primary colors of the pixel is not the foot or shoulder of the characteristic curve, set the dynamic range compression condition without setting the correction amount. And an image processing method characterized by comprising a step of compressing the dynamic range of the input image data in accordance with the set dynamic range compression condition.
本発明においては、前記補正量を設定する工程の後工程に、前記入力画像データの明暗画像データを作成する工程と、前記明暗画像データの低周波成分を抽出する工程とを有し、前記入力画像データのダイナミックレンジの圧縮処理を行う工程は、前記ダイナミックレンジの圧縮条件に基づく圧縮量で前記入力画像データを圧縮するための圧縮処理用画像データを、前記低周波成分および前記補正量に基づいて作成し、前記圧縮処理用画像データと前記入力画像データとを加算するものであることが好ましい。 In the present invention, the step of setting the correction amount includes a step of creating bright and dark image data of the input image data and a step of extracting a low frequency component of the bright and dark image data after the step of setting the correction amount, The step of performing compression processing of the dynamic range of the image data is based on the low-frequency component and the correction amount for the compression processing image data for compressing the input image data with the compression amount based on the compression condition of the dynamic range. It is preferable that the image data for compression processing and the input image data are added.
また、本発明においては、前記補正量を設定する工程の後工程に、前記入力画像データと前記補正量とに基づいて、前記明暗画像データを作成する工程を有し、さらに、前記明暗画像データの低周波成分を抽出する工程と、前記入力画像データのダイナミックレンジの圧縮処理を行う工程は、前記ダイナミックレンジの圧縮条件に基づく圧縮量で前記入力画像データを圧縮するための圧縮処理用画像データを、前記低周波成分に基づいて作成し、前記圧縮処理用画像データと前記入力画像データとを加算する工程とを有することが好ましい。 Further, in the present invention, a step of creating the light / dark image data based on the input image data and the correction amount is provided as a subsequent step of the step of setting the correction amount, and further, the light / dark image data A step of extracting a low frequency component of the image data and a step of compressing the dynamic range of the input image data include compression processing image data for compressing the input image data with a compression amount based on a compression condition of the dynamic range. Is preferably created based on the low-frequency component and adding the compression image data and the input image data.
本発明の画像処理装置、および画像処理方法によれば、フィルムに記録された画像が光電的に少なくとも赤、緑、青の3原色で読み取られて得られた入力画像データと、画像が記録されたフィルムの3原色の特性曲線とを比較し、入力画像データのうち、画素の3原色の各色の濃度が特性曲線の足部または肩部にあるものについては、それぞれ特性曲線に基づいてカラーバランスが適正になるように各色の濃度の補正量を設定し、この補正量を用いてダイナミックレンジの圧縮条件を設定し、画素の3原色の各色の濃度が前記特性曲線の足部または肩部ではないものについては、補正量を設定することなく、ダイナミックレンジの圧縮条件を設定することにより、フィルムに記録された画像が、フィルムの特性曲線の足部および肩部の領域の濃度を有するものであっても、カラーフェリアの発生を抑制でき、色再現性が優れた高画質の仕上りプリントなどの画像を得ることができる。 According to the image processing apparatus and the image processing method of the present invention, input image data obtained by photoelectrically reading an image recorded on a film with at least three primary colors of red, green, and blue, and an image are recorded. Compared to the characteristic curves of the three primary colors of the film, the color balance of the input image data that has the density of each of the three primary colors of the pixels at the foot or shoulder of the characteristic curve is based on the characteristic curve. Set the correction amount of the density of each color so that is appropriate, and set the compression condition of the dynamic range using this correction amount, and the density of each color of the three primary colors of the pixel is at the foot or shoulder of the characteristic curve For those that do not, the dynamic range compression condition is set without setting the correction amount, so that the image recorded on the film becomes the foot and shoulder areas of the film characteristic curve. Be one having a degree can be suppressed the occurrence of color failure to obtain an image such as a high-quality finished prints color reproducibility is excellent.
以下に、添付の図面に示す好適実施例に基づいて、本発明の画像処理装置、および画像処理方法を詳細に説明する。
図1は、本発明の画像処理装置を有するプリントシステムの第1実施例を示すブロック図である。
図1に示すように、本実施例のプリントシステム10は、入力機12aと、受付機12bと、操作部13と、画像処理装置16と、プリンタ18とを有する。入力機12aおよび受付機12bと画像処理装置16とが接続されており、さらに画像処理装置16とプリンタ18とが接続されている。
The image processing apparatus and the image processing method of the present invention will be described in detail below based on preferred embodiments shown in the accompanying drawings.
FIG. 1 is a block diagram showing a first embodiment of a printing system having an image processing apparatus of the present invention.
As shown in FIG. 1, the
入力機12aは、フィルムに撮影された被写体の画像を光電的に読み取り、入力画像データをデジタル画像データとして取得するものであり、入力画像データが画像処理装置16に出力される。
入力機12aは、例えば、スキャナである。このスキャナは、フィルム等に撮影された画像を1コマずつ光電的に読み取る装置であり、光源と、可変絞りと、画像をR(赤)、G(緑)およびB(青)の三原色に分解するためのR、GおよびBの3枚の色フィルタを有し、回転して任意の色フィルタを光路に作用する色フィルタ板と、フィルムに入射する読取光をフィルムの面方向で均一にする拡散ボックスと、結像レンズユニットと、フィルムの1コマの画像を読み取るエリアセンサであるCCDセンサと、アンプ(増幅器)と、R,GおよびBの各出力信号を、A/D(アナログ/デジタル)変換、Log変換(濃度変換)、DCオフセット補正、暗時補正、およびシェーディング補正等を行うデータ処理部(図示せず)を有して構成される。
The
The
また、このスキャナは、新写真システム(Advanced Photo System)または135サイズのネガ(あるいはリバーサル)フィルム等のフィルムの種類、サイズ、ストリップス、スライド等のフィルムの形態等に応じて、スキャナの本体に装着自在な専用のキャリアが用意されており、キャリアを交換することにより、各種のフィルムに対応することができる。フィルムに撮影され、プリント作成に供される画像(コマ)は、このキャリアによって所定の読取位置に搬送、保持される。 In addition, the scanner can be mounted on the main body of the scanner according to the type of film, such as a new photo system (Advanced Photo System) or 135-size negative (or reversal) film, the size, strips, slides, etc. A dedicated carrier that can be mounted is prepared, and various films can be handled by replacing the carrier. An image (frame) photographed on a film and used for print creation is conveyed and held at a predetermined reading position by this carrier.
また、135サイズのフィルムに対応するキャリアには、DXコードを読み取る読取手段が設けられている。これにより、フィルムの感度、撮影枚数、コマ番号、およびフィルムの種類などを読み取ることができる。これらの各種の情報のうち、少なくともフィルム種が画像処理装置16に出力される。
さらに、周知のように、新写真システムのフィルムには、磁気記録媒体が形成され、カートリッジIDまたはフィルム種等が記録されており、さらに、撮影時または現像時等に、撮影日時、撮影時のストロボ発光の有無、撮像倍率、撮影シーンID、主要部位置の情報、および現像機の種類等の各種のデータが記録可能である。新写真システムのフィルム(カートリッジ)に対応するキャリアには、この磁気情報の読取手段が配置されており、フィルムを読取位置に搬送する際に磁気情報を読み取り、前記各種の情報のうち、少なくともフィルム種が画像処理装置16に出力される。
The carrier corresponding to the 135 size film is provided with reading means for reading the DX code. Thereby, the sensitivity of the film, the number of shots, the frame number, the type of film, and the like can be read. Of these various types of information, at least the film type is output to the
Further, as is well known, a magnetic recording medium is formed on the film of the new photographic system, and a cartridge ID or a film type is recorded. Further, at the time of shooting or development, the shooting date and time, Various data such as the presence / absence of strobe light emission, imaging magnification, shooting scene ID, main part position information, and developing machine type can be recorded. The carrier corresponding to the film (cartridge) of the new photographic system is provided with the magnetic information reading means, and reads the magnetic information when the film is conveyed to the reading position. The seed is output to the
このようなスキャナにおいては、光源から射出され、可変絞りによって光量調整され、色フィルタ板を通過して色調整され、拡散ボックスで拡散された読取光が、キャリアによって所定の読取位置に保持されたフィルムの1コマに入射して、透過することにより、フィルムに撮影されたこのコマの画像を担持する投影光を得る。フィルムの投影光は、結像レンズユニットによってCCDセンサの受光面に結像され、CCDセンサによって光電的に読み取られ、その出力信号がアンプで増幅されて、画像処理装置16に送られる。CCDセンサは、例えば、1380×920画素のエリアCCDセンサが用いられる。
In such a scanner, the reading light emitted from the light source, adjusted in light quantity by the variable aperture, passed through the color filter plate, adjusted in color, and diffused in the diffusion box is held at a predetermined reading position by the carrier. By entering and passing through one frame of the film, projection light carrying an image of this frame photographed on the film is obtained. The projection light of the film is imaged on the light receiving surface of the CCD sensor by the imaging lens unit, is read photoelectrically by the CCD sensor, the output signal is amplified by an amplifier, and sent to the
スキャナにおいては、このような画像読取を、色フィルタ板の各色フィルタを順次挿入して3回行うことにより、1コマの画像をR,GおよびBの3原色に分解して読み取る。 In the scanner, such image reading is performed three times by sequentially inserting each color filter on the color filter plate, thereby separating and reading one frame image into three primary colors of R, G, and B.
スキャナは、エリアCCDセンサを用い、色フィルタ板によって読取光を調整することにより、原稿画像(フィルムの投影光)を3原色に分解して画像の読み取りを行っているが、本発明の画像処理装置に画像データを供給するスキャナとしては、R,GおよびBの3原色のそれぞれの読み取りに対応する3つのラインCCDセンサを用い、フィルムをキャリアで走査搬送しつつスリット状の読取光(投影光)によって画像読取を行う、いわゆるスリット走査によって画像を読み取る画像読取装置であってもよい。 The scanner uses an area CCD sensor and adjusts the reading light with a color filter plate to separate the original image (film projection light) into three primary colors and read the image. As a scanner for supplying image data to the apparatus, three line CCD sensors corresponding to reading of the three primary colors of R, G, and B are used, and slit-like reading light (projection light) is scanned and conveyed by a carrier. The image reading apparatus may read an image by so-called slit scanning.
また、スキャナは、フィルムに撮影された各コマの画像、すなわち、原画像の読み取りを、低解像度で読み取るプレスキャンと、高解像度で読み取るファインスキャンの2回の画像読取を行う。プレスキャンでは、フィルムに撮影された画像の濃度が極端に低い場合(例えば、アンダー露光のネガ画像)でも、エリアCCDセンサの出力が飽和することがないように、エリアCCDセンサの蓄積時間および可変絞りの絞り値等が設定された、プレスキャンの読取条件でフィルムの読み取りが行われる。このプレスキャンによって得られたプレスキャンデータは、LUT設定部30の画像解析部32に出力される。
また、ファインスキャンにより得られたファインスキャンデータは、入力画像データとなる。
In addition, the scanner performs two image readings: a pre-scan that reads an image of each frame shot on a film, that is, an original image, at a low resolution and a fine scan that reads at a high resolution. In pre-scanning, the accumulation time and variable of the area CCD sensor are controlled so that the output of the area CCD sensor is not saturated even when the density of the image photographed on the film is extremely low (for example, an underexposed negative image). The film is read under the prescan reading conditions in which the aperture value of the aperture is set. Pre-scan data obtained by this pre-scan is output to the
Further, fine scan data obtained by fine scan becomes input image data.
また、操作部13は、入力機12aおよび画像処理装置16に接続されており、これらの入力機12aおよび画像処理装置16に、様々な条件の入力(設定)、処理の選択、指示、または色/濃度補正などの指示等を入力するためのキーボードおよびマウスを有する操作系と、取得された入力画像、各種の操作指示および様々な条件の設定/登録画面等を表示するディスプレイとを有するものである。
The
受付機12bは、ラボ店またはコンビニエンスストアの店頭などの、例えば、カウンタ上に設置され、顧客の注文を受け付けるために、オペレータが注文内容、注文事項等の注文情報データを入力して受付・登録するためのものであり、通常、モニタ表示画面を備えたパーソナルコンピュータ(PC)で構成される。なお、受付機12bの設置場所は、特に限定されるものではない。
また、撮影済みのフィルムが、受付機12bが設けられているカウンタなどで受け取られる。なお、画像の記録形態は、記録媒体の片面に記録されるものに限定されるものではなく、記録媒体の両面に画像が形成されるものであってもよい。
The
In addition, the film that has been shot is received by a counter or the like provided with a receiving
この受付機12bにおいては、注文情報データが入力されて注文が確定されると、例えば、受付番号を注文情報データに付与するとともに、受付日時も記録する。また、注文情報データを照合し、以前に入力された顧客である場合には、予め付与されている顧客IDを付与する。一方、以前に入力された顧客でない場合には、顧客IDを新たに付与する。このように、受付機12bにおいては、注文情報データに受付番号、受付日時、および顧客IDを付与して、プリント注文された画像データとともに画像処理装置16に出力する。また、受付機12bには、注文が確定した場合に発行される引換券をプリントするプリンタが設けられている。引換券の形態は、特に限定されるものではなく、受け取り可能な日時などが記録されていれば良い。
In the accepting
本実施例において、受付機12bに入力される注文情報データは、例えば、顧客の氏名、顧客の電話番号、および顧客の住所などの顧客情報である。加えて、注文情報データは、プリントの種類、サイズおよび枚数、プリントする画像の仕上り、ならびに飾りプリントの有無などのプリント処理内容(注文内容)を含むものである。
In the present embodiment, the order information data input to the accepting
画像処理装置16は、入力機12aにより取得された入力画像データに所定の画像処理を施し、プリント18用の出力画像データとするものである。この画像処理装置16については、後に詳細に説明する。
The
プリンタ18は、出力画像データに基づいて、写真プリントを作製するものである。このプリンタ18は、例えば、画像処理装置16から出力された出力画像データに応じて変調した光ビームで感光材料を画像露光し、現像処理して(仕上り)プリントとして出力するものである。
また、プリンタ18としては、銀塩写真方式のものに限定されるものではなく、例えば、インクジェットプリンタ、電子写真方式および熱溶融方式のプリンタなどの紙等の記録媒体に画像を記録するものを用いることができる。また、プリンタ18は、適宜要求される画質またはプリント形態に応じた方式のものを用いることができ、画像を記録媒体の片面または両面に記録するものであってもよい。
The
Further, the
本実施例の画像処理装置16は、基本画像処理部14と、ハイパートーン処理部20と、LUT設定部30と、データ変換部40と、制御部42とを有するものである。ハイパートーン処理部20およびLUT設定部30により本発明の処理手段が構成される。
データ変換部40は、得られた出力画像データをプリンタ18で出力できるプリント画像データに変換するものである。出力画像データからプリント画像データへの変換は、例えば、3次元のルックアップテーブルによりなされる。
制御部42は、基本画像処理部14、ハイパートーン処理部20、LUT設定部30、およびデータ変換部40に接続されており、これらの基本画像処理部14、ハイパートーン処理部20、LUT設定部30、およびデータ変換部40を全て制御するものである。
The
The
The
基本画像処理部14は、画像の色/濃度(調子再現、色再現)および像構造(鮮鋭度、粒状性)等が適正な画像を出力するための基本的な画像処理をするものである。この基本的な画像処理を行うことにより、画像は画質的には完成したものとなる。基本的な画像処理とは、例えば、画像の拡大または縮小(電子変倍処理)、階調補正、色/濃度補正、彩度補正、およびシャープネス処理である。
The basic
ハイパートーン処理部20は、明暗信号生成部(作成手段)22と、ボケ画像生成部(抽出手段)24と、非線形変換部(圧縮処理用画像データ作成手段)26と、加算器28とを有する。
The
明暗信号生成部22は、入力機12aまたは受付機12bから入力される入力画像データ(SR、SG、SB)(R、GおよびBの各色の画像データ)から明暗画像データ(Y)を作成するものである。また、明暗画像データによる画像を明暗画像という。
この明暗画像データの生成方法としては、R、GおよびBの各色の画像データ(SR、SG、SB)の平均値の3分の1を取る方法(Y=(SR+SG+SB)/3)、またはYIQ規定を用いてカラー画像データを明暗画像データに変換する方法等が例示される。YIQ規定を用いて明暗画像データ(以下、Y成分データともいう)を得る方法としては、例えば、Y=0.3SR+0.59SG+0.11SBにより、YIQ規定のY成分(輝度)のみをR、GおよびBの各色の画像データから算出する方法が例示される。
The light /
As a method of generating the bright and dark image data, a method of taking one third of the average value of the image data (S R , S G , S B ) of each color of R, G, and B (Y = (S R + S G + S B ) / 3), or a method of converting color image data into light and dark image data using the YIQ standard, etc. are exemplified. As a method of obtaining bright and dark image data (hereinafter also referred to as Y component data) using the YIQ standard, for example, only Y component (luminance) defined by the YIQ standard by Y = 0.3S R + 0.59S G + 0.11S B Is calculated from image data of each color of R, G, and B.
ボケ画像生成部24は、明暗信号生成部22で生成された明暗画像データ(Y)から低周波数成分を抽出することにより、明暗画像を2次元的にボカして、ボケ画像データ(Y_b)(低周波数成分)を得るものである。このボケ画像生成部24に用いるフィルタとしては、ボケ画像データ(Y_b)の生成に通常用いられるFIR(Finite Impulse Response)型のローパスフィルタを用いることができる。また、ボケ画像生成部24には、小型の回路で大きく画像をボカしたボケ画像データ(Y_b)を生成できる点でIIR(Infinite Impulse Response)型のローパスフィルタを用いることが好ましい。
The blurred
さらに、ボケ画像生成部24として、メディアンフィルタ(以下、MFという)を用いてもよい。MFを用いることにより、明暗画像のエッジを保存して、平坦部のノイズ(高周波成分)をカットしたボケ画像データ(Y_b)が得られるという点で好ましい。また、MFの利点を生かした上で、大きく画像をボカしたボケ画像データ(Y_b)を生成できるという点で、MFとLPFとを併用して、両者で得られた画像を重み付け加算するのが、特に好ましい。
Furthermore, a median filter (hereinafter referred to as MF) may be used as the blurred
非線形変換部26は、ボケ画像生成部24により得られたボケ画像データ(低周波成分)に画像処理を行って、後述するようにLUT設定部30により設定された圧縮条件に基づく圧縮量で、入力画像データを圧縮するための圧縮処理用画像データ(LUT(Y_b))をボケ画像データ(Y_b)および補正量、またはボケ画像データ(Y_b)に基づいて作成するものである。この圧縮処理用画像データ(LUT(Y_b))は、入力画像データ(SR、SG、SB)の圧縮量を指示するものである。非線形変換部26には、LUT設定部30により設定された圧縮量で入力画像データ(SR、SG、SB)を圧縮するための圧縮処理用画像データ(LUT(Y_b))をボケ画像データ(Y_b)および補正量、またはボケ画像データ(Y_b)に基づいて作成する書き換え可能なLUT(ルックアップテーブル)などの変換テーブルが設けられている。
The
非線形変換部26により作成される圧縮処理用画像データ(LUT(Y_b))が示す入力画像データ(SR、SG、SB)の圧縮量は、後述するように、LUT設定部30の画像解析部32による画像解析に基づいて最終的に設定され、各画像は、シーン毎に最適化される。また、この非線形変換部26におけるダイナミックレンジの圧縮量は、シーン毎に異なる。すなわち、シーンおよびLUT設定部30により、非線形変換部26における変換テーブルは、その設定が変更される。さらに、本発明においては、後述するように画像解析の結果、濃度が特性曲線の足部または肩部に該当する場合には、再現された画像のカラーバランスが適正となるように補正もされる。
The compression amount of the input image data (S R , S G , S B ) indicated by the compression processing image data (LUT (Y_b)) created by the
加算器28は、入力画像データ(SR、SG、SB)と、非線形変換部26により作成された圧縮処理用画像データ(LUT(Y_b))とを加算するものである。入力画像データ(SR、SG、SB)と圧縮処理用画像データ(LUT(Y_b))とが加算器28で加算されることにより、入力画像データのダイナミックレンジが圧縮され、出力用の出力画像データ(OR、OG、OB)が得られる。この加算器28は、従来のハイパートーン処理装置110(図6(a)参照)の加算器118(図6(a)参照)と同様の構成である。
The
LUT設定部30は、入力画像データ(SR、SG、SB)のダイナミックレンジの圧縮量を決定するものである。このLUT設定部30は、画像解析部32と、フィルムデータベース34とを有する。
The
画像解析部32は、ハイパートーン処理部20の非線形変換部26における基本的な変換テーブルを設定する機能を有するものである。この画像解析部32は、プレスキャンデータを用いて、被写体の画像(入力画像データ(SR、SG、SB))のダイナミックレンジの圧縮量(ダイナミックレンジの圧縮条件)を設定するものである。
ここで、上述の如く、画像が記録されたフィルムは、赤、緑、青の3原色の特性曲線の足部および肩部において、カラーバランスが崩れている(図8参照)。このため、画像の画素のうち、特性曲線の足部および肩部の濃度域で記録されているものがある場合に、そのままの状態で出力用画像データを作成すると、得られたプリントにカラーフェリアが生じ、色再現性が劣る。このことから、画像解析部32においては、画像解析を行い、画素の濃度が足部または肩部の濃度範囲にある場合には、フィルムデータベース34を参照し、カラーバランスが最適化されるように、補正係数(補正量)を設定して、ダイナミックレンジの圧縮量を設定し、カラーフェリアの発生を抑制する。
The
Here, as described above, in the film on which the image is recorded, the color balance is lost at the feet and shoulders of the characteristic curves of the three primary colors of red, green, and blue (see FIG. 8). For this reason, if the image pixels are recorded in the density areas of the foot and shoulders of the characteristic curve and the output image data is created as it is, the color print will be added to the resulting print. And color reproducibility is poor. From this, the
フィルムデータベース34は、フィルム種ごとに、フィルムのR、G、B各色の特性曲線が記録されているものである。また、フィルムデータベース34は、各フィルムの足部および肩部におけるR、G、B各色の補正係数が、各濃度についてそれぞれ記録されている。
なお、フィルムデータベース34における補正係数は、例えば、フィルム毎に、R、G、B各色の各濃度域において、予め関数または実験値などにより設定しておき、濃度に応じた補正量が設定される。なお、補正量の設定方法は、特に限定されるものではない。
The
The correction coefficient in the
画像解析部32は、入力された各画像のプレスキャンデータに基づいて、フィルムの各コマ(画像)に対応する領域のデータを抽出し、画像位置を検出し、各画像毎の画像処理条件およびファインスキャンの読取条件を設定(演算)するものである。
画像解析部32においては、各画像のプレスキャンデータから、各画像毎に、濃度ヒストグラムの作成、平均濃度、LATD(大面積透過濃度)、ハイライト(最低濃度)、およびシャドー(最高濃度)等の画像特徴量の算出等を行う。次いで、キャリアによって読み取られたフィルム種の情報から、原画像の状態を判断し、各画像毎に、原画像の最低濃度よりも若干低い濃度でエリアCCDセンサからの出力が飽和するように、エリアCCDセンサの蓄積時間または絞り値を算出して、ファインスキャンの読取条件とする。さらに、濃度ヒストグラム、画像特徴量、およびフィルム情報等に基づいて、各画像毎に、基本画像処理部14における入力画像データ(ファインスキャンデータ)の画像処理条件を設定する。
The
In the
また、画像解析部32は、各画像の濃度ヒストグラムと、撮影に用いられたフィルムの特性曲線とを比較し、特性曲線の肩部または足部に該当する画素を特定する。肩部または足部に該当しない(特性曲線のラチチュードの範囲)濃度の画素では、補正をせずに、補正係数を1とする。
一方、特性曲線の肩部または足部に該当する画素がある場合には、フィルムデータベース34を参照し、フィルムデータベース34に各フィルム毎に設定されている補正係数の値を読み込み、補正係数を設定する。
In addition, the
On the other hand, when there is a pixel corresponding to the shoulder portion or the foot portion of the characteristic curve, the correction value set for each film is read into the
本実施例の画像解析部32は、基本的に非線形変換部26の変換テーブルを設定するものである。
各画像のプレスキャンデータによる画像解析の結果、フィルムに記録された画像の画素の各色における濃度と、撮影に用いられたフィルムの特性曲線とを比較し、被写体の画像においてカラーバランスが崩れている濃度領域を特定し、カラーバランスが崩れている領域において、カラーバランスを適正なものとするための補正量を設定し、入力画像データのダイナミックレンジの圧縮量が設定される。
また、本実施例においては、肩部または足部に該当しない(特性曲線のラチチュードの範囲)場合には、補正はせずに、各画像のプレスキャンデータに基づいて、従来と同様に入力画像データのダイナミックレンジの圧縮量が設定される。これにより、従来の通り色相を変化させずに圧縮される。
The
As a result of image analysis using prescan data of each image, the density of each pixel of the image recorded on the film is compared with the characteristic curve of the film used for photographing, and the color balance is lost in the subject image. A density area is specified, and in an area where the color balance is lost, a correction amount for making the color balance appropriate is set, and a compression amount of the dynamic range of the input image data is set.
Further, in this embodiment, when the image does not correspond to the shoulder portion or the foot portion (the range of the characteristic curve latitude), the input image is not corrected but based on the prescan data of each image as in the conventional case. The compression amount of the dynamic range of data is set. As a result, compression is performed without changing the hue as in the past.
本実施例の画像解析部32は、最終的に、カラーバランスの補正量も考慮されたダイナミックレンジの圧縮量を、例えば、階調制御信号として非線形変換部26に出力する。これにより、非線形変換部26により得られる入力画像データのダイナミックレンジを圧縮するための圧縮処理用画像データが、LUT設定部30により補正された入力画像データの各濃度域においてカラーバランスが適正になるように設定されたダイナミックレンジの圧縮量を指示するものとなる。
The
本実施例における入力画像データ(SR、SG、SB)と、出力画像データ(OR、OG、OB)との関係は、下記数式(4)〜(6)のように表わされる。なお、下記数式(4)〜(6)におけるLUT(Y_b)は、ボケ画像データが変換テーブルに入力されたことを示すものであり、CR、CG、CBは、それぞれ、R、G、B各色における補正係数である。
また、本実施例においては、下記数式(4)〜(6)に示すように、R、G、B各色は、カラーバランスに応じた量だけ変化し、色相を変化させて圧縮し、カラーバランスを補正する。
The relationship between the input image data (S R , S G , S B ) and the output image data (O R , O G , O B ) in this embodiment is expressed as the following mathematical formulas (4) to (6). It is. Note that LUT (Y_b) in the following mathematical formulas (4) to (6) indicates that blurred image data is input to the conversion table, and C R , C G , and C B are R, G, respectively. , B are correction coefficients for each color.
In this embodiment, as shown in the following mathematical formulas (4) to (6), the colors R, G, and B change by an amount corresponding to the color balance, and the compression is performed by changing the hue. Correct.
OR=SR+LUT(Y_b)×CR ・・・数式(4) O R = S R + LUT (Y_b) × C R (4)
OG=SG+LUT(Y_b)×CG ・・・数式(5) O G = S G + LUT ( Y_b) × C G ··· Equation (5)
OB=SB+LUT(Y_b)×CB ・・・数式(6) O B = S B + LUT (Y_b) × C B (Equation 6)
次に、本実施例の画像処理装置16の動作について説明する。
図2は、本発明の第1実施例のプリントシステムにおける画像処理装置のLUT設定部による圧縮量の設定方法を示すフローチャートである
Next, the operation of the
FIG. 2 is a flowchart illustrating a compression amount setting method by the LUT setting unit of the image processing apparatus in the printing system according to the first embodiment of the present invention.
ファインスキャンに先立ち、フィルムについて、先ず、R、G、Bの各色についてプレスキャンを実施し、各色のプレスキャンデータを取得する(ステップS10)。このとき、DXコードまたはAPSの磁気記録などが読み取られており、フィルム種についても特定されている。 Prior to fine scanning, first, pre-scanning is performed on each color of R, G, and B for the film, and pre-scan data for each color is acquired (step S10). At this time, the DX code or APS magnetic recording is read, and the film type is also specified.
次に、画像解析部において、プレスキャンデータに基づいて、各画像毎に、濃度ヒストグラムの作成、平均濃度、LATD(大面積透過濃度)、ハイライト(最低濃度)、およびシャドー(最高濃度)等の画像特徴量の算出等を行い、さらにフィルム種の情報から、原画像の状態を判断し、各画像毎に、原画像の最低濃度よりも若干低い濃度でエリアCCDセンサからの出力が飽和するように、エリアCCDセンサの蓄積時間または絞り値を算出して、ファインスキャンの読取条件を設定する(ステップS12)。 Next, in the image analysis unit, creation of a density histogram, average density, LATD (large area transmission density), highlight (lowest density), shadow (highest density), etc. for each image based on the prescan data. The feature of the image is calculated, and the state of the original image is judged from the film type information. For each image, the output from the area CCD sensor is saturated at a density slightly lower than the lowest density of the original image. As described above, the accumulation time or aperture value of the area CCD sensor is calculated, and fine scanning reading conditions are set (step S12).
次に、画像解析部により算出された濃度ヒストグラムに基づいて、画像の各画素の各色毎に濃度を絶対濃度として算出する。これにより、濃度範囲が特定される(ステップS14)。これにより、フィルムのベース濃度からの各画素の絶対濃度が、各色毎に得られる。 Next, based on the density histogram calculated by the image analysis unit, the density is calculated as an absolute density for each color of each pixel of the image. Thereby, the density range is specified (step S14). Thereby, the absolute density of each pixel from the base density of the film is obtained for each color.
次に、フィルムデータベースを参照する(ステップS16)。これにより、撮影に用いられたフィルムの特性曲線を得る。
次に、ステップS14により得られた各画素の各色の濃度と、特性曲線とを比較する。このとき、各画素について、濃度が、特性曲線の肩部または足部にあるか否かを識別し、補正が必要な否かが判別される(ステップS18)。
ステップS18において、画像の画素のうち、特性曲線の肩部または足部に該当するものがある場合には、更にフィルムデータベースを参照し、予め各フィルム毎に、各濃度に応じて設定されている補正係数を取得し、補正係数を設定する(ステップS20)。
Next, the film database is referred to (step S16). Thereby, the characteristic curve of the film used for photographing is obtained.
Next, the density of each color of each pixel obtained in step S14 is compared with the characteristic curve. At this time, for each pixel, it is determined whether or not the density is in the shoulder portion or the foot portion of the characteristic curve, and it is determined whether correction is necessary (step S18).
In step S18, if there is a pixel corresponding to the shoulder or foot of the characteristic curve among the pixels of the image, the film database is further referred to and preset for each film in accordance with each density. A correction coefficient is acquired and a correction coefficient is set (step S20).
一方、ステップS18において、画像の画素のうち、特性曲線の肩部または足部に該当するものがない場合、補正係数を1とする(ステップS22)。
なお、本実施例においては、画素の濃度が、特性曲線のラチチュードの範囲にある場合においても、補正係数を1とする。
このようにして、本実施例においては、補正係数が設定される。これを、フィルムに記録された全て画像について行い、各画像毎に画素について、各画素毎に補正係数を設定する。そして、補正係数を考慮して、非線形変換部の変換テーブルを、シーン応じたものとし、更にカラーバランスが適切となるように設定する。このように、必要に応じてカラーバランスを補正し、ダイナミックレンジの圧縮条件を設定する。
On the other hand, if there is no pixel corresponding to the shoulder or foot of the characteristic curve among the pixels of the image in step S18, the correction coefficient is set to 1 (step S22).
In this embodiment, the correction coefficient is set to 1 even when the pixel density is within the latitude range of the characteristic curve.
In this way, the correction coefficient is set in this embodiment. This is performed for all images recorded on the film, and a correction coefficient is set for each pixel for each image. Then, in consideration of the correction coefficient, the conversion table of the nonlinear conversion unit is set according to the scene, and further set so that the color balance is appropriate. As described above, the color balance is corrected as necessary, and the compression condition of the dynamic range is set.
次に、画像が記録されたフィルムを再度スキャナで、プレスキャンにより設定された読取条件で、ファインスキャンを行い、入力画像データ(ファインスキャンデータ)を得る。 Next, the film on which the image is recorded is again scanned with a scanner under the reading conditions set by the pre-scan to obtain input image data (fine scan data).
次に、入力画像データを基本画像処理部14に入力し、プレスキャンにより設定された画像処理条件で、画像の色/濃度(調子再現、色再現)および像構造(鮮鋭度、粒状性)等が適正な画像を出力するための基本的な画像処理を施す。
次に、入力画像データを画像処理装置16のハイパートーン処理部20(明暗信号生成部22および加算器28)に出力する。このハイパートーン処理部20において、先ず、明暗信号生成部22により、入力画像データのY成分データ(明暗画像データ)(Y)が作成される。
Next, input image data is input to the basic
Next, the input image data is output to the hypertone processing unit 20 (the light / dark
次に、明暗信号生成部22からY成分データ(Y)をボケ画像生成部24に出力する。これにより、ボケ画像生成部24によりY成分データ(Y)のボケ画像データ(Y_b)が得られる。このボケ画像データ(Y_b)が非線形変換部26に出力される。
Next, the Y component data (Y) is output from the light / dark
一方、LUT設定部30により決定されたダイナミックレンジの圧縮量の設定値(補正係数(補正量)を含む)をハイパートーン処理部20の非線形変換部26に、例えば、階調制御信号として出力する。これにより、非線形変換部26に設定された変換テーブルが圧縮量に応じて変更され、非線形変換部26に設定された変換テーブルが最終的に設定される。
On the other hand, the dynamic range compression amount set value (including the correction coefficient (correction amount)) determined by the
次に、非線形変換部26によりY成分データの低周波成分から、LUT設定部30により設定された圧縮量で、入力画像データを圧縮するための圧縮処理用画像データを作成する。さらに、圧縮処理用画像データが加算器28に出力される。この加算器28において、入力画像データと、圧縮処理用画像データとが加算されて、ダイナミックレジンが圧縮された出力画像データ(OR、OG、OB)を得る。
Next, compression processing image data for compressing the input image data with the compression amount set by the
次に、この出力画像データ(OR、OG、OB)がデータ変換部40に出力されて、プリンタ18に適合するプリント画像データに変換される。このようにして、画像処理装置16においては、プリンタ18により出力可能なプリント画像データが生成される。このプリント画像データに基づいて、プリンタ18により、画像が記録されたフィルムの特性にかかわらず、シャドー側およびハイライト側の濃度域まで、特に色が適正に再現された高品位な写真プリントを得ることができる。
Next, the output image data (O R , O G , O B ) is output to the
本実施例の画像処理装置16においては、入力機12aが取得したフィルムに記録された画像のデジタル画像データに、フィルム種に応じた特性曲線を参照し、被写体の画像の濃度に応じた補正を施して、入力画像データの各濃度域におけるダイナミックレンジの圧縮量(圧縮条件)を設定し、非線形変換部26に設定された変換テーブルを設定することにより、カラーバランスが補正され、特に色が適正に再現された高品位な写真プリントを得ることができる出力画像データを得ることができる。
In the
例えば、図3に模式的示すようなグレーの服を着た男性52と白いドレスを着た女性54とが撮影された画像50においては、図8に示すような濃度範囲Dを有し、この濃度範囲Dは、特性曲線の肩部βを含む。この画像50を、従来のハイパートーン処理では、特性曲線の肩部βにおいてカラーバランスが崩れているため、白いドレスに、白以外の色がついて再現されてしまう。
しかしながら、本実施例の画像処理方法においては、カラーバランスを考慮して、補正を施すため、カラーバランスが崩れていることに起因して発生する色味がつくことが抑制される。すなわち、カラーフェリアの発生を抑制することができる。これにより、圧縮度合を大きくしても、カラーバランスが崩れないため、圧縮度合の自由度を高くすることができる。
For example, an
However, in the image processing method of the present embodiment, correction is performed in consideration of the color balance, so that it is possible to suppress the color tone generated due to the color balance being lost. That is, the occurrence of color feria can be suppressed. As a result, even if the degree of compression is increased, the color balance is not lost, so the degree of freedom of the degree of compression can be increased.
次に、本発明の画像処理装置の第2実施例について説明する。
図4は、本発明の画像処理装置を有するプリントシステムの第2実施例を示すブロック図である。
なお、本実施例においては、図1に示す第1実施例のプリントシステム10と同一構成物には、同一符号を付して、その詳細な説明は省略する。
Next, a second embodiment of the image processing apparatus of the present invention will be described.
FIG. 4 is a block diagram showing a second embodiment of the printing system having the image processing apparatus of the present invention.
In this embodiment, the same components as those of the
図4に示す本実施例のプリントシステム10aは、第1実施例のプリントシステム10(図1参照)に比して、画像解析部32aおよび明暗信号生成部22aの構成、ならびに画像解析部32aと明暗信号生成部22aとが接続されている点が異なり、それ以外の構成は、第1実施例のプリントシステム10と同様の構成であるため、その詳細な説明は省略する。
The
本実施例の画像解析部32aは、明暗信号生成部22aに接続されており、補正係数を明暗信号生成部22aに出力する点が、第1実施例のプリントシステム10の画像解析部32と異なり、それ以外の構成は同様である。
The
また、本実施例の明暗信号生成部22aは、画像解析部32aから出力された補正係数に基づいて、明暗信号を作成する点が、第1実施例のプリントシステム10の明暗信号生成部22と異なり、それ以外の構成は同様である。
なお、本実施例における明暗画像データは、Y=(SR・CR+SG・CG+SB・CB)/(CR+CG+CB)で算出されるものである。また、YIQ規定を用いた明暗画像データ(Y=0.3SR・CR+0.59SG・CG+0.11SB・CB)でもよい。
In addition, the light / dark
The bright and dark image data in this embodiment is calculated by Y = (S R · C R + S G · C G + S B · C B ) / (C R + C G + C B ). Further, it may be bright and dark image data (Y = 0.3S R · C R + 0.59S G · C G + 0.11S B · C B ) using YIQ regulations.
本実施例においては、非線形変換部26における変換テーブルにより、R、G、B各色のデータに補正を加えるものではないものの、明暗画像データにおいて、カラーバランスを補正している。このように、明暗画像データに補正を加えることによっても、第1実施例のプリントシステム10と同様の効果を得ることができる。
In this embodiment, the color balance is corrected in the light and dark image data, although the R, G, and B color data are not corrected by the conversion table in the
次に、本実施例のプリントシステム10aの動作について説明する。
図4は、本発明の第2実施例のプリントシステムにおける画像処理装置のLUT設定部による圧縮量の補正方法を示すフローチャートである。
Next, the operation of the
FIG. 4 is a flowchart illustrating a compression amount correction method by the LUT setting unit of the image processing apparatus in the printing system according to the second embodiment of the present invention.
本実施例においては、第1実施例のプリントシステム10に比して、上述の如く、プレスキャンデータを用いて、画像解析部32aにより補正係数を設定した(ステップS20)後、または補正係数を1とした(ステップS22)後、補正係数を明暗信号生成部22aに出力する(ステップS30、S32)点が異なる。さらに、画像解析部32aにより、プレスキャンデータを用いて、画像解析を行い、カラーバランスを考慮せずに、ダイナミックレンジの圧縮量を設定し、例えば、階調制御信号として非線形変換部26に出力する点が異なり、それ以外の画像処理方法については、第1実施例のプリントシステム10と同様であるため、その詳細な説明は省略する。
In the present embodiment, as compared with the
本実施例のプリントシステム10aにおいても、第1実施例と同様に、例えば、白いドレスを着た女性54の画像50(図3参照)についてダイナミックレンジを圧縮した場合、カラーバランスが崩れていることに起因して発生する色味が付くことが抑制される。すなわち、カラーフェリアの発生を抑制することができる。すなわち、本実施例のプリントシステム10aにおいても、第1実施例と同様に高品位なプリントを得ることができる。
また、本実施例においては、明暗画像データに補正を加えるため、非線形変換部26の変換テーブルによる圧縮量を抑えることができる。これにより、カラーバランスを保ちつつ、黒の締まりの損失および白の抜けが悪くなることも抑制することができる。
Also in the
Further, in this embodiment, since the bright / dark image data is corrected, the amount of compression by the conversion table of the
なお、いずれの実施例においても、フィルムの濃度を測定する濃度計を設けてもよい。濃度計を設けることにより、画像の濃度の測定精度を更に高くすることができ、カラーバランスの補正の精度を更に高くすることができる。これにより、更に高品位なプリントを得ることができる。
また、いずれの実施例においても、フィルム種は、受付機12bまたは操作部13から画像解析部32に直接入力してもよい。さらに、フィルム種が、特定できない場合には、補正係数を全て1とする。
In any of the embodiments, a densitometer for measuring the density of the film may be provided. By providing the densitometer, the accuracy of image density measurement can be further increased, and the accuracy of color balance correction can be further increased. As a result, a higher quality print can be obtained.
In any embodiment, the film type may be directly input to the
本発明の画像処理装置は、入力画像のダイナミックレンジを圧縮する機能を有する装置であってもよいが、例えば、一般的なパーソナルコンピュータシステムと、その上で動作するソフトウェアプログラムによって実現することも可能である。また、本発明の入力画像のダイナミックレンジを圧縮処理するプログラムは、本発明の画像処理方法を適用して、入力画像のダイナミックレンジが圧縮された出力画像データを作成するものである。 The image processing apparatus of the present invention may be an apparatus having a function of compressing the dynamic range of an input image, but may be realized by, for example, a general personal computer system and a software program operating on the personal computer system. It is. Further, the program for compressing the dynamic range of the input image of the present invention applies the image processing method of the present invention to create output image data in which the dynamic range of the input image is compressed.
本発明は、基本的に以上のようなものである。以上、本発明の画像処理装置、および画像処理方法について詳細に説明したが、本発明は上記実施形態に限定されず、本発明の主旨を逸脱しない範囲において、種々の改良または変更をしてもよいのはもちろんである。 The present invention is basically as described above. Although the image processing apparatus and the image processing method of the present invention have been described in detail above, the present invention is not limited to the above-described embodiment, and various improvements or modifications can be made without departing from the spirit of the present invention. Of course it is good.
10、10a プリントシステム
12a 入力機
12b 受付機
13 操作部
14 基本画像処理部
16 画像処理装置
18 プリンタ
20 ハイパートーン処理部
22、22a 明暗信号生成部
24 ボケ画像生成部
26 非線形変換部
28 加算器
30 LUT設定部
32 画像解析部
34 フィルムデータベース
40 データ変換部
50 画像
140 赤の特性曲線
142 緑の特性曲線
144 青の特性曲線
α 足部
β 肩部
DESCRIPTION OF
Claims (6)
前記入力画像データのダイナミックレンジの圧縮処理を行う処理手段を有し、
前記処理手段は、前記入力画像データのダイナミックレンジの圧縮条件を設定する設定部を有するものであり、
前記設定部は、フィルムの種類ごとにフィルムの前記3原色の特性曲線が記録されたフィルムデータベース、および前記フィルムデータベースを参照して、前記画像が記録されたフィルムの3原色の特性曲線を得、前記フィルムの前記3原色の特性曲線と、前記入力画像データの各画素の3原色の各色の濃度とを比較し、前記入力画像データのうち、画素の3原色の各色の濃度が前記特性曲線の足部または肩部にあるものについては、それぞれ前記特性曲線に基づいてカラーバランスが適正になるように各色の濃度の補正量を設定し、前記補正量を用いて前記ダイナミックレンジの圧縮条件を設定する画像解析部を備えるものであり、
前記画像解析部は、画素の3原色の各色の濃度が前記特性曲線の足部または肩部ではないものについては、補正量を設定することなく、前記ダイナミックレンジの圧縮条件を設定することを特徴とする画像処理装置。 An image processing apparatus that performs predetermined image processing on input image data obtained by photoelectrically reading an image recorded on a film with at least three primary colors of red, green, and blue, and producing output image data for output. And
Processing means for performing compression processing of the dynamic range of the input image data;
The processing means includes a setting unit that sets a compression condition of a dynamic range of the input image data.
The setting unit refers to the film database in which the characteristic curves of the three primary colors of the film are recorded for each type of film, and the characteristic database of the three primary colors of the film in which the image is recorded, The characteristic curve of the three primary colors of the film is compared with the density of each of the three primary colors of each pixel of the input image data, and the density of each of the three primary colors of the pixel of the input image data is the characteristic curve. For those on the foot or shoulder, set the correction amount of the density of each color so that the color balance is appropriate based on the characteristic curve, and set the compression condition of the dynamic range using the correction amount An image analysis unit that performs
The image analysis unit sets the compression condition for the dynamic range without setting a correction amount for a pixel whose density of each of the three primary colors is not a foot or a shoulder of the characteristic curve. An image processing apparatus.
前記入力画像データの各画素の濃度を特定する工程と、
前記画像が記録されたフィルムの種類を特定し、特定されたフィルムの前記3原色の特性曲線と、前記入力画像データの各画素の3原色の各色の濃度とを比較し、画素の3原色の各色の濃度が前記特性曲線の足部または肩部にあるものについては、それぞれ前記特性曲線に基づいてカラーバランスが適正になるように各色の濃度の補正量を設定する工程と、
濃度が前記特性曲線の足部または肩部にあるものについては、前記補正量の情報を用いて、前記入力画像データのダイナミックレンジの圧縮条件を設定し、画素の3原色の各色の濃度が前記特性曲線の足部または肩部ではないものは、補正量を設定することなく、前記ダイナミックレンジの圧縮条件を設定する工程と、
前記設定されたダイナミックレンジの圧縮条件に応じて、前記入力画像データのダイナミックレンジの圧縮処理を行う工程とを有することを特徴とする画像処理方法。 This is an image processing method in which predetermined image processing is performed on input image data obtained by photoelectrically reading an image recorded on film with at least three primary colors of red, green, and blue to obtain output image data for output. And
Identifying the density of each pixel of the input image data;
The type of film on which the image is recorded is specified, the characteristic curve of the three primary colors of the specified film is compared with the density of each of the three primary colors of each pixel of the input image data, and the three primary colors of the pixel are compared. For the density of each color at the foot or shoulder of the characteristic curve, a step of setting the correction amount of the density of each color so that the color balance is appropriate based on the characteristic curve,
For the case where the density is at the foot or shoulder of the characteristic curve, the compression amount information is used to set the dynamic range compression condition of the input image data, and the density of each of the three primary colors of the pixel is What is not the foot or shoulder of the characteristic curve is a step of setting the compression condition of the dynamic range without setting a correction amount;
And a step of compressing the dynamic range of the input image data in accordance with the set dynamic range compression condition.
前記入力画像データの明暗画像データを作成する工程と、前記明暗画像データの低周波成分を抽出する工程とを有し、
前記入力画像データのダイナミックレンジの圧縮処理を行う工程は、前記ダイナミックレンジの圧縮条件に基づく圧縮量で前記入力画像データを圧縮するための圧縮処理用画像データを、前記低周波成分および前記補正量に基づいて作成し、前記圧縮処理用画像データと前記入力画像データとを加算するものである請求項4に記載の画像処理方法。 In a subsequent process of setting the correction amount,
Creating light and dark image data of the input image data; and extracting low frequency components of the light and dark image data;
The step of compressing the dynamic range of the input image data includes the step of compressing the input image data with a compression amount based on the compression condition of the dynamic range, the low frequency component and the correction amount. 5. The image processing method according to claim 4, wherein the image processing method is configured to add the image data for compression processing and the input image data.
前記入力画像データと前記補正量とに基づいて、前記明暗画像データを作成する工程を有し、
さらに、前記明暗画像データの低周波成分を抽出する工程と、
前記入力画像データのダイナミックレンジの圧縮処理を行う工程は、前記ダイナミックレンジの圧縮条件に基づく圧縮量で前記入力画像データを圧縮するための圧縮処理用画像データを、前記低周波成分に基づいて作成し、前記圧縮処理用画像データと前記入力画像データとを加算する工程とを有する請求項4に記載の画像処理方法。 In a subsequent process of setting the correction amount,
Based on the input image data and the correction amount, creating the bright and dark image data,
A step of extracting a low frequency component of the light and dark image data;
The step of performing compression processing of the dynamic range of the input image data creates image data for compression processing for compressing the input image data with a compression amount based on the compression condition of the dynamic range based on the low frequency component. The image processing method according to claim 4, further comprising a step of adding the image data for compression processing and the input image data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005259287A JP2007074373A (en) | 2005-09-07 | 2005-09-07 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005259287A JP2007074373A (en) | 2005-09-07 | 2005-09-07 | Image processing apparatus and image processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007074373A true JP2007074373A (en) | 2007-03-22 |
Family
ID=37935445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005259287A Withdrawn JP2007074373A (en) | 2005-09-07 | 2005-09-07 | Image processing apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007074373A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009272983A (en) * | 2008-05-09 | 2009-11-19 | Fujifilm Corp | Image processing apparatus, method, and program |
-
2005
- 2005-09-07 JP JP2005259287A patent/JP2007074373A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009272983A (en) * | 2008-05-09 | 2009-11-19 | Fujifilm Corp | Image processing apparatus, method, and program |
US8345121B2 (en) | 2008-05-09 | 2013-01-01 | Fujifilm Corporation | Image processing apparatus, method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4081219B2 (en) | Image processing method and image processing apparatus | |
US7742653B2 (en) | Image processing apparatus and image processing method | |
JP3696345B2 (en) | Image processing method and apparatus | |
JP2000050080A (en) | Digital photograph finishing system containing digital picture processing of film exposure lacking gamma, scene balance, contrast normalization and picture visualization | |
JP2006246200A (en) | Image processing device and method therefor | |
JP2000050079A (en) | Digital photograph finishing system containing digital picture processing of film exposure lacking gamma scene balance and picture visualization | |
US7515181B2 (en) | Method, apparatus, and program for image processing on image data that have already been subjected to image processing | |
JP3405266B2 (en) | Image processing method and apparatus | |
JP3451202B2 (en) | Image processing method | |
JP2000156785A (en) | Image processing method and image processor | |
JP3408770B2 (en) | Image processing device | |
JPH11191871A (en) | Image processor | |
JP3783817B2 (en) | Image processing method and image processing apparatus | |
JP3549413B2 (en) | Image processing method and image processing apparatus | |
JP2000069277A (en) | Image processing unit | |
US20050129287A1 (en) | Image processing method | |
US6700685B1 (en) | Image processing apparatus | |
JP2001222710A (en) | Device and method for image processing | |
JP2007074373A (en) | Image processing apparatus and image processing method | |
JP4667072B2 (en) | Image processing apparatus, image processing method, and program | |
JP2001245153A (en) | Image processing method and apparatus | |
JP3576812B2 (en) | Image processing apparatus and image processing method | |
JP4063971B2 (en) | Image processing method and apparatus | |
JPH1153535A (en) | Method and device for image reproduction | |
JP2005304023A (en) | Image processing apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20061206 |
|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20081202 |