JP4506498B2 - Photo image processing method and photo image processing apparatus - Google Patents

Photo image processing method and photo image processing apparatus Download PDF

Info

Publication number
JP4506498B2
JP4506498B2 JP2005036031A JP2005036031A JP4506498B2 JP 4506498 B2 JP4506498 B2 JP 4506498B2 JP 2005036031 A JP2005036031 A JP 2005036031A JP 2005036031 A JP2005036031 A JP 2005036031A JP 4506498 B2 JP4506498 B2 JP 4506498B2
Authority
JP
Japan
Prior art keywords
saturation
pixel
color
image processing
color component
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.)
Expired - Fee Related
Application number
JP2005036031A
Other languages
Japanese (ja)
Other versions
JP2006222853A (en
Inventor
宏 鳥羽
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.)
Noritsu Koki Co Ltd
Original Assignee
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 Noritsu Koki Co Ltd filed Critical Noritsu Koki Co Ltd
Priority to JP2005036031A priority Critical patent/JP4506498B2/en
Publication of JP2006222853A publication Critical patent/JP2006222853A/en
Application granted granted Critical
Publication of JP4506498B2 publication Critical patent/JP4506498B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、例えばネガフィルム等の写真フィルムを読み取り得られたカラー画像データに対して、自然なカラーを再現できるようにR(赤)、G(緑)、B(青)(以下、「RGB」と記す。)のカラーバランスを調整する写真画像処理方法及びその装置に関し、詳しくは、元画像データを構成する画素の色成分毎に所定の平均値を求め、当該平均値がグレーに対応する所定の値になるように各画素の色成分を補正する写真画像処理方法及び写真処理装置に関する。   In the present invention, for example, R (red), G (green), B (blue) (hereinafter referred to as “RGB”) can be reproduced for color image data obtained by reading a photographic film such as a negative film. In detail, a predetermined average value is obtained for each color component of the pixels constituting the original image data, and the average value corresponds to gray. The present invention relates to a photographic image processing method and a photographic processing apparatus for correcting color components of each pixel so as to have a predetermined value.

従来、ネガフィルムに記録された画像を色合いよく感光材料である印画紙に焼き付けるための写真画像処理方法として、エバンスの定理に基づくLATD(Large Area Transmittance Density)露光方式が知られている。この露光方式は、平均的な戸外の被写体は、ネガ全体の色を混ぜ合わせると灰色に近くなるというエバンスの説に基づいて、色に偏りが見られる場合は、ネガフィルムを透過したRGBの積算光が印画紙上でグレーに再現されるようにRGBの各露光量を調節して露光を行う方式であり、具体的には、ネガフィルムに光を照射して透過光を撮像素子で読取ってRGBのカラー画像データを生成し、カラー画像データの平均値を各画素のRGB毎に演算導出し、RGB各平均値がそれぞれグレーに対応する所定の値となるように、アナログ方式の写真プリンタでは調光フィルタを調節して印画紙を露光し、デジタル方式の写真プリンタではRGB夫々の光源からの露光量を調節していた。   2. Description of the Related Art Conventionally, as a photographic image processing method for printing an image recorded on a negative film on a photographic paper having a good color tone, a LATD (Large Area Transmission Density) exposure method based on Evans's theorem is known. This exposure method is based on Evans's theory that the average outdoor subject will become gray when the colors of the negatives are mixed together. The exposure is performed by adjusting each RGB exposure amount so that the light is reproduced in gray on the photographic paper. Specifically, the negative film is irradiated with light, and the transmitted light is read by the image sensor. Color image data is generated, an average value of the color image data is calculated and derived for each RGB of each pixel, and an analog photo printer adjusts so that each RGB average value becomes a predetermined value corresponding to gray. The photographic paper is exposed by adjusting the optical filter, and the exposure amount from each of the RGB light sources is adjusted in the digital photographic printer.

上述した従来の写真画像処理方法によれば、被写体(人物、背景)の色の偏りにより過補正され、却って見辛い写真プリントが出力されてしまうという問題があった。例えば、芝生を背景に人物を撮影したシーンの場合には、芝生の領域がグレーに仕上がる一方、人物の領域に芝生の補色であるマゼンダが強く現われる。このような状況をカラーフェリアといい、その対策としてLATD露光方式において高彩度画素を除去したり、最も大きい面積を占める特徴色に対する色補正率を当該特徴色以外の背景色に対する色補正率と異ならせて補正する方法などが提案されている。
特開2000−330221号公報
According to the above-described conventional photographic image processing method, there is a problem that an overcorrected photographic print is output due to the color deviation of the subject (person, background). For example, in the case of a scene where a person is photographed against a lawn, the lawn area is finished in gray, while magenta, which is a complementary color of the lawn, appears strongly in the person area. Such a situation is called color failure. As a countermeasure, high saturation pixels are removed in the LATD exposure method, or the color correction rate for the feature color occupying the largest area is made different from the color correction rate for the background color other than the feature color. A method of correcting the error has been proposed.
JP 2000-330221 A

しかし、上述した高彩度画素を除去する方法によっても、低彩度の画像の中で比較的彩度の高い画像領域の影響を受けることによって、カラーフェリアが発生する虞があり、必ずしも万全なものではなく、更なる改良の余地があった。   However, even with the above-described method of removing high-saturation pixels, there is a possibility that color feria may occur due to the influence of a relatively high-saturation image area in a low-saturation image, and this is not always perfect. There was room for further improvement.

本発明は、上述の従来欠点に鑑み、高彩度画素の影響を確実に除去しながらも、一定の低彩度画素に起因するカラーフェリアの発生を効果的に排除してより自然に近いカラー画像を得ることのできる写真画像処理方法及びその装置を提供する点にある。   In view of the above-described conventional drawbacks, the present invention effectively eliminates the occurrence of color failure due to certain low-saturation pixels while reliably removing the influence of high-saturation pixels, and thus produces a more natural color image. The object is to provide a photographic image processing method and apparatus that can be obtained.

上述の目的を達成するため、本発明による写真画像処理方法の第一の特徴構成は、特許請求の範囲の書類の請求項1に記載した通り、元画像データを構成する画素の色成分毎に所定の平均値を求め、当該平均値がグレーに対応する所定の値になるように各画素の色成分を補正する写真画像処理方法であって、元画像データを構成する画素毎に彩度を求める彩度演算ステップと、予め色相を複数の領域に分離した色相領域毎に設定された彩度閾値より低彩度側の画素に対して低彩度画素ほど重み係数が大きくなるように、各画素の彩度と相関を持たせた重み係数を画素毎に求める重み係数導出ステップと、画素毎の各色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求める重み平均値演算ステップと、何れかの色成分毎の重み平均値を基準に、他の色成分毎の重み平均値との差分を補正値として求め、各画素の色成分を当該補正値に基づいて補正する画素データ補正ステップとからなる点にある。 In order to achieve the above-mentioned object, the first characteristic configuration of the photographic image processing method according to the present invention is, as described in claim 1 of the claims, for each color component of the pixels constituting the original image data. A photographic image processing method that obtains a predetermined average value and corrects the color component of each pixel so that the average value becomes a predetermined value corresponding to gray, wherein saturation is applied to each pixel constituting the original image data. Saturation calculation step to be obtained, and each of the low saturation pixels with respect to the pixels on the lower saturation side than the saturation threshold set for each hue region in which the hue is divided into a plurality of regions in advance, the weight coefficient is increased. A weighting factor deriving step for obtaining a weighting factor correlated with the saturation of the pixel for each pixel, and a weight for each color component obtained by dividing the product sum of each color component for each pixel and the weighting factor by the sum of the weighting factors A weighted average value calculating step for calculating an average value, A pixel data correction step for obtaining a difference from a weighted average value for each of other color components as a correction value based on the weighted average value for each color component and correcting the color component of each pixel based on the correction value. It is in the point.

上述の構成によれば、画像データを構成する画素の彩度分布に応じて、予め設定された彩度閾値より低彩度側の画素に対して低彩度画素ほど重み係数が大きくなるように算出された重み平均値を用いて各画素の色成分の補正、つまり、拡張的なLATD処理(以下、「拡張LATD処理」と記す。)を行なうため、重み係数の適切な設定、つまり彩度閾値の設定により、高彩度画素の影響を排除しつつ、低彩度領域で比較的彩度の高い画素の影響をも低減させることができるので、カラーフェリアの発生を効果的に抑制したカラーバランスの調整を行なうことができるようになるのである。   According to the above-described configuration, the weighting factor is increased in the lower saturation pixel with respect to the pixel on the lower saturation side than the preset saturation threshold according to the saturation distribution of the pixels constituting the image data. Since the calculated weighted average value is used to correct the color component of each pixel, that is, to perform an extended LATD process (hereinafter referred to as “extended LATD process”), an appropriate setting of the weighting coefficient, that is, saturation is performed. By setting the threshold value, it is possible to reduce the influence of pixels with relatively high saturation in the low saturation area while eliminating the influence of high saturation pixels. Adjustments can be made.

具体的には、画素の彩度に応じて求められる重み係数が、当該画素の色相に応じて可変に設定することができるようになるので、照明光や被写体の種類といった撮影状況の影響を排除してより自然なカラーバランスに調整することができるようになるのである。例えば、黄色い色調は人工物に多く見られる色調であって、そのような黄色い画素を本来の色に補正するためには重み係数を他の色相の画素よりも大に設定する必要があり、植物を背景とする撮影画像は光が当たらず彩度の低い部位であってもカラーフェリアの発生を抑制すべく重み係数を他の色相の画素よりも小に設定する必要がある。そのような場合であっても適切に重み係数を設定することができるようになるのである。Specifically, the weighting factor calculated according to the saturation of the pixel can be variably set according to the hue of the pixel, eliminating the influence of shooting conditions such as illumination light and subject type. Thus, it becomes possible to adjust to a more natural color balance. For example, a yellow color tone is a color tone often found in artifacts, and in order to correct such a yellow pixel to an original color, it is necessary to set a weighting factor larger than that of other hue pixels. In a photographed image with a background of light, it is necessary to set a weighting coefficient smaller than pixels of other hues in order to suppress the occurrence of color feria even in a portion where the light is not exposed and the saturation is low. Even in such a case, the weight coefficient can be set appropriately.

同第二の特徴構成は、同請求項2に記載した通り、上述の第一特徴構成に加えて、前記彩度閾値は、元画像を構成する画素の色の偏りに基づいて、色相領域毎に可変に設定されるものである点にある。 In the second feature configuration, as described in claim 2, in addition to the first feature configuration described above, the saturation threshold is set for each hue region based on the color deviation of the pixels constituting the original image. The point is that it is variably set .

同第三の特徴構成は、同請求項3に記載した通り、上述の第一または第二特徴構成に加えて、前記重み係数が、前記彩度Saに対するべき関数k・(Sa) γ (kは定数)に基づいて、低彩度画素ほど重み係数が大となるように求められる点にある。 In the third feature configuration, as described in the third aspect, in addition to the first or second feature configuration described above, the weighting factor is a power function k · (Sa) γ (k Is based on the constant), the weight coefficient is determined to be larger for the low saturation pixels.

上述の構成によれば、重み係数を各画素の彩度に比例するように求める場合に比較して、より低彩度画素の重み係数を大に、高彩度画素の重み係数を小に設定できるので、そのような重み係数に基づいて全画素に対する色成分毎の重み平均値を求めて拡張LATD処理を行なうことで、カラーフェリアの発生をより効果的に抑制したカラーバランスの調整を行なうことができるのである。つまり、元画像に比較的低彩度でありながらも他の領域に比べて著しく広い領域の一定の低彩度画素領域が存在する場合であっても、そのような領域の画素の重み係数が小に設定されるので、よりカラーフェリアが発生しにくくなるのである。   According to the above-described configuration, the weighting factor of the low saturation pixel can be set larger and the weighting factor of the high saturation pixel can be set smaller than when the weighting factor is obtained in proportion to the saturation of each pixel. By performing the extended LATD process by obtaining the weighted average value for each color component for all the pixels based on such weighting coefficients, it is possible to adjust the color balance that more effectively suppresses the occurrence of color failure. It is. In other words, even if the original image has a relatively low saturation and a certain low saturation pixel area that is significantly wider than other areas, the weighting factor of the pixels in such an area is Since it is set to a small value, color feria is less likely to occur.

同第四の特徴構成は、同請求項4に記載した通り、上述の第三の特徴構成に加えて、前記べき数γが元画像データの属性に基づいて異なる値に設定される点にある。 The fourth feature configuration is that, in addition to the third feature configuration described above, the power number γ is set to a different value based on the attribute of the original image data. .

同一シーンを撮影した場合であっても、銀塩フィルムを用いた光学式カメラで撮影したものとデジタル式カメラで撮影したもので色再現特性が異なり、銀塩フィルムであってもネガフィルムであるのかリバーサルフィルムであるのかによって発色特性が異なる。上述の構成によれば、そのような場合であっても、元画像データの属性、つまり、フィルムの種類や撮影機器の種類等に基づいて適切な重み係数を設定することができるようになるのであり、種々の属性の画像に対してカラーフェリアの発生しない適切な拡張LATD処理を行なうことが可能となるのである。   Even when the same scene is shot, color reproduction characteristics differ between the one shot with an optical camera using a silver salt film and the one shot with a digital camera, and even a silver salt film is a negative film. Depending on whether the film is a reversal film, the color development characteristics differ. According to the configuration described above, even in such a case, an appropriate weighting factor can be set based on the attributes of the original image data, that is, the type of film, the type of photographing device, and the like. In other words, it is possible to perform appropriate extended LATD processing that does not generate color failure for images with various attributes.

同第の特徴構成は、同請求項に記載した通り、上述の第一から第の何れかの特徴構成に加えて、前記画素データ補正ステップは、前記彩度閾値より低彩度側の画素に対してのみ色成分を補正する点にある。 In the fifth feature configuration, as described in claim 5 , in addition to any one of the first to fourth feature configurations described above, the pixel data correction step includes a lower saturation side than the saturation threshold value. The color component is corrected only for the pixels.

上述の構成によれば、影響の大きな高彩度画素を除去するとともに、彩度の低い大きな着色領域が存在する画像であっても、その彩度によって重み付条件を考慮して補正することができ、カラーフェリアの発生を効果的に抑制して、より自然に近いカラー画像を得ることが可能となるのである。   According to the above-described configuration, it is possible to remove the high-saturation pixels having a large influence and to correct the weighted condition in consideration of the saturation even if the image includes a large colored region with low saturation. It is possible to effectively suppress the occurrence of color feria and obtain a more natural color image.

本発明による写真画像処理装置の第一の特徴構成は、特許請求の範囲の書類の請求項に記載した通り、元画像データを構成する画素の色成分毎に所定の平均値を求め、当該平均値がグレーに対応する所定の値になるように各画素の色成分を補正する写真画像処理装置であって、元画像データを構成する画素毎に彩度を求める彩度演算部と、予め色相を複数の領域に分離した色相領域毎に設定された彩度閾値より低彩度側の画素に対して低彩度画素ほど重み係数が大きくなるように、各画素の彩度と相関を持たせた重み係数を画素毎に求める重み係数導出部と、画素毎の各色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求める重み平均値演算部と、何れかの色成分毎の重み平均値を基準に、他の色成分毎の重み平均値との差分を補正値として求め、各画素の色成分を当該補正値に基づいて補正する画素データ補正部とからなる点にある。 According to the first characteristic configuration of the photographic image processing apparatus of the present invention, as described in claim 6 of the claims, a predetermined average value is obtained for each color component of the pixels constituting the original image data. A photographic image processing apparatus that corrects the color component of each pixel so that an average value becomes a predetermined value corresponding to gray, a saturation calculation unit that calculates saturation for each pixel constituting the original image data, Correlates with the saturation of each pixel so that the weighting factor increases for lower saturation pixels than for the saturation threshold set for each hue region where the hue is separated into multiple regions. A weighting factor deriving unit for obtaining the weighting factor for each pixel, and a weighting average value calculation for obtaining a weighting average value for each color component obtained by dividing the product sum of each color component for each pixel and the weighting factor by the sum of the weighting factors And other color components based on the weighted average value for each color component It obtains the difference between the weighted average value as the correction value, there the color component of each pixel to a point comprising a pixel data correcting section that corrects, based on the correction value.

同第二の特徴構成は、同請求項7に記載した通り、上述の第一特徴構成に加えて、前記彩度閾値は、元画像を構成する画素の色の偏りに基づいて、色相領域毎に可変に設定されるものである点にある。 In the second feature configuration, as described in claim 7, in addition to the first feature configuration described above, the saturation threshold is set for each hue region based on the color deviation of the pixels constituting the original image. The point is that it is variably set .

同第三の特徴構成は、同請求項8に記載した通り、上述の第一または第二特徴構成に加えて、前記重み係数が、前記彩度Saに対するべき関数k・(Sa)γ(kは定数)に基づいて、低彩度画素ほど重み係数が大となるように求められる点にある。 In the third feature configuration, as described in claim 8, in addition to the first or second feature configuration described above, the weighting factor is a power function k · (Sa) γ (k Is based on the constant), the weight coefficient is determined to be larger for the low saturation pixels.

同第四の特徴構成は、同請求項9に記載した通り、上述の第三の特徴構成に加えて、前記べき数γが元画像データの属性に基づいて異なる値に設定される点にある。 The fourth feature configuration is that, in addition to the third feature configuration described above, the power γ is set to a different value based on the attribute of the original image data. .

同第五の特徴構成は、同請求項10に記載した通り、上述の第一から第四の何れかの特徴構成に加えて、前記画素データ補正部は、前記彩度閾値より低彩度側の画素に対してのみ色成分を補正する点にある。 In the fifth feature configuration, as described in claim 10, in addition to any of the first to fourth feature configurations described above, the pixel data correction unit has a lower saturation side than the saturation threshold. The color component is corrected only for the pixels.

以上説明した通り、本発明によれば、高彩度画素の影響を確実に除去しながらも、一定の低彩度画素に起因するカラーフェリアの発生を効果的に排除してより自然に近いカラー画像を得ることのできる写真画像処理方法及びその装置を提供することができるようになった。   As described above, according to the present invention, a color image closer to nature can be obtained by effectively eliminating the occurrence of color feria due to certain low saturation pixels while reliably removing the influence of high saturation pixels. It is now possible to provide a photographic image processing method and apparatus that can be obtained.

以下、本発明による写真画像処理方法及び写真画像処理装置の実施の形態について説明する。図1に示すように、写真画像処理装置1は、印画紙Pに対して出力画像データに基づいた露光処理を行なうと共に露光された印画紙を現像処理する写真プリンタ2と、現像済みの写真フィルムFから画像を読み込むフィルムスキャナ31やデジタルスチルカメラ等で撮影された画像データが格納されたメモリカード等の画像データ記憶メディアMから画像データを読み取るメディアドライバ32や、コントローラ33としての汎用コンピュータ等を備え、入力された元画像としての写真画像に対するプリントオーダ情報を設定入力するとともに、各種の画像補正処理を行なう操作ステーション3を備えて構成され、前記操作ステーション3で元画像から編集処理されたプリントデータが前記写真プリンタ2に出力されて所望の写真プリントが生成される。   Embodiments of a photographic image processing method and a photographic image processing apparatus according to the present invention will be described below. As shown in FIG. 1, a photographic image processing apparatus 1 includes a photographic printer 2 that performs an exposure process based on output image data on a photographic paper P and develops the exposed photographic paper, and a developed photographic film. A media driver 32 that reads image data from an image data storage medium M such as a memory card that stores image data taken by a film scanner 31 or a digital still camera that reads an image from F, or a general-purpose computer as a controller 33 The print station is configured to include input of print order information for a photographic image as an input original image and an operation station 3 for performing various image correction processes. The print is edited from the original image by the operation station 3. Data is output to the photographic printer 2 to produce a desired photographic print. It is made.

前記写真プリンタ2は、図1及び図2に示すように、ロール状の印画紙Pを収容した二系統の印画紙マガジン21と、前記印画紙マガジン21から引き出された印画紙Pを所定のプリントサイズに切断するシートカッター22と、切断後の印画紙Pの背面にコマ番号等のプリント情報を印字するバックプリント部23と、前記プリントデータに基づいて印画紙Pを露光する露光部24と、露光後の印画紙Pを現像、漂白、定着するための各処理液が充填された複数の処理槽25a、25b、25cを備えた現像処理部25が印画紙Pの搬送経路に沿って配置され、現像処理後に乾燥処理された印画紙Pが排出される横送りコンベア26と、横送りコンベア26に集積された複数枚の印画紙(写真プリント)Pがオーダー単位で仕分けられるソータ27を備えて構成される。   As shown in FIGS. 1 and 2, the photographic printer 2 includes two systems of photographic paper magazines 21 containing roll-shaped photographic paper P, and photographic paper P drawn from the photographic paper magazine 21 with a predetermined print. A sheet cutter 22 that cuts into a size; a back print unit 23 that prints print information such as a frame number on the back of the cut photographic paper P; an exposure unit 24 that exposes the photographic paper P based on the print data; A development processing unit 25 including a plurality of processing tanks 25a, 25b, and 25c filled with processing solutions for developing, bleaching, and fixing the exposed photographic paper P is disposed along the transport path of the photographic paper P. The laterally-feeding conveyor 26 that discharges the photographic paper P that has been dried after the development process, and the sheet-paper (photo print) P that is stacked on the laterally-feeding conveyor 26 is sorted in order units. Configured to include the data 27.

前記露光部24には、前記搬送機構28によって副走査方向に搬送される印画紙Pに対して、搬送方向に直交する主走査方向に前記プリントデータに基づき変調されたRGB三色の光線束を出力して露光する露光ヘッド24aが収容されている。   The exposure unit 24 receives the RGB three-color light flux modulated on the basis of the print data in the main scanning direction orthogonal to the conveyance direction with respect to the photographic paper P conveyed in the sub-scanning direction by the conveyance mechanism 28. An exposure head 24a for outputting and exposing is accommodated.

前記搬送経路に沿って配置された前記露光部24や現像処理部25に応じたプロセス速度で印画紙Pを搬送する複数のローラ対でなる搬送機構28が配置され、前記露光部24の前後には印画紙Pを複列に搬送可能なチャッカー式搬送機構28aが設けられている。   A transport mechanism 28 including a plurality of roller pairs that transport the photographic printing paper P at a process speed corresponding to the exposure unit 24 and the development processing unit 25 disposed along the transport path is disposed before and after the exposure unit 24. Is provided with a chucker-type transport mechanism 28a capable of transporting photographic paper P in multiple rows.

前記操作ステーション3に設けられたコントローラ33には、汎用のオペレーティングシステムの管理下で動作し、前記写真処理装置1の各種制御が実行されるアプリケーションプログラムがインストールされ、オペレータとの操作インターフェースとしてモニタ34、キーボード35、マウス36等が接続されている。   The controller 33 provided in the operation station 3 is installed with an application program that operates under the control of a general-purpose operating system and executes various controls of the photographic processing apparatus 1, and a monitor 34 as an operation interface with the operator. A keyboard 35, a mouse 36, and the like are connected.

前記コントローラ33のハードウェア及びソフトウェアの協働により実行される写真処理プロセスを機能ブロックで説明すると、図3に示すように、前記フィルムスキャナ31やメディアドライバ32によって読み取られた元画像としての写真画像を受け取り、所定の前処理を行なって後述のメモリ41に転送する画像入力部40と、前記モニタ34の画面にプリントオーダ情報や画像編集情報を表示するとともに、それらに対して必要なデータ入力のための操作用アイコンを表示するグラフィック操作画面の生成や、表示されたグラフィック操作画面に対する前記キーボード35やマウス36からの入力操作に基づいて各種の制御コマンドを生成するグラフィックユーザーインターフェース部42と、前記画像入力部40から転送される元画像データ及び後述の画像処理部47による補正処理後の補正画像データやそのときの処理パラメータ、更には設定されたプリントオーダ情報等が区画されて格納されるメモリ41と、プリントオーダ情報を生成するオーダー処理部43と、前記メモリ41に格納された元画像に対して階調補正、カラー補正、拡縮処理、歪補正等の各種の補正を行なう画像処理部47と、前記グラフィックユーザーインターフェース部42からの表示コマンドに基づいて前記メモリ41に展開された元画像や補正画像データ、更には各種の入出力用グラフィックデータ等を前記モニタ34に表示処理するビデオRAM等を備えた表示制御部46と、各種の補正処理が終了した最終の補正画像を前記写真プリンタ2に出力するためのプリントデータを生成するプリントデータ生成部44と、顧客のオーダーに応じて最終の補正画像をCD−R等の記憶媒体に書き込むためのファイル形式に変換するフォーマッタ部45等で構成される。   The photographic processing process executed by the cooperation of the hardware and software of the controller 33 will be described in functional blocks. As shown in FIG. 3, a photographic image as an original image read by the film scanner 31 or the media driver 32 is shown. The image input unit 40 that performs predetermined preprocessing and transfers it to the memory 41 (to be described later), and print order information and image editing information are displayed on the screen of the monitor 34, and necessary data input for these is displayed. A graphic user interface unit 42 for generating various control commands based on an input operation from the keyboard 35 or mouse 36 for the displayed graphic operation screen; Source transferred from the image input unit 40 Generates print order information and a memory 41 in which image data, corrected image data after correction processing by an image processing unit 47 described later, processing parameters at that time, and set print order information are partitioned and stored. From the order processing unit 43, the image processing unit 47 that performs various corrections such as gradation correction, color correction, enlargement / reduction processing, distortion correction on the original image stored in the memory 41, and the graphic user interface unit 42 A display control unit 46 including a video RAM for displaying the original image and the corrected image data developed in the memory 41 based on the display command, and various input / output graphic data on the monitor 34; Print data for outputting the final corrected image for which various correction processes have been completed to the photographic printer 2 is generated. A lint data generating unit 44, and the like formatter 45 which converts the final corrected image according to customer orders to a file format for writing in a storage medium such as a CD-R.

前記フィルムスキャナ31は、フィルムFに記録された画像を低解像度ではあるものの高速で読み取るプレスキャンモードと、低速ではあるものの高解像度で読み取る本スキャンモードの二モードで作動するように構成され、プレスキャンモードで読み込まれた低解像度の画像に対して後述の各種の補正処理が行なわれ、その際に前記メモリ41に記憶された補正パラメータに基づいて本スキャンモードで読み込まれた高解像度の画像に対する最終の補正処理が実行される。同様に、前記メディアドライバ32から読み込まれた画像ファイルには高解像度の撮影画像とそのサムネイル画像が含まれ、サムネイル画像に対して後述の各種の補正処理が行なわれ、その際に前記メモリ41に記憶された補正パラメータに基づいて高解像度の撮影画像に対する最終の補正処理が実行される。尚、画像ファイルにサムネイル画像が含まれないときには、前記画像入力部40で高解像度の撮影画像からサムネイル画像が生成されて前記メモリ41に転送される。このように、低解像度の画像に対して頻繁に試行錯誤される各種の編集処理が実行されることによりコントローラ33の演算負荷が低減されるように構成されている。   The film scanner 31 is configured to operate in two modes: a pre-scan mode that reads an image recorded on the film F at a high speed although it has a low resolution, and a main scan mode that reads a high-resolution image at a low speed. Various correction processes described later are performed on the low-resolution image read in the can mode, and the high-resolution image read in the main scan mode based on the correction parameters stored in the memory 41 at that time. The final correction process is executed. Similarly, the image file read from the media driver 32 includes a high-resolution captured image and its thumbnail image, and various correction processes described later are performed on the thumbnail image. Based on the stored correction parameters, a final correction process is performed on the high-resolution captured image. When the image file does not include a thumbnail image, the image input unit 40 generates a thumbnail image from the high-resolution captured image and transfers it to the memory 41. In this way, the calculation load of the controller 33 is reduced by executing various editing processes that are frequently trial and error on low-resolution images.

前記画像処理部47は、例えば、元画像に対して撮影レンズに起因する歪を補正する歪補正部50、画像のエッジを強調しノイズを低減する鮮鋭化処理部51、写真プリントのサイズに適した画像サイズに変換する拡縮処理部52、自然なカラーを再現できるようにカラーバランスを調整するカラー補正部53等を備えて構成される。   The image processing unit 47 is suitable for, for example, a distortion correction unit 50 that corrects distortion caused by a photographing lens with respect to an original image, a sharpening processing unit 51 that enhances an edge of an image and reduces noise, and a size of a photographic print. An enlargement / reduction processing unit 52 for converting to an image size, a color correction unit 53 for adjusting a color balance so that natural colors can be reproduced, and the like.

前記カラー補正部53は、元画像データを構成する画素毎に彩度を求める彩度演算部54と、前記求めた各彩度と相関を持たせた重み係数を画素毎に求める重み係数導出部55と、画素毎の各色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求める重み平均値演算部56と、前記重み平均値演算部56で演算された色成分毎の重み平均値に基づいて各画素の色成分を補正する、つまり、拡張LATD処理する画素データ補正部57とを備えて構成されている。   The color correction unit 53 includes a saturation calculation unit 54 that obtains saturation for each pixel constituting the original image data, and a weighting factor derivation unit that obtains a weighting factor correlated with the obtained saturations for each pixel. 55, a weighted average value calculating unit 56 for obtaining a weighted average value for each color component obtained by dividing the product sum of each color component for each pixel and the weighting factor by the sum of the weighting factors, and the weighted average value calculating unit 56 A pixel data correction unit 57 that corrects the color component of each pixel based on the calculated weighted average value for each color component, that is, performs an extended LATD process, is provided.

前記彩度演算部54は、前記コマ画像から後述する演算に適応させるために所定の画素数に縮小したプレビュー画像を作成し、画素毎に彩度Sa(i)を算出する構成となっている。ここでiは、前記画素の番号を示すものでi=0,1,2,・・・,n−1(n:画素数)である。前記プレビュー画像は、例えば、サムネイル画像やプレスキャンモードで読み込まれた画像のように、低解像度の画像の場合には、そのままの倍率で用いる構成としてもよい。   The saturation calculation unit 54 is configured to create a preview image reduced to a predetermined number of pixels from the frame image so as to adapt to the calculation described later, and calculate the saturation Sa (i) for each pixel. . Here, i indicates the number of the pixel, and i = 0, 1, 2,..., N−1 (n: the number of pixels). For example, in the case of a low-resolution image such as a thumbnail image or an image read in the pre-scan mode, the preview image may be used at the same magnification.

前記重み係数導出部55は、前記彩度演算部54で求めた各彩度Sa(i)と相関を持たせた重み係数Sb(i)を画素毎に求めるように構成されている。前記重み係数Sb(i)は、例えば、図5に示すような、低彩度画素ほどその補正強度Rc(i)が強くなるように、前記彩度Sa(i)に対して線形的に変化する補正強度特性、或いは、前記彩度Sa(i)に対してべき関数k・(Sa)γ(kは定数であり、適宜実験により設定される)的に変化する補正強度特性に基づいて算出される。例えば、前記重み係数Sb(i)は(数1)に示す算出式により得ることができる。 The weighting factor deriving unit 55 is configured to obtain a weighting factor Sb (i) correlated with each saturation Sa (i) obtained by the saturation calculating unit 54 for each pixel. The weighting factor Sb (i) changes linearly with respect to the saturation Sa (i) so that the correction strength Rc (i) becomes stronger as the saturation pixel becomes lower, for example, as shown in FIG. Or a correction intensity characteristic that changes in a power function k · (Sa) γ (k is a constant and is appropriately set by experiment) with respect to the saturation Sa (i). Is done. For example, the weight coefficient Sb (i) can be obtained by the calculation formula shown in (Expression 1).

ここで、前記彩度Sa(i)は、図4(a)に示すような色相が円周に沿って配置され、明度が高さ方向に刻まれ、彩度が中心からの距離で表されるマンセル表色系における色立体において、図4(b)に示す明度軸の中央を輪切りにした断面上で、各画素のRGB色成分をプロットしたときの中心からの距離として求められ、前記Sathは色相毎に設定される彩度閾値である。つまり、(数1)は、前記彩度Sa(i)が前記彩度閾値Sath以下の画素においては、前記重み係数Sb(i)を前記べき関数k・(Sa(i))γ(kは定数)に基づいて算出することで、前記彩度Sa(i)が低いほど前記重み係数Sb(i)を大きく、逆に前記彩度Sa(i)が高いほど前記重み係数Sb(i)を小さく算出することを示し、また、前記彩度Sa(i)が前記彩度閾値Sathより大きな画素においては、前記重み係数Sb(i)を0とすることを示すものである。ここに、前記重み係数Sb(i)が0となる場合には、高彩度画素として後述の重み平均値演算の対象から除去されることになる。 Here, the saturation Sa (i) is expressed by the distance from the center, with hues arranged along the circumference as shown in FIG. In the color solid in the Munsell color system, it is obtained as the distance from the center when the RGB color component of each pixel is plotted on the cross section with the center of the brightness axis shown in FIG. Is a saturation threshold set for each hue. In other words, (Equation 1) indicates that the weighting coefficient Sb (i) is set to the power function k · (Sa (i)) γ (k is the pixel in which the saturation Sa (i) is equal to or less than the saturation threshold value Sath. The weighting coefficient Sb (i) is increased as the saturation Sa (i) is lower, and conversely, the weighting coefficient Sb (i) is increased as the saturation Sa (i) is higher. In other words, the weighting coefficient Sb (i) is set to 0 in a pixel in which the saturation Sa (i) is larger than the saturation threshold Sath. Here, when the weight coefficient Sb (i) is 0, it is removed from the target of weight average value calculation described later as a high saturation pixel.

また、前記べき数γは画像データの属性に基づいて設定される。例えば、これまでの実験結果によると、ネガフィルムから取得した画像データにおいては、前記べき数γを凡そ1.5とすることが、また、デジタルカメラより取得した画像データにおいては、前記べき数γを凡そ1.2とすることが好適である。   The power number γ is set based on the attribute of the image data. For example, according to the experimental results so far, in the image data acquired from the negative film, the power γ should be about 1.5, and in the image data acquired from the digital camera, the power γ Is preferably about 1.2.

前記彩度閾値Sathは、図4(b)に示すように、マンセルの色立体の断面図において、色相により領域分離し、領域(色相)毎に設定される。つまり、元画像データの各画素の示す色相を前記マンセルの色立方体における色相領域に当て嵌め、その色相領域における彩度閾値Sathを用いて算出した補正強度Rc(i)を用いて前記重み係数Sb(i)を算出する構成とすることで、前記重み係数Sb(i)を前記色相に応じて設定するのである。また、前記彩度閾値Sathは、高彩度画素を補正対象画像から除去する所定範囲の値をとる閾値であり、これにより、高彩度画素の影響によるカラーフェリアの発生を防止するための値である。   As shown in FIG. 4B, the saturation threshold value Sath is set for each region (hue) by dividing the region by hue in the Munsell color solid sectional view. In other words, the hue indicated by each pixel of the original image data is applied to the hue area in the Munsell color cube, and the weight coefficient Sb is calculated using the correction intensity Rc (i) calculated using the saturation threshold Sath in the hue area. With the configuration for calculating (i), the weighting coefficient Sb (i) is set according to the hue. The saturation threshold value Sath is a threshold value that takes a value in a predetermined range for removing the high saturation pixel from the correction target image, and is a value for preventing the occurrence of color failure due to the influence of the high saturation pixel.

また、元画像の表示色に色の偏りがある場合には、色の偏りの原因となっている特定色相の画素が多く含まれるように強調しておくことで、後に行なう拡張LATD処理によって前記色の偏りの除去を行い易くすることができる。例えば、人工物は黄色い色調のものが多く、タングステン光の下での撮影画像は全体的に黄色っぽくなるために、そのような黄色い画素を本来の色に補正するためには重み係数を他の色相の画素よりも大に設定する必要があり、植物を背景とする撮影画像は光が当たらず彩度の低い部位であってもカラーフェリアの発生を抑制すべく重み係数を他の色相の画素よりも小に設定する必要がある。そのような場合に、彩度閾値Sathを黄色領域では大に、緑色領域では小に設定することで、適切な重み係数に調整することができるようになるのである。   Further, when the display color of the original image has a color deviation, it is emphasized so that many pixels of a specific hue that cause the color deviation are included, so that the above-described extended LATD process is performed. It is possible to easily remove the color deviation. For example, many artifacts have a yellow color tone, and the captured image under tungsten light is generally yellowish. Therefore, in order to correct such a yellow pixel to the original color, other weighting factors are used. It is necessary to set a larger pixel than the pixel of the hue, and even if the photographed image with the plant background is not exposed to light and has a low saturation, the weight coefficient is set to a pixel of another hue to suppress the occurrence of color feria. Must be set smaller than In such a case, the saturation threshold value Sath can be adjusted to an appropriate weighting factor by setting it large in the yellow region and small in the green region.

尚、前記(数1)において、前記定数qを前記彩度閾値Sathに基づいて設定することにより、前記べき関数を彩度閾値Sathに基づいたべき関数としたが、これに限定するものではなく、適宜べき関数を設定することができる。   In the above (Equation 1), the constant function q is set based on the saturation threshold value Sath so that the power function is a power function based on the saturation threshold value Sath. However, the present invention is not limited to this. A function that should be appropriate can be set.

また、前記彩度閾値Sathは、所定の範囲の彩度閾値以下の低彩度画素に対して有効に作用するように、その範囲を設定することにより、カラーフェリアの発生する虞のある高彩度画素を効果的に除去することも可能となる。   In addition, the saturation threshold value Sath is set to a range such that the saturation threshold value Sath effectively acts on a low saturation pixel equal to or lower than the saturation threshold value of the predetermined range, whereby a high saturation pixel in which color failure may occur. Can also be effectively removed.

前記重み平均値演算部56は、画素毎の各色成分r(i)、g(i)、b(i)と前記重み係数Sb(i)との積和rx、gx、bxを前記重み係数Sb(i)の和nxで除した色成分毎の重み平均値rxa、gxa、bxaを求めるものであり、(数2)及び(数3)に示す算出式により算出される。   The weighted average value calculation unit 56 calculates the product sum rx, gx, bx of each color component r (i), g (i), b (i) and the weighting coefficient Sb (i) for each pixel as the weighting coefficient Sb. Weight average values rxa, gxa, bxa for each color component divided by the sum nx of (i) are obtained, and are calculated by the calculation formulas shown in (Expression 2) and (Expression 3).

画素データ補正部57は、前記重み平均値演算部56で演算された色成分毎の重み平均値rxa、gxa、bxaに基づいて拡張LATD処理するもので、例えば、G成分を基準としてR成分の補正値Δrxaを、同じくG成分を基準としてB成分の補正値Δbxaを夫々(数4)により求め、各画素のR成分にはΔrxaを、各画素のB成分にはΔbxaを加減処理することにより補正を行なう構成となっている。尚、画素データ補正部57は、重み平均演算から除去された画素については補正を行なわないようにすることも可能である。   The pixel data correction unit 57 performs an extended LATD process on the basis of the weighted average values rxa, gxa, bxa for each color component calculated by the weighted average value calculating unit 56. Similarly, the correction value Δrxa is obtained from the G component as a reference by calculating the B component correction value Δbxa (Equation 4), and Δrxa is applied to the R component of each pixel, and Δbxa is applied to the B component of each pixel. The correction is made. Note that the pixel data correction unit 57 may be configured not to perform correction on the pixels removed from the weighted average calculation.

以下、カラー補正部53による前記色成分毎の重み平均値rxa、gxa、bxaの導出動作について、図6に示すフローチャートに基づいて説明する。前記彩度演算部54が前記メモリに記憶された画像から所定画素数のプレビュー画像、例えば、640×480pixelを作成し(S1)、前記画像の画素数n=640×480を記憶すると(S2)、前記カラー補正部53の各ブロックは、各データ、例えば、各色成分r(i)、g(i)、b(i)と前記重み係数Sb(i)との積和rx、gx、bxや前記重み係数Sb(i)の総和nx等の記憶領域の初期化を行なう(S3)。また、前記カラー補正部53は、前記画像の全ての画素の演算を行なうため、前記画素をカウントする内部カウント値iをリセットする(S4)。   Hereinafter, the operation of deriving the weighted average values rxa, gxa, and bxa for each color component by the color correction unit 53 will be described based on the flowchart shown in FIG. When the saturation calculation unit 54 creates a preview image having a predetermined number of pixels, for example, 640 × 480 pixels from the image stored in the memory (S1), and stores the number of pixels n = 640 × 480 of the image (S2). Each block of the color correction unit 53 has a product sum rx, gx, bx of each data, for example, each color component r (i), g (i), b (i) and the weight coefficient Sb (i). A storage area such as the sum nx of the weighting factors Sb (i) is initialized (S3). Further, the color correction unit 53 resets the internal count value i for counting the pixels in order to calculate all the pixels of the image (S4).

前記彩度演算部54は、前記カウント値iに相当する画素の各色成分r(i)、g(i)、b(i)、から彩度Sa(i)を算出する(S5)。   The saturation calculator 54 calculates the saturation Sa (i) from the color components r (i), g (i), and b (i) of the pixel corresponding to the count value i (S5).

前記重み係数導出部55は、前記彩度Sa(i)と前記彩度閾値Sathとの比を算出し(S6)、1.0以下であれば、補正強度Rc(i)を例えば、前記べき定数γを1.5としたべき関数により算出する(S7)。また、1.0より大きければ1.0とする(S8)。次に、前記補正強度Rc(i)を用いて重み係数Sb(i)を算出する(S9)。   The weighting factor deriving unit 55 calculates a ratio between the saturation Sa (i) and the saturation threshold Sath (S6). If the ratio is 1.0 or less, the correction strength Rc (i) is set to, for example, the power A constant γ is calculated by a function that should be 1.5 (S7). If it is larger than 1.0, it is set to 1.0 (S8). Next, a weighting coefficient Sb (i) is calculated using the correction strength Rc (i) (S9).

前記重み平均演算部56は、画素の各色成分r(i)、g(i)、b(i)と前記重み係数Sb(i)を積算し、他の画素の各色成分r(i)、g(i)、b(i)と重み係数Sb(i)により得られた積算値に加えることで、積和値bx、gx、rxを更新し、また、前記重み係数Sb(i)を他の画素における重み係数Sb(i)に加えることでnxを更新する(S10)。   The weighted average calculation unit 56 integrates each color component r (i), g (i), b (i) of the pixel and the weight coefficient Sb (i), and each color component r (i), g of the other pixel. (I) By adding to the integrated value obtained by b (i) and the weighting coefficient Sb (i), the product-sum values bx, gx, rx are updated, and the weighting coefficient Sb (i) is changed to another value. Nx is updated by adding to the weight coefficient Sb (i) in the pixel (S10).

前記カラー補正部53は、前記内部カウンタ値iをインクリメントし(S11)、全ての画素数について、上記の演算が完了したとすると(S12)、前記重み平均演算部56により前記(数3)に従って重み平均値rxa、gxa、bxaを求める(S13)。   The color correction unit 53 increments the internal counter value i (S11), and if the above calculation is completed for all the pixel numbers (S12), the weighted average calculation unit 56 performs the calculation according to (Equation 3). The weighted average values rxa, gxa, bxa are obtained (S13).

上述した実施形態では、前記彩度閾値Sathを色相毎に異なる値を設定するものを説明したが、これに限定されるものではなく、一律の値に設定するものであってもよい。   In the above-described embodiment, the saturation threshold value Sath is set to a different value for each hue. However, the present invention is not limited to this, and may be set to a uniform value.

上述では、一枚の画像データを用いて当該画像の重み平均値を算出し、前記重み平均値に基づいて拡張LATD処理する場合について説明したが、複数枚の画像データを用いて算出した重み平均値に基づいて拡張LATD処理する構成としてもよい。   In the above description, the weight average value of the image is calculated using one piece of image data, and the extended LATD process is performed based on the weight average value. However, the weight average calculated using a plurality of pieces of image data is described. The extended LATD processing may be performed based on the value.

上述では、画素データの補正は、画素毎の色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求め、色成分毎の重み平均値に基づいて各画素の色成分を補正する場合について説明したが、これに限定するものではなく、前記重み係数に基づいて各画素の色成分を補正する構成とすればよい。   In the above description, pixel data correction is performed by obtaining a weighted average value for each color component obtained by dividing the product sum of the color component for each pixel and the weighting factor by the sum of the weighting factors, and based on the weighted average value for each color component. In the above description, the color component of each pixel is corrected. However, the present invention is not limited to this, and the color component of each pixel may be corrected based on the weighting factor.

図7(a)に示す写真画像に対して、上述の(数1)、(数2)、(数3)の演算処理によって得られた重み平均値に基づいて拡張LATD処理を施した結果を図7(b)に示し、従来のように単に高彩度画素を除去する方法によって得られた補正値を用いて拡張LATD処理を施した結果を図7(c)に示す。これによれば、彩度閾値以下の領域で、低彩度画素ほど重み係数を大きくして、補正強度を強めた本発明の効果が示されている。   The result obtained by performing the extended LATD processing on the photographic image shown in FIG. 7A based on the weighted average value obtained by the arithmetic processing of (Equation 1), (Equation 2), and (Equation 3) described above. FIG. 7B shows the result of performing the extended LATD processing using the correction value obtained by the method of simply removing the high saturation pixels as shown in FIG. According to this, the effect of the present invention is shown in which the weighting coefficient is increased for lower saturation pixels in the region below the saturation threshold, and the correction strength is increased.

その結果、従来のLATD処理では、低彩度の画像の中で比較的彩度の高い画像領域、例えば傘の色であるマゼンタ色の影響を受けることによって、他の領域がマゼンタ色の補色である緑色がかって表示される。例えば、人の顔が肌色とは異なる色になっていることからも、カラーフェリアが発生していることが確認される。これに対して、本発明による方法では、傘の色が従来の方法とほぼ同程度に再現しながらも、人の顔がより肌色に近くなっていることから、カラーフェリアが大きく改善していることが確認できる。   As a result, in the conventional LATD processing, an image area having a relatively high saturation in a low saturation image, for example, a magenta color that is an umbrella color, is affected, so that other areas are complementary colors of magenta. A certain green color is displayed. For example, it is confirmed that the color feria has occurred because the human face has a color different from the skin color. On the other hand, in the method according to the present invention, the color of the umbrella is reproduced almost as much as the conventional method, but the face of the person is closer to the skin color, so the color feria is greatly improved. I can confirm that.

写真画像処理装置の外観説明図External view of photographic image processing device 写真画像処理装置の内部説明図Internal explanatory diagram of photographic image processing device 写真画像処理装置の機能ブロック構成図Functional block diagram of photographic image processing device マンセルの色立方体の説明図であり、(a)は全体図、(b)は色相領域の例を説明するための断面図It is explanatory drawing of the color cube of Munsell, (a) is a general view, (b) is sectional drawing for demonstrating the example of a hue area | region. 彩度−補正強度特性の説明図Illustration of saturation-corrected intensity characteristics 色成分毎の重み平均値の導出手順を説明するためのフローチャートFlowchart for explaining the procedure for deriving the weighted average value for each color component 本発明による写真画像処理結果の説明図であり、(a)は元画像、(b)は本発明を用いた写真画像処理による画像、(c)は従来技術を用いた写真画像処理による画像It is explanatory drawing of the photographic image processing result by this invention, (a) is an original image, (b) is an image by the photographic image processing using this invention, (c) is an image by the photographic image processing using a prior art.

1:写真画像処理装置
47:画像処理部
53:カラー補正部
54:彩度演算部
55:重み係数導出部
56:重み平均値演算部
57:画素データ補正部
1: Photo image processing device 47: Image processing unit 53: Color correction unit 54: Saturation calculation unit 55: Weight coefficient derivation unit 56: Weight average value calculation unit 57: Pixel data correction unit

Claims (10)

元画像データを構成する画素の色成分毎に所定の平均値を求め、当該平均値がグレーに対応する所定の値になるように各画素の色成分を補正する写真画像処理方法であって、
元画像データを構成する画素毎に彩度を求める彩度演算ステップと、
予め色相を複数の領域に分離した色相領域毎に設定された彩度閾値より低彩度側の画素に対して低彩度画素ほど重み係数が大きくなるように、各画素の彩度と相関を持たせた重み係数を画素毎に求める重み係数導出ステップと、
画素毎の各色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求める重み平均値演算ステップと、
何れかの色成分毎の重み平均値を基準に、他の色成分毎の重み平均値との差分を補正値として求め、各画素の色成分を当該補正値に基づいて補正する画素データ補正ステップとからなる写真画像処理方法。
A photographic image processing method for obtaining a predetermined average value for each color component of pixels constituting original image data and correcting the color component of each pixel so that the average value becomes a predetermined value corresponding to gray,
A saturation calculation step for obtaining saturation for each pixel constituting the original image data;
The saturation and correlation of each pixel are correlated so that the weighting factor increases for lower saturation pixels than the saturation threshold set for each hue region in which the hue is divided into a plurality of regions in advance. A weighting factor derivation step for obtaining the given weighting factor for each pixel;
A weighted mean value calculating step for obtaining a weighted mean value for each color component obtained by dividing the product sum of each color component for each pixel and the weighting factor by the sum of the weighting factors;
A pixel data correction step for obtaining a difference from the weighted average value for each of the other color components as a correction value based on the weighted average value for any color component, and correcting the color component of each pixel based on the correction value A photographic image processing method comprising:
前記彩度閾値は、元画像を構成する画素の色の偏りに基づいて、色相領域毎に可変に設定されるものである請求項記載の写真画像処理方法。 The saturation threshold is based on the color bias of the pixels constituting the original image, photographic image processing method according to claim 1, wherein it is intended to be variably set for each hue region. 前記重み係数が、前記彩度Saに対するべき関数k・(Sa)γ(kは定数)に基づいて、低彩度画素ほど重み係数が大となるように求められる請求項1または2記載の写真画像処理方法。 3. The photograph according to claim 1, wherein the weighting factor is determined so that the weighting factor becomes larger as the pixel is lower in saturation, based on a power function k · (Sa) γ (k is a constant) with respect to the saturation Sa. Image processing method. 前記べき数γが元画像データの属性に基づいて異なる値に設定される請求項記載の写真画像処理方法。 The photographic image processing method according to claim 3, wherein the power number γ is set to a different value based on an attribute of the original image data. 前記画素データ補正ステップは、前記彩度閾値より低彩度側の画素に対してのみ色成分を補正する請求項1からの何れかに記載の写真画像処理方法。 The pixel data correction step, photographic image processing method according to any one of claims 1 to 4 only for correcting the color components to pixels of the low chroma side than the saturation threshold. 元画像データを構成する画素の色成分毎に所定の平均値を求め、当該平均値がグレーに対応する所定の値になるように各画素の色成分を補正する写真画像処理装置であって、
元画像データを構成する画素毎に彩度を求める彩度演算部と、
予め色相を複数の領域に分離した色相領域毎に設定された彩度閾値より低彩度側の画素に対して低彩度画素ほど重み係数が大きくなるように、各画素の彩度と相関を持たせた重み係数を画素毎に求める重み係数導出部と、
画素毎の各色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求める重み平均値演算部と、
何れかの色成分毎の重み平均値を基準に、他の色成分毎の重み平均値との差分を補正値として求め、各画素の色成分を当該補正値に基づいて補正する画素データ補正部とからなる写真画像処理装置。
A photographic image processing apparatus that obtains a predetermined average value for each color component of pixels constituting original image data and corrects the color component of each pixel so that the average value becomes a predetermined value corresponding to gray,
A saturation calculation unit for obtaining saturation for each pixel constituting the original image data;
The saturation and correlation of each pixel are correlated so that the weighting factor increases for lower saturation pixels than the saturation threshold set for each hue region in which the hue is divided into a plurality of regions in advance. A weighting factor deriving unit that obtains a weighting factor for each pixel;
A weight average value calculation unit for obtaining a weight average value for each color component obtained by dividing the product sum of each color component for each pixel and the weight coefficient by the sum of the weight coefficients;
A pixel data correction unit that obtains a difference from a weighted average value for each of other color components as a correction value based on the weighted average value for any one of the color components, and corrects the color component of each pixel based on the correction value A photographic image processing apparatus comprising:
前記彩度閾値は、元画像を構成する画素の色の偏りに基づいて、色相領域毎に可変に設定されるものである請求項記載の写真画像処理装置。 The photographic image processing apparatus according to claim 6 , wherein the saturation threshold is variably set for each hue region based on a color deviation of pixels constituting the original image. 前記重み係数が、前記彩度Saに対するべき関数k・(Sa)γ(kは定数)に基づいて、低彩度画素ほど重み係数が大となるように求められる請求項6または7記載の写真画像処理装置。 The photograph according to claim 6 or 7 , wherein the weighting factor is determined so that the weighting factor becomes larger as the low saturation pixel is based on a power function k · (Sa) γ (k is a constant) with respect to the saturation Sa. Image processing device. 前記べき数γが元画像データの属性に基づいて異なる値に設定される請求項記載の写真画像処理装置。 The photographic image processing apparatus according to claim 8, wherein the power number γ is set to a different value based on an attribute of the original image data. 前記画素データ補正部は、前記彩度閾値より低彩度側の画素に対してのみ色成分を補正する請求項6から9の何れかに記載の写真画像処理装置。 The photographic image processing apparatus according to claim 6 , wherein the pixel data correction unit corrects a color component only for a pixel on a lower saturation side than the saturation threshold.
JP2005036031A 2005-02-14 2005-02-14 Photo image processing method and photo image processing apparatus Expired - Fee Related JP4506498B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005036031A JP4506498B2 (en) 2005-02-14 2005-02-14 Photo image processing method and photo image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005036031A JP4506498B2 (en) 2005-02-14 2005-02-14 Photo image processing method and photo image processing apparatus

Publications (2)

Publication Number Publication Date
JP2006222853A JP2006222853A (en) 2006-08-24
JP4506498B2 true JP4506498B2 (en) 2010-07-21

Family

ID=36984841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005036031A Expired - Fee Related JP4506498B2 (en) 2005-02-14 2005-02-14 Photo image processing method and photo image processing apparatus

Country Status (1)

Country Link
JP (1) JP4506498B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11331738A (en) * 1998-03-09 1999-11-30 Fuji Photo Film Co Ltd Method and device for processing image
JPH11346372A (en) * 1998-01-07 1999-12-14 Fuji Photo Film Co Ltd Image processing method and image outputting device
JP2003298858A (en) * 2002-03-20 2003-10-17 Eastman Kodak Co Digital color image processing method for improved tone scale reproduction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11346372A (en) * 1998-01-07 1999-12-14 Fuji Photo Film Co Ltd Image processing method and image outputting device
JPH11331738A (en) * 1998-03-09 1999-11-30 Fuji Photo Film Co Ltd Method and device for processing image
JP2003298858A (en) * 2002-03-20 2003-10-17 Eastman Kodak Co Digital color image processing method for improved tone scale reproduction

Also Published As

Publication number Publication date
JP2006222853A (en) 2006-08-24

Similar Documents

Publication Publication Date Title
US7042501B1 (en) Image processing apparatus
US7173732B2 (en) Image processing method
US7333242B2 (en) Test print producing method and photograph image printing method using the same
JP4385964B2 (en) Photo image processing method and photo image processing apparatus
EP0961486B1 (en) Digital photofinishing system with digital image processing
EP1662315B1 (en) Photograph image-processing method and device thereof
JP4830923B2 (en) Image processing apparatus and image processing method
JP2007249802A (en) Image processor and image processing method
US6560374B1 (en) Image processing apparatus
JP2010068361A (en) Photographic image processing method, photographic image processing program, and photographic image processor
JP4661659B2 (en) Photo image processing apparatus and photo image processing method
JP5157760B2 (en) Photo image processing method, photo image processing program, and photo image processing apparatus
JP4506498B2 (en) Photo image processing method and photo image processing apparatus
JP4591784B2 (en) Method for creating conversion table for photographed image correction and photo printing apparatus for implementing this method
JP2005159387A (en) Method of determining density characteristic curve and density correction management apparatus for executing this method
US6633418B1 (en) Image reading method and image reading apparatus
JP4731202B2 (en) Color correction processing method and color correction processing apparatus using the same
JP3929210B2 (en) Image processing method and apparatus
JP2009004887A (en) Image correction method and image correction device
JP2009016940A (en) Uniformity correction processing apparatus and uniformity correction processing method of frame image
JP2005072850A (en) Adjusting method of three dimensional lut and color conversion system equipped with three dimensional lut
JP4635884B2 (en) Image processing apparatus and method
US6882451B2 (en) Method and means for determining estimated relative exposure values from optical density values of photographic media
JP2006301675A (en) Image processor and image processing method
JP5168809B2 (en) Photo image processing apparatus and photo image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071130

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090508

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090702

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100312

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100406

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100419

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees