[go: up one dir, main page]

JP2010068361A - Photographic image processing method, photographic image processing program, and photographic image processor - Google Patents

Photographic image processing method, photographic image processing program, and photographic image processor Download PDF

Info

Publication number
JP2010068361A
JP2010068361A JP2008234144A JP2008234144A JP2010068361A JP 2010068361 A JP2010068361 A JP 2010068361A JP 2008234144 A JP2008234144 A JP 2008234144A JP 2008234144 A JP2008234144 A JP 2008234144A JP 2010068361 A JP2010068361 A JP 2010068361A
Authority
JP
Japan
Prior art keywords
image data
image
sharpening
pixel value
generating
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.)
Pending
Application number
JP2008234144A
Other languages
Japanese (ja)
Inventor
Koji Kita
耕次 北
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 JP2008234144A priority Critical patent/JP2010068361A/en
Publication of JP2010068361A publication Critical patent/JP2010068361A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a photographic image processing method, a photographic image processing program and a photographic image processor for effectively emphasizing a section to be sharpened such as an outline section for photographic image data. <P>SOLUTION: The image processing method for sharpening a photographic image includes: a smoothed image generation step of generating low frequency image data by performing smoothing filter processing to original image data; an edge image generation step of generating edge image data by performing Laplacian filter processing to the original image data; a differential image generation step of generating differential image data between the original image data and the low frequency image data; a sharpening adjustment image generation step of generating the product of weighting factors associated with the pixel values of the differential image data and the pixel values of the edge image data as the sharpening adjustment image data; and a sharpening processing step of generating sharpened image data by operating the addition processing of the respective pixel values of the original image data and the sharpening adjustment image data for every corresponding pixel. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、写真画像データを効果的に鮮鋭化する写真画像処理方法、写真画像処理プログラム、及び写真画像処理装置に関する。   The present invention relates to a photographic image processing method, a photographic image processing program, and a photographic image processing apparatus that effectively sharpen photographic image data.

デジタルカメラで撮影された画像のデジタル画像データに基づき、赤(R),緑(G),青(B)の単色光を印画紙上に重複露光することにより焼き付けを行うデジタル露光を行う写真焼付装置(デジタル写真焼付装置)では、スキャナやデジタルカメラなどのスペックに依存する画像読み取り時の解像度と、露光装置の露光ヘッドなどのスペックに依存する露光時の解像度とによって、印画紙上に露光する画像の画素密度が決まることになる。   A photographic printing apparatus that performs digital exposure in which red (R), green (G), and blue (B) monochromatic light is printed on a photographic paper by overlapping exposure based on digital image data of an image taken by a digital camera. (Digital Photographic Printing Equipment) uses an image reading resolution that depends on the specifications of a scanner, digital camera, etc., and an exposure resolution that depends on the specifications of the exposure head of the exposure apparatus, etc. The pixel density is determined.

デジタル露光は、スキャナ等から取り込んだデジタル画像データに各種の画像処理演算を施すことによって、アナログ露光では実現できない様々な特殊効果を画像データに付与することができるという有利な特徴を有している。   Digital exposure has an advantageous feature that various special effects that cannot be realized by analog exposure can be imparted to image data by performing various image processing operations on digital image data captured from a scanner or the like. .

上記特殊効果の代表的なものとして、プリンタの露光時の解像度に依存して大幅に劣化する鮮鋭性を回復するために、画像中の輪郭部(例えば、背景と人物との境界や、人物の顔の目鼻立ち)部分にめりはりを与える鮮鋭化(シャープネス)処理が行われている。   As a typical example of the special effect, in order to recover sharpness that greatly deteriorates depending on the resolution at the time of exposure of the printer, an outline portion in the image (for example, a boundary between a background and a person, a person's A sharpening process is performed to give an emphasis to the face).

鮮鋭化処理は、画像中の所定領域と他の領域との境界、すなわち輪郭部をはっきり見せるための処理であり、具体的には、鮮鋭化フィルタと呼ばれる演算フィルタを用いて処理することにより、輪郭部を構成している特定の着目画素(以下、各画素に対応する画素データのことも単に画素と称する)について、それに隣接する画素との濃度差(輝度差)を大きくするように、画像データを変換処理する。   The sharpening process is a process for clearly showing a boundary between a predetermined area and another area in the image, that is, a contour portion. Specifically, by performing processing using an arithmetic filter called a sharpening filter, For a specific pixel of interest (hereinafter, pixel data corresponding to each pixel is also simply referred to as a pixel) constituting the contour portion, an image is formed so as to increase a density difference (luminance difference) between adjacent pixels. Convert the data.

また、デジタルカメラで撮影された画像を観察すると、画像に細かな粒状のノイズが重畳されていることが観察される。特に画像の暗部でざらつくようなノイズが目立ち、暗所でストロボ発光無しで撮影された画像には同様のノイズが画像全体に現れる。   When an image taken with a digital camera is observed, it is observed that fine granular noise is superimposed on the image. In particular, noise that is rough in the dark part of the image is conspicuous, and similar noise appears in the entire image in an image shot in a dark place without flash emission.

これらのノイズは、撮像素子のリセットノイズや暗電流ノイズ等、素子の特性等に起因して発生するもので、撮影環境が悪い、つまり被写体の照度が低いほどノイズ成分が勝り、さらにゲイン調整によって明るさを補正する場合にノイズが強調されるようになる。   These noises are caused by the characteristics of the elements such as the reset noise and dark current noise of the image sensor.The imaging environment is worse, that is, the lower the illuminance of the subject, the better the noise component. Noise is enhanced when the brightness is corrected.

このような粒状ノイズが画像データに存在する場合に、上記鮮鋭化フィルタ等を用いた鮮鋭化処理を行うと、画像の輪郭部だけでなく粒状ノイズの粒状性まで強調してしまい、印画紙等に焼き付けた画像のざらつき感を増大させて見苦しい画像となってしまうという問題が発生する。特に、このようなざらつき感が画像の人肌部分に現れると、画像品位が大きく低下して見えてしまう。   When such granular noise is present in the image data, if the sharpening process using the sharpening filter or the like is performed, not only the outline portion of the image but also the granularity of the granular noise is emphasized, and photographic paper or the like There is a problem in that the roughness of the image printed on the image is increased and the image becomes unsightly. In particular, when such a feeling of roughness appears in the human skin portion of the image, the image quality is greatly reduced.

このような問題を解決するために、従来様々な解決手法が提案されている。   In order to solve such a problem, various conventional solutions have been proposed.

最も単純な解決手法としては、鮮鋭化処理後の画像データ全体に平滑化処理(例えば、平均値フィルタを用いて、ある着目画素の値をその周囲の画素から求めた平均値で置換する処理)を施す手法が考えられる。しかし、画像データ全体に平滑化処理を施すと、せっかく強調した輪郭部分までがぼやけてしまい、鮮鋭化処理の効果が薄れる。   The simplest solution is a smoothing process on the entire image data after the sharpening process (for example, a process of replacing the value of a pixel of interest with an average value obtained from surrounding pixels using an average filter) A method of applying However, if the smoothing process is performed on the entire image data, the emphasized contour portion is blurred, and the effect of the sharpening process is diminished.

他の解決手法としては、画像データ全体にまず平滑化処理を施し、その後、鮮鋭化処理を施す手法も考えられる。しかし、この場合には、先んじる平滑化処理により、画像データ中の詳細構造(ディテール)が消失してしまうので、後の鮮鋭化処理による輪郭強調の効果が小さくなるという問題が生じる。   As another solution method, a method of first performing smoothing processing on the entire image data and then performing sharpening processing is also conceivable. However, in this case, since the detailed structure (detail) in the image data is lost by the smoothing process ahead, there is a problem that the effect of contour enhancement by the subsequent sharpening process is reduced.

そこで、特許文献1あるいは特許文献2には、原画像に鮮鋭化処理を施した鮮鋭化画像データに含まれる粒状のノイズと輪郭部を所定の方法で分離し、当該分離された輪郭部を示す画像データに対して、輪郭部の強調度合を示す係数を乗じて元の画像データと統合処理する方法が提案されている。
特開平9−091419号公報 特開平10−243239号公報
Therefore, in Patent Document 1 or Patent Document 2, granular noise and contour portions included in the sharpened image data obtained by performing sharpening processing on the original image are separated by a predetermined method, and the separated contour portions are shown. A method has been proposed in which image data is multiplied by a coefficient indicating the degree of enhancement of the contour portion and integrated with the original image data.
Japanese Patent Laid-Open No. 9-091419 Japanese Patent Laid-Open No. 10-243239

特許文献1によれば、原画像に対してラプラシアンフィルタを利用して鮮鋭化処理が施された鮮鋭化画像データに含まれる粒状のノイズと輪郭部を分離している。しかし、ラプラシアンフィルタによる画像の鮮鋭化処理では、被写体等の輪郭部の濃淡変化(勾配)を急峻にして目的を達成しており、この時、立ち上がった濃淡変化が元の画素値を飛び越してしまうアンダーシュートおよびオーバーシュートと呼ばれる現象が発生する。具体的には、元々濃淡差が大きかった輪郭部で顕著に発生し、本来の輪郭線に沿ってその両側に不要な線が現れる現象(点でもその周囲に現れる)であり、鮮鋭性を高める効果もあるが、違和感を与える原因にもなっている。   According to Patent Document 1, the granular noise and the contour portion included in the sharpened image data obtained by sharpening the original image using a Laplacian filter are separated. However, in the sharpening processing of the image by the Laplacian filter, the object is achieved by making the gradation change (gradient) of the contour portion of the subject steep, and at this time, the rising gradation change jumps over the original pixel value. A phenomenon called undershoot and overshoot occurs. Specifically, it is a phenomenon that occurs conspicuously in the contour portion where the difference in shading was originally large, and unnecessary lines appear on both sides along the original contour line (even in the vicinity of the point), increasing sharpness. Although effective, it also causes discomfort.

一方、特許文献2によれば、原画像に対してアンシャープマスクを利用して鮮鋭化処理が施された鮮鋭化画像データと、原画像に対して平滑化処理を施して粒状のノイズを抑制した平滑化画像データとの差分値を取り、当該差分値が示す粒状のノイズと輪郭部が際立たった画像データから粒状のノイズと輪郭部を分離している。しかし、アンシャープマスクによる鮮鋭化処理では、原画像の画像データと、原画像をガウスフィルター等で平滑化した画像データとの差分値を、原画像に加算する事で高周波成分を強調して鮮鋭化しており、この時、平滑化画像を利用した事に起因して、ハローと呼ばれる輪郭のにじみが発生する。具体的には、ぼかし強度を強くするほど顕著に現れ、輪郭線が太っていく様な見え方になる。これも、ある程度までは鮮鋭性を高めるが、やはり違和感を与える原因にもなっている。   On the other hand, according to Patent Document 2, sharpened image data obtained by performing sharpening processing on an original image using an unsharp mask and smoothing processing on the original image are used to suppress granular noise. The difference value with the smoothed image data is taken, and the granular noise and the contour portion are separated from the image data in which the granular noise and the contour portion indicated by the difference value stand out. However, in the sharpening process using an unsharp mask, the difference value between the image data of the original image and the image data obtained by smoothing the original image with a Gaussian filter or the like is added to the original image to emphasize the high-frequency component and sharpen it. At this time, due to the use of the smoothed image, blurring of the contour called halo occurs. Specifically, it appears more prominently as the blur intensity is increased, and the outline looks thicker. This also increases sharpness to a certain extent, but it also causes discomfort.

本発明は、上述の従来欠点に鑑み、写真画像データに対して、輪郭部などの鮮鋭化すべき部分を効果的に強調する写真画像処理方法、写真画像処理プログラム、及び写真画像処理装置を提供する点にある。   The present invention provides a photographic image processing method, a photographic image processing program, and a photographic image processing apparatus that effectively enhance a portion to be sharpened, such as a contour portion, with respect to photographic image data in view of the above-described conventional drawbacks. In the point.

上述の目的を達成するため、本発明による写真画像処理方法の第一の特徴構成は、特許請求の範囲の書類の請求項1に記載した通り、写真画像を鮮鋭化する画像処理方法であって、原画像データを平滑化フィルタ処理して低周波画像データを生成する平滑化画像生成ステップと、原画像データをラプラシアンフィルタ処理してエッジ画像データを生成するエッジ画像生成ステップと、原画像データと前記低周波画像データの差分画像データを生成する差分画像生成ステップと、前記差分画像データの各画素値に対応付けた重み係数と前記エッジ画像データの各画素値の積を、鮮鋭化調整画像データとして生成する鮮鋭化調整画像生成ステップと、原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理して鮮鋭化画像データを生成する鮮鋭化処理ステップと、を含む点にある。   In order to achieve the above object, a first characteristic configuration of a photographic image processing method according to the present invention is an image processing method for sharpening a photographic image as described in claim 1 of the document of the claims. A smoothed image generating step for generating low-frequency image data by performing smoothing filter processing on the original image data; an edge image generating step for generating edge image data by performing Laplacian filter processing on the original image data; and A difference image generation step of generating difference image data of the low-frequency image data, and a product of a weighting coefficient associated with each pixel value of the difference image data and each pixel value of the edge image data Sharpening adjustment image generation step to generate, and each pixel value of the original image data and the sharpening adjustment image data are added for each corresponding pixel to sharpen In that it includes a sharpening process step of generating image data.

上述の構成によれば、差分画像生成ステップにより、原画像データと平滑化フィルタ処理後の低周波画像データとの差分から、ハローを含む差分画像データが生成される。また、エッジ画像生成ステップにより、ラプラシアンフィルタを利用して鮮鋭化処理された、オーバーシュート及びアンダーシュートを含む輪郭部にやや違和感のあるエッジ画像データが生成される。   According to the above configuration, the difference image generation step generates difference image data including a halo from the difference between the original image data and the low-frequency image data after the smoothing filter processing. Further, in the edge image generation step, edge image data that is sharpened using a Laplacian filter and that has a slightly uncomfortable edge in the contour portion including overshoot and undershoot is generated.

また、鮮鋭化調整画像生成ステップにより、差分画像データが示す輪郭部の有無及びその強度に対応付けた重み係数とエッジ画像データが積算され、輪郭部が適切な強度に鮮鋭化された鮮鋭化調整画像データが生成される。   In addition, the sharpening adjustment image generation step integrates the weight coefficient associated with the presence / absence of the contour portion indicated by the difference image data and the intensity thereof and the edge image data, and sharpening adjustment in which the contour portion is sharpened to an appropriate strength. Image data is generated.

したがって、鮮鋭化処理ステップでは、原画像データと鮮鋭化調整画像データとの加算処理により鮮鋭化画像データが生成されるため、輪郭部が適切な強度に鮮鋭化された鮮鋭化画像データを生成することができるようになる。また、低周波画像データ及び差分画像データが原画像に加算処理されないため、ハローの発生を回避することができるようになる。   Therefore, in the sharpening processing step, sharpened image data is generated by the addition processing of the original image data and the sharpened adjustment image data, and thus sharpened image data in which the contour portion is sharpened to an appropriate strength is generated. Will be able to. Moreover, since the low frequency image data and the difference image data are not added to the original image, the occurrence of halo can be avoided.

同第二の特徴構成は、同請求項2に記載した通り、上述の第一特徴構成に加えて、前記差分画像データの各画素値に対応付けた重み係数として、前記差分画像データの各画素値を、γ>1となる所定のγ値でガンマ補正した画素値を採用する点にある。   As described in claim 2, the second feature configuration includes each pixel of the difference image data as a weighting factor associated with each pixel value of the difference image data in addition to the first feature configuration described above. A pixel value obtained by performing gamma correction with a predetermined γ value that satisfies γ> 1 is employed.

上述の構成によれば、差分画像データの各画素値をγ>1となる所定のγ値でガンマ補正することにより、差分画像データに含まれるハローを抑制する、あるいは、粒状のノイズを抑制するなど、差分画像データが示す輪郭部の強度を適度に補正することができるようになる。   According to the above-described configuration, the pixel values of the differential image data are gamma-corrected with a predetermined γ value that satisfies γ> 1, thereby suppressing halos included in the differential image data or suppressing granular noise. For example, the strength of the contour portion indicated by the difference image data can be corrected appropriately.

同第三の特徴構成は、同請求項3に記載した通り、上述の第一構成に加えて、前記差分画像データの各画素値に対応付けた重み係数として、前記差分画像データの各画素値を所定の上限閾値で制限した制限画素値を、γ>1となる所定のγ値でガンマ補正した画素値を採用する点にある。   In the third feature configuration, as described in claim 3, in addition to the first configuration described above, each pixel value of the difference image data is used as a weighting factor associated with each pixel value of the difference image data. Is a pixel value obtained by performing gamma correction on a limited pixel value obtained by limiting the above with a predetermined upper limit threshold value with a predetermined γ value satisfying γ> 1.

上述の構成によれば、視覚的に明確に識別可能な、原画像の画素値の上限閾値を超える程度にまで鮮明な輪郭部に対しては、鮮鋭化処理を施さずに、原画像に示されたままの状態で出力することができるようになる。   According to the above-described configuration, a sharp outline that is clearly identifiable and exceeds the upper threshold value of the pixel value of the original image is displayed in the original image without being sharpened. It is possible to output in the state as it is.

同第四の特徴構成は、同請求項4に記載した通り、上述の第一から第三の何れかの特徴構成に加えて、鮮鋭化調整画像生成ステップは、前記エッジ画像データの各画素値を所定のエッジ上限値で制限した制限エッジ画素と前記重み係数との積を、鮮鋭化調整画像データとして生成する点にある。   In the fourth feature configuration, in addition to any one of the first to third feature configurations described above, the sharpening adjustment image generation step includes each pixel value of the edge image data. Is a product of a limited edge pixel that is limited by a predetermined edge upper limit value and the weight coefficient, as sharpening adjustment image data.

上述の構成によれば、鮮鋭化調整画像生成ステップにおいて、差分画像データが示す輪郭部の有無及びその強度に対応付けた重み係数と、所定のエッジ上限値で制限されたエッジ画像データとが積算されるため、過度に鮮鋭化された違和感のある鮮鋭化調整画像データを生成することを回避できるようになる。   According to the configuration described above, in the sharpening adjustment image generation step, the presence / absence of the contour portion indicated by the difference image data and the weighting coefficient associated with the intensity are integrated with the edge image data limited by the predetermined edge upper limit value. Therefore, it is possible to avoid generation of sharpened adjustment image data that is excessively sharpened and has a sense of incongruity.

同第五の特徴構成は、同請求項5に記載した通り、上述の第一から第四の何れかの特徴構成に加えて、前記鮮鋭化処理ステップは、原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理した鮮鋭化画像データに含まれる前記エッジ画像データのオーバーシュートまたはアンダーシュートを抑制する平準化ステップを含む点にある。   In the fifth feature configuration, as described in claim 5, in addition to any of the first to fourth feature configurations described above, the sharpening processing step includes each pixel value of the original image data and the The method includes a leveling step for suppressing overshoot or undershoot of the edge image data included in the sharpened image data obtained by adding the sharpened adjustment image data for each corresponding pixel.

上述の構成によれば、平準化ステップにより、オーバーシュートまたはアンダーシュートが抑制されるため、輪郭部に違和感のない鮮鋭化画像データを生成できるようになる。   According to the above configuration, since the overshooting or undershooting is suppressed by the leveling step, it is possible to generate sharpened image data having no sense of incongruity in the contour portion.

同第六の特徴構成は、同請求項6に記載した通り、上述の第五の特徴構成に加えて、平準化ステップは、原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理した鮮鋭化画像データを、各画素を注目画素とする所定領域における原画像の最大値または最小値で制限した鮮鋭化抑制画像を生成し、前記鮮鋭化抑制画像をオーバーシュートまたはアンダーシュートの程度に基づいて各方向に対応した許容率で補正する平準化処理ステップを含む点にある。   In the sixth feature configuration, as described in claim 6, in addition to the fifth feature configuration described above, the leveling step corresponds to each pixel value of the original image data and the sharpening adjustment image data. A sharpening-suppressed image in which the sharpened image data subjected to addition processing for each pixel to be processed is limited by the maximum value or the minimum value of the original image in a predetermined area with each pixel as a target pixel, and the sharpening-suppressed image is overshot Alternatively, the method includes a leveling process step in which correction is performed at an allowable rate corresponding to each direction based on the degree of undershoot.

上述の構成によれば、鮮鋭化画像データが、鮮鋭化画像データの各画素を注目画素とする所定領域における原画像の最大値または最小値を超えた場合に、平準化処理ステップにより、原画像の最大値または最小値を超えないよう制限された鮮鋭化抑制画像を生成して、原画像を過度に鮮鋭化することを回避できるようになる。   According to the above-described configuration, when the sharpened image data exceeds the maximum value or the minimum value of the original image in a predetermined area in which each pixel of the sharpened image data is the target pixel, the original image is processed by the leveling process step. It is possible to generate a sharpening-suppressed image that is limited so as not to exceed the maximum value or the minimum value, and to avoid excessively sharpening the original image.

また、平準化処理ステップにより、鮮鋭化抑制画像をオーバーシュートまたはアンダーシュートの程度に基づいて補正することができるため、オーバーシュートまたはアンダーシュートが適度に抑制された、輪郭部に違和感がない鮮鋭化画像データを生成できるようになる。   In addition, since the leveling processing step can correct the sharpening suppression image based on the degree of overshoot or undershoot, the overshoot or undershoot is moderately suppressed, and the sharpening without a sense of incongruity in the contour portion Image data can be generated.

本発明による写真画像処理プログラムの特徴構成は、同請求項7に記載した通り、写真画像を鮮鋭化する画像処理プログラムであって、原画像データを平滑化フィルタ処理して低周波画像データを生成する平滑化画像生成ステップと、原画像データをラプラシアンフィルタ処理してエッジ画像データを生成するエッジ画像生成ステップと、原画像データと前記低周波画像データの差分画像データを生成する差分画像生成ステップと、前記差分画像データの各画素値に対応付けた重み係数と前記エッジ画像データの各画素値の積を、鮮鋭化調整画像データとして生成する鮮鋭化調整画像生成ステップと、原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理して鮮鋭化画像データを生成する鮮鋭化処理ステップと、をコンピュータに実行させる点にある。   The characteristic configuration of the photographic image processing program according to the present invention is an image processing program for sharpening a photographic image as described in claim 7, wherein the low-frequency image data is generated by smoothing the original image data. A smoothed image generating step, an edge image generating step for generating edge image data by performing Laplacian filter processing on the original image data, and a difference image generating step for generating difference image data between the original image data and the low-frequency image data A sharpening adjustment image generating step for generating a product of a weighting coefficient associated with each pixel value of the difference image data and each pixel value of the edge image data as sharpening adjustment image data; and each pixel of the original image data A sharpening processing step of generating a sharpened image data by adding a value and the sharpened adjustment image data for each corresponding pixel; In that cause a computer to execute the certain.

本発明による写真画像処理装置の特徴構成は、同請求項8に記載した通り、写真画像を鮮鋭化する画像処理装置であって、原画像データを平滑化フィルタ処理して低周波画像データを生成する平滑化画像生成部と、原画像データをラプラシアンフィルタ処理してエッジ画像データを生成するエッジ画像生成部と、原画像データと前記低周波画像データの差分画像データを生成する差分画像生成部と、前記差分画像データの各画素値に対応付けた重み係数と前記エッジ画像データの各画素値の積を、鮮鋭化調整画像データとして生成する鮮鋭化調整画像生成部と、原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理して鮮鋭化画像データを生成する鮮鋭化処理部と、を含む点にある。   The photographic image processing apparatus according to the present invention is characterized in that, as described in claim 8, the photographic image processing apparatus sharpens a photographic image and generates low-frequency image data by smoothing and filtering the original image data. A smoothed image generating unit that performs Laplacian filter processing of the original image data to generate edge image data, a difference image generating unit that generates difference image data of the original image data and the low-frequency image data, and A sharpening adjustment image generating unit that generates a product of a weighting factor associated with each pixel value of the difference image data and each pixel value of the edge image data as sharpening adjustment image data; and each pixel of the original image data And a sharpening processing unit that generates a sharpened image data by adding the value and the sharpened adjustment image data for each corresponding pixel.

以上説明した通り、本発明によれば、写真画像データに対して、輪郭部などの鮮鋭化すべき部分を効果的に強調する写真画像処理方法、写真画像処理プログラム、及び写真画像処理装置を提供することができるようになった。   As described above, according to the present invention, there are provided a photographic image processing method, a photographic image processing program, and a photographic image processing apparatus that effectively enhance a portion to be sharpened such as a contour portion with respect to photographic image data. I was able to do it.

以下に本発明による写真画像処理装置の実施の形態を説明する。   Embodiments of a photographic image processing apparatus according to the present invention will be described below.

図1に示すように、写真画像処理装置1は、印画紙Pに対して出力画像データに基づいた露光処理を行ない、露光された印画紙を現像処理して写真プリントを生成出力する写真プリンタ2と、写真画像に対するプリントオーダ情報を設定入力するとともに、各種の画像補正処理を行ない、原画像から編集処理した出力画像データを写真プリンタ2に出力する操作ステーション3を備えて構成されている。   As shown in FIG. 1, a photographic image processing apparatus 1 performs an exposure process based on output image data on a photographic paper P, develops the exposed photographic paper, and generates and outputs a photographic print. And an operation station 3 for setting and inputting print order information for the photographic image, performing various image correction processes, and outputting output image data edited from the original image to the photographic printer 2.

操作ステーション3は、現像済みの写真フィルムFから画像を読み込むフィルムスキャナ31と、デジタルスチルカメラ等で撮影された画像データが格納されたメモリカード等の画像データ記憶メディアMから画像データを読み取るメディアドライバ32と、コントローラ33としての汎用コンピュータ等を備えている。   The operation station 3 includes a film scanner 31 that reads an image from a developed photographic film F, and a media driver that reads image data from an image data storage medium M such as a memory card in which image data shot by a digital still camera or the like is stored. 32, a general-purpose computer as the controller 33, and the like.

図1及び図2に示すように、写真プリンタ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 the photographic paper P drawn from the photographic paper magazine 21 in a predetermined print size. A sheet cutter 22 for cutting, a back print unit 23 for printing print information such as a frame number on the back of the cut photographic paper P, an exposure unit 24 for exposing the photographic paper P based on the print data, and a post-exposure unit 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 photographic paper P is disposed along the conveyance path of the photographic paper P, and development processing is performed. A lateral feed conveyor 26 that discharges the photographic paper P that has been dried later, and a sorter 27 that sorts a plurality of photographic papers (photo prints) P stacked on the lateral feed conveyor 26 in order units. To have.

露光部24には、搬送機構28によって副走査方向に搬送される印画紙Pに対して、搬送方向に直交する主走査方向に前記プリントデータに基づき変調されたRGB三色のレーザ光線束を出力して露光する露光ヘッド24aが収容されている。   The exposure unit 24 outputs a three-color laser beam bundle of RGB that is modulated based on 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. Then, an exposure head 24a for exposure is accommodated.

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

操作ステーション3に設けられたコントローラ33には、汎用のオペレーティングシステムの管理下で動作し、写真処理装置1の各種の画像処理や入出力制御を実行するための複数のアプリケーションプログラムがインストールされ、オペレータとの操作インターフェースとしてモニタ34、キーボード35、マウス36等が接続されている。当該アプリケーションプログラムに本発明による画像処理プログラムが含まれる。   A controller 33 provided in the operation station 3 operates under the management of a general-purpose operating system, and is installed with a plurality of application programs for executing various image processing and input / output control of the photo processing apparatus 1. As an operation interface, a monitor 34, a keyboard 35, a mouse 36, and the like are connected. The application program includes an image processing program according to the present invention.

コントローラ33は、そのハードウェア及びソフトウェアが協働して写真処理プロセスを実行するブロックで、以下に、各機能ブロックに分けて説明する。   The controller 33 is a block in which the hardware and software cooperate to execute a photo processing process, and will be described below in each functional block.

図3に示すように、コントローラ33は、フィルムスキャナ31やメディアドライバ32によって読み取られた原画像としての写真画像データを受け取り、所定の前処理を行なってメモリ41に転送する画像入力部40と、モニタ34の画面にプリントオーダ情報や画像編集情報を表示するとともに、それらに対して必要なデータ入力のための操作用アイコンを表示するグラフィック操作画面を生成し、或いは表示されたグラフィック操作画面に対するキーボード35やマウス36からの入力操作に基づいて各種の制御コマンドを生成するグラフィックユーザーインターフェース部42と、画像入力部40から転送される写真画像データ及び画像処理部47による補正処理後の写真画像データやそのときの補正パラメータ、更には設定されたプリントオーダ情報等が所定領域に区画されて格納されるメモリ41と、プリントオーダ情報を生成するオーダー処理部43と、メモリ41に格納された各写真画像データに対してコマ画像毎または所定枚数のコマ画像に濃度補正処理やコントラスト補正処理等を行なう画像処理部47を備えている。   As shown in FIG. 3, the controller 33 receives photographic image data as an original image read by the film scanner 31 or the media driver 32, performs a predetermined preprocessing, and transfers it to the memory 41. A print operation information and image editing information is displayed on the screen of the monitor 34, and a graphic operation screen for displaying operation icons for inputting necessary data is generated for the print operation information or a keyboard for the displayed graphic operation screen. 35, a graphic user interface unit 42 that generates various control commands based on input operations from the mouse 36, photographic image data transferred from the image input unit 40, photographic image data after correction processing by the image processing unit 47, Correction parameters at that time, and also set A memory 41 in which lint order information is partitioned and stored in a predetermined area, an order processing unit 43 that generates print order information, and each frame image or a predetermined number of frames for each photographic image data stored in the memory 41 An image processing unit 47 that performs density correction processing, contrast correction processing, and the like on the image is provided.

さらに、グラフィックユーザーインターフェース部42からの表示コマンドに基づいてメモリ41に展開された画像データや各種の入出力用グラフィックデータ等をモニタ34に表示処理するビデオRAM等を備えた表示制御部46と、各種の補正処理が終了した最終の補正画像を写真プリンタ2に出力するためのプリントデータを生成するプリントデータ生成部44と、顧客のオーダーに応じて最終の補正画像をCD−R等の記憶媒体に書き込むためのファイル形式に変換するフォーマッタ部45等を備えている。   Further, a display control unit 46 including a video RAM for displaying the image data developed in the memory 41 based on a display command from the graphic user interface unit 42 and various input / output graphic data on the monitor 34, and the like; A print data generation unit 44 that generates print data for outputting the final corrected image for which various correction processes have been completed to the photographic printer 2, and a storage medium such as a CD-R for the final corrected image according to the customer's order A formatter unit 45 for converting to a file format for writing to the file.

フィルムスキャナ31は、フィルムFに記録された画像を低解像度ではあるものの高速で読み取るプレスキャンモードと、低速ではあるものの高解像度で読み取る本スキャンモードの二モードで作動するように構成され、プレスキャンモードで読み込まれた低解像度の画像に対して各種の補正処理が行なわれ、その際に前記メモリ41に記憶された補正パラメータに基づいて本スキャンモードで読み込まれた高解像度の画像に対する最終の補正処理が実行されてプリンタ2に出力される。   The film scanner 31 is configured to operate in two modes: a pre-scan mode for reading an image recorded on the film F at a high speed although it is a low resolution and a main scan mode for reading at a high resolution although it is a low resolution. Various correction processes are performed on the low-resolution image read in the mode, and the final correction for the high-resolution image read in the main scan mode based on the correction parameters stored in the memory 41 at that time. The process is executed and output to the printer 2.

同様に、メディアドライバ32から読み込まれた画像ファイルには高解像度の撮影画像とそのサムネイル画像が含まれ、サムネイル画像に対して後述の各種の補正処理が行なわれ、その際にメモリ41に記憶された補正パラメータに基づいて高解像度の撮影画像に対する最終の補正処理が実行される。尚、画像ファイルにサムネイル画像が含まれないときには、画像入力部40で高解像度の撮影画像からサムネイル画像が生成されてメモリ41に転送される。   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 and stored in the memory 41 at that time. Based on the correction parameters, the final correction processing for the high-resolution captured image is executed. When the thumbnail image is not included in the image file, the thumbnail image is generated from the high-resolution captured image by the image input unit 40 and transferred to the memory 41.

このように、頻繁に試行錯誤される各種の編集処理が低解像度の画像に対して実行されることによりコントローラ33の演算負荷が低減されるように構成されている。   As described above, various editing processes that are frequently trial and error are performed on low-resolution images, so that the calculation load of the controller 33 is reduced.

画像処理部47には、メモリ41に格納された原画像である写真画像データに対して撮影レンズに起因する歪を補正する歪補正部50と、粒状ノイズを抑制する粒状ノイズ抑制処理部51と、画像のエッジを強調し、ノイズを抑制する鮮鋭化処理部52と、自然なカラーを再現できるようにカラーバランスを調整するカラー補正部53と、写真プリントのサイズに適した画像サイズに変換する拡縮処理部54等の複数の画像処理ブロックを備えている。   The image processing unit 47 includes a distortion correction unit 50 that corrects distortion caused by the photographic lens with respect to photographic image data that is an original image stored in the memory 41, and a granular noise suppression processing unit 51 that suppresses granular noise. A sharpening processing unit 52 that enhances an edge of an image and suppresses noise, a color correction unit 53 that adjusts a color balance so as to reproduce a natural color, and an image size suitable for the size of a photographic print A plurality of image processing blocks such as the enlargement / reduction processing unit 54 are provided.

鮮鋭化処理部52は、写真フィルムFから本スキャンモードで読み込まれた画像データを写真プリンタ2のスペックに依存する解像度に応じて鮮鋭化処理するフィルム画像用の鮮鋭化処理部52と、本発明による画像処理装置として機能し、メディアドライバ32から読み込まれた高解像度の画像データを写真プリンタ2のスペックに依存する解像度に応じて鮮鋭化処理するデジタルカメラ撮影画像用の鮮鋭化処理部52を備えている。   The sharpening processing unit 52 sharpens the image data read from the photographic film F in the main scan mode in accordance with the resolution depending on the specifications of the photographic printer 2, and the sharpening processing unit 52 for film image according to the present invention. And a sharpening processing unit 52 for a captured image of a digital camera that sharpens the high-resolution image data read from the media driver 32 according to the resolution depending on the specifications of the photographic printer 2. ing.

以下、メディアドライバ32から入力されるデジタルカメラで撮影された写真画像データの処理について詳述するが、写真フィルムFから本スキャンモードで読み込まれた写真画像データも同様の処理を行なうことが可能である。   Hereinafter, processing of photographic image data taken by a digital camera input from the media driver 32 will be described in detail. However, photographic image data read from the photographic film F in the main scan mode can be processed in the same manner. is there.

メディアドライバ32から読み込まれた複数のサムネイル画像データ及び高解像度の画像データがメモリ41に格納されると、モニタ34の画面にサムネイル画像データに基づく数コマの写真画像とグラフィック操作画面が表示される。尚、通常、メディアに格納されているデジタル画像はJPEG方式により圧縮されているため、逆変換して伸長処理した画像データが格納される。   When a plurality of thumbnail image data and high resolution image data read from the media driver 32 are stored in the memory 41, several frames of photographic images based on the thumbnail image data and a graphic operation screen are displayed on the screen of the monitor 34. . Normally, since the digital image stored in the medium is compressed by the JPEG method, image data obtained by inverse conversion and decompression is stored.

モニタ34の画面に表示された各コマ画像に対して、グラフィック操作画面に対するオペレータの操作を介してオーダー処理部43によりプリント条件、つまり、プリント枚数やプリントサイズ等が設定される。   For each frame image displayed on the screen of the monitor 34, the order processing unit 43 sets the print conditions, that is, the number of prints, the print size, and the like through the operator's operation on the graphic operation screen.

さらに、各コマ画像に対して、オペレータの操作を介して画像処理部47により歪補正、粒状ノイズ抑制処理、カラー補正が実行され、このとき設定された画像の補正処理条件がメモリ41に格納される。   Further, distortion correction, granular noise suppression processing, and color correction are performed on each frame image by the image processing unit 47 through an operator's operation, and the image correction processing conditions set at this time are stored in the memory 41. The

モニタ34の画面に表示された各コマ画像に対するプリント条件の設定や補正処理の操作が終了すると、次画面にスクロールして、全コマ画像に対して同様の処理が実行される。   When the print condition setting and correction processing operations for each frame image displayed on the screen of the monitor 34 are completed, the screen is scrolled to the next screen, and the same processing is executed for all the frame images.

全ての操作処理が終了し、グラフィック操作画面を介してプリント出力操作が行なわれると、メモリ41に格納されている高解像度の写真画像データに対して、歪補正、粒状ノイズ抑制処理、カラー補正処理、拡縮処理、あるいは、鮮鋭化処理等の画像処理が実行され、プリントデータ生成部44によって画像処理後の画像データがプリントデータに変換生成され、写真プリンタ2に出力される。   When all the operation processes are completed and a print output operation is performed via the graphic operation screen, distortion correction, granular noise suppression process, and color correction process are performed on the high-resolution photographic image data stored in the memory 41. Then, image processing such as enlargement / reduction processing or sharpening processing is executed, and the image data after the image processing is converted into print data by the print data generation unit 44 and output to the photographic printer 2.

高解像度の写真画像データに対する歪補正、粒状ノイズ抑制処理、カラー補正処理の夫々は、サムネイル画像に対して設定された補正処理条件、つまりメモリ41に格納された補正処理条件に基づいて自動的に補正処理が実行される。   Each of distortion correction, granular noise suppression processing, and color correction processing for high-resolution photographic image data is automatically performed based on correction processing conditions set for thumbnail images, that is, correction processing conditions stored in the memory 41. Correction processing is executed.

以下、本発明によるデジタルカメラ撮影画像用の鮮鋭化処理部52について詳述する。   Hereinafter, the sharpening processing unit 52 for the image captured by the digital camera according to the present invention will be described in detail.

図4に示すように、鮮鋭化処理部52は、写真画像データを構成する各画素のRGB色成分を、YCbCrの輝度色差成分に変換するRGB‐YCbCr変換処理部510と、RGB‐YCbCr変換処理部510で得られた輝度成分画像である輝度データを平滑化フィルタ処理して低周波画像データを生成する平滑化画像生成部511と、輝度データをラプラシアンフィルタ処理してエッジ画像データを生成するエッジ画像生成部512と、輝度データと平滑化画像生成部511から得られた低周波画像データの差分画像データを生成する差分画像生成部513と、差分画像生成部513から得られた差分画像データの各画素値に対応付けた重み係数とエッジ画像生成部512から得られたエッジ画像データの各画素値の積を、鮮鋭化調整画像データとして生成する鮮鋭化調整画像生成部514と、輝度データの各画素値と鮮鋭化処理部515から得られた鮮鋭化調整画像データとを対応する画素毎に加算処理して鮮鋭化画像データを生成する鮮鋭化処理部515と、鮮鋭化処理部515で得られた鮮鋭化画像データと、RGB‐YCbCr変換処理部510で得られた色差成分画像である色差データで構成される輝度色差成分をRGB色成分に逆変換するYCbCr‐RGB変換処理部518と、を備えている。   As shown in FIG. 4, the sharpening processing unit 52 includes an RGB-YCbCr conversion processing unit 510 that converts an RGB color component of each pixel constituting photographic image data into a YCbCr luminance color difference component, and an RGB-YCbCr conversion process. A smoothed image generating unit 511 that generates low-frequency image data by performing smoothing filter processing on luminance data that is a luminance component image obtained by the unit 510, and an edge that generates edge image data by performing Laplacian filter processing on the luminance data The image generation unit 512, the difference image generation unit 513 that generates difference image data of the low-frequency image data obtained from the luminance data and the smoothed image generation unit 511, and the difference image data obtained from the difference image generation unit 513 Sharpening adjustment is performed on the product of the weight coefficient associated with each pixel value and each pixel value of the edge image data obtained from the edge image generation unit 512. Sharpening adjustment image generation unit 514 generated as image data, and each pixel value of the brightness data and the sharpening adjustment image data obtained from the sharpening processing unit 515 are added for each corresponding pixel to obtain the sharpened image data. A brightness color difference component composed of a sharpening processing unit 515 for generating image data, sharpened image data obtained by the sharpening processing unit 515, and color difference data which is a color difference component image obtained by the RGB-YCbCr conversion processing unit 510 And a YCbCr-RGB conversion processing unit 518 for inversely converting the color to RGB color components.

RGB‐YCbCr変換処理部510は、以下の変換式に基づいて、メモリ41から読み出した高解像度の原画像データ(例えば、800万画素であれば、横3264画素×縦2448画素程度である)を構成する各画素のR(赤)、G(緑)、B(青)の夫々の色成分(以下、「RGB」と記す。)を、輝度色差成分に変換してメモリ41に格納する。
Y = 0.29900R+0.58700G+0.11400B
Cb = −0.16874R−0.33126G+0.50000B
Cr = 0.50000R−0.41869G−0.08131B
The RGB-YCbCr conversion processing unit 510 converts the high-resolution original image data read from the memory 41 based on the following conversion formula (for example, about 8264 pixels is about 3264 pixels × 2448 pixels). Each color component of R (red), G (green), and B (blue) (hereinafter referred to as “RGB”) of each pixel constituting the pixel is converted into a luminance color difference component and stored in the memory 41.
Y = 0.29900R + 0.58700G + 0.11400B
Cb = −0.16874R−0.33126G + 0.50000B
Cr = 0.50000R-0.41869G-0.0811B

平滑化画像生成部511では、輝度データに対して5×5程度のフィルタサイズの加重平均フィルタによって平滑化フィルタ処理が実行され、低周波画像データが生成される。   In the smoothed image generation unit 511, smoothing filter processing is performed on the luminance data by a weighted average filter having a filter size of about 5 × 5, and low-frequency image data is generated.

加重平均フィルタは、一般的に利用されるガウシアンフィルタを用いている。ガウシアンフィルタは、フィルタサイズ内の中心画素に近いほど大きなフィルタ係数をもつフィルタであり、そのフィルタ係数はガウス関数により決定される。尚、ガウス関数の標準偏差値σが過度に小さい場合は、鮮鋭化効果が弱まり、標準偏差σが大きい場合は、ノイズが目立つようになる。   A generally used Gaussian filter is used as the weighted average filter. A Gaussian filter is a filter having a larger filter coefficient as it is closer to the center pixel within the filter size, and the filter coefficient is determined by a Gaussian function. When the standard deviation value σ of the Gaussian function is excessively small, the sharpening effect is weakened, and when the standard deviation σ is large, noise becomes conspicuous.

例えば、フィルタサイズが5×5であって、σが1.15の場合、フィルタ内の各画素のフィルタ係数BlurCoefは、図5(a)に示すような値となる。尚、図5(a)に示したフィルタ係数の値は、例示にすぎず、これに限るものではない。   For example, when the filter size is 5 × 5 and σ is 1.15, the filter coefficient BlurCoef of each pixel in the filter has a value as shown in FIG. Note that the filter coefficient values shown in FIG. 5A are merely examples, and the present invention is not limited thereto.

また、低周波画像データBlurは、アンシャープマスクによる鮮鋭化処理で用いられる低周波画像データと同様に、上述のフィルタ係数の他、全体的な平滑化の強度を調整可能にするパラメータBlurIntensityを利用して、次式から求めるよう構成されている。
In addition, the low frequency image data Blur uses the parameter BlurIntensity that makes it possible to adjust the overall smoothing intensity in addition to the above-described filter coefficients, similarly to the low frequency image data used in the sharpening process using the unsharp mask. And it is comprised so that it may obtain | require from following Formula.

ここで、datは、原画像の輝度データを示し、nはフィルターサイズを示す。例えば、フィルタサイズが5×5の場合は、n=INT(5÷2)=2となる。また、x,yは画素の座標、i,jはフィルタ領域内の画素の座標を示し、後述する数式においても、特段の説明がない限り同じ意味を示す。   Here, dat indicates the luminance data of the original image, and n indicates the filter size. For example, when the filter size is 5 × 5, n = INT (5 ÷ 2) = 2. Further, x and y represent pixel coordinates, and i and j represent pixel coordinates in the filter region, and the same meaning is given to mathematical expressions to be described later unless otherwise specified.

エッジ画像生成部512では、輝度データに対して5×5程度のフィルタサイズのラプラシアンフィルタによって鮮鋭化処理が実行され、エッジ画像データが生成される。例えば、フィルタサイズが5×5の場合、ラプラシアンフィルタ内の各画素のフィルタ係数SharpCoefは、図5(b)に示すような値となる。   In the edge image generation unit 512, sharpening processing is executed on the luminance data by a Laplacian filter having a filter size of about 5 × 5, and edge image data is generated. For example, when the filter size is 5 × 5, the filter coefficient SharpCoef of each pixel in the Laplacian filter has a value as shown in FIG.

また、エッジ画像データSharpは、上述のフィルタ係数の他、全体的な鮮鋭化の強度を調整可能にするパラメータSharpIntensityを利用して、次式から求めるよう構成されている。
In addition to the above-described filter coefficients, the edge image data Sharp is configured to be obtained from the following equation using a parameter SharpIntensity that enables adjustment of the overall sharpening intensity.

差分画像生成部513では、輝度データの各画素と、各画素に該当する平滑化画像生成部511で得られた低周波画像データの画素値の差分を画素値とした差分画像データが生成される。   In the difference image generation unit 513, difference image data is generated using a pixel value as a difference between each pixel of the luminance data and the pixel value of the low-frequency image data obtained by the smoothed image generation unit 511 corresponding to each pixel. .

鮮鋭化調整画像生成部514では、まず、差分画像生成部513で得られた差分画像データの画素値の絶対値の大小に応じて、つまり輪郭の有無とその強度に応じて、鮮鋭化画像の強度を調整する重み係数が算出される。この時、差分画像データの画素値の絶対値である差分絶対値Diffをストレートに重み係数とするのでは無く、上限閾値Thresholdと補正カーブGammaによって制御する。即ち、重み係数Intensityは次式から求められる。
In the sharpening adjustment image generation unit 514, first, according to the magnitude of the absolute value of the pixel value of the difference image data obtained by the difference image generation unit 513, that is, according to the presence / absence of the contour and its intensity, A weighting factor for adjusting the intensity is calculated. At this time, the difference absolute value Diff, which is the absolute value of the pixel value of the difference image data, is not directly used as a weighting factor, but is controlled by the upper threshold Threshold and the correction curve Gamma. That is, the weighting factor Intensity is obtained from the following equation.

例えば、図6(a)に示すように、重み係数Intensityが上に凸となるよう、補正カーブGammaを1より大きい値である場合について詳述する。   For example, as shown in FIG. 6A, the case where the correction curve Gamma is larger than 1 will be described in detail so that the weighting coefficient Intensity is convex upward.

具体的な例として、補正カーブGammmaの値が2.0であって上限閾値Thresholdが6である場合に、差分絶対値Diffが3のときと、差分絶対値Diffが2のときの重み係数Intensityを対比する。このときの重み係数Intensityは、差分絶対値Diffが3のときは1/2^(1/2)となり、差分絶対値Diffが2のときは1/3^(1/2)となるため、差分絶対値Diffが3のとき、即ち、差分絶対値Diffの差が大きいときの方が、重み係数Intensityが大きくなることがわかる。   As a specific example, when the value of the correction curve Gamma is 2.0 and the upper limit threshold Threshold is 6, the weight coefficient Intensity when the difference absolute value Diff is 3 and when the difference absolute value Diff is 2. Contrast. The weighting factor Intensity at this time is 1/2 ^ (1/2) when the difference absolute value Diff is 3, and is 1/3 ^ (1/2) when the difference absolute value Diff is 2. It can be seen that the weight coefficient Intensity increases when the difference absolute value Diff is 3, that is, when the difference between the difference absolute values Diff is larger.

したがって、原画像の輪郭部の強度が大きくなるにつれ、重み係数Intensityが大きくなることがわかる。   Therefore, it can be seen that the weight coefficient Intensity increases as the strength of the contour portion of the original image increases.

一方、重み係数Intensityが下に凸となるよう、補正カーブGammaを1より小さい値にした場合について詳述する。   On the other hand, the case where the correction curve Gamma is set to a value smaller than 1 will be described in detail so that the weight coefficient Intensity is convex downward.

具体的な例として、例えば、補正カーブGammmaの値が1/2であって上限閾値Thresholdが6である場合に、差分絶対値Diffが3のときと、差分絶対値Diffが2のときの重み係数Intensityを対比する。このときの重み係数Intensityは、差分絶対値Diffが3のときは1/2^2となり、差分絶対値Diffが2のときは1/3^2となるため、差分絶対値Diffが3のとき、即ち差分絶対値Diffの差が大きいときの方が、重み係数Intensityが大きくなり、上述の具体例と同様に、原画像の輪郭部の強度が大きくなるにつれ、重み係数Intensityが大きくなることがわかる。   As a specific example, for example, when the value of the correction curve Gamma is ½ and the upper limit threshold Threshold is 6, the weight when the difference absolute value Diff is 3 and when the difference absolute value Diff is 2 Contrast the coefficient Intensity. The weighting factor Intensity at this time is 1/2 ^ 2 when the difference absolute value Diff is 3, and is 1/3 ^ 2 when the difference absolute value Diff is 2, so when the difference absolute value Diff is 3. That is, when the difference between the absolute difference values Diff is larger, the weighting coefficient Intensity becomes larger, and the weighting coefficient Intensity becomes larger as the intensity of the contour portion of the original image becomes larger as in the above-described specific example. Recognize.

ここで、上述の2つの具体例において、補正カーブGammmaを1より大きい値にした場合と、補正カーブGammmaを1より小さい値にした場合の重み係数Intensityを対比すると、補正カーブGammmaを1より大きい値にした場合の方が、重み係数Intensityが大きくなることがわかる。   Here, in the two specific examples described above, when the correction coefficient Gamma is set to a value larger than 1, the weight coefficient Intensity when the correction curve Gamma is set to a value smaller than 1 is compared, the correction curve Gamma is greater than 1. It can be seen that the weighting factor Intensity increases when the value is set.

即ち、重み係数Intensityが上に凸となるよう、補正カーブGammaを1より大きい値に設定することにより、輪郭部を強調することができる。したがって、差分画像データに含まれるハロー、及び、粒状のノイズを抑制することもできるようになる。   That is, the contour portion can be emphasized by setting the correction curve Gamma to a value larger than 1 so that the weight coefficient Intensity is convex upward. Therefore, it becomes possible to suppress halo and granular noise included in the difference image data.

ただし、図6(a)に示した重み係数Intensityは、例示に過ぎず、図6(b)に示すように、濃度差がない平坦な画像部分に含まれる粒状のノイズの鮮鋭化を避けるため、差分値が低い部分では、補正カーブGammaを1より小さい値に設定して、重み係数Intensityを抑え、近似的なガンマ補正を適用して調整しても構わない。   However, the weighting factor Intensity shown in FIG. 6A is merely an example, and as shown in FIG. 6B, sharpening of granular noise included in a flat image portion having no density difference is avoided. In a portion where the difference value is low, the correction curve Gamma may be set to a value smaller than 1 to suppress the weighting coefficient Intensity and adjust by applying approximate gamma correction.

続いて、鮮鋭化調整画像生成部514では、過度の鮮鋭化を抑制するために、エッジ画像生成部512で得られたエッジ画像データSharpの画素値がエッジ上限値Limitを超えないよう抑制した制限エッジ画素と、鮮鋭度を調整する重み係数Intensityとを積算して、鮮鋭化調整画像データSharpIntensity´を算出する。即ち、鮮鋭化調整画像データSharpIntensity´は、次式から算出される。
Subsequently, in the sharpening adjustment image generation unit 514, in order to suppress excessive sharpening, the restriction that the pixel value of the edge image data Sharp obtained by the edge image generation unit 512 is suppressed so as not to exceed the edge upper limit value Limit. The sharpening adjustment image data SharpIntensity ′ is calculated by integrating the edge pixels and the weighting factor Intensity for adjusting the sharpness. That is, the sharpening adjustment image data SharpIntensity ′ is calculated from the following equation.

鮮鋭化処理部515では、輝度データdatと鮮鋭化調整画像生成部514で得られた鮮鋭度を調整した鮮鋭化調整画像データSharpIntensity´を加算処理して、鮮鋭化画像データSharp´が生成される。即ち、鮮鋭化画像データSharp´は、次式から算出される。
The sharpening processing unit 515 adds the luminance data dat and the sharpening adjustment image data SharpIntensity ′ adjusted with the sharpness obtained by the sharpening adjustment image generation unit 514 to generate the sharpening image data Sharp ′. . That is, the sharpened image data Sharp ′ is calculated from the following equation.

差分画像データは、原画像データと平滑化画像生成部511で平滑化処理された低周波画像データの差分であるため、輪郭部を含めて平滑化された低周波画像データを利用することに起因して、ハローと呼ばれる輪郭部のにじみが発生する。したがって、例えば、アンシャープマスクによる鮮鋭化処理のように、ハローを含む差分画像データの輪郭部を強調した画像データと原画像データとの加算処理により鮮鋭化処理された鮮鋭化画像データには、ハローが含まれ、輪郭部に違和感がある状態となる。   The difference image data is a difference between the original image data and the low-frequency image data smoothed by the smoothed image generation unit 511. Therefore, the difference image data is caused by using the low-frequency image data smoothed including the contour portion. As a result, blurring of a contour called a halo occurs. Therefore, for example, as in the sharpening process using the unsharp mask, the sharpened image data that has been sharpened by the addition process of the image data and the original image data in which the contour portion of the differential image data including the halo is emphasized, A halo is included, and the contour portion feels uncomfortable.

本発明では、上述のように、差分画像データは、鮮鋭化調整画像生成部514においてガンマ補正されるとともに、鮮鋭化画像の強度を調整する重み係数Intensityを生成するために利用されているが、原画像に対して、直接加算処理されることはないため、ハローを含まない鮮鋭化画像データSharp´を生成することができるようになる。   In the present invention, as described above, the difference image data is gamma-corrected in the sharpening adjustment image generation unit 514 and used to generate the weighting factor Intensity for adjusting the strength of the sharpening image. Since the original image is not directly added, sharpened image data Sharp ′ that does not include a halo can be generated.

尚、図7(a)(b)に示すように、各画素を注目画素としたラプラシアンフィルタと同サイズの領域における原画像の最大値maxと最小値minを探索し、注目画素に該当する鮮鋭化画像データSharp´の画素値が、オーバーシュートでは最大値を上回らないように、アンダーシュートでは最小値を下回らないように制限した鮮鋭化抑制画像を生成し、当該鮮鋭化抑制画像の画像データである鮮鋭化抑制画像データSharp´´を鮮鋭化画像データSharp´として出力しても構わない。即ち、鮮鋭化抑制画像データSharp´´は、次式で求められる。
As shown in FIGS. 7A and 7B, the maximum value max and the minimum value min of the original image in a region having the same size as the Laplacian filter having each pixel as a target pixel are searched for, and the sharpness corresponding to the target pixel is obtained. A sharpening-suppressed image is generated in which the pixel value of the sharpened image data Sharp 'is limited so that the pixel value does not exceed the maximum value in overshooting and the minimum value in undershooting, and the image data of the sharpening-suppressing image is Certain sharpening-suppressed image data Sharp ″ may be output as sharpened image data Sharp ′. That is, the sharpening-suppressed image data Sharp ″ is obtained by the following equation.

したがって、生成される鮮鋭化抑制画像データSharp´´は、輪郭部のアンダーシュート及びオーバーシュートが抑制され、違和感のない鮮鋭化処理を実施することができるようになる。   Accordingly, the generated sharpening-suppressed image data Sharp ″ can suppress the undershoot and overshoot of the contour portion, and can perform a sharpening process without a sense of incongruity.

さらに、図7(b)に示すように、アンダーシュートまたはオーバーシュートの程度Drctに基づいて、各シュートの方向に対応した許容率である下限許容率USratioまたは上限許容率OSratioを利用して、鮮鋭化抑制画像データSharp´´のアンダーシュートまたはオーバーシュートの程度を補正した画像データAnsを生成し、当該画像データAnsを鮮鋭化画像データSharp´として出力しても構わない。   Further, as shown in FIG. 7B, based on the degree Drct of the undershoot or overshoot, the lower limit allowable rate USratio or the upper limit allowable rate OSratio, which is the allowable rate corresponding to the direction of each chute, is used to sharpen the image. Alternatively, image data Ans in which the degree of undershoot or overshoot of the suppression-suppressed image data Sharp ″ is corrected may be generated, and the image data Ans may be output as the sharpened image data Sharp ′.

この場合、下限許容率USratioまたは上限許容率OSratioを利用して、鮮鋭化抑制画像データSharp´´のアンダーシュートまたはオーバーシュートの度合いを補正した画像データAnsは、次式で求められる。
In this case, image data Ans obtained by correcting the degree of undershoot or overshoot of the sharpening-suppressed image data Sharp ″ using the lower limit allowable rate USratio or the upper limit allowable rate OSratio is obtained by the following equation.

ここで、シュート方向Drctがマイナスの場合がアンダーシュート、プラスの場合がオーバーシュートを示す。シュート方向が0の場合は、便宜上オーバーシュートとしているが、アンダーシュートとしても構わない。また、下限許容率USratioまたは上限許容率OSratioは調整可能であり、適宜官能検査等から知見した値を設定すればよい。   Here, when the shooting direction Drct is negative, it indicates undershoot, and when it is positive, it indicates overshoot. When the shooting direction is 0, overshooting is used for convenience, but undershooting may be used. Further, the lower limit allowable rate USratio or the upper limit allowable rate OSratio can be adjusted, and a value found from a sensory test or the like may be set as appropriate.

YCbCr‐RGB変換処理部518では、RGB‐YCbCr変換処理部510で得られた色差データから得られる色差成分と、鮮鋭化処理部515で得られた鮮鋭化画像データから得られる輝度成分で構成される鮮鋭化後の新たな輝度色差成分を、次式に基づいてRGB色成分に逆変換して出力する。
R = Y−0.000007Cb+1.401998Cr
G = Y−0.344133Cb−0.714138Cr
B = Y+1.772003Cb+0.000015Cr
The YCbCr-RGB conversion processing unit 518 includes a color difference component obtained from the color difference data obtained by the RGB-YCbCr conversion processing unit 510 and a luminance component obtained from the sharpened image data obtained by the sharpening processing unit 515. The new luminance / color difference component after sharpening is inversely converted into an RGB color component based on the following equation and output.
R = Y−0.000007Cb + 1.401998Cr
G = Y−0.344133Cb−0.714138Cr
B = Y + 1.772003Cb + 0.000015Cr

以下に、上述した鮮鋭化処理部52による各処理の手順を、図8に示すフローチャートに基づいて説明する。   Below, the procedure of each process by the sharpening process part 52 mentioned above is demonstrated based on the flowchart shown in FIG.

まず、写真画像データを構成する各画素のRGB色成分データが、RGB−YCbCr変換処理部510に入力されると、RGB‐YCbCr変換処理ステップが実行され、原画像の輝度成分である輝度データと原画像の色差成分である色差データが出力される(S1)。   First, when the RGB color component data of each pixel constituting the photographic image data is input to the RGB-YCbCr conversion processing unit 510, the RGB-YCbCr conversion processing step is executed, and the luminance data which is the luminance component of the original image and Color difference data which is a color difference component of the original image is output (S1).

出力された輝度データが平滑化画像生成部511に入力されると、平滑化画像生成ステップ(S2)が実行される。   When the output luminance data is input to the smoothed image generation unit 511, a smoothed image generation step (S2) is executed.

平滑化画像生成ステップ(S2)は、輝度データに対してガウシアンフィルタによって平滑化フィルタ処理を実行し、生成された低周波画像データBlurを差分画像生成部513へ出力する。   In the smoothed image generation step (S2), smoothing filter processing is performed on the luminance data by a Gaussian filter, and the generated low-frequency image data Blur is output to the difference image generation unit 513.

続いて、RGB‐YCbCr変換処理ステップで出力された輝度データと、低周波画像データBlurが差分画像生成部513に入力されると、差分画像生成ステップ(S3)が実行される。   Subsequently, when the luminance data output in the RGB-YCbCr conversion processing step and the low-frequency image data Blur are input to the difference image generation unit 513, a difference image generation step (S3) is executed.

差分画像生成ステップ(S3)は、輝度データの各画素と、各画素に該当する低周波画像データBlurの画素値の差分を画素値とした差分画像データを生成し、鮮鋭化調整画像生成部514へ出力する。   The difference image generation step (S3) generates difference image data in which the difference between each pixel of the luminance data and the pixel value of the low-frequency image data Blur corresponding to each pixel is a pixel value, and a sharpened adjustment image generation unit 514. Output to.

また、RGB‐YCbCr変換処理ステップで出力された輝度データが、エッジ画像生成部512に入力されると、エッジ画像生成ステップ(S4)が実行される。   When the luminance data output in the RGB-YCbCr conversion processing step is input to the edge image generation unit 512, the edge image generation step (S4) is executed.

エッジ画像生成ステップ(S4)は、輝度データに対してラプラシアンフィルタによって鮮鋭化処理を実行し、生成されたエッジ画像データSharpを鮮鋭化調整画像生成部514へ出力する。   In the edge image generation step (S4), the brightness data is sharpened by a Laplacian filter, and the generated edge image data Sharp is output to the sharpening adjustment image generation unit 514.

差分画像生成ステップ(S3)で出力された差分画像データと、エッジ画像生成ステップ(S4)で出力されたエッジ画像データSharpが、鮮鋭化調整画像生成部514に入力されると、鮮鋭化調整画像生成ステップ(S5)が実行される。   When the difference image data output in the difference image generation step (S3) and the edge image data Sharp output in the edge image generation step (S4) are input to the sharpening adjustment image generation unit 514, the sharpening adjustment image is displayed. A generation step (S5) is executed.

鮮鋭化調整画像生成ステップ(S5)は、エッジ画像データSharpの画素値がエッジ上限値Limitを超えないよう抑制した制限エッジ画素と、鮮鋭度を調整する重み係数Intensityとを積算して、鮮鋭化調整画像データSharpIntensity´を生成し、鮮鋭化処理部515へ出力する。   In the sharpening adjustment image generation step (S5), the sharpening is performed by integrating the limited edge pixel in which the pixel value of the edge image data Sharp does not exceed the edge upper limit value and the weight coefficient Intensity for adjusting the sharpness. Adjusted image data SharpIntensity ′ is generated and output to the sharpening processing unit 515.

続いて、RGB‐YCbCr変換処理ステップで出力された輝度データと、鮮鋭化調整画像生成ステップ(S5)で出力された鮮鋭化調整画像データSharpIntensity´が、鮮鋭化処理部515に入力されると、鮮鋭化処理ステップ(S6)が実行される。   Subsequently, when the luminance data output in the RGB-YCbCr conversion processing step and the sharpening adjustment image data SharpIntensity ′ output in the sharpening adjustment image generation step (S5) are input to the sharpening processing unit 515, A sharpening process step (S6) is performed.

鮮鋭化処理ステップ(S6)は、鮮鋭化調整画像加算処理ステップ(S61)と、平準化処理ステップ(S62)で構成されている。さらに、平準化処理ステップ(S62)は、第一平準化処理ステップ(S621)と第二平準化処理ステップ(S622)で構成されている。   The sharpening processing step (S6) includes a sharpening adjustment image addition processing step (S61) and a leveling processing step (S62). Further, the leveling process step (S62) includes a first leveling process step (S621) and a second leveling process step (S622).

鮮鋭化処理ステップ(S6)が実行されると、まず、鮮鋭化調整画像加算処理ステップ(S61)が実行される。   When the sharpening processing step (S6) is executed, first, the sharpening adjustment image addition processing step (S61) is executed.

鮮鋭化調整画像加算処理ステップ(S61)は、輝度データdatと鮮鋭化調整画像データSharpIntensity´を加算処理して、鮮鋭化画像データSharp´を生成し、第一平準化処理ステップ(S621)に出力する。尚、鮮鋭化画像データSharp´を第一平準化処理ステップ(S621)に出力するのに代えて、YCbCr‐RGB変換処理部518に出力するよう構成しても構わない。   In the sharpening adjustment image addition processing step (S61), the luminance data dat and the sharpening adjustment image data SharpIntensity ′ are added to generate sharpening image data Sharp ′, which is output to the first leveling processing step (S621). To do. Note that the sharpened image data Sharp 'may be output to the YCbCr-RGB conversion processing unit 518 instead of being output to the first leveling process step (S621).

第一平準化処理ステップ(S621)は、各画素を注目画素としたラプラシアンフィルタと同サイズの領域における原画像の最大値maxと最小値minを探索し、注目画素に該当する鮮鋭化画像データSharp´の画素値が、オーバーシュートでは最大値を上回らないように、アンダーシュートでは最小値を下回らないように制限した鮮鋭化抑制画像を生成し、当該鮮鋭化抑制画像の画像データである鮮鋭化抑制画像データSharp´´を第二平準化処理ステップ(S622)に出力する。   In the first leveling process step (S621), the maximum value max and the minimum value min of the original image in a region having the same size as the Laplacian filter having each pixel as the target pixel are searched, and the sharpened image data Sharp corresponding to the target pixel is searched. A sharpening-suppressed image is generated in which the pixel value of ′ is restricted so that it does not exceed the maximum value in the case of overshooting and below the minimum value in the case of undershooting, and the sharpening suppression that is the image data of the sharpening-suppressing image is generated The image data Sharp ″ is output to the second leveling process step (S622).

尚、鮮鋭化抑制画像データSharp´´を第二平準化処理ステップ(S622)に出力するのに代えて、鮮鋭化抑制画像データSharp´´を鮮鋭化画像データSharp´としてYCbCr‐RGB変換処理部518に出力するよう構成しても構わない。   In place of outputting the sharpening-suppressed image data Sharp '' to the second leveling process step (S622), the YCbCr-RGB conversion processing unit uses the sharpening-suppressed image data Sharp '' as the sharpened image data Sharp '. You may comprise so that it may output to 518.

第二平準化処理ステップ(S622)は、アンダーシュートまたはオーバーシュートの程度Drctに基づいて、各シュートの方向に対応した許容率である下限許容率USratioまたは上限許容率OSratioを利用して、鮮鋭化抑制画像データSharp´´のアンダーシュートまたはオーバーシュートの度合いを補正し、鮮鋭化画像データSharp´としてYCbCr‐RGB変換処理部518に出力する。   The second leveling process step (S622) uses the lower limit allowable ratio USratio or the upper limit allowable ratio OSratio, which is an allowable ratio corresponding to the direction of each chute, based on the degree of undershoot or overshoot Drct. The degree of undershoot or overshoot of the suppression image data Sharp ″ is corrected and output to the YCbCr-RGB conversion processing unit 518 as sharpened image data Sharp ′.

また、RGB−YCbCr変換処理部510のRGB‐YCbCr変換処理ステップ(S1)で出力された色差データと、鮮鋭化処理ステップ(S6)で出力された鮮鋭化画像データSharp´がYCbCr‐RGB変換処理部518に入力されると、YCbCr‐RGB変換処理ステップ(S7)が実行される。   Further, the color difference data output in the RGB-YCbCr conversion processing step (S1) of the RGB-YCbCr conversion processing unit 510 and the sharpened image data Sharp 'output in the sharpening processing step (S6) are converted into YCbCr-RGB conversion processing. When input to the unit 518, the YCbCr-RGB conversion processing step (S7) is executed.

YCbCr‐RGB変換処理ステップ(S7)は、色差データから得られる色差成分と鮮鋭化画像データSharp´から得られる輝度成分で構成される鮮鋭化後の新たな輝度色差成分を、RGB色成分に逆変換して出力する。   In the YCbCr-RGB conversion processing step (S7), the new brightness color difference component after sharpening composed of the color difference component obtained from the color difference data and the brightness component obtained from the sharpened image data Sharp 'is reversed to the RGB color component. Convert and output.

上述した鮮鋭化処理部52による各処理は、コントローラ33に備えたハードディスクにインストールされた本発明の写真画像処理プログラムが実行されることにより実現される。   Each processing by the sharpening processing unit 52 described above is realized by executing a photographic image processing program of the present invention installed in a hard disk provided in the controller 33.

つまり、写真画像を鮮鋭化する画像処理プログラムであって、原画像データを平滑化フィルタ処理して低周波画像データBlurを生成する平滑化画像生成ステップ(S2)と、原画像データをラプラシアンフィルタ処理してエッジ画像データSharpを生成するエッジ画像生成ステップ(S4)と、原画像データと低周波画像データBlurの差分画像データを生成する差分画像生成ステップ(S3)と、差分画像データの各画素値に対応付けた重み係数Intensityとエッジ画像データSharpの各画素値の積を、鮮鋭化調整画像データSharpIntensity´として生成する鮮鋭化調整画像生成ステップ(S5)と、原画像データの各画素値と鮮鋭化調整画像データSharpIntensity´とを対応する画素毎に加算処理して鮮鋭化画像データSharp´を生成する鮮鋭化処理ステップ(S6)と、をコンピュータに実行させる写真画像処理プログラムが記憶されたCDやDVD等の記憶媒体を介してインストールされている。   That is, an image processing program for sharpening a photographic image, a smoothed image generating step (S2) for generating low-frequency image data Blur by performing smoothing filter processing on the original image data, and Laplacian filter processing on the original image data Then, an edge image generation step (S4) for generating edge image data Sharp, a difference image generation step (S3) for generating difference image data between the original image data and the low-frequency image data Blur, and each pixel value of the difference image data A sharpening adjustment image generating step (S5) for generating a product of each pixel value of the weight coefficient Intensity associated with the edge image data Sharp as the sharpening adjustment image data SharpIntensity ′, and each pixel value of the original image data and the sharpening Corresponding to the adjustment adjustment image data SharpIntensity ′ A sharpening process step (S6) for generating the sharpened image data Sharp 'by adding each time is installed via a storage medium such as a CD or DVD in which a photographic image processing program for causing the computer to execute is stored. Yes.

尚、図9(a)に示す原画像データに対して、補正カーブGammmaの値を0.5,1.0,2.0に設定した場合の鮮鋭化画像をそれぞれ図9(b)(c)(d)に示す。図9(b)(c)(d)では、鮮鋭化処理されたことにより、髪の毛の輪郭が鮮明になっていることがわかる。   For the original image data shown in FIG. 9A, the sharpened images when the values of the correction curve Gamma are set to 0.5, 1.0, and 2.0 are shown in FIGS. 9B and 9C, respectively. ) (D). 9B, 9C, and 9D, it can be seen that the outline of the hair is sharpened by the sharpening process.

また、図9(c)(d)を対比すると、補正カーブGammmaの値が1より大きい場合、即ち、図9(d)に示すように、背景画像である葉の輪郭が明瞭になることがわかる。また、束ねた髪の毛のうち、別れた数本の髪の毛の輪郭部を拡大表示してみると、視覚的に違和感がない程度であるが、髪の毛の輪郭に沿った不要な線の鮮明度が高くなることがわかる。   9C and 9D, when the value of the correction curve Gamma is larger than 1, that is, as shown in FIG. 9D, the outline of the leaf that is the background image becomes clear. Recognize. Also, when you enlarge and display the outlines of several separated hairs among the bundled hairs, there is no visual discomfort, but the sharpness of unnecessary lines along the hair outlines is high. I understand that

一方、図9(b)(c)を対比すると、補正カーブGammmaの値が1より小さい場合、即ち、図9(b)に示すように、背景画像である葉の輪郭がぼやけている。ただし、束ねられた髪の毛から別れた数本の髪の毛の輪郭部を拡大表示しても、髪の毛の輪郭に沿った不要な線がほぼ見られないことがわかる。   On the other hand, comparing FIGS. 9B and 9C, when the value of the correction curve Gamma is smaller than 1, that is, as shown in FIG. 9B, the outline of the leaf that is the background image is blurred. However, it can be seen that even if the outlines of several hairs separated from the bundled hairs are enlarged, unnecessary lines along the hair outlines are hardly seen.

尚、上述した実施形態は、本発明の一例に過ぎず、本発明の作用効果を奏する範囲において各ブロックの具体的構成等を適宜変更設計できることは言うまでもない。   Note that the above-described embodiment is merely an example of the present invention, and it is needless to say that the specific configuration and the like of each block can be changed and designed as appropriate within the scope of the effects of the present invention.

写真画像処理装置の外観説明図External view of photographic image processing device 写真プリンタの説明図Illustration of photo printer 写真画像処理装置の機能ブロック構成図Functional block diagram of photographic image processing device 鮮鋭化処理部の機能ブロック構成図Functional block diagram of the sharpening processor フィルタサイズが5×5のフィルタ係数の説明図であり、(a)はガウシアンフィルタのフィルタ係数を例示する説明図、(b)はラプラシアンフィルタのフィルタ係数を例示する説明図It is explanatory drawing of the filter coefficient of filter size 5x5, (a) is explanatory drawing which illustrates the filter coefficient of a Gaussian filter, (b) is explanatory drawing which illustrates the filter coefficient of a Laplacian filter 重み係数と差分画像データの画素値の絶対値との関係を示す説明図であり、(a)は補正カーブを1より大きくしてガンマ補正した場合を示す説明図、b)は補正カーブを1より大きくした場合と補正カーブを1より小さい場合を混合して近似的にガンマ補正した場合を示す説明図It is explanatory drawing which shows the relationship between a weighting coefficient and the absolute value of the pixel value of difference image data, (a) is explanatory drawing which shows the case where a correction curve is made larger than 1, and shows a case where a correction curve is 1 Explanatory drawing showing a case where gamma correction is approximated by mixing the case where the correction curve is larger and the case where the correction curve is smaller than 1. オーバーシュート及びアンダーシュートを抑制する処理の説明図であり、(a)は原画像に基づいて鮮鋭化画像データの注目画素の画素値の最大値と最小値を決定する処理の説明図、b)は原画像データとオーバーシュート及びアンダーシュートを抑制する処理後の鮮鋭化画像データの画素値を示す説明図It is explanatory drawing of the process which suppresses overshoot and undershoot, (a) is explanatory drawing of the process which determines the maximum value and minimum value of the pixel value of the attention pixel of sharpened image data based on an original image, b) Is an explanatory view showing pixel values of sharpened image data after processing to suppress original image data and overshoot and undershoot 鮮鋭化処理部の処理手順を説明するためのフローチャートFlowchart for explaining the processing procedure of the sharpening processing unit 鮮鋭化処理前後の写真画像であり、(a)は原画像の写真画像、(b)は重み係数の補正カーブが0.5の場合の写真画像、(c)は補正カーブが1.0の場合の写真画像、(d)は補正カーブが2.0の場合の写真画像It is a photographic image before and after sharpening processing, (a) is a photographic image of the original image, (b) is a photographic image when the correction curve of the weighting factor is 0.5, and (c) is a correction curve of 1.0. (D) is a photographic image when the correction curve is 2.0

符号の説明Explanation of symbols

1:写真画像処理装置
52:鮮鋭化処理部
510:RGB‐YCbCr変換処理部
511:平滑化画像生成部
512:エッジ画像生成部
513:差分画像生成部
514:鮮鋭化調整画像生成部
515:鮮鋭化処理部
518:YCbCr‐RGB変換処理部
S2:平滑化画像生成ステップ
S3:差分画像生成ステップ
S4:エッジ画像生成ステップ
S5:鮮鋭化調整画像生成ステップ
S6:鮮鋭化処理ステップ
S62:平準化処理ステップ
x,y:画素の座標
i,j:フィルタ領域内の画素の座標
dat:原画像の輝度データ
Blur:低周波画像データ
Sharp:エッジ画像データ
Sharp´:鮮鋭化画像データ
Sharp´´:鮮鋭化抑制画像データ
SharpIntensity´:鮮鋭化調整画像データ
Ans:シュートの度合いを補正した画像データ
BlurCoef:フィルタ係数(平滑化画像生成部)
BlurIntensity:平滑化強度の調整パラメータ(平滑化画像生成部)
Diff:差分画像データの画素値の絶対値(差分画像生成部)
SharpCoef:フィルタ係数(エッジ画像生成部)
SharpIntensity:鮮鋭化強度の調整パラメータ(エッジ画像生成部)
Gamma:補正カーブ(鮮鋭化調整画像生成部)
Limit:エッジ上限値(鮮鋭化調整画像生成部)
Intensity:重み係数(鮮鋭化調整画像生成部)
Threshold:上限閾値(鮮鋭化調整画像生成部)
USratio:下限許容率(鮮鋭化処理部)
OSratio:上限許容率(鮮鋭化処理部)
1: Photo image processing device 52: Sharpening processing unit 510: RGB-YCbCr conversion processing unit 511: Smoothed image generation unit 512: Edge image generation unit 513: Difference image generation unit 514: Sharpening adjustment image generation unit 515: Sharpness Processing unit 518: YCbCr-RGB conversion processing unit S2: Smoothed image generation step S3: Difference image generation step S4: Edge image generation step S5: Sharpening adjustment image generation step S6: Sharpening processing step S62: Leveling processing step x, y: pixel coordinates i, j: pixel coordinates in the filter area dat: original image luminance data Blur: low-frequency image data Sharp: edge image data Sharp ′: sharpened image data Sharp ″: sharpening suppression Image data SharpIntensity ′: Sharpening adjustment image data Ans: Correction of the degree of shooting Image data BlurCoef: filter coefficient (smoothed image generator)
BlurIntensity: smoothing intensity adjustment parameter (smoothed image generator)
Diff: absolute value of pixel value of difference image data (difference image generation unit)
SharpCoef: Filter coefficient (edge image generation unit)
SharpIntensity: Sharpening intensity adjustment parameter (edge image generator)
Gamma: correction curve (sharpening adjustment image generation unit)
Limit: Edge upper limit (sharpening adjustment image generator)
Intensity: Weighting factor (sharpening adjustment image generation unit)
Threshold: upper limit threshold value (sharpening adjustment image generation unit)
USratio: Lower limit allowable rate (sharpening processing part)
OSratio: Upper limit allowable rate (sharpening processing unit)

Claims (8)

写真画像を鮮鋭化する画像処理方法であって、
原画像データを平滑化フィルタ処理して低周波画像データを生成する平滑化画像生成ステップと、
原画像データをラプラシアンフィルタ処理してエッジ画像データを生成するエッジ画像生成ステップと、
原画像データと前記低周波画像データの差分画像データを生成する差分画像生成ステップと、
前記差分画像データの各画素値に対応付けた重み係数と前記エッジ画像データの各画素値の積を、鮮鋭化調整画像データとして生成する鮮鋭化調整画像生成ステップと、
原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理して鮮鋭化画像データを生成する鮮鋭化処理ステップと、
を含む画像処理方法。
An image processing method for sharpening photographic images,
A smoothed image generating step for generating low-frequency image data by performing smoothing filtering on the original image data;
An edge image generation step for generating edge image data by performing Laplacian filter processing on the original image data;
A difference image generation step for generating difference image data between the original image data and the low-frequency image data;
A sharpening adjustment image generation step of generating a product of a weighting coefficient associated with each pixel value of the difference image data and each pixel value of the edge image data as sharpening adjustment image data;
A sharpening process step of adding each pixel value of the original image data and the sharpened adjustment image data for each corresponding pixel to generate sharpened image data;
An image processing method including:
前記差分画像データの各画素値に対応付けた重み係数として、前記差分画像データの各画素値を、γ>1となる所定のγ値でガンマ補正した画素値を採用する請求項1記載の画像処理方法。   The image according to claim 1, wherein a pixel value obtained by gamma-correcting each pixel value of the difference image data with a predetermined γ value satisfying γ> 1 is used as a weighting factor associated with each pixel value of the difference image data. Processing method. 前記差分画像データの各画素値に対応付けた重み係数として、前記差分画像データの各画素値を所定の上限閾値で制限した制限画素値を、γ>1となる所定のγ値でガンマ補正した画素値を採用する請求項1記載の画像処理方法。   As a weighting factor associated with each pixel value of the difference image data, a limited pixel value obtained by limiting each pixel value of the difference image data with a predetermined upper threshold is gamma-corrected with a predetermined γ value that satisfies γ> 1. The image processing method according to claim 1, wherein a pixel value is adopted. 鮮鋭化調整画像生成ステップは、前記エッジ画像データの各画素値を所定のエッジ上限値で制限した制限エッジ画素と前記重み係数との積を、鮮鋭化調整画像データとして生成する請求項1から3の何れかに記載の画像処理方法。   The sharpening adjustment image generation step generates, as the sharpening adjustment image data, a product of the limited edge pixel obtained by limiting each pixel value of the edge image data with a predetermined edge upper limit value and the weight coefficient. An image processing method according to any one of the above. 前記鮮鋭化処理ステップは、原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理した鮮鋭化画像データに含まれる前記エッジ画像データのオーバーシュートまたはアンダーシュートを抑制する平準化ステップを含む請求項1から4の何れかに記載の画像処理方法。   The sharpening processing step suppresses overshoot or undershoot of the edge image data included in the sharpened image data obtained by adding each pixel value of the original image data and the sharpened adjustment image data for each corresponding pixel. 5. The image processing method according to claim 1, further comprising a leveling step. 平準化ステップは、原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理した鮮鋭化画像データを、各画素を注目画素とする所定領域における原画像の最大値または最小値で制限した鮮鋭化抑制画像を生成し、前記鮮鋭化抑制画像をオーバーシュートまたはアンダーシュートの程度に基づいて各方向に対応した許容率で補正する平準化処理ステップを含む請求項5記載の画像処理方法。   In the leveling step, the sharpened image data obtained by adding each pixel value of the original image data and the sharpened adjustment image data for each corresponding pixel, and the maximum value of the original image in a predetermined region having each pixel as a target pixel 6. A leveling process step including generating a sharpening suppression image limited by a minimum value and correcting the sharpening suppression image with an allowable rate corresponding to each direction based on a degree of overshoot or undershoot. Image processing method. 写真画像を鮮鋭化する画像処理プログラムであって、
原画像データを平滑化フィルタ処理して低周波画像データを生成する平滑化画像生成ステップと、
原画像データをラプラシアンフィルタ処理してエッジ画像データを生成するエッジ画像生成ステップと、
原画像データと前記低周波画像データの差分画像データを生成する差分画像生成ステップと、
前記差分画像データの各画素値に対応付けた重み係数と前記エッジ画像データの各画素値の積を、鮮鋭化調整画像データとして生成する鮮鋭化調整画像生成ステップと、
原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理して鮮鋭化画像データを生成する鮮鋭化処理ステップと、
をコンピュータに実行させる画像処理プログラム。
An image processing program for sharpening photographic images,
A smoothed image generating step for generating low-frequency image data by performing smoothing filtering on the original image data;
An edge image generation step for generating edge image data by performing Laplacian filter processing on the original image data;
A difference image generation step for generating difference image data between the original image data and the low-frequency image data;
A sharpening adjustment image generation step of generating a product of a weighting coefficient associated with each pixel value of the difference image data and each pixel value of the edge image data as sharpening adjustment image data;
A sharpening process step of adding each pixel value of the original image data and the sharpened adjustment image data for each corresponding pixel to generate sharpened image data;
An image processing program for causing a computer to execute.
写真画像を鮮鋭化する画像処理装置であって、
原画像データを平滑化フィルタ処理して低周波画像データを生成する平滑化画像生成部と、
原画像データをラプラシアンフィルタ処理してエッジ画像データを生成するエッジ画像生成部と、
原画像データと前記低周波画像データの差分画像データを生成する差分画像生成部と、
前記差分画像データの各画素値に対応付けた重み係数と前記エッジ画像データの各画素値の積を、鮮鋭化調整画像データとして生成する鮮鋭化調整画像生成部と、
原画像データの各画素値と前記鮮鋭化調整画像データとを対応する画素毎に加算処理して鮮鋭化画像データを生成する鮮鋭化処理部と、
を含む画像処理装置。
An image processing apparatus for sharpening photographic images,
A smoothed image generator for generating low-frequency image data by performing smoothing filter processing on the original image data;
An edge image generation unit that generates edge image data by performing Laplacian filter processing on the original image data;
A difference image generation unit for generating difference image data between the original image data and the low-frequency image data;
A sharpening adjustment image generating unit that generates a product of a weighting factor associated with each pixel value of the difference image data and each pixel value of the edge image data as sharpening adjustment image data;
A sharpening processing unit that generates the sharpened image data by adding each pixel value of the original image data and the sharpened adjustment image data for each corresponding pixel;
An image processing apparatus.
JP2008234144A 2008-09-12 2008-09-12 Photographic image processing method, photographic image processing program, and photographic image processor Pending JP2010068361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008234144A JP2010068361A (en) 2008-09-12 2008-09-12 Photographic image processing method, photographic image processing program, and photographic image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008234144A JP2010068361A (en) 2008-09-12 2008-09-12 Photographic image processing method, photographic image processing program, and photographic image processor

Publications (1)

Publication Number Publication Date
JP2010068361A true JP2010068361A (en) 2010-03-25

Family

ID=42193526

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008234144A Pending JP2010068361A (en) 2008-09-12 2008-09-12 Photographic image processing method, photographic image processing program, and photographic image processor

Country Status (1)

Country Link
JP (1) JP2010068361A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011121760A1 (en) * 2010-03-31 2011-10-06 キヤノン株式会社 Image processing apparatus and image capturing apparatus using same
JP2012044617A (en) * 2010-08-23 2012-03-01 Toshiba Corp Image processing device
JP2020156582A (en) * 2019-03-25 2020-10-01 キヤノンメディカルシステムズ株式会社 Ultrasonic diagnostic device, medical image processing device, and medical image processing program
CN112597911A (en) * 2020-12-25 2021-04-02 百果园技术(新加坡)有限公司 Buffing processing method and device, mobile terminal and storage medium
JP2021082212A (en) * 2019-11-22 2021-05-27 キヤノン株式会社 Image processing system, image processing method, and program
CN118521795A (en) * 2024-07-22 2024-08-20 陕西东泽瑞科技开发有限公司 Drill rod image acquisition method for explosion-proof drilling

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5054248B2 (en) * 2010-03-31 2012-10-24 キヤノン株式会社 Image processing apparatus, image processing method, image processing program, and imaging apparatus
WO2011121760A1 (en) * 2010-03-31 2011-10-06 キヤノン株式会社 Image processing apparatus and image capturing apparatus using same
US8565524B2 (en) 2010-03-31 2013-10-22 Canon Kabushiki Kaisha Image processing apparatus, and image pickup apparatus using same
CN102377911B (en) * 2010-08-23 2014-09-03 株式会社东芝 Image processing apparatus, image processing method, and camera module
US8559747B2 (en) 2010-08-23 2013-10-15 Kabushiki Kaisha Toshiba Image processing apparatus, image processing method, and camera module
CN102377911A (en) * 2010-08-23 2012-03-14 株式会社东芝 Image processing apparatus, image processing method, and camera module
JP2012044617A (en) * 2010-08-23 2012-03-01 Toshiba Corp Image processing device
TWI456974B (en) * 2010-08-23 2014-10-11 Toshiba Kk Image processing apparatus, image processing method, and camera module
JP2020156582A (en) * 2019-03-25 2020-10-01 キヤノンメディカルシステムズ株式会社 Ultrasonic diagnostic device, medical image processing device, and medical image processing program
JP7297485B2 (en) 2019-03-25 2023-06-26 キヤノンメディカルシステムズ株式会社 Ultrasound diagnostic device, medical image processing device and medical image processing program
JP2021082212A (en) * 2019-11-22 2021-05-27 キヤノン株式会社 Image processing system, image processing method, and program
JP7365206B2 (en) 2019-11-22 2023-10-19 キヤノン株式会社 Image processing device, image processing method, and program
CN112597911A (en) * 2020-12-25 2021-04-02 百果园技术(新加坡)有限公司 Buffing processing method and device, mobile terminal and storage medium
CN118521795A (en) * 2024-07-22 2024-08-20 陕西东泽瑞科技开发有限公司 Drill rod image acquisition method for explosion-proof drilling

Similar Documents

Publication Publication Date Title
US9055263B2 (en) Apparatus, method and computer program for correcting an image using lookup tables generated by inputted image analysis
JP4262151B2 (en) Image processing method, image processing apparatus, computer program, and storage medium
JP2002044473A (en) Image-processing method, image-processing device, and record medium with program for executing image- processing method stored thereon
JP2006011685A (en) Photographic image processing method and its device
JP2010068361A (en) Photographic image processing method, photographic image processing program, and photographic image processor
JP5157678B2 (en) Photo image processing method, photo image processing program, and photo image processing apparatus
JP6271874B2 (en) Image processing apparatus and image processing method
JP5125954B2 (en) Photo image processing method, photo image processing program, and photo image processing apparatus
US20050046902A1 (en) Image processing apparatus, method and program
JP4366634B2 (en) Noise pixel map creation method, apparatus and program for implementing the method, and photo print apparatus
JP4830923B2 (en) Image processing apparatus and image processing method
JP5157760B2 (en) Photo image processing method, photo image processing program, and photo image processing apparatus
JP6736299B2 (en) Printing device, printing method, and program
JP2006343863A (en) Image processor and image processing method
JP3673675B2 (en) Image processing method, image processing apparatus, and recording medium
JP4261290B2 (en) Image processing apparatus and method, and program
JP5157677B2 (en) Photo image processing method, photo image processing program, and photo image processing apparatus
JP5245715B2 (en) Photo image processing method, photo image processing program, and photo image processing apparatus
JP2010010974A (en) Photographic image processing method, photographic image processing program, and photographic image processing device
JP5062156B2 (en) Photo image processing method, photo image processing program, and photo image processing apparatus
JP4496856B2 (en) Photographic image processing method and apparatus
JP4303061B2 (en) Image processing apparatus and method, and program
JP4324870B2 (en) Image processing method, image processing program, and apparatus for implementing the image processing method
JP4375223B2 (en) Image processing apparatus, image processing method, and image processing program
JP4506498B2 (en) Photo image processing method and photo image processing apparatus

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20110221

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110222