JP4385964B2 - Photo image processing method and photo image processing apparatus - Google Patents
Photo image processing method and photo image processing apparatus Download PDFInfo
- Publication number
- JP4385964B2 JP4385964B2 JP2005043544A JP2005043544A JP4385964B2 JP 4385964 B2 JP4385964 B2 JP 4385964B2 JP 2005043544 A JP2005043544 A JP 2005043544A JP 2005043544 A JP2005043544 A JP 2005043544A JP 4385964 B2 JP4385964 B2 JP 4385964B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- saturation
- weighting factor
- 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 - Lifetime
Links
Landscapes
- Control Of Exposure In Printing And Copying (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
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 image processing apparatus that correct 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露光方式において高彩度画素を除去したり、最も大きい面積を占める特徴色に対する色補正率を当該特徴色以外の背景色に対する色補正率と異ならせて補正する方法などが提案されている。
しかし、上述した高彩度画素を除去する方法によっても、低彩度の画像の中で着色領域が大きければ画像の大部分が相対的に高彩度となるために、それらの相加平均値に基づいて各画素を補正しても十分な補正ができず、高彩度画素を除去する閾値を調整して僅かな画素データに基づいて補正する場合には、最早適切な補正が困難になるという問題があり、必ずしも万全なものではなく、更なる改良の余地があった。 However, even with the method of removing the high saturation pixels described above, if the colored region is large in the low saturation image, most of the image becomes relatively high saturation. Even if the pixel is corrected, sufficient correction cannot be performed, and when correcting based on a small amount of pixel data by adjusting a threshold value for removing a high saturation pixel, there is a problem that appropriate correction becomes difficult. It was not perfect and there was room for further improvement.
本発明は、上述の従来欠点に鑑み、高彩度画素の影響を確実に除去しながらも、広範な着色領域である低彩度画素に起因するカラーフェリアの発生を効果的に排除してより自然に近いカラー画像を得ることのできる写真画像処理方法及びその装置を提供する点にある。 In view of the above-mentioned conventional drawbacks, the present invention more effectively eliminates the occurrence of color feria due to low-saturation pixels, which are wide colored areas, while reliably removing the effects of high-saturation pixels. The object is to provide a photographic image processing method and apparatus capable of obtaining a close color image.
上述の目的を達成するため、本発明による写真画像処理方法の第一の特徴構成は、特許請求の範囲の書類の請求項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 for obtaining a predetermined average value and correcting the color component of each pixel so that the average value becomes a predetermined value corresponding to gray, wherein the saturation of each pixel constituting the original image data is determined A saturation calculation step for obtaining a distance from the brightness axis of each pixel position in the Munsell color system color solid, and a lower saturation pixel weighting a pixel on a lower saturation side than a preset saturation threshold A weighting factor derivation step for obtaining a weighting factor that correlates with the saturation of each pixel so that the factor becomes large for each pixel, and a ratio of the sum of the weighting factor to the number of pixels for which the summation of the weighting factor is to be calculated but Irodorido閾 to satisfy a predetermined ratio By adjusting a certain weight factor adjusting step of adjusting the weighting factors, a point consisting of the pixel data correction step of correcting the color components of each pixel based on the weighting coefficients calculated.
上述の構成によれば、求められた重み係数の総和と対応する画素数の比率が定められた所定の比率を満たすように調整することにより、彩度が低い大きな着色領域が存在する画像(求められた重み係数の総和と対応する画素数の比率が定められた所定の比率と違う値となる。)であっても、その彩度によって重み付条件を考慮して補正することができ、カラーフェリアの発生を効果的に抑制して、より自然に近いカラー画像を得ることが可能となるのである。 According to the above-described configuration, an image in which a large colored region with low saturation exists (obtained) is obtained by adjusting the ratio of the total number of weighting factors and the corresponding number of pixels to satisfy a predetermined ratio. Even if the ratio of the number of pixels corresponding to the sum of the weighted coefficients is different from the predetermined ratio), the color can be corrected by considering the weighting condition depending on the saturation. It is possible to effectively suppress the occurrence of feria and obtain a more natural color image.
同第二の特徴構成は、同請求項2に記載した通り、上述の第一特徴構成に加えて、前記画素データ補正ステップは、画素毎の各色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求める重み平均値演算ステップを備え、色成分毎の重み平均値に基づいて各画素の色成分を補正する点にある。 In the second feature configuration, as described in claim 2, in addition to the first feature configuration described above, the pixel data correction step calculates a product sum of each color component for each pixel and the weight coefficient as the weight. A weight average value calculating step for obtaining a weight average value for each color component divided by the sum of the coefficients is provided, and the color component of each pixel is corrected based on the weight average value for each color component.
上述の構成によれば、色成分毎の重み平均値に基づいて各画素の色成分を補正することにより、確実に彩度によって重み付条件を考慮して補正することができ、カラーフェリアの発生を効果的に抑制して、より自然に近いカラー画像を得ることが可能となるのである。 According to the above-described configuration, by correcting the color component of each pixel based on the weighted average value for each color component, it is possible to reliably perform the correction in consideration of the weighting condition according to the saturation, and the occurrence of color failure It is possible to obtain a color image closer to nature by effectively suppressing the above.
同第三の特徴構成は、同請求項3に記載した通り、上述の第一または第二特徴構成に加えて、前記重み係数と前記重み係数の総和が、所定範囲の彩度閾値以下の低彩度画素に対して求められる点にある。 In the third feature configuration, as described in claim 3, in addition to the first or second feature configuration described above, the sum of the weighting factor and the weighting factor is a low value that is equal to or less than a saturation threshold of a predetermined range. This is the point required for chroma 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.
同第四の特徴構成は、同請求項4に記載した通り、上述の第一から第三の何れかの特徴構成に加えて、前記重み係数が、前記彩度Saに対する線形関数p・(Sa)(pは定数)に基づいて求められ、前記定数pの値が調整される点にある。 In the fourth feature configuration, as described in claim 4, in addition to any of the first to third feature configurations described above, the weighting factor is a linear function p · (Sa for the saturation Sa. ) (P is a constant), and the value of the constant p is adjusted.
上述の構成によれば、彩度による重み係数を線形係数の調整という簡易な方法で設定することにより、除去すべき高彩度画素の閾値を可変に調整することができるので、演算負荷を低減しながらより自然に近いカラー画像を得ることが可能となるのである。 According to the above-described configuration, the threshold value of the high saturation pixel to be removed can be variably adjusted by setting the weighting coefficient based on the saturation by a simple method of adjusting the linear coefficient. This makes it possible to obtain a color image that is closer to nature.
同第五の特徴構成は、同請求項5に記載した通り、上述の第一から第三の何れかの特徴構成に加えて、前記重み係数が、前記彩度Saに対するべき関数q・(Sa)γ(qは定数)に基づいて求められ、前記べき数γの値が調整される点にある。 In the fifth feature configuration, as described in claim 5, in addition to any of the first to third feature configurations described above, the weighting coefficient is a power function q · (Sa for the saturation Sa. ) Is obtained based on γ (q is a constant), and the value of the power γ is adjusted.
上述の構成によれば、重み係数を各画素の彩度に比例するように求める場合に比較して、より低彩度画素の重み係数を大に、高彩度画素の重み係数を小に設定できるので、そのような重み係数に基づいて全画素に対する色成分毎の重み平均値を求めて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. Since the weight average value for each color component with respect to all the pixels is obtained based on such a weight coefficient and the LATD process is performed, the color balance can be adjusted more effectively suppressing the occurrence of color feria. is there.
同第六の特徴構成は、同請求項6に記載した通り、上述の第一から第五の何れかの特徴構成に加えて、前記重み係数が色相に応じて設定される点にある。 The sixth feature configuration is that, as described in claim 6, in addition to any of the first to fifth feature configurations described above, the weighting factor is set according to the hue.
上述の構成によれば、画素の彩度に応じて求められる重み係数が、当該画素の色相に応じて可変に設定することができるようになるので、照明光や被写体の種類といった撮影状況の影響を排除してより自然なカラーバランスに調整することができるようになるのである。例えば、黄色い色調は人工物に多く見られる色調であって、そのような黄色い画素を本来の色に補正するためには重み係数を他の色相の画素よりも大に設定する必要があり、植物を背景とする撮影画像は光が当たらず彩度の低い部位であってもカラーフェリアの発生を抑制すべく重み係数を他の色相の画素よりも小に設定する必要がある。そのような場合であっても適切に重み係数を設定することができるようになるのである。 According to the above-described configuration, the weighting coefficient obtained according to the saturation of the pixel can be variably set according to the hue of the pixel. This makes it 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.
本発明による写真画像処理装置の第一の特徴構成は、特許請求の範囲の書類の請求項7に記載した通り、元画像データを構成する画素の色成分毎に所定の平均値を求め、当該平均値がグレーに対応する所定の値になるように各画素の色成分を補正する写真画像処理装置であって、元画像データを構成する各画素の彩度を、マンセル表色系の色立体での各画素位置の明度軸からの距離として求める彩度演算部と、予め設定された彩度閾値より低彩度側の画素に対して低彩度画素ほど重み係数が大きくなるように、各画素の彩度と相関を持たせた重み係数を画素毎に求める重み係数導出部と、重み係数の総和の算出対象となる画素数に対する当該重み係数の総和の比率が、所定比率を満たすように彩度閾値を調整することにより、重み係数を調整する重み係数調整部と、求められた重み係数に基づいて各画素の色成分を補正する画素データ補正部とからなる点にある。 The first characteristic configuration of the photographic image processing apparatus according to the present invention is to calculate a predetermined average value for each color component of the pixels constituting the original image data, as described in claim 7 of the claims. 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, and the saturation of each pixel constituting the original image data is represented by a Munsell color system color solid And a saturation calculation unit for obtaining the distance from the lightness axis of each pixel position in each of the pixels, and for each pixel on the lower saturation side than a preset saturation threshold, the weighting factor increases for each lower saturation pixel A weighting factor deriving unit that obtains a weighting factor that correlates with the saturation of the pixel for each pixel, and a ratio of the sum of the weighting factor to the number of pixels for which the summation of the weighting factor is calculated satisfies a predetermined ratio. by adjusting the saturation threshold, adjusting the weighting factor A weight coefficient adjusting unit that lies in comprising a pixel data correcting section for correcting the color components of each pixel based on the weighting coefficients calculated.
同第二の特徴構成は、同請求項8に記載した通り、上述の第一特徴構成に加えて、前記画素データ補正部は、画素毎の各色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求める重み平均値演算部を備え、色成分毎の重み平均値に基づいて各画素の色成分を補正する点にある。 In the second feature configuration, in addition to the first feature configuration described above, the pixel data correction unit may calculate the product sum of each color component and the weight coefficient for each pixel as the weight. A weight average value calculation unit for obtaining a weight average value for each color component divided by the sum of the coefficients is provided, and the color component of each pixel is corrected based on the weight average value for each color component.
同第三の特徴構成は、同請求項9に記載した通り、上述の第一または第二特徴構成に加えて、前記重み係数と前記重み係数の総和が、所定範囲の彩度閾値以下の低彩度画素に対して求められる点にある。 In the third feature configuration, as described in claim 9, in addition to the first or second feature configuration described above, the sum of the weighting factor and the weighting factor is a low value that is equal to or lower than a saturation threshold of a predetermined range. This is the point required for chroma pixels.
以上説明した通り、本発明によれば、高彩度画素の影響を確実に除去しながらも、広範な着色領域である低彩度画素に起因するカラーフェリアの発生を効果的に排除してより自然に近いカラー画像を得ることのできる写真画像処理方法及びその装置を提供することができるようになった。 As described above, according to the present invention, it is more natural to effectively eliminate the occurrence of color feria due to low saturation pixels, which is a wide coloring area, while reliably removing the influence of high saturation pixels. It has become possible to provide a photographic image processing method and apparatus capable of obtaining a close color image.
以下、本発明による写真画像処理方法及び写真画像処理装置の実施の形態について説明する。図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 so that a desired photographic print can be made. 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 has 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, for example, a sharpening processing unit 51 that enhances an edge of an image and reduces noise, and is suitable for the 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と、画素毎の各色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求める重み平均値演算部57と、色成分毎の重み平均値に基づいて各画素の色成分を補正する画素データ補正部58とを備えて構成されている。 The color correction unit 53 includes a saturation calculation unit 54 for obtaining saturation for each pixel constituting the original image data, and a weight for obtaining a weighting coefficient correlated with each obtained saturation for each pixel. A coefficient deriving unit 55, a weighting factor adjusting unit 56 that adjusts the weighting factor so that the ratio of the obtained sum of the weighting factors and the number of corresponding pixels satisfies a predetermined ratio, and each color component for each pixel and the weighting factor A weighted average value calculating unit 57 for obtaining a weighted average value for each color component obtained by dividing the product sum by the sum of the weighting coefficients, and a pixel data correcting unit for correcting the color component of each pixel based on the weighted average value for each color component 58.
前記彩度演算部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)に対してべき関数的に変化する補正強度特性に基づいて算出される。例えば、前記重み係数Sb(i)は(数1)或いは(数2)に示す算出式により得ることができる。 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. It is calculated on the basis of the correction intensity characteristic to be corrected or the correction intensity characteristic that changes exponentially with respect to the saturation Sa (i). For example, the weight coefficient Sb (i) can be obtained by a calculation formula shown in (Expression 1) or (Expression 2).
ここで、前記彩度Sa(i)は、図4(a)に示すような色相が円周に沿って配置され、明度が高さ方向に刻まれ、彩度が中心からの距離で表されるマンセル表色系における色立体において、図4(b)に示す明度軸の中央を輪切りにした断面上で、各画素のRGB色成分をプロットしたときの中心からの距離として求められ、前記Sathは色相毎に設定される彩度閾値である。つまり、(数1)は、前記彩度Sa(i)が前記彩度閾値Sath以下の画素においては、前記重み係数Sb(i)を彩度閾値Sathに基づいた線形関数p・(Sa(i))(pは定数)に基づいて算出することで、前記彩度Sa(i)が低いほど前記重み係数Sb(i)を大きく、逆に前記彩度Sa(i)が高いほど前記重み係数Sb(i)を小さく算出することを示し、また、前記彩度Sa(i)が前記彩度閾値Sathより大きな画素においては、前記重み係数Sb(i)を0とすることを示すものである。同様に(数2)は、前記彩度Sa(i)が前記彩度閾値Sath以下の画素においては、前記重み係数Sb(i)を彩度閾値Sathに基づいた前記べき関数q・(Sa(i))γ(qは定数)に基づいて算出することで、前記彩度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, in a pixel where the saturation Sa (i) is equal to or less than the saturation threshold value Sath, the linear function p · (Sa (i) based on the saturation threshold value Sath is used as the weight coefficient Sb (i). )) (P is a constant), the weighting coefficient Sb (i) is increased as the saturation Sa (i) is lower, and conversely, the weighting coefficient is increased as the saturation Sa (i) is higher. This indicates that Sb (i) is calculated to be small, and that the weighting coefficient Sb (i) is set to 0 in a pixel where the saturation Sa (i) is larger than the saturation threshold Sath. . Similarly, in (Equation 2), in the pixel in which the saturation Sa (i) is equal to or less than the saturation threshold value Sath, the power function q · (Sa () () is based on the weight coefficient Sb (i) based on the saturation threshold value Sath. i)) By calculating based on γ (q is a constant), the lower the saturation Sa (i), the larger the weight coefficient Sb (i), and conversely, the higher the saturation Sa (i), Indicates that the weighting coefficient Sb (i) is calculated to be small, and indicates that the weighting coefficient Sb (i) is set to 0 in a pixel where the saturation Sa (i) is greater than the saturation threshold Sath. It is. 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.
前記彩度閾値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を黄色領域では大に、緑色領域では小に設定することで、適切な重み係数に調整することができるようになるのである。 In addition, 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 color can be obtained by a LATD process performed later. It is possible to easily remove the bias. 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)において、前記定数pを前記彩度閾値Sathに基づいて設定することにより、前記線形関数を彩度閾値Sathに基づいた線形関数としたが、これに限定するものではなく、適宜線形関数を設定することができる。また、前記(数2)において、前記定数qを前記彩度閾値Sathに基づいて設定することにより、前記べき関数を彩度閾値Sathに基づいたべき関数としたが、これに限定するものではなく、適宜べき関数を設定することができる。 In the above (Equation 1), by setting the constant p based on the saturation threshold value Sath, the linear function is a linear function based on the saturation threshold value Sath. However, the present invention is not limited to this. A linear function can be set as appropriate. Further, in the above (Equation 2), the constant function q is set based on the saturation threshold value Sath to set the 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.
さらには、彩度閾値Sathを所定の高彩度画素領域を除去するべく固定値として設定し、(数1)における係数pを、p=1/(Sath+c)と設定し、cの値を変動させるように構成し、(数2)における係数qを、q=(1/(Sath+c))γと設定し、cの値を変動させるように構成してもよい。 Further, the saturation threshold value Sath is set as a fixed value to remove a predetermined high saturation pixel region, the coefficient p in (Equation 1) is set as p = 1 / (Sath + c), and the value of c is changed. The coefficient q in (Equation 2) may be set as q = (1 / (Sath + c)) γ, and the value of c may be varied.
前記重み平均値演算部57は、画素毎の各色成分r(i)、g(i)、b(i)と前記重み係数Sb(i)との積和rx、gx、bxを前記重み係数Sb(i)の総和nxで除した色成分毎の重み平均値rxa、gxa、bxaを求めるものであり、(数3)及び(数4)に示す算出式により算出される。 The weighted average value calculator 57 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 (Equation 3) and (Equation 4).
前記重み係数調整部56は、重み係数Sb(i)の総和nxの算出対象となる画素数nに対する当該重み係数Sb(i)の総和nxの比率である補正強度割合Raが所定比率を満たすように重み係数を調整するもので、前記補正強度割合Raが所定比率を満たさなかった場合に、前記線形関数p・(Sa(i))(pは定数)における定数p、或いは、前記べき関数q・(Sa(i))γ(qは定数)における定数q或いはべき数γを調整する。つまり、図6(a)、(b)、(c)に示すように、定数p,q或いはべき数γを調整することにより、前記補正強度特性を変更し、前記重み係数導出部55或いは前記重み平均演算部57により、上述した一連の演算を行わせる。尚、前記算出対象となる画素数は、前記重み係数Sb(i)の総和nxを求めるために用いた画素数、つまり、プレビュー画像の画素数nであり、前記補正強度割合Raは、これまでの実験結果より凡そ0.5以上あることが好ましい。しかし、算出対象となる画素数を画像の画素数nに限るものではなく、例えば低彩度領域の画素数にすれば、低彩度領域と認識される領域の中で、カラーフェリアの影響を効果的に抑えることができ、より高精細なカラー表現が可能になる。また、前記定数pの調整は、例えば、前記定数pが前記彩度閾値Sathに基づいた値であれば、前記彩度閾値Sathを調整することにより実施することができる。 The weight coefficient adjusting unit 56 makes a correction intensity ratio Ra, which is a ratio of the sum nx of the weight coefficient Sb (i) to the number n of pixels to be calculated of the sum nx of the weight coefficient Sb (i) , satisfy a predetermined ratio. When the correction intensity ratio Ra does not satisfy a predetermined ratio, the constant p in the linear function p · (Sa (i)) (p is a constant) or the power function q (Sa (i)) The constant q or the power number γ in γ (q is a constant) is adjusted. That is, as shown in FIGS. 6A, 6B, and 6C, the correction strength characteristic is changed by adjusting the constants p , q or the power number γ, and the weight coefficient deriving unit 55 or the The weighted average calculation unit 57 performs the series of calculations described above. The number of pixels to be calculated is the number of pixels used for obtaining the sum nx of the weighting factors Sb (i), that is, the number of pixels n of the preview image, and the correction intensity ratio Ra has been set so far. From the experimental results, it is preferable that the value is about 0.5 or more. However , the number of pixels to be calculated is not limited to the number of pixels n of the image. For example , if the number of pixels in the low saturation region is set, the influence of color feria is reduced in the region recognized as the low saturation region. It can be effectively suppressed and higher-definition color expression becomes possible. Further, the adjustment of the constant p can be performed by adjusting the saturation threshold value Sath, for example, if the constant p is a value based on the saturation threshold value Sath.
画素データ補正部58は、前記補正強度割合Raが所定の比率を満たした場合に、前記重み平均値演算部57で演算された色成分毎の重み平均値rxa、gxa、bxaに基づいてLATD処理するもので、例えば、G成分を基準としてR成分の補正値Δrxaを、同じくG成分を基準としてB成分の補正値Δbxaを夫々(数5)により求め、各画素のR成分にはΔrxaを、各画素のB成分にはΔbxaを加えることにより補正を行なう構成となっている。 The pixel data correction unit 58 performs LATD processing based on the weight average values rxa, gxa, bxa for each color component calculated by the weight average value calculation unit 57 when the correction intensity ratio Ra satisfies a predetermined ratio. For example, the R component correction value Δrxa is obtained using the G component as a reference, the B component correction value Δbxa is obtained using the G component as a reference, respectively, and Δrxa is obtained for the R component of each pixel. Correction is performed by adding Δ b xa to the B component of each pixel.
以下、カラー補正部53による前記色成分毎の重み平均値rxa、gxa、bxaの導出動作について、図7に示すフローチャートに基づいて説明する。前記彩度演算部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).
前記重み係数調整部56は、初期値として与えられている彩度閾値から優先順位の高い彩度閾値Sathを選択する(S6)。 The weight coefficient adjustment unit 56 selects a saturation threshold value Sath having a higher priority from the saturation threshold values given as initial values (S6).
前記重み係数導出部55は、前記彩度Sa(i)と前記彩度閾値Sathとの比を算出し(S7)、1.0以下であれば、補正強度Rc(i)を例えば、前記線形関数により算出する(S8)。また、1.0より大きければ1.0とする(S9)。次に、前記補正強度Rc(i)を用いて重み係数Sb(i)を算出する(S10)。 The weighting factor deriving unit 55 calculates the ratio between the saturation Sa (i) and the saturation threshold Sath (S7), and if it is 1.0 or less, the correction strength Rc (i) is set to, for example, the linear It is calculated by a function (S8). If it is larger than 1.0, it is set to 1.0 (S9). Next, a weighting coefficient Sb (i) is calculated using the correction strength Rc (i) (S10).
前記重み平均演算部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を更新する(S11)。 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 (S11).
前記カラー補正部53は、前記内部カウンタ値iをインクリメントし(S12)、全ての画素数について、上記の演算が完了したとすると(S13)、前記重み係数調整部56によって、前記補正強度割合Raの確認を行なう(S14)。前記補正強度割合Raが所定比率に満たない場合には、前記ステップS6で前記彩度閾値Sathと異なる彩度閾値Sathを選択する条件で、上述のステップS3からS14の演算を行い直す。また、所定比率を満たした場合には、前記重み平均演算部56により前記(数3)に従って重み平均値rxa、gxa、bxaを求める(S15)。 When the color correction unit 53 increments the internal counter value i (S12) and the above calculation is completed for all the pixel numbers (S13), the weight coefficient adjustment unit 56 causes the correction intensity ratio Ra to be corrected. Is confirmed (S14). When the correction intensity ratio Ra is less than the predetermined ratio, the above-described steps S3 to S14 are performed again under the condition that the saturation threshold value Sath different from the saturation threshold value Sath is selected in step S6. If the predetermined ratio is satisfied, the weighted average calculation unit 56 calculates the weighted average values rxa, gxa, bxa according to (Equation 3) (S15).
尚、上述の写真画像処理方法を示すフローチャートは一例に過ぎず、必ずしもこの手順に忠実に実行する必要は無い。 Note that the above-described flowchart showing the photographic image processing method is merely an example, and it is not always necessary to execute this procedure faithfully.
上述した実施形態では、前記彩度閾値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 LATD process is performed based on the weight average value. However, the weight average value calculated using a plurality of pieces of image data is described. It is good also as a structure which performs LATD processing based on this.
上述では、画素データの補正は、画素毎の色成分と前記重み係数との積和を前記重み係数の総和で除した色成分毎の重み平均値を求め、色成分毎の重み平均値に基づいて各画素の色成分を補正する場合について説明したが、これに限定するものではなく、前記重み係数に基づいて各画素の色成分を補正する構成とすればよい。 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.
図8(a)に示す写真画像に対して、上述の(数1)、(数3)、(数4)の演算処理によって得られた重み平均値に基づいてLATD処理を施した結果を図8(b)に示し、従来のように単に高彩度画素を除去する方法によって得られた補正値を用いてLATD処理を施した結果を図8(c)に示す。 FIG. 8 shows the result of LATD processing performed on the photographic image shown in FIG. 8A based on the weighted average value obtained by the arithmetic processing of (Equation 1), (Equation 3), and (Equation 4) described above. FIG. 8C shows the result of performing the LATD processing using the correction value obtained by the method of simply removing the high saturation pixels as shown in FIG. 8B.
その結果、従来のLATD処理では、高彩度画像領域、例えば、空の画像領域を除いた他の画像領域における低彩度の画像の中で、比較的彩度の高い画像領域、例えば、土の画像領域の影響を受けることによって、更に低彩度の画像領域、例えば、アスファルトの画像領域が土色になっていることから、カラーフェリアが発生していることが確認される。これに対して、本発明による方法では、アスファルトの色が正しく表現されていることからカラーフェリアが改善されていることが確認できる。 As a result, in the conventional LATD processing, a high saturation image area, for example, a low saturation image in other image areas excluding an empty image area, a relatively high saturation image area, for example, a soil image. Due to the influence of the area, an image area having a lower saturation, for example, an asphalt image area, has a soil color, so that it is confirmed that a color failure has occurred. On the other hand, in the method according to the present invention, since the color of asphalt is correctly expressed, it can be confirmed that the color feria is improved.
1:写真画像処理装置
47:画像処理部
53:カラー補正部
54:彩度演算部
55:重み係数導出部
56:重み係数調整部
57:重み平均値演算部
58:画素データ補正部
1: Photo image processing device 47: Image processing unit 53: Color correction unit 54: Saturation calculation unit 55: Weight coefficient derivation unit 56: Weight coefficient adjustment unit 57: Weight average value calculation unit 58: Pixel data correction unit
Claims (9)
元画像データを構成する各画素の彩度を、マンセル表色系の色立体での各画素位置の明度軸からの距離として求める彩度演算ステップと、
予め設定された彩度閾値より低彩度側の画素に対して低彩度画素ほど重み係数が大きくなるように、各画素の彩度と相関を持たせた重み係数を画素毎に求める重み係数導出ステップと、
重み係数の総和の算出対象となる画素数に対する当該重み係数の総和の比率が、所定比率を満たすように彩度閾値を調整することにより、重み係数を調整する重み係数調整ステップと、
求められた重み係数に基づいて各画素の色成分を補正する画素データ補正ステップとからなる写真画像処理方法。 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 the saturation of each pixel constituting the original image data as a distance from the brightness axis of each pixel position in the Munsell color system color solid ;
A weighting factor that finds a weighting factor that correlates with the saturation of each pixel so that the weighting factor increases for lower saturation pixels than the preset saturation threshold. A derivation step;
A weighting factor adjustment step for adjusting the weighting factor by adjusting the saturation threshold so that the ratio of the summation of the weighting factors to the number of pixels to be calculated for the summation of the weighting factors satisfies a predetermined ratio;
A photographic image processing method comprising: a pixel data correction step for correcting a color component of each pixel based on a calculated weighting factor.
元画像データを構成する各画素の彩度を、マンセル表色系の色立体での各画素位置の明度軸からの距離として求める彩度演算部と、
予め設定された彩度閾値より低彩度側の画素に対して低彩度画素ほど重み係数が大きくなるように、各画素の彩度と相関を持たせた重み係数を画素毎に求める重み係数導出部と、
重み係数の総和の算出対象となる画素数に対する当該重み係数の総和の比率が、所定比率を満たすように彩度閾値を調整することにより、重み係数を調整する重み係数調整部と、
求められた重み係数に基づいて各画素の色成分を補正する画素データ補正部とからなる写真画像処理装置。 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 that obtains the saturation of each pixel constituting the original image data as a distance from the brightness axis of each pixel position in the Munsell color system color solid ;
A weighting factor that finds a weighting factor that correlates with the saturation of each pixel so that the weighting factor increases for lower saturation pixels than the preset saturation threshold. A derivation unit;
A weighting factor adjustment unit that adjusts the weighting factor by adjusting the saturation threshold so that the ratio of the summation of the weighting factors to the number of pixels for which the sum of the weighting factors is to be calculated satisfies a predetermined ratio;
A photographic image processing apparatus comprising a pixel data correction unit that corrects a color component of each pixel based on a calculated weighting factor.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005043544A JP4385964B2 (en) | 2005-02-21 | 2005-02-21 | Photo image processing method and photo image processing apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005043544A JP4385964B2 (en) | 2005-02-21 | 2005-02-21 | Photo image processing method and photo image processing apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006229811A JP2006229811A (en) | 2006-08-31 |
| JP4385964B2 true JP4385964B2 (en) | 2009-12-16 |
Family
ID=36990736
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005043544A Expired - Lifetime JP4385964B2 (en) | 2005-02-21 | 2005-02-21 | Photo image processing method and photo image processing apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4385964B2 (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2008023792A1 (en) | 2006-08-25 | 2008-02-28 | Panasonic Corporation | Core network device, radio communication base station device, and radio communication method |
| JP4433017B2 (en) | 2007-08-31 | 2010-03-17 | ブラザー工業株式会社 | Image processing apparatus and image processing program |
| JP4442664B2 (en) | 2007-08-31 | 2010-03-31 | ブラザー工業株式会社 | Image processing apparatus, image processing method, and image processing program |
| US8174731B2 (en) | 2007-08-31 | 2012-05-08 | Brother Kogyo Kabushiki Kaisha | Image processing device outputting image for selecting sample image for image correction |
| US8159716B2 (en) | 2007-08-31 | 2012-04-17 | Brother Kogyo Kabushiki Kaisha | Image processing device performing image correction by using a plurality of sample images |
| US8094343B2 (en) | 2007-08-31 | 2012-01-10 | Brother Kogyo Kabushiki Kaisha | Image processor |
| JP4793356B2 (en) * | 2007-08-31 | 2011-10-12 | ブラザー工業株式会社 | Image processing apparatus and image processing program |
| CN116830567A (en) * | 2021-03-09 | 2023-09-29 | Oppo广东移动通信有限公司 | Chroma adjustment method, chroma adjustment device, electronic equipment and readable storage medium |
-
2005
- 2005-02-21 JP JP2005043544A patent/JP4385964B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006229811A (en) | 2006-08-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7333242B2 (en) | Test print producing method and photograph image printing method using the same | |
| EP0961486B1 (en) | Digital photofinishing system with digital image processing | |
| JP4385964B2 (en) | Photo image processing method and photo image processing apparatus | |
| US5995654A (en) | Digital photofinishing system including scene balance and image sharpening digital image processing | |
| JP4830923B2 (en) | Image processing apparatus and image processing method | |
| US6668077B1 (en) | Color correcting relation extracting method and color correction method | |
| EP1662315B1 (en) | Photograph image-processing method and device thereof | |
| US20020118211A1 (en) | Processing film images for digital cinema | |
| US20030011790A1 (en) | Correcting exposure and tone scale of digital images using a plurality of transforms | |
| CN101662568A (en) | Video conversion device, video conversion method and program | |
| JP4506498B2 (en) | Photo image processing method and photo image processing apparatus | |
| JP2009004887A (en) | Image correction method and image correction apparatus | |
| JP4661659B2 (en) | Photo image processing apparatus and photo image processing method | |
| JP4775289B2 (en) | Image processing apparatus and image processing method | |
| JP3929210B2 (en) | Image processing method and apparatus | |
| US7369273B2 (en) | Grayscale mistracking correction for color-positive transparency film elements | |
| JP2005159387A (en) | Method for determining density characteristic curve and density correction management apparatus for implementing this method | |
| JP4591784B2 (en) | Method for creating conversion table for photographed image correction and photo printing apparatus for implementing this method | |
| US6633418B1 (en) | Image reading method and image reading apparatus | |
| JP2005072850A (en) | Method for adjusting three-dimensional LUT and color conversion system having three-dimensional LUT | |
| JP2007249802A (en) | Image processor and image processing method | |
| JP3678372B2 (en) | Image processing device | |
| US6882451B2 (en) | Method and means for determining estimated relative exposure values from optical density values of photographic media | |
| JP5168809B2 (en) | Photo image processing apparatus and photo image processing method | |
| JP4635884B2 (en) | Image processing apparatus and 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: 20090416 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090508 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090625 |
|
| 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: 20090908 |
|
| 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: 20090921 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121009 Year of fee payment: 3 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121009 Year of fee payment: 3 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |