JP5062156B2 - Photo image processing method, photo image processing program, and photo image processing apparatus - Google Patents
Photo image processing method, photo image processing program, and photo image processing apparatus Download PDFInfo
- Publication number
- JP5062156B2 JP5062156B2 JP2008313602A JP2008313602A JP5062156B2 JP 5062156 B2 JP5062156 B2 JP 5062156B2 JP 2008313602 A JP2008313602 A JP 2008313602A JP 2008313602 A JP2008313602 A JP 2008313602A JP 5062156 B2 JP5062156 B2 JP 5062156B2
- Authority
- JP
- Japan
- Prior art keywords
- density
- noise
- regression line
- pixel
- fluctuation range
- 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.)
- Active
Links
- 238000012545 processing Methods 0.000 title claims description 216
- 238000003672 processing method Methods 0.000 title claims description 18
- 230000001629 suppression Effects 0.000 claims description 167
- 238000012937 correction Methods 0.000 claims description 126
- 238000004364 calculation method Methods 0.000 claims description 60
- 238000000605 extraction Methods 0.000 claims description 44
- 230000001419 dependent effect Effects 0.000 claims description 19
- 230000009467 reduction Effects 0.000 claims description 7
- 238000000034 method Methods 0.000 description 42
- 230000008569 process Effects 0.000 description 31
- 238000006243 chemical reaction Methods 0.000 description 21
- 230000002093 peripheral effect Effects 0.000 description 15
- 238000001914 filtration Methods 0.000 description 14
- 230000008859 change Effects 0.000 description 8
- 238000005315 distribution function Methods 0.000 description 6
- 238000013461 design Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 238000009499 grossing Methods 0.000 description 3
- 230000004927 fusion Effects 0.000 description 2
- 238000003702 image correction Methods 0.000 description 2
- 230000007723 transport mechanism Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000004061 bleaching Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007499 fusion processing Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 239000000049 pigment Substances 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
本発明は、写真画像データに含まれる粒状のノイズを抑制する写真画像処理方法、写真画像処理プログラム、及び写真画像処理装置に関する。 The present invention relates to a photographic image processing method, a photographic image processing program, and a photographic image processing apparatus that suppress granular noise included in photographic image 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.
同様に、光学カメラによって撮影されたフィルム画像にも色素雲の大きさに基づいた粒状ムラが存在し、フィルムスキャナを介してデジタル画像に変換した写真画像データには細かな粒状のノイズが重畳されている。これらの粒状のノイズは、フィルム粒子が大きい感度の高いフィルムに撮像されたとき、あるいは、写真画像を拡大処理したときに顕著に現れる。 Similarly, a film image taken by an optical camera also has grainy irregularities based on the size of the pigment cloud, and fine grained noise is superimposed on the photographic image data converted into a digital image through a film scanner. ing. These granular noises are noticeable when film particles are imaged on a highly sensitive film or when a photographic image is enlarged.
これらの粒状のノイズを抑制するために、所定のフィルタサイズのメジアンフィルタやガウシアンフィルタによるフィルタ処理、つまり、ある画素についてその周囲の画素を加味して求めた所定の平均値に置換する処理を画像全体に施すような処理があるが、画像の輪郭部分にメリハリを与える鮮鋭化処理の後にこのようなぼかし処理を行なうと、輪郭までぼやけてしまうので鮮鋭化した意味が無くなり、上述のぼかし処理を行った後に鮮鋭化処理する場合には画像中の細かい構造(ディテール)が消失するといった不都合がある。 In order to suppress these granular noises, image processing is performed using a median filter or Gaussian filter having a predetermined filter size, that is, processing for replacing a certain pixel with a predetermined average value obtained by taking the surrounding pixels into consideration. There is processing that is applied to the whole, but if such blurring processing is performed after sharpening processing that sharpens the contour portion of the image, the contour is blurred, so the meaning of sharpening is lost, and the above blurring processing is performed. In the case of performing the sharpening process after being performed, there is a disadvantage that fine structures (details) in the image disappear.
そこで、写真画像データを所定画素数でブロック分割して、各領域の平均値と分散値を求め、分散値が小さい平坦な画像領域では強い平滑化処理を施し、分散値が大きい輪郭を含む画像領域では弱い平滑化処理を施すことが考えられるが、この方法によれば、輪郭を含む画像領域がブロック内に存在すると、一律に弱い平滑化処理が実行されるため、輪郭を中心とする所定幅の帯状の領域でノイズ抑制効果が低減されることになり、あまり好ましい結果が得られなかった。 Therefore, photographic image data is divided into blocks by a predetermined number of pixels, the average value and variance value of each area are obtained, and a flat image area with a small variance value is subjected to strong smoothing processing, and an image including an outline with a large variance value Although it is conceivable to perform weak smoothing processing on the area, according to this method, if an image area including a contour is present in the block, the weak smoothing processing is uniformly executed. The noise suppression effect is reduced in the band-like region of the width, and a preferable result is not obtained.
特許文献1には、フィルムスキャナを介してデジタル画像に変換した写真画像データに加重平均フィルタ処理を行なう画像処理方法として、写真画像データを構成するRGB画素成分毎に、注目画素を順次設定するステップと、注目画素を中心とした加重平均フィルタリング処理のための演算領域内に位置する各周辺画素と注目画素との間の画素値の差分値を算定するステップと、差分値に応じて加重平均フィルタリング処理に用いられる重み係数を決定するステップと、重み係数を用いて加重平均フィルタリング処理を実行して注目画素の補正画素値を求めるステップを備えた方法が提案されている。 In Patent Document 1, as an image processing method for performing weighted average filter processing on photographic image data converted into a digital image via a film scanner, a step of sequentially setting a pixel of interest for each RGB pixel component constituting the photographic image data Calculating a difference value of pixel values between each peripheral pixel located in the calculation region for the weighted average filtering process centered on the target pixel and the target pixel, and weighted average filtering according to the difference value There has been proposed a method including a step of determining a weighting factor used for processing, and a step of executing a weighted average filtering process using the weighting factor to obtain a corrected pixel value of a target pixel.
この方法によれば、注目画素が平坦領域に位置する場合と輪郭領域に位置する場合とでは、注目画素とその周辺画素の画素値に所定の関係があることから、特定の差分値に対して強い影響力を与えるような重み係数を設定することで、平坦領域はもとより輪郭及びその付近においても十分に粒状ノイズを抑制できるとともに写真がもつ細かいディテールと質感が維持される粒状ノイズ抑制が実現可能となる。
しかし、粒状ノイズを抑制する場合には、原画像データの特性、つまり、原画像データの画素数や、原画像に含まれている粒状ノイズのレベル等に基づいて適切なサイズのフィルタやフィルタ係数を設定する必要があるが、上述した従来の技術では、その程度を把握することができず、一律のフィルタ係数やフィルタサイズで粒状抑制処理がなされていたために、得られた画像の品質が異なるという問題があった。 However, when suppressing granular noise, a filter or filter coefficient of an appropriate size based on the characteristics of the original image data, that is, the number of pixels of the original image data, the level of granular noise included in the original image, etc. However, in the conventional technique described above, the degree of the image cannot be grasped, and the granularity suppression processing is performed with a uniform filter coefficient and filter size, so the quality of the obtained image is different. There was a problem.
例えば、粒状ノイズのレベルが相対的に低い原画像に対して、一律の加重平均フィルタ処理を施すと、平坦部がのっぺりした抑揚の無い画像に仕上がり、粒状ノイズのレベルが相対的に高い原画像に対して、一律の加重平均フィルタ処理を施すと、十分に粒状ノイズを抑制することができなかった。 For example, if uniform weighted average filter processing is applied to an original image with a relatively low level of granular noise, the flat image will appear as an uninflated image, and the original image will have a relatively high level of granular noise. On the other hand, when the uniform weighted average filter processing is performed, the granular noise cannot be sufficiently suppressed.
そこで、原画像を複数の所定サイズの画素ブロックに分割して、各画素ブロックを平均濃度値の大きさに応じてグループ化し、グループ別に算出した濃度値のばらつき度合が各グループに属する画素ブロックに含まれる粒状ノイズの変動幅を示すものと仮定して、当該ノイズ変動幅に対応するノイズ抑制強度で各画素ブロックのノイズ抑制処理を実施することが考えられる。 Therefore, the original image is divided into a plurality of pixel blocks of a predetermined size, each pixel block is grouped according to the average density value, and the degree of variation in density value calculated for each group is divided into pixel blocks belonging to each group. Assuming that the fluctuation range of the included granular noise is shown, it is conceivable to perform the noise suppression processing of each pixel block with the noise suppression intensity corresponding to the noise fluctuation range.
一般的に最も注目して測定される暗電流及びゲインに関するノイズが目立ちやすい暗部の画素ブロックに対しては、ノイズ抑制強度を高め、ノイズが目立ちにくい明部の画素ブロックに対しては、絵柄を失わない程度にノイズ抑制強度を弱めて、ノイズ抑制処理することが理想的である。しかし、例えば、絵柄が複雑で平坦な部分が少なく、絵柄がノイズと認識されてしまうような画像や、極端に暗部または明部の画素ブロックの数が多い画像の場合は、上述の理想とは異なり、明部になるにつれてノイズ変動幅が大きくなることがあり、当該ノイズ変動幅に対応するノイズ抑制強度でノイズ抑制処理を実施したときは、暗部のノイズが目立ち、明部の絵柄が失われ、画質が劣化することがあった。 For dark pixel blocks where dark current and gain noise, which is generally measured with the most attention, are prominent, increase the noise suppression strength, and for bright pixel blocks where noise is not conspicuous, use a pattern. It is ideal to reduce the noise suppression strength to such an extent that it is not lost and to perform noise suppression processing. However, for example, in the case of an image in which the pattern is complex and has few flat parts and the pattern is recognized as noise, or an image with an extremely large number of pixel blocks in the dark part or bright part, the above ideal is In contrast, the noise fluctuation range may increase as it becomes brighter, and when noise suppression processing is performed with the noise suppression intensity corresponding to the noise fluctuation range, the noise in the dark part is noticeable and the picture in the bright part is lost. The image quality sometimes deteriorated.
また、デジタルカメラで撮影された写真画像データは、通常、JPEG画像に圧縮される際に、色差データが1/2または1/4に低減された後に直交変換されるため、輝度データと比べて色差データのデータ量が減少していることと相俟って、色ノイズが輝度ノイズより大きく現れやすく、上述した特許文献1に記載された色成分毎に加重平均フィルタ処理する方法では、輝度ノイズと色ノイズを適切に除去できないという問題もあった。 In addition, when photographic image data taken with a digital camera is usually compressed into a JPEG image, the color difference data is reduced to 1/2 or 1/4 and then orthogonally transformed. In combination with the reduction in the data amount of the color difference data, the color noise tends to appear larger than the luminance noise. In the method of performing weighted average filtering for each color component described in Patent Document 1 described above, the luminance noise There was also a problem that color noise could not be removed properly.
本発明は、上述の従来欠点に鑑み、写真画像データから適切なノイズの変動幅を特定し、効果的にノイズを抑制できる写真画像処理方法、写真画像処理プログラム、及び写真画像処理装置を提供する点にある。 The present invention provides a photographic image processing method, a photographic image processing program, and a photographic image processing apparatus capable of specifying an appropriate noise fluctuation range from photographic image data and effectively suppressing noise in view of the above-described conventional drawbacks. In the point.
上述の目的を達成するため、本発明による写真画像処理方法の第一の特徴構成は、特許請求の範囲の書類の請求項1に記載した通り、写真画像データに含まれる粒状のノイズの変動幅に基づいてノイズ抑制処理を行う写真画像処理方法であって、前記写真画像データから濃度成分画像データを抽出する濃度成分抽出ステップと、前記濃度成分抽出ステップで抽出された前記濃度成分画像データを所定サイズの画素ブロックに分割して、画素ブロック毎に平均濃度値、最大濃度値、最小濃度値、濃度ばらつきを含むブロック特性値を算出するブロック特性値算出ステップと、濃度範囲を示すX軸と前記ブロック特性値を示すY軸からなる二次元座標系において、前記濃度範囲を所定間隔で複数の区間に区分し、前記平均濃度値に基づいて各画素ブロックを対応する区分に割り付ける画素ブロック割付ステップと、各区分に割り付けられた画素ブロックから前記濃度ばらつきが最小となる画素ブロックを代表画素ブロックとして抽出する画素ブロック抽出ステップと、を備え、前記画素ブロック抽出ステップで抽出された複数の代表画素ブロックの各平均濃度値を説明変数とし、各最大濃度値を従属変数とする最大側回帰直線と各最小濃度値を従属変数とする最小側回帰直線を算出し、前記最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定するノイズ変動幅特定ステップと、前記ノイズ変動幅特定ステップで算出された前記最小側回帰直線に基づいて、前記最大側回帰直線を補正し、当該補正後の前記最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定するノイズ変動幅補正ステップとを含む点にある。 In order to achieve the above-mentioned object, the first characteristic configuration of the photographic image processing method according to the present invention is the fluctuation range of the granular noise included in the photographic image data as described in claim 1 of the claims. A photographic image processing method for performing noise suppression processing based on a density component extraction step for extracting density component image data from the photographic image data, and the density component image data extracted in the density component extraction step as predetermined A block characteristic value calculating step for calculating a block characteristic value including an average density value, a maximum density value, a minimum density value, and a density variation for each pixel block by dividing the pixel block into size pixel blocks; In a two-dimensional coordinate system including a Y axis indicating a block characteristic value, the density range is divided into a plurality of sections at predetermined intervals, and each pixel is determined based on the average density value. A pixel block allocating step for allocating locks to corresponding sections, and a pixel block extracting step for extracting, from the pixel blocks allocated to each section, a pixel block having the smallest density variation as a representative pixel block, Calculates the maximum regression line using each average density value of multiple representative pixel blocks extracted in the extraction step as an explanatory variable and each maximum density value as a dependent variable and the minimum regression line using each minimum density value as a dependent variable. A noise fluctuation range specifying step for specifying a range defined by the maximum regression line and the minimum regression line as a fluctuation range of the granular noise, and the minimum regression calculated in the noise fluctuation range specification step Based on the straight line, the maximum regression line is corrected, and the corrected maximum regression line and minimum regression line are corrected. In that it includes a noise variation width correction step of identifying a range defined as the fluctuation width of the granular noise.
ブロック特性値算出ステップでは、濃度成分抽出ステップで抽出された濃度成分画像データが所定サイズの画素ブロックに分割され、画素ブロック毎に平均濃度値、最大濃度値、最小濃度値、濃度ばらつきを含むブロック特性値が算出される。画素ブロックが画像の平坦部位に属するときには、最大濃度値と最小濃度値にそれほどの差が無く、濃度ばらつきも小さくなるが、画素ブロックが画像の輪郭部位に属するときには、最大濃度値と最小濃度値に大きな差が生じ、濃度ばらつきも比較的大きくなる。つまり、濃度ばらつきが小さい画素ブロックでは、粒状ノイズによるばらつきの影響が顕著に表されているといえる。 In the block characteristic value calculation step, the density component image data extracted in the density component extraction step is divided into pixel blocks of a predetermined size, and each pixel block includes an average density value, a maximum density value, a minimum density value, and a density variation. A characteristic value is calculated. When the pixel block belongs to the flat part of the image, there is not much difference between the maximum density value and the minimum density value, and the density variation is small, but when the pixel block belongs to the contour part of the image, the maximum density value and the minimum density value There is a large difference in density, and the density variation is relatively large. That is, it can be said that the influence of the variation due to the granular noise is remarkably expressed in the pixel block having a small density variation.
画素ブロック割付ステップでは、濃度範囲を示すX軸と前記ブロック特性値を示すY軸からなる二次元座標系において、所定間隔で複数の区間に区分された濃度範囲の何れかの区分に、各画素ブロックがその平均濃度値に基づいて割り付けられる。画素ブロック抽出ステップでは、区分された濃度範囲毎に、ブロック特性値に含まれる濃度ばらつきが最小となる画素ブロックを代表画素ブロックとして抽出する。すなわち、代表画素ブロックの濃度ばらつきは、区分された濃度範囲で最も平坦な領域を含む画素ブロックのノイズの変動幅を示していることになる。 In the pixel block allocation step, each pixel is divided into any one of the density ranges divided into a plurality of sections at a predetermined interval in a two-dimensional coordinate system including an X axis indicating the density range and a Y axis indicating the block characteristic value. Blocks are allocated based on their average density value. In the pixel block extraction step, a pixel block having a minimum density variation included in the block characteristic value is extracted as a representative pixel block for each divided density range. That is, the density variation of the representative pixel block indicates the noise fluctuation range of the pixel block including the flattest region in the divided density range.
ノイズ変動幅特定ステップでは、画素ブロック抽出ステップで抽出した区分された濃度範囲毎のノイズの変動幅を利用して、回帰計算を実施するため、区分された濃度範囲ではなく、本来の濃度域として連続したノイズ変動幅を算出できるようになる。実際に発明者らが検証したところ、本発明により得られたノイズ変動幅が、粒状ノイズの変動幅と略一致することが判明している。 In the noise fluctuation range specifying step, regression calculation is performed using the noise fluctuation range for each divided density range extracted in the pixel block extraction step, so that the original density range is used instead of the divided density range. Continuous noise fluctuation range can be calculated. As a result of actual verification by the inventors, it has been found that the noise fluctuation width obtained by the present invention substantially matches the fluctuation width of the granular noise.
しかし、本願発明者は、例えば、絵柄が複雑な画像、アンダーコントラストが少ない画像、十分にある濃度範囲の画素ブロックが収集できない画像等に対して算出された二本の回帰直線が示すノイズの変動幅が、明部になるに連れて広くなる、或いは、最大側回帰直線のY軸切片が最小側回帰直線のY軸切片よりも小さくなることがあることを知見している。 However, the inventor of the present application, for example, changes in noise indicated by two regression lines calculated for an image with a complicated pattern, an image with low under-contrast, an image in which a pixel block having a sufficient density range cannot be collected, etc. It has been found that the width becomes wider as it becomes brighter, or that the Y-axis intercept of the maximum regression line may be smaller than the Y-axis intercept of the minimum regression line.
即ち、一般的に最も注目して測定される暗電流及びゲインに関するノイズが多く認識され、目立ちにくい明部のノイズは、誤って明部の絵柄の画素がノイズとして認識されないように、適度に抑えて認識されるのが理想的であるが、理想的とは言い難いノイズ変動幅が得られることがあることを知見している。 In other words, a lot of noise related to dark current and gain, which is generally measured with the most attention, is recognized, and the bright part noise that is not noticeable is moderately suppressed so that pixels in the bright part are not mistakenly recognized as noise. It has been found that noise fluctuation ranges that are not ideal but can be obtained are ideal.
このようにノイズ変動幅特定ステップにおいて、絵柄等の画像内容に起因して理想的とは言い難いノイズ変動幅が算出される場合であっても、ノイズ変動幅補正ステップにより、最小側回帰直線に基づいて最大側回帰直線が補正されるため、ノイズ変動幅を適度に補正することができるようになる。 In this way, even in the case where a noise fluctuation range that is not ideal due to the image content such as a pattern is calculated in the noise fluctuation width specifying step, the noise fluctuation width correction step results in a minimum-side regression line. Since the maximum regression line is corrected based on this, the noise fluctuation range can be appropriately corrected.
同第二の特徴構成は、同請求項2に記載した通り、上述の第一特徴構成に加えて、前記ノイズ変動幅補正ステップは、前記最大側回帰直線の傾きを前記最小側回帰直線の傾きに一致させる第一の補正を行い、前記第一の補正後の最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定する点にある。 In the second feature configuration, as described in claim 2, in addition to the first feature configuration described above, the noise fluctuation range correction step may be configured such that the slope of the maximum regression line is the slope of the minimum regression line. And the range defined by the maximum-side regression line and the minimum-side regression line after the first correction is specified as the fluctuation range of the granular noise.
上述の構成によれば、ノイズ変動幅補正ステップでは、最大側回帰直線の傾きが最小側回帰直線の傾きと一致するように補正されるため、明部のノイズ変動幅が狭められるようになる。したがって、ノイズが目立ちにくい明部において、画像の絵柄がノイズとして認識されることを抑制できるようになる。 According to the above-described configuration, in the noise fluctuation range correction step, correction is performed so that the slope of the maximum regression line matches the slope of the minimum regression line, so that the noise fluctuation range of the bright part is narrowed. Therefore, it is possible to suppress the image pattern from being recognized as noise in a bright part where noise is not noticeable.
同第三の特徴構成は、同請求項3に記載した通り、上述の第二特徴構成に加えて、前記ノイズ変動幅補正ステップは、前記第一の補正後の前記最大側回帰直線のY軸切片が前記最小側回帰直線のY軸切片よりも小さい場合は、前記第一の補正前後の前記最大側回帰直線のY軸切片の比率に基づいて、前記第一の補正後の最大側回帰直線のY軸切片を補正する第二の補正を行い、前記第二の補正後の最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定する点にある。 In the third feature configuration, as described in claim 3, in addition to the second feature configuration described above, the noise fluctuation range correction step includes a Y axis of the maximum regression line after the first correction. When the intercept is smaller than the Y-axis intercept of the minimum regression line, the maximum regression line after the first correction is based on the ratio of the Y-axis intercept of the maximum regression line before and after the first correction. The second correction for correcting the Y-axis intercept is performed, and a range defined by the maximum-side regression line and the minimum-side regression line after the second correction is specified as the fluctuation range of the granular noise. .
ノイズ変動幅補正ステップでは、第一の補正を行うことにより、第一の補正後の最大側回帰直線が最小側回帰直線よりも二次元座標系における下側となって、ノイズ変動幅がマイナス値を示すような不都合が生じる場合がある。しかし、上述の構成によれば、ノイズ変動幅補正ステップでは、第一の補正後の最大側回帰直線のY軸切片が第二の補正により補正されるため、当該不都合を回避できるようになる。 In the noise fluctuation range correction step, by performing the first correction, the maximum regression line after the first correction becomes lower in the two-dimensional coordinate system than the minimum regression line, and the noise fluctuation range is a negative value. May cause inconvenience. However, according to the configuration described above, in the noise fluctuation range correction step, the Y-axis intercept of the maximum-side regression line after the first correction is corrected by the second correction, so that the inconvenience can be avoided.
同第四の特徴構成は、同請求項4に記載した通り、上述の第一から第三の何れかの特徴構成に加えて、前記ノイズ変動幅補正ステップは、前記最大側回帰直線の相関係数が所定の閾値を超える場合に、前記最大側回帰直線を補正する点にある。 In the fourth feature configuration, in addition to any one of the first to third feature configurations described above, the noise fluctuation range correction step includes a correlation between the maximum-side regression lines. When the number exceeds a predetermined threshold, the maximum regression line is corrected.
例えば、暗部及び明部に著しく絵柄が偏っている画像のノイズ変動幅を算出した場合、画素ブロック割付ステップにより特定の濃度範囲に割り付けられる画素ブロックが多くなるため、当該濃度範囲におけるノイズ量を適切に算出することができるが、割り付けられる画素ブロックが少ない濃度範囲においては、ノイズ量が適切に算出されるとは言い難い。即ち、ノイズ変動幅特定ステップで算出される回帰直線の相関係数が低い場合には、算出されたノイズ変動幅は適切であるとは言い難い。 For example, when calculating the noise fluctuation range of an image whose picture is significantly biased in the dark part and the bright part, the number of pixel blocks assigned to a specific density range by the pixel block assignment step increases. However, it is difficult to say that the amount of noise is appropriately calculated in a density range where the number of allocated pixel blocks is small. That is, when the correlation coefficient of the regression line calculated in the noise fluctuation range specifying step is low, it is difficult to say that the calculated noise fluctuation range is appropriate.
上述の構成によれば、ノイズ変動幅補正ステップでは、最大側回帰直線の相関係数が所定の閾値を超える場合に最大側回帰直線が補正されてノイズ変動幅が特定されるため、上述のような適切とは言い難いノイズ変動幅が算出されることを回避できるようになる。 According to the above configuration, in the noise fluctuation range correction step, when the correlation coefficient of the maximum regression line exceeds a predetermined threshold value, the maximum regression line is corrected and the noise fluctuation range is specified. It is possible to avoid calculating a noise fluctuation range that is difficult to say.
同第五の特徴構成は、同請求項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 noise fluctuation range correction step includes a slope of the maximum regression line. When larger than the minimum regression line, the predetermined size of the pixel block is reduced, and based on the pixel block of the predetermined size after the reduction, the maximum fluctuation regression line is determined through the noise fluctuation width specifying step. And recalculating the minimum regression line and correcting the recalculated maximum regression line based on the recalculated minimum regression line.
上述の構成によれば、ノイズ変動幅補正ステップでは、最大側回帰直線の傾きが最小側回帰直線よりも大きい場合に、画素ブロックの所定サイズを縮小して、縮小後の所定サイズの画素ブロックに基づいて、ノイズ変動幅特定ステップを介して、最大側回帰直線と最小側回帰直線が再算出される。したがって、当初算出された回帰直線と比較すると、再算出された回帰直線は、より多くの画素ブロックに基づいて算出されるため、各区分された濃度範囲のノイズ量が適切に判断されたノイズ変動幅を得ることができるようになる。 According to the above configuration, in the noise fluctuation range correction step, when the slope of the maximum regression line is larger than the minimum regression line, the predetermined size of the pixel block is reduced to a reduced size pixel block. Based on the noise fluctuation range specifying step, the maximum regression line and the minimum regression line are recalculated. Therefore, compared with the initially calculated regression line, the recalculated regression line is calculated based on a larger number of pixel blocks. Therefore, the noise fluctuation in which the noise amount of each divided density range is appropriately determined You can get the width.
また、当初のサイズの画素ブロックでは、画素ブロック内に輪郭部を示す画素と背景部を示す画素がともに含まれている場合に、絵柄を示している両画素の濃度差がノイズとして算出されることがあるが、画素ブロックのサイズが縮小されることにより、輪郭部及び背景部のそれぞれの画素のみを含む画素ブロックに区分することが可能となるため、絵柄を示している画素の濃度差がノイズとして算出されることを回避できるようになる。 In addition, in the pixel block of the initial size, when both the pixel indicating the outline portion and the pixel indicating the background portion are included in the pixel block, the density difference between the two pixels indicating the pattern is calculated as noise. However, by reducing the size of the pixel block, it is possible to divide into pixel blocks that include only the pixels in the contour and background portions. Calculation as noise can be avoided.
同第六の特徴構成は、同請求項6に記載した通り、上述の第五特徴構成に加えて、前記濃度ばらつきが、各画素ブロックの平均濃度値を閾値として、当該閾値より高濃度の画素の平均濃度値である高濃度側平均濃度値と、当該閾値より低濃度の画素の平均濃度値である低濃度側平均濃度値との差分演算により算出される値である点にある。 In the sixth feature configuration, as described in claim 6, in addition to the fifth feature configuration described above, the density variation is a pixel whose density is higher than the threshold value, with an average density value of each pixel block as a threshold value. This is a value calculated by calculating the difference between the high density side average density value which is the average density value of the pixel and the low density side average density value which is the average density value of the pixels having a density lower than the threshold value.
上述の構成によれば、算出される各画素ブロックの濃度ばらつきは、単に各画素ブロック内の最高濃度値と最小濃度値の差分ではないため、各画素ブロックに僅かしか存在しない高い濃度値を示す画素、あるいは低い濃度値を示す画素の影響が削減され、当該画素ブロック内の濃度のばらつき具合を適切に算出できるようになる。 According to the above-described configuration, the calculated density variation of each pixel block is not simply the difference between the maximum density value and the minimum density value in each pixel block, and thus shows a high density value that exists only slightly in each pixel block. The influence of a pixel or a pixel showing a low density value is reduced, and the density variation degree in the pixel block can be calculated appropriately.
同第七の特徴構成は、同請求項7に記載した通り、上述の第一から第六の何れかの特徴構成に加えて、前記ノイズ変動幅補正ステップで得られた各回帰直線に基づいて、任意の注目画素に対するノイズ変動幅を求め、当該ノイズ変動幅からノイズ抑制強度を算出するノイズ抑制強度算出ステップと、当該注目画素と周辺画素の濃度差分値と、前記ノイズ抑制強度算出ステップで得られたノイズ抑制強度に基づいて、濃度成分画像データに対応したサイズの加重平均フィルタのフィルタ係数を動的に算出する濃度対応フィルタ係数生成ステップと、前記濃度対応フィルタ係数生成ステップで得られた各注目画素に対応するフィルタ係数に基づいて、前記濃度成分画像データを加重平均フィルタ処理する濃度対応ノイズ抑制処理ステップを、さらに含む点にある。 The seventh feature configuration is based on each regression line obtained in the noise fluctuation range correction step in addition to any one of the first to sixth feature configurations described above. Obtaining a noise fluctuation range for an arbitrary pixel of interest, calculating a noise suppression intensity from the noise fluctuation range, a density difference value between the target pixel and surrounding pixels, and the noise suppression intensity calculation step. A density-corresponding filter coefficient generation step for dynamically calculating a filter coefficient of a weighted average filter having a size corresponding to the density component image data based on the obtained noise suppression strength, and the density-corresponding filter coefficient generation step A density-corresponding noise suppression processing step for performing weighted average filtering on the density component image data based on a filter coefficient corresponding to the target pixel is further performed. In that it includes certain.
上述の構成によれば、ノイズ抑制強度算出ステップでは、ノイズ変動幅補正ステップで得られた、平坦画像領域から算出されたノイズの変動幅に基づいて、任意の注目画素に対するノイズの変動幅が算出され、当該ノイズ変動幅からノイズ抑制強度が算出されるため、注目画素とその周辺画素の濃度差が大きな輪郭画像領域や絵柄が細かい画像領域等において、画像の内容を適切に表現する上で必要となる画素が、ノイズとして認識されないよう制限されたノイズの抑制強度を算出できるようになる。 According to the above configuration, in the noise suppression intensity calculation step, the noise fluctuation range for any target pixel is calculated based on the noise fluctuation range calculated from the flat image area obtained in the noise fluctuation range correction step. Since the noise suppression strength is calculated from the noise fluctuation range, it is necessary to properly express the image contents in the contour image area where the density difference between the target pixel and its surrounding pixels is large, or in the image area where the pattern is fine It becomes possible to calculate the noise suppression strength that is restricted so that the pixel is not recognized as noise.
また、濃度対応ノイズ抑制処理ステップでは、ノイズ抑制強度算出ステップ及び濃度対応フィルタ係数生成ステップを介して得られた加重平均フィルタを利用して、加重平均フィルタ処理を実行するため、ノイズの変動幅を超えた加重平均フィルタ処理を実行することにより、元の画像に含まれていた絵柄や輪郭までノイズとして抑制して消してしまう不具合を軽減できるようになる。 In addition, in the density-corresponding noise suppression processing step, the weighted average filter processing is executed using the weighted average filter obtained through the noise suppression strength calculation step and the density-corresponding filter coefficient generation step. By executing the weighted average filtering process that has been exceeded, it is possible to reduce the problem of suppressing and erasing the pattern and outline included in the original image as noise.
同第八の特徴構成は、同請求項8に記載した通り、上述の第七特徴構成に加えて、当該注目画素と周辺画素の濃度差分値と、前記ノイズ抑制強度算出ステップで得られたノイズ抑制強度に基づいて、色差成分画像データに対応したサイズの加重平均フィルタのフィルタ係数を動的に算出する色差対応フィルタ係数生成ステップと、前記色差対応フィルタ係数生成ステップで得られた各注目画素に対応するフィルタ係数に基づいて、色差成分画像データを加重平均フィルタ処理する色差対応ノイズ抑制処理ステップを、さらに含む点にある。 In the eighth feature configuration, as described in claim 8, in addition to the seventh feature configuration described above, the density difference value between the target pixel and the surrounding pixels and the noise obtained in the noise suppression intensity calculation step Based on the suppression strength, a color difference corresponding filter coefficient generation step for dynamically calculating a filter coefficient of a weighted average filter of a size corresponding to the color difference component image data, and each pixel of interest obtained in the color difference corresponding filter coefficient generation step The method further includes a color difference corresponding noise suppression processing step of performing weighted average filtering on the color difference component image data based on the corresponding filter coefficient.
本願発明者は、写真画像データの輝度成分のノイズと色差成分のノイズの増減関係が近く、また、人間の目が細かな輝度の違いには敏感であるのに対して、色相と彩度の細かな違いには比較的気付かないという特性を知見している。 The inventor of the present application is close to the increase / decrease relationship between the noise of the luminance component of the photographic image data and the noise of the color difference component, and the human eye is sensitive to fine luminance differences, whereas the hue and saturation He knows that he is relatively unaware of small differences.
上述の構成によれば、写真画像データが色の変化が細かい絵柄である場合であっても、絵柄の細かい濃度値の変化に応じたノイズ抑制強度で加重平均フィルタ処理が行われる。したがって、輝度の変化より色相と彩度の変化に鈍感である人間の目の特性に基づいて、色差成分を固定的なノイズ抑制強度で加重平均フィルタ処理した場合に見られる、色変化が小さくなり、周囲と同化してしまう平滑化画像が生成されるという不具合を回避できるようになる。 According to the above-described configuration, even when the photographic image data is a picture with a fine color change, the weighted average filter process is performed with the noise suppression strength according to the fine density value change of the picture. Therefore, based on the characteristics of the human eye that are less sensitive to changes in hue and saturation than changes in luminance, the color change seen when weighted average filtering is performed on the color difference component with a fixed noise suppression strength. This makes it possible to avoid the problem that a smoothed image that is assimilated with the surroundings is generated.
同第九の特徴構成は、本発明による写真画像処理プログラムの特徴構成であり、同請求項9に記載した通り、写真画像データに含まれる粒状のノイズの変動幅に基づいてノイズ抑制処理を行う写真画像処理プログラムであって、前記写真画像データから濃度成分画像データを抽出する濃度成分抽出ステップと、前記濃度成分抽出ステップで抽出された前記濃度成分画像データを所定サイズの画素ブロックに分割して、画素ブロック毎に平均濃度値、最大濃度値、最小濃度値、濃度ばらつきを含むブロック特性値を算出するブロック特性値算出ステップと、濃度範囲を所定間隔で複数の区間に区分し、前記平均濃度値に基づいて各画素ブロックを対応する区分に割り付ける画素ブロック割付ステップと、各区分に割り付けられた画素ブロックから前記濃度ばらつきが最小となる画素ブロックを代表画素ブロックとして抽出する画素ブロック抽出ステップと、を備え、前記画素ブロック抽出ステップで抽出された複数の代表画素ブロックの各平均濃度値を説明変数とし、各最大濃度値を従属変数とする最大側回帰直線と各最小濃度値を従属変数とする最小側回帰直線を算出し、前記最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定するノイズ変動幅特定ステップと、前記ノイズ変動幅特定ステップで算出された前記最小側回帰直線に基づいて、前記最大側回帰直線を補正し、当該補正後の前記最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定するノイズ変動幅補正ステップと、をコンピュータに実行させる点にある。 The ninth feature configuration is a feature configuration of a photographic image processing program according to the present invention, and performs noise suppression processing based on the fluctuation range of granular noise included in photographic image data as described in claim 9. A photographic image processing program comprising: a density component extraction step for extracting density component image data from the photographic image data; and the density component image data extracted in the density component extraction step is divided into pixel blocks of a predetermined size. A block characteristic value calculating step for calculating a block characteristic value including an average density value, a maximum density value, a minimum density value, and density variation for each pixel block; and dividing the density range into a plurality of sections at predetermined intervals; A pixel block allocation step for allocating each pixel block to the corresponding segment based on the value, and whether the pixel block is allocated to each segment A pixel block extraction step for extracting the pixel block having the smallest density variation as a representative pixel block, and using each average density value of the plurality of representative pixel blocks extracted in the pixel block extraction step as an explanatory variable, A maximum regression line having a maximum concentration value as a dependent variable and a minimum regression line having each minimum concentration value as a dependent variable are calculated, and a range defined by the maximum regression line and the minimum regression line is defined as the granularity. A noise fluctuation range specifying step that is specified as a noise fluctuation range, and the maximum regression line is corrected based on the minimum regression line calculated in the noise fluctuation range specification step, and the corrected maximum side regression A noise fluctuation range correction step for specifying a range defined by a straight line and the minimum regression line as the granular noise fluctuation range; There is a point to be executed.
同第十の特徴構成は、同請求項10に記載した通り、上述の第九特徴構成に加えて、前記ノイズ変動幅補正ステップで得られた各回帰直線に基づいて、任意の注目画素に対するノイズ変動幅を求め、当該ノイズ変動幅からノイズ抑制強度を算出するノイズ抑制強度算出ステップと、当該注目画素と周辺画素の濃度差分値と、前記ノイズ抑制強度算出ステップで得られたノイズ抑制強度に基づいて、濃度成分画像データに対応したサイズの加重平均フィルタのフィルタ係数を動的に算出する濃度対応フィルタ係数生成ステップと、前記濃度対応フィルタ係数生成ステップで得られた各注目画素に対応するフィルタ係数に基づいて、前記濃度成分画像データを加重平均フィルタ処理する濃度対応ノイズ抑制処理ステップを、さらに含む点にある。 In the tenth feature configuration, as described in claim 10, in addition to the ninth feature configuration described above, the noise for any target pixel is based on each regression line obtained in the noise fluctuation range correction step. Based on the noise suppression strength calculation step of obtaining the fluctuation range and calculating the noise suppression strength from the noise fluctuation range, the density difference value between the target pixel and the surrounding pixels, and the noise suppression strength obtained in the noise suppression strength calculation step A density-corresponding filter coefficient generation step for dynamically calculating a filter coefficient of a weighted average filter having a size corresponding to the density component image data, and a filter coefficient corresponding to each pixel of interest obtained in the density-corresponding filter coefficient generation step The image processing apparatus further includes a density-corresponding noise suppression processing step for performing weighted average filtering on the density component image data based on the above.
同第十一の特徴構成は、同請求項11に記載した通り、上述の第十特徴構成に加えて、当該注目画素と周辺画素の濃度差分値と、前記ノイズ抑制強度算出ステップで得られたノイズ抑制強度に基づいて、色差成分画像データに対応したサイズの加重平均フィルタのフィルタ係数を動的に算出する色差対応フィルタ係数生成ステップと、前記色差対応フィルタ係数生成ステップで得られた各注目画素に対応するフィルタ係数に基づいて、色差成分画像データを加重平均フィルタ処理する色差対応ノイズ抑制処理ステップを、さらに含む点にある。 The eleventh characteristic configuration is obtained in the step of calculating the noise suppression intensity and the density difference value between the target pixel and the surrounding pixels, in addition to the tenth characteristic configuration described above. Based on the noise suppression strength, a color difference corresponding filter coefficient generation step for dynamically calculating a filter coefficient of a weighted average filter having a size corresponding to the color difference component image data, and each pixel of interest obtained in the color difference corresponding filter coefficient generation step The method further includes a color difference-corresponding noise suppression processing step of performing weighted average filtering on the color difference component image data based on the filter coefficient corresponding to.
同第十二の特徴構成は、本発明による写真画像処理装置の特徴構成であり、同請求項12に記載した通り、上述の第九から第十一の何れかの特徴構成を備えた写真画像処理プログラムがインストールされた写真画像処理装置であって、当該写真画像処理プログラムを実行することにより、写真画像データに含まれる粒状のノイズの変動幅に基づいてノイズ抑制処理を行う写真画像処理装置する点にある。 The twelfth characteristic configuration is the characteristic configuration of the photographic image processing apparatus according to the present invention. As described in claim 12, the photographic image having any one of the ninth to eleventh characteristic configurations described above. A photographic image processing apparatus in which a processing program is installed, wherein the photographic image processing apparatus performs noise suppression processing based on a fluctuation range of granular noise included in photographic image data by executing the photographic image processing program In the point.
以上説明した通り、本発明によれば、写真画像データから適切なノイズの変動幅を特定し、効果的にノイズを抑制できる写真画像処理方法、写真画像処理プログラム、及び写真画像処理装置を提供することができるようになった。 As described above, according to the present invention, there is provided a photographic image processing method, a photographic image processing program, and a photographic image processing apparatus that can specify an appropriate noise fluctuation range from photographic image data and can effectively suppress noise. I was able to do it.
以下、本発明による写真画像処理方法、写真画像処理プログラム、及び写真画像処理装置の実施の形態について、第一の実施形態として説明する。 Embodiments of a photographic image processing method, a photographic image processing program, and a photographic image processing apparatus according to the present invention will be described below as a first embodiment.
図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.
粒状ノイズ抑制処理部51は、写真フィルムFから本スキャンモードで読み込まれた画像データに含まれる粒状ノイズを抑制するフィルム画像用の粒状ノイズ抑制処理部51と、本発明による画像処理装置として機能し、メディアドライバ32から読み込まれた高解像度の画像データに含まれる粒状ノイズを抑制するデジタルカメラ撮影画像用の粒状ノイズ抑制処理部51を備えている。 The granular noise suppression processing unit 51 functions as a granular noise suppression processing unit 51 for film images that suppresses granular noise included in image data read from the photographic film F in the main scan mode, and an image processing apparatus according to the present invention. In addition, a granular noise suppression processing unit 51 for a digital camera photographed image that suppresses granular noise included in high-resolution image data read from the media driver 32 is provided.
以下、メディアドライバ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, sharpening processing, and color correction are executed for 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. .
モニタ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 sharpening process are performed on the high-resolution photographic image data stored in the memory 41. Image processing such as color correction processing and enlargement / reduction processing is executed in order, and the image data after the image processing is converted and generated into print data by the print data generation unit 44 and output to the photographic printer 2.
高解像度の写真画像データに対する歪補正、鮮鋭化処理、カラー補正処の夫々は、サムネイル画像に対して設定された補正処理条件、つまりメモリ41に格納された補正処理条件に基づいて自動的に補正処理が実行される。 Distortion correction, sharpening processing, and color correction processing for high-resolution photographic image data are automatically corrected based on correction processing conditions set for thumbnail images, that is, correction processing conditions stored in the memory 41. Processing is executed.
以下、本発明によるデジタルカメラ撮影画像用の粒状ノイズ抑制処理部51について詳述する。 Hereinafter, the granular noise suppression processing unit 51 for a digital camera photographed image according to the present invention will be described in detail.
図4に示すように、粒状ノイズ抑制処理部51は、写真画像データを構成する濃度成分画像データから複数の平坦画像領域を探索し、各平坦画像領域の平均濃度値を説明変数とし、各最大濃度値を従属変数とする最大側回帰直線と各最小濃度値を従属変数とする最小側回帰直線を算出し、最大側回帰直線と最小側回帰直線で区画される範囲を写真画像データに含まれる粒状のノイズの変動幅として特定するノイズ変動幅特定部70と、ノイズ変動幅特定部70で算出された最小側回帰直線に基づいて、最大側回帰直線を補正し、当該補正後の最大側回帰直線と最小側回帰直線で区画される範囲を粒状のノイズの変動幅として特定するノイズ変動幅補正部77と、ノイズ変動幅補正部77で得られた各回帰直線に基づいて、任意の注目画素に対するノイズ変動幅を求め、当該ノイズ変動幅からノイズ抑制強度を算出するノイズ抑制強度算出部71と、当該注目画素と周辺画素の濃度差分値と、ノイズ抑制強度算出部71で得られたノイズ抑制強度に基づいて、濃度成分画像データに対応したサイズの加重平均フィルタのフィルタ係数を動的に算出する濃度対応フィルタ係数生成部72と、濃度対応フィルタ係数生成部72で得られた各注目画素に対応するフィルタ係数に基づいて、濃度成分画像データを加重平均フィルタ処理する濃度対応ノイズ抑制処理部73と、を備えている。 As shown in FIG. 4, the granular noise suppression processing unit 51 searches a plurality of flat image areas from the density component image data constituting the photographic image data, uses the average density value of each flat image area as an explanatory variable, and sets each maximum The maximum regression line with the density value as the dependent variable and the minimum regression line with each minimum density value as the dependent variable are calculated, and the range divided by the maximum regression line and the minimum regression line is included in the photographic image data Based on the noise fluctuation range specifying unit 70 specified as the fluctuation range of the granular noise and the minimum side regression line calculated by the noise fluctuation range specifying unit 70, the maximum side regression line is corrected, and the corrected maximum side regression is performed. A noise fluctuation range correction unit 77 that specifies a range divided by a straight line and a minimum-side regression line as a fluctuation range of granular noise, and an arbitrary target pixel based on each regression line obtained by the noise fluctuation range correction unit 77 Vs. A noise suppression intensity calculation unit 71 that calculates a noise fluctuation range and calculates a noise suppression intensity from the noise fluctuation range, a density difference value between the target pixel and surrounding pixels, and a noise suppression obtained by the noise suppression intensity calculation unit 71 Based on the intensity, a density-corresponding filter coefficient generation unit 72 that dynamically calculates a filter coefficient of a weighted average filter having a size corresponding to the density component image data, and each target pixel obtained by the density-corresponding filter coefficient generation unit 72 A density-corresponding noise suppression processing unit 73 that performs weighted average filter processing of the density component image data based on the corresponding filter coefficient.
さらに、粒状ノイズ抑制処理部51は、注目画素と周辺画素の濃度差分値と、ノイズ抑制強度算出部71で得られたノイズ抑制強度に基づいて、色差成分画像データに対応したサイズの加重平均フィルタのフィルタ係数を動的に算出する色差対応フィルタ係数生成部75と、色差対応フィルタ係数生成部75で得られた各注目画素に対応するフィルタ係数に基づいて、色差成分画像データを加重平均フィルタ処理する色差対応ノイズ抑制処理部76を備えている。 Further, the granular noise suppression processing unit 51 is a weighted average filter having a size corresponding to the color difference component image data based on the density difference value between the target pixel and the surrounding pixels and the noise suppression strength obtained by the noise suppression strength calculation unit 71. A color difference correspondence filter coefficient generation unit 75 that dynamically calculates the filter coefficient of the color difference, and weighted average filter processing of the color difference component image data based on the filter coefficient corresponding to each target pixel obtained by the color difference correspondence filter coefficient generation unit 75 The color difference corresponding noise suppression processing unit 76 is provided.
さらに、粒状ノイズ抑制処理部51は、後述する濃度対応ノイズ抑制処理部73から得られたノイズ抑制された輝度成分画像データと色差対応ノイズ抑制処理部76から得られたノイズ抑制された色差成分画像データから得られる各画素のYCbCr成分の夫々をRGB成分に変換するRGB変換処理部74を備えている。 Further, the granular noise suppression processing unit 51 includes noise-suppressed luminance component image data obtained from a density-corresponding noise suppression processing unit 73 described later and a noise-suppressed color difference component image obtained from the color-difference noise suppression processing unit 76. An RGB conversion processing unit 74 that converts each YCbCr component of each pixel obtained from the data into an RGB component is provided.
ノイズ変動幅特定部70は、写真画像データから濃度成分画像データを抽出する濃度成分抽出部701と、濃度成分抽出部701で抽出された濃度成分画像データを所定サイズの画素ブロックに分割して、画素ブロック毎に平均濃度値、最大濃度値、最小濃度値、濃度ばらつきを含むブロック特性値を算出するブロック特性値算出部702と、濃度範囲を示すX軸とブロック特性値を示すY軸からなる二次元座標系において、濃度範囲を所定間隔で複数の区間に区分し、平均濃度値に基づいて各画素ブロックを対応する区分に割り付ける画素ブロック割付部703と、各区分に割り付けられた画素ブロックから濃度ばらつきが最小となる画素ブロックを代表画素ブロックとして抽出する画素ブロック抽出部704と、画素ブロック抽出部704で抽出された複数の代表画素ブロックの各平均濃度値を説明変数とし、各最大濃度値を従属変数とする最大側回帰直線と各最小濃度値を従属変数とする最小側回帰直線を算出する回帰直線算出部705を備えている。 The noise fluctuation width specifying unit 70 divides the density component image data extracted by the density component extraction unit 701 and the density component image data extracted by the density component extraction unit 701 into pixel blocks of a predetermined size, A block characteristic value calculation unit 702 that calculates a block characteristic value including an average density value, a maximum density value, a minimum density value, and density variation for each pixel block, and an X axis indicating a density range and a Y axis indicating a block characteristic value. In a two-dimensional coordinate system, a density range is divided into a plurality of sections at predetermined intervals, and a pixel block assigning unit 703 that assigns each pixel block to a corresponding section based on an average density value, and a pixel block assigned to each section A pixel block extraction unit 704 that extracts a pixel block having a minimum density variation as a representative pixel block; and a pixel block extraction unit 70 Regression to calculate the maximum regression line using each average density value of multiple representative pixel blocks extracted in step 1 as explanatory variables and each maximum density value as a dependent variable and minimum regression line using each minimum density value as a dependent variable A straight line calculation unit 705 is provided.
詳述すると、濃度成分抽出部701は、以下の変換式に基づいて、メモリ41から読み出した高解像度の原画像である写真画像データ(例えば、800万画素であれば、横3264画素×縦2448画素程度である)を構成する各画素のR(赤)、G(緑)、B(青)の夫々の色成分(以下、「RGB」と記す。)を、輝度色差成分に変換してメモリ41に格納する。
Y = 0.33333R+0.33334G+0.33333B
Cb = −0.16874R−0.33126G+0.50000B
Cr = 0.50000R−0.41869G−0.08131B
More specifically, the density component extraction unit 701, based on the following conversion formula, reads photographic image data that is a high-resolution original image read from the memory 41 (for example, if it is 8 million pixels, 3264 pixels wide × 2448 vertical). Each of R (red), G (green), and B (blue) color components (hereinafter referred to as “RGB”) of each pixel that constitutes a pixel is converted into a luminance color difference component and stored in memory. 41.
Y = 0.33333R + 0.33334G + 0.33333B
Cb = −0.16874R−0.33126G + 0.50000B
Cr = 0.50000R-0.41869G-0.0811B
ブロック特性値算出部702は、図5(a)に示すように、濃度成分抽出部701で抽出された輝度成分画像データを濃度成分画像データとして、所定サイズの画素ブロックに分割し、画素ブロック毎に平均濃度値、最大濃度値、最小濃度値を算出する。続いて、図5(b)に示すように、平均濃度値を閾値として、閾値より高濃度の画素Hの平均濃度値である高濃度側平均濃度値と、当該閾値より低濃度の画素Lの平均濃度値である低濃度側平均濃度値を算出し、さらに、画素ブロックの濃度ばらつきを示すものとして、高濃度側平均濃度値と低濃度側平均濃度値との差分を算出する。 As shown in FIG. 5A, the block characteristic value calculation unit 702 divides the luminance component image data extracted by the density component extraction unit 701 into pixel blocks having a predetermined size as density component image data. The average density value, maximum density value, and minimum density value are calculated. Subsequently, as shown in FIG. 5B, using the average density value as a threshold value, the high density side average density value, which is the average density value of the pixels H having a higher density than the threshold value, and the pixel L having a lower density than the threshold value. A low density side average density value, which is an average density value, is calculated, and further, a difference between the high density side average density value and the low density side average density value is calculated as indicating density variation of the pixel block.
このように、ブロック特性値算出部702は、所定サイズの画素ブロック毎に、平均濃度値、最大濃度値、最小濃度値、濃度ばらつきを含むブロック特性値を算出し、処理対象画像データの一行目の左端の画素ブロックから行方向に配列された各画素ブロックを、順次注目画素ブロックとしてブロック特性値を算出する処理を繰り返し、右端の画素ブロックまで処理が終了すると二行目の左端の画素ブロックから行方向に同様の処理を行ない、最終行の右端の画素ブロックまで処理を繰り返す。 As described above, the block characteristic value calculation unit 702 calculates the block characteristic value including the average density value, the maximum density value, the minimum density value, and the density variation for each pixel block of a predetermined size, and the first row of the processing target image data. Each pixel block arranged in the row direction from the leftmost pixel block is repeatedly processed to calculate the block characteristic value as a pixel block of interest, and when the processing is completed up to the rightmost pixel block, the processing is completed from the leftmost pixel block of the second row. Similar processing is performed in the row direction, and the processing is repeated up to the rightmost pixel block in the last row.
画素ブロック割付部703は、濃度範囲を示すX軸とブロック特性値を示すY軸からなる二次元座標系において、濃度範囲を所定間隔で複数の区間に区分し、ブロック特性値算出部702で算出した平均濃度値に基づいて各画素ブロックを対応する区分に割り付ける。例えば、図5(c)は、画素ブロック割付部703により256階調の濃度範囲を16個の区分に区分し、X軸が当該区分した濃度範囲を示し、Y軸が濃度ばらつきを示すよう、各画素ブロックを割り付けた結果を示す。 The pixel block allocating unit 703 divides the density range into a plurality of sections at a predetermined interval in a two-dimensional coordinate system including the X axis indicating the density range and the Y axis indicating the block characteristic value, and is calculated by the block characteristic value calculating unit 702. Each pixel block is assigned to a corresponding category based on the average density value. For example, in FIG. 5C, the density range of 256 gradations is divided into 16 sections by the pixel block allocating unit 703, the X axis shows the divided density range, and the Y axis shows density variation. The result of assigning each pixel block is shown.
画素ブロック抽出部704は、画素ブロック割付部703により各区分に割り付けられた画素ブロックから、濃度ばらつきが最小となる画素ブロックを代表画素ブロックとして抽出する。例えば、図5(c)に示すように、画素ブロックが高濃度の濃度範囲と低濃度の濃度範囲の2つに集中して割り付けられる画像データの場合であっても、高濃度の濃度範囲と低濃度の濃度範囲の夫々において、濃度ばらつきが最小の画素ブロックを抽出する。 The pixel block extraction unit 704 extracts a pixel block having the smallest density variation as a representative pixel block from the pixel blocks allocated to each section by the pixel block allocation unit 703. For example, as shown in FIG. 5C, even in the case of image data in which pixel blocks are concentrated and allocated in two density ranges, a high density range and a low density range, A pixel block having a minimum density variation is extracted in each of the low density ranges.
つまり、所定間隔で区分された濃度範囲の各区分内で、濃度ばらつきが少ない、最も平坦な領域の画素ブロックが、ノイズ抑制処理の代表画素ブロックとして抽出される。 That is, the pixel block of the flattest region with the least density variation within each of the density ranges divided at predetermined intervals is extracted as a representative pixel block for noise suppression processing.
回帰直線算出部705は、例えば、図5(d)に示すように、画素ブロック抽出部704で抽出された複数の代表画素ブロックの各平均濃度値を説明変数(X軸)とし、各最大濃度値及び各最小濃度値の夫々を従属変数(Y軸)とする二本の回帰直線(傾きa、切片b、相関係数r)を最小自乗法等で算出し、回帰直線で区画される範囲を粒状のノイズの変動幅として特定する。 For example, as shown in FIG. 5D, the regression line calculation unit 705 uses each average density value of a plurality of representative pixel blocks extracted by the pixel block extraction unit 704 as an explanatory variable (X axis), and sets each maximum density. The two regression lines (slope a, intercept b, correlation coefficient r) with each value and each minimum concentration value as dependent variables (Y-axis) are calculated by the method of least squares, etc. Is specified as the fluctuation range of the granular noise.
しかし、本願発明者は、例えば、絵柄が複雑な画像、アンダーコントラストが少ない画像、十分にある濃度範囲の画素ブロックが収集できない画像等に対して上述の二本の回帰直線を算出した場合は、図6(a)に示すように、ノイズの変動幅が明部になるに連れて広くなる、或いは、図6(b)に示すように、最大側回帰直線のY軸切片が最小側回帰直線のY軸切片よりも小さくなることがあることを知見している。 However, the inventor of the present application, for example, when calculating the above two regression lines for an image with a complicated pattern, an image with low under-contrast, an image in which a pixel block having a sufficient density range cannot be collected, etc. As shown in FIG. 6 (a), the fluctuation range of the noise becomes wider as the bright part becomes, or as shown in FIG. 6 (b), the Y-axis intercept of the maximum regression line is the minimum regression line. Has been found to be smaller than the Y-axis intercept.
即ち、一般的に最も注目して測定される暗電流及びゲインに関するノイズが多く認識され、目立ちにくい明部のノイズは、誤って明部の絵柄の画素がノイズとして認識されないように、適度に抑えて認識されるのが理想的であるが、理想的とは言い難いノイズ変動幅が得られることがあることを知見している。そこで、ノイズ変動幅補正部77は、以下のように回帰直線の傾き及びY軸切片の補正を行う。 In other words, a lot of noise related to dark current and gain, which is generally measured with the most attention, is recognized, and the bright part noise that is not noticeable is moderately suppressed so that pixels in the bright part are not mistakenly recognized as noise. It has been found that noise fluctuation ranges that are not ideal but can be obtained are ideal. Therefore, the noise fluctuation range correction unit 77 corrects the slope of the regression line and the Y-axis intercept as follows.
例えば、図6(a)に示すように、最大側回帰直線の傾きが最小側回帰直線の傾きよりも大きい場合は、最大側回帰直線の傾きaを最小側回帰直線の傾きと一致するように第一の補正を行う。即ち、この場合、明部のノイズ変動幅が狭められるようになり、ノイズが目立ちにくい明部において、画像の絵柄がノイズとして認識されることを抑制できるようになる。 For example, as shown in FIG. 6A, when the slope of the maximum regression line is larger than the slope of the minimum regression line, the slope a of the maximum regression line is matched with the slope of the minimum regression line. Perform the first correction. That is, in this case, the noise fluctuation range of the bright part is narrowed, and it is possible to suppress the image pattern from being recognized as noise in the bright part where the noise is not noticeable.
しかし、例えば、図6(b)に示すように、最大側回帰直線のY軸切片が最小側回帰直線のY軸切片よりも小さい場合は、第一の補正を行った場合であっても、第一の補正後の最大側回帰直線が最小側回帰直線よりも二次元座標系における下側となって、ノイズ変動幅がマイナス値を示すような不都合が生じる場合がある。そこで、ノイズ変動幅補正部77は、第一の補正後の最大側回帰直線のY軸切片が最小側回帰直線のY軸切片よりも小さい場合は、第一の補正前後の最大側回帰直線のY軸切片の比率に基づいて、第一の補正後の最大側回帰直線のY軸切片を補正する第二の補正を行う。 However, for example, as shown in FIG. 6B, when the Y-axis intercept of the maximum regression line is smaller than the Y-axis intercept of the minimum regression line, even when the first correction is performed, The maximum correction regression line after the first correction is lower in the two-dimensional coordinate system than the minimum regression line, and there may be a problem that the noise fluctuation range shows a negative value. Therefore, when the Y-axis intercept of the maximum-side regression line after the first correction is smaller than the Y-axis intercept of the minimum-side regression line, the noise fluctuation range correction unit 77 calculates the maximum-side regression line before and after the first correction. Based on the ratio of the Y-axis intercept, the second correction for correcting the Y-axis intercept of the maximum-side regression line after the first correction is performed.
詳述すると、まず、以下の式にしたがって、第一の補正後の最大側回帰直線に基づいて、第一の補正後のY軸切片maxB´を算出する。
aveY = maxA´ × aveX + maxB´
⇒maxB´ =aveY − maxA´ × aveX
More specifically, first, the first corrected Y-axis intercept maxB ′ is calculated based on the first corrected maximum regression line according to the following equation.
aveY = maxA ′ × aveX + maxB ′
⇒ maxB '= aveY-maxA' x aveX
ここで、aveX,aveYは、それぞれ、ノイズ変動幅特定部70で最大側回帰直線を算出する際の、説明変数である複数の代表画素ブロックにおける各平均濃度値、及び、従属変数である複数の代表画素ブロックにおける各最大濃度値を示す。また、maxA´は、第一の補正後の最大側回帰直線の傾きを示す。 Here, aveX and aveY are the average density values in the plurality of representative pixel blocks, which are explanatory variables, and the plurality of dependent variables, respectively, when the maximum fluctuation line is calculated by the noise fluctuation range specifying unit 70. Each maximum density value in the representative pixel block is shown. Further, maxA ′ represents the slope of the maximum regression line after the first correction.
さらに、本願発明者は、上述の二本の回帰直線を算出した場合に、算出対象の画像の内容に関係なく、大抵の画像において相関係数rは0.99以内に収まることを知見している。また、本願発明者は、例えば、絵柄が複雑な画像、アンダーコントラストが少ない画像、十分にある濃度範囲の画素ブロックが収集できない画像等に対して上述の二本の回帰直線を算出した場合は、十分な相関係数rが得られず、算出された二本の回帰直線が示す平坦領域の画素ブロックの平均濃度値と最大濃度値及び最小濃度値の関係は、線形性の関係が十分に高いとはいえないことを知見している。そこで、回帰直線の相関係数の値に応じて以下の補正を行っても構わない。 Further, the inventor of the present application has found that when the above two regression lines are calculated, the correlation coefficient r is within 0.99 in most images regardless of the content of the image to be calculated. Yes. In addition, the inventor of the present application, for example, when calculating the above two regression lines for an image with a complicated pattern, an image with low under-contrast, an image in which a pixel block having a sufficient density range cannot be collected, etc. A sufficient correlation coefficient r cannot be obtained, and the relationship between the average density value and the maximum density value and the minimum density value of the pixel block in the flat area indicated by the two calculated regression lines is sufficiently high in linearity. I know it is not. Therefore, the following correction may be performed according to the value of the correlation coefficient of the regression line.
相関係数rが第一の閾値(例えば、0.97)以上の場合は、十分な相関係数rが得られているとして当該補正は行わない。相関係数が第二の閾値(例えば、0.95)以上であり、第一の閾値(例えば、0.97)未満の場合は、第一の補正後のY軸切片maxB´を0に近づけるように補正する。尚、相関係数rが第二の閾値未満の場合は、算出された回帰直線は信頼できないものとして、後述する当該回帰直線に基づいて特定されたノイズ変動幅を利用したノイズ抑制処理を行わない。 When the correlation coefficient r is greater than or equal to a first threshold (for example, 0.97), the correction is not performed because a sufficient correlation coefficient r is obtained. When the correlation coefficient is greater than or equal to a second threshold (eg, 0.95) and less than the first threshold (eg, 0.97), the first corrected Y-axis intercept maxB ′ is brought close to zero. Correct as follows. When the correlation coefficient r is less than the second threshold, the calculated regression line is regarded as unreliable, and noise suppression processing using the noise fluctuation range specified based on the regression line described later is not performed. .
詳述すると、当該切片bの0への近づき度合は、相関係数rが第二の閾値の場合に第一の補正後のY軸切片maxB´が0となり、相関係数rが第一の閾値の場合に、第一の補正後のY軸切片maxB´が移動しないように、第一の閾値と第二の閾値の差分値(例えば、0.02)に対する相関係数rの値に応じて決定し、即ち、以下の式で決定する。
補正後maxB´=maxB´×(r−第二の閾値)/(第一の閾値−第二の閾値)
More specifically, the degree of approach of the intercept b to 0 is such that when the correlation coefficient r is the second threshold, the first corrected Y-axis intercept maxB ′ is 0, and the correlation coefficient r is the first According to the value of the correlation coefficient r with respect to the difference value (for example, 0.02) between the first threshold value and the second threshold value so that the Y axis intercept maxB ′ after the first correction does not move in the case of the threshold value. That is, it is determined by the following equation.
After correction maxB ′ = maxB ′ × (r−second threshold) / (first threshold−second threshold)
第一の補正後の最大側回帰直線に基づいて、第一の補正後のY軸切片maxB´が算出されると、元の最大側回帰直線のY軸切片maxBと、第一の補正後のY軸切片maxB´の差が大きく相違する場合を考慮して、Y軸切片maxBと第一の補正後のY軸切片maxB´の比率、即ち、第一の補正前後の最大側回帰直線のY軸切片の比率に応じて第一の補正後のY軸切片maxB´を修正する第二の補正を行う。 When the first corrected Y-axis intercept maxB ′ is calculated based on the first corrected maximum regression line, the Y-axis intercept maxB of the original maximum regression line and the first corrected Considering the case where the difference between the Y-axis intercept maxB ′ is greatly different, the ratio between the Y-axis intercept maxB and the first corrected Y-axis intercept maxB ′, that is, the maximum regression line Y before and after the first correction A second correction for correcting the Y axis intercept maxB ′ after the first correction is performed according to the ratio of the axis intercept.
詳述すると、以下の式に従って、第一の補正前後の最大側回帰直線のY軸切片の比率に応じて融合比率rtoを算出し、当該融合比率rtoを利用して、Y軸切片maxBと第一の補正後のY軸切片maxB´の融合処理を行い、第二の補正によるY軸切片maxB´´を算出する。
rto=MAX(MIN(maxB/maxB´−C1)/C2,1),0)
maxB´´=maxB×rto + maxB´×(1−rto)
More specifically, the fusion ratio rto is calculated according to the ratio of the Y-axis intercept of the maximum regression line before and after the first correction according to the following formula, and the Y-axis intercept maxB and the The fusion processing of the Y axis intercept maxB ′ after the first correction is performed, and the Y axis intercept maxB ″ by the second correction is calculated.
rto = MAX (MIN (maxB / maxB′−C1) / C2,1), 0)
maxB ″ = maxB × rto + maxB ″ × (1−rto)
ここで、C1,C2は、融合比率rtoの調整用変数を示す。本願発明者は、複数の写真画像データに対して検証した結果、例えば、C1を0.15、C2を0.3とした場合に、適切なノイズ変動幅が求められることを知見している。 Here, C1 and C2 indicate variables for adjusting the fusion ratio rto. As a result of verifying a plurality of photographic image data, the inventor of the present application has found that, for example, an appropriate noise fluctuation range is required when C1 is 0.15 and C2 is 0.3.
ノイズ変動幅補正部77は、第二の補正によるY軸切片maxB´´を算出すると、第一の補正後の最大側回帰直線のY軸切片が第二の補正によるY軸切片maxB´´となるように、第一の補正後の最大側回帰直線を平行移動し、第二の補正を終了する。 When the noise fluctuation range correction unit 77 calculates the Y-axis intercept maxB ″ by the second correction, the Y-axis intercept of the maximum regression line after the first correction is the Y-axis intercept maxB ″ by the second correction. Thus, the maximum correction regression line after the first correction is translated, and the second correction ends.
尚、第二の補正によるY軸切片maxB´´が最小側回帰直線のY軸切片よりも小さくなるような場合は、算出された回帰直線は信頼できないものとして、後述する当該回帰直線に基づいて特定されたノイズ変動幅を利用したノイズ抑制処理を行わない。 When the Y-axis intercept maxB '' by the second correction is smaller than the Y-axis intercept of the minimum regression line, the calculated regression line is regarded as unreliable and is based on the regression line described later. Noise suppression processing using the specified noise fluctuation range is not performed.
また、二本の回帰直線は、上述の形態とは別に、図6(c)に示すように、最大側回帰直線の傾きが負の傾きとなり、最小側回帰直線と交差することも想定される。この場合、二本の回帰直線が交差している箇所よりも暗部の濃度範囲においては、上述した理想的なノイズ変動幅と考慮できるため、当該回帰直線を補正せずに、後述する当該回帰直線に基づいて特定されたノイズ変動幅を利用したノイズ抑制処理を行うこととする。一方、回帰直線が交差している箇所よりも明部の濃度範囲においては、後述する当該回帰直線に基づいて特定されたノイズ変動幅を利用したノイズ抑制処理を行わない。 Further, as shown in FIG. 6C, the two regression lines are assumed to have a negative slope and intersect the minimum regression line, as shown in FIG. 6C. . In this case, since the ideal noise fluctuation range described above can be considered in the darker density range than where the two regression lines intersect, the regression line described later is not corrected without correcting the regression line. It is assumed that noise suppression processing using the noise fluctuation range specified based on the above is performed. On the other hand, the noise suppression process using the noise fluctuation range specified based on the regression line described later is not performed in the density range in the brighter part than the location where the regression lines intersect.
このようにして、原画像データを構成する所定間隔で区分された濃度範囲の各区分内で、濃度ばらつきが少ない、最も平坦な領域の画素ブロックから、各画素の濃度に対する粒状ノイズの変動幅が把握されるようになる。 In this way, the variation width of the granular noise with respect to the density of each pixel is determined from the pixel block in the flattest area where the density variation is small within each density range divided at a predetermined interval constituting the original image data. Be grasped.
ノイズ抑制強度算出部71は、ノイズ変動幅補正部77で得られた平坦画像領域から算出された二本の回帰直線(以下、最大側回帰直線を示す式を「上限式」、最小側回帰直線を示す式を「下限式」と記す。)に基づいて、濃度成分画像データの任意の注目画素に対するノイズ変動幅を算出する。即ち、上述の二本の回帰直線のX軸の値は、二本の回帰直線の説明変数である代表画素ブロックの平均濃度値であるが、当該X軸の値を注目画素の濃度値であるとみなして、回帰直線が示す平坦画像領域のノイズの変動幅が、当該注目画素の濃度値に対するノイズの変動幅を示すものとして算出する。 The noise suppression intensity calculation unit 71 includes two regression lines calculated from the flat image region obtained by the noise fluctuation range correction unit 77 (hereinafter, an expression indicating the maximum regression line is referred to as an “upper limit expression”, and a minimum regression line). Is expressed as a “lower limit expression.”), The noise fluctuation range for any target pixel of the density component image data is calculated. That is, the X-axis value of the above-mentioned two regression lines is the average density value of the representative pixel block that is the explanatory variable of the two regression lines, but the X-axis value is the density value of the target pixel. Therefore, the fluctuation range of the noise in the flat image area indicated by the regression line is calculated as indicating the fluctuation range of the noise with respect to the density value of the target pixel.
尚、以下では、特筆しない限り、上限式の傾きをYmaxA、切片をYmaxB、及び、下限式の傾きYminA、切片をYminBと示す。注目画素の座標(x,y)が示す濃度値をdatx,yとすると、注目画素の濃度値に対するノイズの変動幅の上限値MaxYx,yと下限値MinYx,yは、以下の式で示すことができる。
したがって、注目画素の濃度値に対するノイズの変動幅Wx,yは、上限値MaxYx,yと下限値MinYx,yの差分値として、以下の式で示すことができる。
ここで、当該算出したノイズの変動幅Wx,yは、ノイズの大きさを示している為、ノイズ抑制の強度設定指標として利用することができる。 Here, since the calculated noise fluctuation width Wx, y indicates the magnitude of the noise, it can be used as an intensity setting index for noise suppression.
例えば、図7(a)に示すように、所定サイズの背景画像等の平坦画像領域における濃度値の分布と、図7(b)に示すように、図7(a)に示す平坦画像領域と被写体の輪郭部を含む輪郭画像領域とを含む所定サイズの画像領域における濃度値の分布とを、正規化して対比すると、平坦画像領域と輪郭画像領域を含む画像領域では、平坦画像領域及び輪郭画像領域の夫々を正規化した場合の標準偏差σの値よりも、画像領域全般における標準偏差σの方が大きくなることがわかる。即ち、注目する画像領域の絵柄によっては、注目する画像領域に含まれる全画素の濃度値から濃度値のばらつき度合を示す標準偏差σを算出しても信頼性が高いとは言えない。 For example, as shown in FIG. 7A, the distribution of density values in a flat image area such as a background image of a predetermined size, and as shown in FIG. 7B, the flat image area shown in FIG. When the density value distribution in the image region of a predetermined size including the contour image region including the contour portion of the subject is normalized and compared, in the image region including the flat image region and the contour image region, the flat image region and the contour image It can be seen that the standard deviation σ in the entire image area is larger than the value of the standard deviation σ when each of the areas is normalized. That is, depending on the design of the image area of interest, it cannot be said that the reliability is high even if the standard deviation σ indicating the degree of variation of the density value is calculated from the density values of all the pixels included in the image area of interest.
そこで、濃度値のばらつき度合を示す標準偏差σは、最大濃度値と最小濃度値の差に関連があることに着目し、さらに、当該算出したノイズ変動幅Wx,y内の濃度値の分布が正規分布に従うものとみなすことにより、注目する画像領域の絵柄に依存しない標準偏差σ x,yを算出することができる。また、当該標準偏差標準偏差σ x,yは、濃度値のばらつき度合を示しているため、ノイズ抑制する場合のノイズ抑制強度として利用する。 Therefore, it is noted that the standard deviation σ indicating the degree of variation in density value is related to the difference between the maximum density value and the minimum density value, and further, the distribution of density values within the calculated noise fluctuation width Wx, y is By assuming that it follows a normal distribution, it is possible to calculate a standard deviation σ x, y that does not depend on the pattern of the image area of interest. Further, since the standard deviation standard deviation σ x, y indicates the degree of variation of the density value, it is used as a noise suppression strength when noise is suppressed.
具体的には、ノイズ抑制強度算出部71は、ノイズの変動幅Wx,yをσ化係数SigmaCoefで割った値を標準偏差σ x,yとして算出する。尚、当該算出したノイズ抑制強度としての標準偏差σ x,yに基づいて、過度にノイズ抑制することを避けるため、最大許容値Levelと最小許容値1を設け、以下の式で示すように、標準偏差σ x,yを算出する。
σ化係数SigmaCoefは、例えば、ノイズ変動幅の半値の約7割に当たる値が標準偏差σを示すものと仮定した場合は、2.85(=1/(0.5×0.7))となる。また、本願発明者は、当該標準偏差σの値は、10程度の値であり、最大でも16程度に収まることを知見しており、最大許容値は、16程度に設定することが望ましい。ただし、σ化係数SigmaCoef、最大許容値、最小許容値の値は、上述の数値に限るものではなく、適宜設計事項として調整して構わない。 The sigmaization coefficient SigmaCoef is, for example, 2.85 (= 1 / (0.5 × 0.7)) when it is assumed that a value corresponding to about 70% of the half value of the noise fluctuation range indicates the standard deviation σ. Become. Further, the inventor of the present application knows that the value of the standard deviation σ is a value of about 10 and is about 16 at the maximum, and the maximum allowable value is desirably set to about 16. However, the values of the sigmaization coefficient SigmaCoef, the maximum allowable value, and the minimum allowable value are not limited to the above-described numerical values, and may be appropriately adjusted as design matters.
したがって、ノイズ抑制強度算出部71では、ノイズ変動幅補正部77で得られた、平坦画像領域から算出されたノイズの変動幅に基づいて、任意の注目画素(x,y)に対するノイズの変動幅Wx,yが算出され、当該ノイズ変動幅Wx,yからノイズ抑制強度σ x,yが算出されるため、注目画素(x,y)とその周辺画素の濃度差が大きな輪郭画像領域や絵柄が細かい画像領域等において、画像の内容を適切に表現する上で必要となる画素が、ノイズとして認識されないよう制限されたノイズの抑制強度σ x,yを算出できるようになる。 Therefore, in the noise suppression intensity calculation unit 71, the noise fluctuation range for an arbitrary pixel of interest (x, y) based on the noise fluctuation range calculated from the flat image area obtained by the noise fluctuation range correction unit 77. Since Wx, y is calculated and the noise suppression intensity σ x, y is calculated from the noise fluctuation width Wx, y, an outline image region or a pattern having a large density difference between the pixel of interest (x, y) and its surrounding pixels is obtained. In a fine image region or the like, it becomes possible to calculate the noise suppression strength σ x, y that is limited so that pixels necessary for appropriately expressing the contents of the image are not recognized as noise.
濃度対応フィルタ係数生成部72は、後述する濃度対応ノイズ抑制処理部73において、濃度成分画像データを加重平均フィルタ処理する場合に利用する加重平均フィルタのフィルタ係数を動的に算出する。 The density-corresponding filter coefficient generation unit 72 dynamically calculates the filter coefficient of the weighted average filter used when the density-corresponding noise suppression processing unit 73 described later performs weighted average filter processing on the density component image data.
詳述すると、以下の式で示すように、注目画素(x,y)を中心とした所定サイズのフィルタ領域内の各周辺画素(x+i,y+j)へのフィルタ係数Wgti,jを、注目画素の濃度値dat x,yと各周辺画素の濃度値dat x+i,y+jの差分値z i,jと、ノイズ抑制強度算出部71で得られたノイズ抑制強度、即ち、注目画素(x,y)を中心とした注目領域内の周辺画素の濃度値のばらつきを示す標準偏差σ x,yを標準偏差とする正規分布関数に基づいて算出する。
尚、i,jは、注目画素の座標(x,y)を(0,0)とみなした場合の周辺画素の座標を示す。 Note that i, j represents the coordinates of the peripheral pixels when the coordinates (x, y) of the target pixel are regarded as (0,0).
フィルタ係数Wgt i,jは、標準偏差σx,yが大きい場合、即ち、フィルタ領域内における周辺画素の濃度値のばらつきが大きい場合は、注目画素に対して周辺画素の影響度を大きくする必要があるため、フィルタ係数Wgt i,jの値は、大きくなる。 When the standard deviation σx, y is large in the filter coefficient Wgt i, j, that is, when the variation in the density value of the peripheral pixel in the filter region is large, it is necessary to increase the influence of the peripheral pixel on the target pixel. Therefore, the value of the filter coefficient Wgt i, j becomes large.
濃度フィルタ係数生成部72は、処理対象となる濃度成分画像データの一行目の左端の画素から行方向に配列された各画素を、順次注目画素として、所定サイズ(例えば、5×5程度)のフィルタ領域内の各周辺画素へのフィルタ係数の算出を繰り返し、右端の画素まで当該算出処理が終了すると二行目の左端の画素から行方向に同様の処理を行ない、最終行の右端の画素まで処理を繰り返す。 The density filter coefficient generation unit 72 sequentially sets each pixel arranged in the row direction from the leftmost pixel of the first row of density component image data to be processed as a target pixel, and has a predetermined size (for example, about 5 × 5). Repeat the calculation of the filter coefficients for each peripheral pixel in the filter area, and when the calculation processing is completed up to the rightmost pixel, the same processing is performed in the row direction from the leftmost pixel of the second row to the rightmost pixel of the final row. Repeat the process.
したがって、濃度対応フィルタ係数生成部72では、ノイズ抑制強度算出部71で得られたノイズ抑制強度σ x,yを標準偏差とする正規分布関数に基づいてフィルタ係数Wgt i,jが算出されるため、滑らかな特性を持つフィルタ係数Wgt i,jを算出することができる。 Therefore, the density-corresponding filter coefficient generation unit 72 calculates the filter coefficient Wgt i, j based on the normal distribution function having the noise suppression intensity σ x, y obtained by the noise suppression intensity calculation unit 71 as a standard deviation. The filter coefficient Wgt i, j having smooth characteristics can be calculated.
濃度対応ノイズ抑制処理部73は、濃度対応フィルタ係数生成部72で得られた各注目画素に対応するフィルタ係数で構成される加重平均フィルタにより、処理対象となる濃度成分画像データの一行目の左端の画素から行方向に配列された各画素を、順次注目画素として加重平均フィルタ処理を繰り返し、右端の画素まで処理が終了すると二行目の左端の画素から行方向に同様の処理を行ない、最終行の右端の画素まで処理を繰り返す。加重平均フィルタ処理された濃度成分画像データの濃度値、即ち、濃度成分画像データの加重平均画素の濃度値Yave x,yは、以下の式で示すことができる。
ここで、nYは、注目画素と周辺画素の最大距離を示し、例えば、フィルタサイズが5×5の場合には、nY=5÷2≒2となる。 Here, nY represents the maximum distance between the target pixel and the peripheral pixels. For example, when the filter size is 5 × 5, nY = 5 ÷ 2≈2.
したがって、濃度対応ノイズ抑制処理部73では、ノイズ抑制強度算出部71及び濃度対応フィルタ係数生成部72を介して得られた加重平均フィルタを利用して、加重平均フィルタ処理を実行するため、ノイズの変動幅Wx,yを超えた加重平均フィルタ処理を実行することにより、元の画像に含まれていた絵柄や輪郭までノイズとして抑制して消してしまう不具合を軽減できる。 Accordingly, the density-corresponding noise suppression processing unit 73 executes the weighted average filter process using the weighted average filter obtained via the noise suppression strength calculation unit 71 and the density-corresponding filter coefficient generation unit 72. By executing the weighted average filtering process that exceeds the fluctuation range Wx, y, it is possible to reduce the problem that the pattern and contour included in the original image are suppressed and erased as noise.
色差フィルタ係数生成部75は、後述する色差対応ノイズ抑制処理部76において、濃度成分抽出部701で抽出された色差成分画像データを加重平均フィルタ処理する場合に利用する、加重平均フィルタのフィルタ係数を動的に算出する。 The chrominance filter coefficient generation unit 75 uses the filter coefficient of the weighted average filter used when the chrominance-corresponding noise suppression processing unit 76 described later performs weighted average filter processing on the chrominance component image data extracted by the density component extraction unit 701. Calculate dynamically.
詳述すると、色差フィルタ係数生成部75は、濃度対応フィルタ係数生成部72と同様に、数4で示した式に従い、注目画素(x,y)を中心とした所定サイズのフィルタ領域内の各周辺画素(x+i,y+j)へのフィルタ係数Wgti,jを、注目画素の濃度値dat x,yと各周辺画素の濃度値dat x+i,y+jの差分値z i,jと、ノイズ抑制強度算出部71で得られたノイズ抑制強度、即ち、注目画素(x,y)を中心とした注目領域内の周辺画素の濃度値のばらつきを示す標準偏差σ x,yに基づいて算出する。 More specifically, the color difference filter coefficient generation unit 75, like the density-corresponding filter coefficient generation unit 72, follows each expression in the filter region of a predetermined size centered on the pixel of interest (x, y) according to the equation shown in Equation 4. The filter coefficient Wgti, j for the peripheral pixel (x + i, y + j), the difference value z i, j between the density value dat x, y of the target pixel and the density value dat x + i, y + j of each peripheral pixel, and the noise suppression intensity calculation unit This is calculated based on the noise suppression intensity obtained in 71, that is, the standard deviation σ x, y indicating the variation in the density value of the peripheral pixels in the region of interest centered on the pixel of interest (x, y).
色差フィルタ係数生成部75は、処理対象となる色差成分画像データの一行目の左端の画素から行方向に配列された各画素を、順次注目画素として、濃度対応フィルタ係数生成部72とは異なる所定サイズ(例えば、9×9程度)のフィルタ領域内の各周辺画素へのフィルタ係数の算出を繰り返し、右端の画素まで当該算出処理が終了すると二行目の左端の画素から行方向に同様の処理を行ない、最終行の右端の画素まで処理を繰り返す。 The color difference filter coefficient generation unit 75 is a predetermined different from the density correspondence filter coefficient generation unit 72 by sequentially setting each pixel arranged in the row direction from the leftmost pixel of the first row of the color difference component image data to be processed as a target pixel. Repeat the calculation of the filter coefficient for each peripheral pixel in the filter area of size (for example, about 9 × 9), and when the calculation processing is completed up to the rightmost pixel, the same processing in the row direction from the leftmost pixel of the second row And repeat the process up to the rightmost pixel in the last row.
ここで、色差フィルタ係数生成部75は、濃度対応フィルタ係数生成部72とは異なる所定サイズ(例えば、9×9程度)のフィルタ領域内の各周辺画素へのフィルタ係数の算出を行っているが、その理由は、色ノイズは比較的大きな画素サイズで現れるという特性に対応するためである。 Here, the color difference filter coefficient generation unit 75 calculates filter coefficients for each peripheral pixel in a filter area having a predetermined size (for example, about 9 × 9) different from the density correspondence filter coefficient generation unit 72. This is because the color noise corresponds to the characteristic that it appears with a relatively large pixel size.
詳述すると、通常、JPEG方式では、YCrCb変換された画素を8×8のブロック毎にDCT変換し、得られた周波数成分を量子化し、ジグザグスキャンにより配列された量子化データをハフマン符合化するが、各ブロック内の色差成分画像データはDCT変換する前に輝度成分画像データの1/4に間引き処理される。人間の目が細かな輝度の違いには敏感であるのに対して、色相と彩度の細かな違いには比較的気付かないという特性に基づいて、色差成分画像データを削減するためである。 More specifically, in the JPEG method, normally, the YCrCb-converted pixels are DCT-converted for each 8 × 8 block, the obtained frequency components are quantized, and the quantized data arranged by the zigzag scan is Huffman encoded. However, the color difference component image data in each block is thinned out to 1/4 of the luminance component image data before DCT conversion. This is because the color difference component image data is reduced on the basis of the characteristic that the human eye is sensitive to small differences in brightness, but relatively insensitive to differences in hue and saturation.
従って、デジタルカメラで撮影された写真画像に現れるざらつきの原因である粒状のノイズを輝度ノイズと色ノイズに分けると、輝度ノイズが略一画素単位で現れるのに対して、色ノイズは比較的大きな画素サイズで現れ、その傾向がDCT変換時のブロックサイズと相関を持つという特性が見られる。 Therefore, when granular noise, which is the cause of roughness appearing in a photographic image taken with a digital camera, is divided into luminance noise and color noise, luminance noise appears in units of approximately one pixel, whereas color noise is relatively large. There is a characteristic that it appears as a pixel size and the tendency has a correlation with the block size at the time of DCT conversion.
そのため、色ノイズを抑制するためには、フィルタサイズをJPEGによる圧縮のためのブロックサイズより大きなフィルタサイズに設定することが好ましく、本実施形態では、9×9或は11×11程度のフィルタサイズに設定する。 Therefore, in order to suppress color noise, it is preferable to set the filter size to a filter size larger than the block size for compression by JPEG. In this embodiment, the filter size is about 9 × 9 or 11 × 11. Set to.
また、色差フィルタ係数生成部75は、濃度対応フィルタ係数生成部72と同様に、濃度成分の変化に基づいて決定されたノイズ抑制強度を算出しているが、その理由は、人間の視覚の特性上、色相成分の変化よりも敏感である濃度成分の変化に基づいて決定されたノイズ抑制強度に基づいて、後述する色差成分画像データのノイズ抑制処理を行い、加重平均フィルタ処理後に色変化が小さく、周囲と同化した画像が生成されることを回避するためである。 The color difference filter coefficient generation unit 75 calculates the noise suppression strength determined based on the change of the density component, similarly to the density-corresponding filter coefficient generation unit 72, because the human visual characteristics In addition, noise suppression processing of color difference component image data described later is performed based on the noise suppression strength determined based on the density component change that is more sensitive than the hue component change, and the color change is small after the weighted average filter processing. This is to avoid the generation of an image assimilated with the surroundings.
色差対応ノイズ抑制処理部76は、色差フィルタ係数生成部75で得られた各注目画素に対応するフィルタ係数で構成される加重平均フィルタにより、処理対象となる色差成分画像データの一行目の左端の画素から行方向に配列された各画素を、順次注目画素として加重平均フィルタ処理を繰り返し、右端の画素まで処理が終了すると二行目の左端の画素から行方向に同様の処理を行ない、最終行の右端の画素まで処理を繰り返す。加重平均フィルタ処理された色差成分画像データの加重平均画素値Cbave x,y, Crave x,yは、以下の式で示すことができる。
尚、Cbdat x,y, Crdatave x,yは、加重平均フィルタ処理される前の色差成分画像データの画素値を示し、nCは、注目画素と周辺画素の最大距離を示す。例えば、フィルタサイズが9×9の場合には、nC=9÷2≒4となる。 Cbdat x, y and Crdatave x, y indicate pixel values of the color difference component image data before the weighted average filter process, and nC indicates the maximum distance between the target pixel and the peripheral pixels. For example, when the filter size is 9 × 9, nC = 9 ÷ 2≈4.
RGB変換処理部74は、濃度対応ノイズ抑制処理部73で得られた加重平均フィルタ処理後の濃度成分画像データと、色差対応ノイズ抑制処理部76で得られた加重平均フィルタ処理後の色差成分画像データで構成される、ノイズ抑制後の新たな輝度色差成分を、次式に基づいてRGB色成分に変換して出力する。
R = Y+1.296048Cb−0.229276Cr
G = Y−0.820087Cb−0.943430Cr
B = Y−0.475961Cb+1.172706Cr
The RGB conversion processing unit 74 includes the density component image data after the weighted average filter processing obtained by the density correspondence noise suppression processing unit 73 and the color difference component image after the weighted average filter processing obtained by the color difference correspondence noise suppression processing unit 76. A new luminance / color difference component after noise suppression, which is composed of data, is converted into an RGB color component based on the following equation and output.
R = Y + 1.296048Cb−0.229276Cr
G = Y-0.820087Cb-0.943430Cr
B = Y−0.475961Cb + 1.172706Cr
さらに、図4に示すように、濃度対応ノイズ抑制処理部73は、ノイズ抑制強度算出部71で得られたノイズ抑制強度を仮想分散値とし、濃度対応ノイズ抑制処理部73で得られた各加重平均画素と対応する注目画素との濃度差分値を変数とする正規分布関数に基づいて重み係数を算出し、当該重み係数で各加重平均画素と対応する注目画素とを重み付け加算して補正濃度画像データを算出する補正処理部731を備えていても構わない。 Further, as shown in FIG. 4, the density-corresponding noise suppression processing unit 73 uses the noise suppression strength obtained by the noise suppression strength calculation unit 71 as a virtual variance value, and each weight obtained by the density-corresponding noise suppression processing unit 73. A weighted coefficient is calculated based on a normal distribution function having a density difference value between the average pixel and the corresponding target pixel as a variable, and each weighted average pixel and the corresponding target pixel are weighted and added by the weighting coefficient. A correction processing unit 731 for calculating data may be provided.
詳述すると、濃度対応ノイズ抑制処理部73で得られた加重平均フィルタ処理後の濃度成分画像データと、当該加重平均フィルタ処理前の濃度成分画像データの差分は、除去したノイズ量を示す。この場合、当該ノイズ量がノイズ変動幅補正部77で得られた平坦画像領域から算出されたノイズ変動幅よりも大きい場合は、過度にノイズ抑制処理が行われたと考えられるため、ノイズ抑制処理に制限をかける方が望ましい。 More specifically, the difference between the density component image data after the weighted average filter processing obtained by the density-corresponding noise suppression processing unit 73 and the density component image data before the weighted average filter processing indicates the amount of noise removed. In this case, when the noise amount is larger than the noise fluctuation range calculated from the flat image area obtained by the noise fluctuation width correction unit 77, it is considered that the noise suppression process has been performed excessively. It is better to place restrictions.
そこで、補正処理部731は、以下の式に示すように、濃度対応ノイズ抑制処理部73で得られた加重平均フィルタ処理後の濃度成分画像データの画素である加重平均画素と、当該加重平均画素に対応する加重平均フィルタ処理前の濃度成分画像データの注目画素との濃度差分値を変数tmpとし、ノイズ量はノイズ抑制強度算出部71で算出したノイズ抑制強度が示す標準偏差σ x,yの正規分布に従うと仮定して、正規分布を利用することにより滑らかな特性をもつ重み係数wgtを算出する。
さらに、補正処理部731は、以下の式に示すように、当該算出した重み係数wgtで、各加重平均画素と対応する注目画素とを重み付け加算することにより、過度にノイズ抑制処理を行わないように抑制された補正濃度画像データの画素の濃度値Yave´ x,yを算出し、当該補正濃度画像データをRGB変換処理部74に出力する。
したがって、補正処理部731では、濃度対応ノイズ抑制処理部73で得られた加重平均フィルタ処理後の濃度成分画像データの画素である加重平均画素と、当該加重平均画素に対応する加重平均フィルタ処理前の濃度成分画像データの注目画素との濃度差分値を変数とし、ノイズ量はノイズ抑制強度算出部71で算出したノイズ抑制強度を仮想分散値とした正規分布関数に従うと仮定して、正規分布の特性である滑らかな特性をもつ重み係数で各加重平均画素と対応する注目画素とを重み付け加算するため、過度にノイズを抑制しないように補正された強度でノイズを抑制することができる。 Therefore, in the correction processing unit 731, the weighted average pixel that is the pixel of the density component image data after the weighted average filter processing obtained by the density-corresponding noise suppression processing unit 73, and before the weighted average filter processing corresponding to the weighted average pixel. Assuming that the density difference value with respect to the target pixel of the density component image data is a variable, the amount of noise follows a normal distribution function with the noise suppression intensity calculated by the noise suppression intensity calculation unit 71 as a virtual variance value, Since the weighted average pixel and the target pixel corresponding to each weighted average pixel are weighted and added with a weighting factor having smooth characteristics, which is a characteristic, noise can be suppressed with an intensity corrected so as not to excessively suppress noise.
この場合、RGB変換処理部74は、補正処理部731から補正濃度画像データが入力されると、濃度対応ノイズ抑制処理部73で得られた加重平均フィルタ処理後の濃度成分画像データと同様に取り扱い、当該濃度成分画像データと、色差対応ノイズ抑制処理部76で得られた加重平均フィルタ処理後の色差成分画像データで構成される、ノイズ抑制後の新たな輝度色差成分を、上述の通り、RGB色成分に変換して出力する。 In this case, when the corrected density image data is input from the correction processing unit 731, the RGB conversion processing unit 74 handles the density component image data after the weighted average filter processing obtained by the density corresponding noise suppression processing unit 73. The new luminance / color difference component after noise suppression, which is composed of the density component image data and the color difference component image data after weighted average filter processing obtained by the color difference corresponding noise suppression processing unit 76, is converted into RGB as described above. Convert to color component and output.
以下に、上述した粒状ノイズ抑制処理部51による各処理の手順を、図8に示すフローチャートに基づいて説明する。 Below, the procedure of each process by the granular noise suppression process part 51 mentioned above is demonstrated based on the flowchart shown in FIG.
まず、写真画像データを構成する各画素のRGB成分データが、ノイズ変動幅特定部70に入力されると、ノイズ変動幅特定ステップ(S1)が実行される。 First, when the RGB component data of each pixel constituting the photographic image data is input to the noise fluctuation width specifying unit 70, a noise fluctuation width specifying step (S1) is executed.
ノイズ変動幅特定ステップ(S1)は、濃度成分抽出ステップ(S11)と、ブロック特性値算出ステップ(S12)と、画素ブロック割付ステップ(S13)と、画素ブロック抽出ステップ(S14)と、回帰直線算出ステップ(S15)で構成される。 The noise fluctuation range specifying step (S1) includes a density component extraction step (S11), a block characteristic value calculation step (S12), a pixel block allocation step (S13), a pixel block extraction step (S14), and a regression line calculation. It consists of step (S15).
まず、濃度成分抽出ステップが実行され、入力された各画素のRGB成分の夫々がYCbCr成分に変換され、輝度成分画像データと色差成分画像データが出力される。出力された輝度成分画像データは、濃度成分画像データとして扱われる(S11)。 First, a density component extraction step is executed, each of the input RGB components of each pixel is converted into a YCbCr component, and luminance component image data and color difference component image data are output. The output luminance component image data is handled as density component image data (S11).
出力された濃度成分画像データがブロック特性値算出部702に入力されると、ブロック特性値算出ステップが実行され、所定サイズの画素ブロックに分割された濃度成分画像データの画素ブロック毎に、平均濃度値、最大濃度値、最小濃度値、濃度ばらつきを含むブロック特性値が算出され、当該ブロック特性値と画素ブロックに分割された濃度成分画像データが画素ブロック割付部703へ出力される(S12)。 When the output density component image data is input to the block characteristic value calculation unit 702, a block characteristic value calculation step is executed, and the average density is calculated for each pixel block of the density component image data divided into pixel blocks of a predetermined size. A block characteristic value including the value, maximum density value, minimum density value, and density variation is calculated, and the block characteristic value and density component image data divided into pixel blocks are output to the pixel block allocation unit 703 (S12).
濃度成分画像データと画素ブロック毎のブロック特性値が画素ブロック割付部703に入力されると、画素ブロック割付ステップが実行され、濃度成分画像データの濃度範囲が所定間隔で複数の区間に区分され、入力された画素ブロック特性値の平均濃度値に基づいて、濃度成分画像データの各画素ブロックが対応する区分に割り付けられる(S13)。 When the density component image data and the block characteristic value for each pixel block are input to the pixel block allocation unit 703, a pixel block allocation step is executed, and the density range of the density component image data is divided into a plurality of sections at predetermined intervals. Based on the input average density value of the pixel block characteristic values, each pixel block of the density component image data is assigned to a corresponding section (S13).
続いて、画素ブロック抽出部704の画素ブロック抽出ステップが実行され、画素ブロック割付ステップ(S13)で各区分に割り付けられた画素ブロックから、ブロック特性値の濃度ばらつきが最小となる最も平坦な領域の画素ブロックが、代表画素ブロックとして抽出される(S14)。 Subsequently, the pixel block extraction step of the pixel block extraction unit 704 is executed. From the pixel block allocated to each section in the pixel block allocation step (S13), the flattest region having the smallest variation in density of the block characteristic value is obtained. A pixel block is extracted as a representative pixel block (S14).
続いて、ノイズ変動幅特定部70の回帰直線算出ステップが実行され、画素ブロック割付ステップ(S14)で抽出された複数の平坦画像領域を示す代表画素ブロックの各平均濃度値を説明変数とし、各最大濃度値を従属変数とする最大側回帰直線と各最小濃度値を従属変数とする最小側回帰直線が算出され、最大側回帰直線と最小側回帰直線で区画される範囲が粒状のノイズの変動幅として特定される(S15)。 Subsequently, the regression line calculation step of the noise fluctuation width specifying unit 70 is executed, and the average density values of the representative pixel blocks indicating the plurality of flat image regions extracted in the pixel block allocation step (S14) are used as explanatory variables, The maximum regression line with the maximum concentration value as the dependent variable and the minimum regression line with each minimum concentration value as the dependent variable are calculated, and the range divided by the maximum regression line and the minimum regression line is a variation in granular noise It is specified as a width (S15).
続いて、ノイズ変動幅補正部77のノイズ変動幅補正ステップが実行され、ノイズ変動幅特定ステップS1で算出された最小側回帰直線の傾きとY軸切片、及び回帰直線算出時の相関係数に基づいて、最大側回帰直線が補正され、当該補正後の最大側回帰直線と最小側回帰直線で区画される範囲が粒状のノイズの変動幅として特定される(S16)。 Subsequently, the noise fluctuation range correction step of the noise fluctuation range correction unit 77 is executed, and the slope and Y axis intercept of the minimum regression line calculated in the noise fluctuation range specifying step S1 and the correlation coefficient at the time of calculating the regression line are calculated. Based on this, the maximum regression line is corrected, and the range defined by the corrected maximum regression line and minimum regression line is specified as the fluctuation range of granular noise (S16).
続いて、ノイズ抑制強度算出部71のノイズ抑制強度算出ステップが実行され、ノイズ変動幅補正ステップ(S16)で平坦画像領域から算出された各回帰直線に基づいて、濃度成分画像データの任意の注目画素(x,y)に対するノイズ変動幅Wx,yが算出され、当該ノイズ変動幅Wx,yからノイズ抑制強度σ x,yが算出される(S2)。 Subsequently, a noise suppression intensity calculation step of the noise suppression intensity calculation unit 71 is executed, and arbitrary attention is given to the density component image data based on each regression line calculated from the flat image area in the noise fluctuation range correction step (S16). The noise fluctuation width Wx, y for the pixel (x, y) is calculated, and the noise suppression intensity σ x, y is calculated from the noise fluctuation width Wx, y (S2).
続いて、濃度対応フィルタ係数生成部72の濃度対応フィルタ係数生成ステップが実行され、注目画素と周辺画素の濃度差分値z i,jと、ノイズ抑制強度算出ステップ(S2)で得られたノイズ抑制強度σ x,yに基づいて、濃度成分画像データに対応したサイズの加重平均フィルタのフィルタ係数Wgti,jが動的に算出される(S3)。 Subsequently, the density-corresponding filter coefficient generation step of the density-corresponding filter coefficient generation unit 72 is executed, and the noise suppression obtained in the density difference value z i, j between the target pixel and the surrounding pixels and the noise suppression intensity calculation step (S2). Based on the intensity σ x, y, the filter coefficient Wgti, j of the weighted average filter having a size corresponding to the density component image data is dynamically calculated (S3).
続いて、濃度対応ノイズ抑制処理部73の濃度対応ノイズ抑制処理ステップが実行され、濃度対応フィルタ係数生成ステップ(S3)で得られた各注目画素に対応するフィルタ係数Wgti,jで構成される加重平均フィルタにより、処理対象となる濃度成分画像データの一行目の左端の画素から行方向に配列された各画素を、順次注目画素として加重平均フィルタ処理が繰り返され、右端の画素まで処理が終了すると二行目の左端の画素から行方向に同様の処理が行なわれ、最終行の右端の画素まで処理が繰り返され、加重平均フィルタ処理された濃度成分画像データの濃度値、即ち、輝度成分画像データの加重平均画素の濃度値Yave x,yが算出される(S4)。 Subsequently, the density-corresponding noise suppression processing step of the density-corresponding noise suppression processing unit 73 is executed, and the weight constituted by the filter coefficient Wgti, j corresponding to each target pixel obtained in the density-corresponding filter coefficient generation step (S3). When the average filter repeats the weighted average filter process using the pixels arranged in the row direction from the leftmost pixel in the first row of the density component image data to be processed as the target pixel, and the processing ends up to the rightmost pixel. The same processing is performed in the row direction from the pixel on the left end of the second row, and the processing is repeated until the pixel on the right end of the last row, and the density value of the density component image data subjected to the weighted average filter processing, that is, the luminance component image data The density value Yave x, y of the weighted average pixel is calculated (S4).
また、濃度成分抽出ステップ(S11)で抽出された濃度成分画像データと色差成分画像データと、ノイズ抑制強度算出ステップ(S2)で算出されたノイズ抑制強度σ x,yが色差対応フィルタ係数生成部75に入力されると、色差対応フィルタ係数生成ステップが実行され、注目画素と周辺画素の濃度差分値z i,jと、ノイズ抑制強度算出ステップ(S2)で得られたノイズ抑制強度σ x,yに基づいて、色差成分画像データに対応したサイズの加重平均フィルタのフィルタ係数Wgti,jが動的に算出される(S5)。 Further, the density component image data and the color difference component image data extracted in the density component extraction step (S11), and the noise suppression strength σ x, y calculated in the noise suppression strength calculation step (S2) are used as the color difference corresponding filter coefficient generation unit. 75, the color difference correspondence filter coefficient generation step is executed, and the density difference value z i, j between the target pixel and the surrounding pixels and the noise suppression strength σ x, j obtained in the noise suppression strength calculation step (S2). Based on y, the filter coefficient Wgti, j of the weighted average filter having the size corresponding to the color difference component image data is dynamically calculated (S5).
続いて、色差対応ノイズ抑制処理部76の色差対応ノイズ抑制処理ステップが実行され、色差対応フィルタ係数生成ステップ(S5)で得られた各注目画素に対応するフィルタ係数Wgti,jで構成される加重平均フィルタにより、処理対象となる色差成分画像データの一行目の左端の画素から行方向に配列された各画素を、順次注目画素として加重平均フィルタ処理が繰り返され、右端の画素まで処理が終了すると二行目の左端の画素から行方向に同様の処理が行なわれ、最終行の右端の画素まで処理が繰り返され、加重平均フィルタ処理された色差成分画像データの加重平均画素値Cbave x,y, Crave x,yが算出される(S6)。 Subsequently, the color difference-corresponding noise suppression processing step of the color difference-corresponding noise suppression processing unit 76 is executed, and the weighting composed of the filter coefficients Wgti, j corresponding to each target pixel obtained in the color difference-corresponding filter coefficient generation step (S5). When the average filter repeats the weighted average filter process using the pixels arranged in the row direction from the leftmost pixel in the first row of the color difference component image data to be processed as the target pixel, and the processing ends up to the rightmost pixel. The same processing is performed in the row direction from the leftmost pixel of the second row, and the processing is repeated up to the rightmost pixel of the final row, and the weighted average pixel value Cbave x, y, Cave x, y is calculated (S6).
また、濃度対応ノイズ抑制処理部73に補正処理部731が備えられている場合、濃度対応ノイズ抑制処理ステップ(S4)は、補正処理ステップ(S41)をさらに備えて構成されている。 Further, when the density-corresponding noise suppression processing unit 73 includes the correction processing unit 731, the density-corresponding noise suppression processing step (S 4) further includes a correction processing step (S 41).
詳述すると、濃度対応ノイズ抑制処理ステップ(S4)で加重平均フィルタ処理された濃度成分画像データの濃度値、即ち、輝度成分画像データの加重平均画素の濃度値Yave x,yと、濃度成分抽出ステップ(S11)で抽出された濃度成分画像データが補正処理部731に入力されると補正処理ステップが実行され、ノイズ抑制強度算出ステップ(S2)で得られたノイズ抑制強度σ x,yを標準偏差とし、濃度対応ノイズ抑制処理ステップ(S4)で得られた各加重平均画素と対応する注目画素との濃度差分値を変数tmpとする正規分布関数に基づいて重み係数wgtが算出される。 More specifically, the density value of the density component image data subjected to the weighted average filter processing in the density-corresponding noise suppression processing step (S4), that is, the density value Yave x, y of the weighted average pixel of the luminance component image data, and the density component extraction. When the density component image data extracted in step (S11) is input to the correction processing unit 731, the correction processing step is executed, and the noise suppression strength σ x, y obtained in the noise suppression strength calculation step (S2) is standardized. The weighting coefficient wgt is calculated based on a normal distribution function that uses the difference in density as a variable tmp as the deviation and the density difference value between each weighted average pixel obtained in the density-corresponding noise suppression processing step (S4) and the corresponding target pixel.
また、補正処理ステップでは、当該算出された重み係数wgtで、各加重平均画素と対応する注目画素とが重み付け加算され、過度にノイズ抑制処理が行われないように抑制された補正濃度画像データYave´ x,yが算出され、当該補正濃度画像データYave´ x,yがRGB変換処理部74に出力される(S41)。 Further, in the correction processing step, the corrected density image data Yave, which is weighted and added to each weighted average pixel and the corresponding pixel of interest with the calculated weighting coefficient wgt, is suppressed so as not to perform excessive noise suppression processing. 'X, y is calculated, and the corrected density image data Yave'x, y is output to the RGB conversion processing unit 74 (S41).
続いて、濃度対応ノイズ抑制処理ステップ(S4)で加重平均フィルタ処理された濃度成分画像データ、あるいは、補正処理ステップ(S41)で算出された補正濃度画像データと、色差対応ノイズ抑制処理ステップ(S6)で得られた加重平均フィルタ処理後の色差成分画像データがRGB変換処理部74に入力されると、RGB変換処理ステップが実行され、当該入力された、濃度成分画像データ、あるいは、補正濃度画像データと、色差成分画像データと、で構成されるノイズ抑制後の新たな輝度色差成分が、RGB色成分に変換されて出力され、粒状ノイズ抑制処理部51による粒状ノイズの抑制処理が終了される(S8)。 Subsequently, the density component image data subjected to the weighted average filter processing in the density-corresponding noise suppression processing step (S4), or the corrected density image data calculated in the correction processing step (S41), and the color difference corresponding noise suppression processing step (S6). When the color difference component image data after the weighted average filter processing obtained in (4) is input to the RGB conversion processing unit 74, the RGB conversion processing step is executed, and the input density component image data or the corrected density image is input. A new luminance / color difference component after noise suppression composed of the data and the color difference component image data is converted into an RGB color component and output, and the granular noise suppression processing by the granular noise suppression processing unit 51 is completed. (S8).
尚、上述の各ステップにおいて、各ステップ間の入出力データをメモリ41に保存するよう構成し、各ステップは、各ステップ間で直接データの入出力を行わずに、メモリ41に保存されたデータにアクセスするよう構成しても構わない。 In each of the steps described above, the input / output data between the steps is stored in the memory 41, and each step stores the data stored in the memory 41 without directly inputting / outputting data between the steps. You may comprise so that it may access.
上述した粒状ノイズ抑制処理部51による各処理は、コントローラ33に備えたハードディスクにインストールされた本発明の写真画像処理プログラムが実行されることにより実現される。 Each processing by the granular noise suppression processing unit 51 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.
つまり、写真画像データに含まれる粒状のノイズの変動幅に基づいてノイズ抑制処理を行う写真画像処理プログラムであって、写真画像データから濃度成分画像データを抽出する濃度成分抽出ステップS11と、濃度成分抽出ステップS11で抽出された濃度成分画像データを所定サイズの画素ブロックに分割して、画素ブロック毎に平均濃度値、最大濃度値、最小濃度値、濃度ばらつきを含むブロック特性値を算出するブロック特性値算出ステップS12と、濃度範囲を所定間隔で複数の区間に区分し、平均濃度値に基づいて各画素ブロックを対応する区分に割り付ける画素ブロック割付ステップS13と、各区分に割り付けられた画素ブロックから濃度ばらつきが最小となる画素ブロックを代表画素ブロックとして抽出する画素ブロック抽出ステップS14と、を備え、画素ブロック抽出ステップS14で抽出された複数の代表画素ブロックの各平均濃度値を説明変数とし、各最大濃度値を従属変数とする最大側回帰直線と各最小濃度値を従属変数とする最小側回帰直線を算出し、最大側回帰直線と最小側回帰直線で区画される範囲を粒状のノイズの変動幅として特定するノイズ変動幅特定ステップS1と、ノイズ変動幅特定ステップS1で算出された最小側回帰直線に基づいて、最大側回帰直線を補正し、当該補正後の最大側回帰直線と最小側回帰直線で区画される範囲を粒状のノイズの変動幅として特定するノイズ変動幅補正ステップS16と、をコンピュータに実行させる写真画像処理プログラムが記憶されたCDやDVD等の記憶媒体を介してインストールされている。 That is, a photographic image processing program for performing noise suppression processing based on a fluctuation range of granular noise included in photographic image data, a density component extraction step S11 for extracting density component image data from photographic image data, and a density component Block characteristics for dividing the density component image data extracted in the extraction step S11 into pixel blocks of a predetermined size and calculating block characteristic values including average density values, maximum density values, minimum density values, and density variations for each pixel block. From the value calculation step S12, the pixel range assignment step S13 for dividing the density range into a plurality of sections at predetermined intervals, and assigning each pixel block to the corresponding section based on the average density value, and the pixel block assigned to each section Pixel block that extracts the pixel block with the smallest density variation as the representative pixel block A maximum regression line and each minimum density value with each average density value of the plurality of representative pixel blocks extracted in the pixel block extraction step S14 as explanatory variables and each maximum density value as a dependent variable. A noise fluctuation range specifying step S1 for calculating a minimum regression line having a dependent variable as the dependent variable, and specifying a range defined by the maximum regression line and the minimum regression line as a fluctuation range of granular noise, and a noise fluctuation range specifying step Noise that corrects the maximum regression line based on the minimum regression line calculated in S1 and specifies a range defined by the corrected maximum regression line and minimum regression line as the fluctuation range of granular noise The variation range correction step S16 is installed via a storage medium such as a CD or a DVD in which a photographic image processing program for causing the computer to execute is stored.
さらに、ノイズ変動幅補正ステップS16で得られた各回帰直線に基づいて、任意の注目画素(x,y)に対するノイズ変動幅Wx,yを求め、当該ノイズ変動幅Wx,yからノイズ抑制強度σ x,yを算出するノイズ抑制強度算出ステップS2と、当該注目画素(x,y)と周辺画素の濃度差分値z i,jと、ノイズ抑制強度算出ステップS2で得られたノイズ抑制強度σ x,yに基づいて、濃度成分画像データに対応したサイズの加重平均フィルタのフィルタ係数Wgti,jを動的に算出する濃度対応フィルタ係数生成ステップS3と、濃度対応フィルタ係数生成ステップS3で得られた各注目画素に対応するフィルタ係数Wgti,jに基づいて、濃度成分画像データを加重平均フィルタ処理する濃度対応ノイズ抑制処理ステップS4をコンピュータに実行させる写真画像処理プログラムが、当該プログラムが記憶されたCDやDVD等の記憶媒体を介してインストールされていても構わない。 Further, based on each regression line obtained in the noise fluctuation width correction step S16, the noise fluctuation width Wx, y for an arbitrary pixel of interest (x, y) is obtained, and the noise suppression intensity σ is obtained from the noise fluctuation width Wx, y. Noise suppression strength calculation step S2 for calculating x, y, density difference value z i, j between the target pixel (x, y) and surrounding pixels, and noise suppression strength σ x obtained in noise suppression strength calculation step S2. , y based on the density component filter data generation step S3 for dynamically calculating the filter coefficient Wgti, j of the weighted average filter of the size corresponding to the density component image data, and the density correspondence filter coefficient generation step S3. Based on the filter coefficient Wgti, j corresponding to each pixel of interest, the density-corresponding noise suppression processing step S4 for performing weighted average filtering on the density component image data is performed. Image processing program executed by a computer is, it may be installed the program through a storage medium such as stored CD or DVD.
さらに、当該注目画素(x,y)と周辺画素の濃度差分値z i,jと、ノイズ抑制強度算出ステップS2で得られたノイズ抑制強度σ x,yに基づいて、色差成分画像データに対応したサイズの加重平均フィルタのフィルタ係数を動的に算出する色差対応フィルタ係数生成ステップS5と、色差対応フィルタ係数生成ステップS5で得られた各注目画素に対応するフィルタ係数Wgti,jに基づいて、色差成分画像データを加重平均フィルタ処理する色差対応ノイズ抑制処理ステップS6をコンピュータに実行させる写真画像処理プログラムが、当該プログラムが記憶されたCDやDVD等の記憶媒体を介してインストールされていても構わない。 Furthermore, it corresponds to the color difference component image data based on the density difference value z i, j between the target pixel (x, y) and the surrounding pixels and the noise suppression strength σ x, y obtained in the noise suppression strength calculation step S2. Based on the filter coefficient Wgti, j corresponding to each pixel of interest obtained in the color difference corresponding filter coefficient generation step S5 and the color difference corresponding filter coefficient generation step S5, which dynamically calculate the filter coefficient of the weighted average filter of the selected size, A photographic image processing program that causes the computer to execute color difference-corresponding noise suppression processing step S6 for performing weighted average filtering on the color difference component image data may be installed via a storage medium such as a CD or a DVD in which the program is stored. Absent.
さらに、ノイズ抑制強度σ x,yを仮想分散値とし、濃度対応ノイズ抑制処理ステップS4で得られた各加重平均画素と対応する注目画素との濃度差分値を変数tmpとする正規分布関数に基づいて重み係数wgtを算出し、当該重み係数wgtで各加重平均画素と対応する注目画素とを重み付け加算して補正濃度画像データを算出する補正処理ステップS41をコンピュータに実行させる写真画像処理プログラムが、当該プログラムが記憶されたCDやDVD等の記憶媒体を介してインストールされていても構わない。 Further, based on a normal distribution function in which the noise suppression strength σ x, y is a virtual variance value, and the density difference value between each weighted average pixel obtained in the density-corresponding noise suppression processing step S4 and the corresponding pixel of interest is a variable tmp. A photographic image processing program for calculating a weighting factor wgt and causing the computer to execute correction processing step S41 for calculating corrected density image data by weighted addition of each weighted average pixel and the corresponding target pixel with the weighting factor wgt. The program may be installed via a storage medium such as a CD or DVD that stores the program.
尚、画素ブロックのブロック特性値に含まれる濃度ばらつきとして、各画素ブロックの平均濃度値を閾値として、当該閾値より高濃度の画素の平均濃度値である高濃度側平均濃度値と、当該閾値より低濃度の画素の平均濃度値である低濃度側平均濃度値との差分演算により算出される値を採用する場合を説明したが、本発明に適用可能な濃度ばらつきは、このような値に制限されるものではなく、画素ブロックを構成する画素群を母集団とする各画素の濃度値のばらつきを統計的手法等で表す値であればよく、標準偏差、平均絶対偏差、範囲等を採用することも可能である。 As the density variation included in the block characteristic value of the pixel block, the average density value of each pixel block is set as a threshold value, and the high density side average density value that is an average density value of pixels higher than the threshold value is compared with the threshold value. Although the case where the value calculated by the difference calculation with the low density side average density value which is the average density value of the low density pixel has been described, the density variation applicable to the present invention is limited to such a value. Rather, it may be a value that represents the variation in the density value of each pixel having the pixel group constituting the pixel block as a population by a statistical method or the like, and adopts a standard deviation, an average absolute deviation, a range, and the like. It is also possible.
また、処理対象画像データの端部領域では、実際の画素が存在しないため、端部画素と同じ画素値のダミー画素を生成して処理されるが、実際にプリントされる有効画像サイズは原画像サイズよりやや小さいサイズとなるので、プリント画像に影響を与えるものではない。 In addition, since there is no actual pixel in the end area of the processing target image data, a dummy pixel having the same pixel value as that of the end pixel is generated and processed. However, the effective image size actually printed is the original image. Since the size is slightly smaller than the size, it does not affect the print image.
また、上述の濃度成分抽出部701及びRGB変換処理部74で利用する変換式は、輝度成分をRGB色成分の平均値として導出しているが、例えば、Y成分の変換式は、以下の式で示すように、適宜設計事項として変更しても構わない。
Y = 0.29900R+0.58700G+0.11400B
The conversion formula used in the above-described density component extraction unit 701 and RGB conversion processing unit 74 derives the luminance component as the average value of the RGB color components. For example, the conversion formula for the Y component is the following formula: As shown by, it may be appropriately changed as a design matter.
Y = 0.29900R + 0.58700G + 0.11400B
ただし、濃度成分抽出部701においてRGB色成分から輝度色差成分へ変換された結果のデータをRGB変換処理部74に入力し、RGB色成分に変換した結果が元のRGB色成分と同じになるように、整合性がとれた変換式に変更する必要があることは言うまでもない。 However, data obtained as a result of conversion from the RGB color component to the luminance color difference component in the density component extraction unit 701 is input to the RGB conversion processing unit 74, and the result of conversion into the RGB color component is the same as the original RGB color component. Needless to say, it is necessary to change the conversion formula to be consistent.
以下、第一の実施形態とは別の実施形態として、第二の実施形態について説明する。 Hereinafter, the second embodiment will be described as an embodiment different from the first embodiment.
第一の実施形態では、ノイズ変動幅補正部77は、ノイズ変動幅特定部70で算出された最大側回帰直線の傾きが最小側回帰直線の傾きよりも大きい場合に、最大側回帰直線の補正を行うように構成されていたが、最大側回帰直線の相関係数が所定の閾値を超える場合に、上述の最大側回帰直線を補正するように構成を加えても構わない。 In the first embodiment, the noise variation correction unit 77 corrects the maximum regression line when the gradient of the maximum regression line calculated by the noise variation identification unit 70 is larger than the gradient of the minimum regression line. However, when the correlation coefficient of the maximum regression line exceeds a predetermined threshold, the above-described maximum regression line may be corrected.
例えば、暗部及び明部に著しく絵柄が偏っている画像のノイズ変動幅を算出した場合、画素ブロック割付部703により特定の濃度範囲に割り付けられる画素ブロックが多くなるため、当該濃度範囲におけるノイズ量を適切に算出することができるが、割り付けられる画素ブロックが少ない濃度範囲においては、ノイズ量が適切に算出されるとは言い難い。即ち、ノイズ変動幅特定部70で算出される最大側回帰直線の相関係数rが低い場合には、算出されたノイズ変動幅は適切であるとは言い難い。 For example, when calculating the noise fluctuation range of an image whose design is significantly biased in the dark part and the bright part, the pixel block allocating unit 703 increases the number of pixel blocks allocated to a specific density range. Although it can be calculated appropriately, it is difficult to say that the amount of noise is calculated appropriately in the density range where the number of allocated pixel blocks is small. That is, when the correlation coefficient r of the maximum regression line calculated by the noise fluctuation range specifying unit 70 is low, it is difficult to say that the calculated noise fluctuation range is appropriate.
したがって、この場合、ノイズ変動幅補正部77では、最大側回帰直線の相関係数rが所定の閾値を超える場合に最大側回帰直線が補正されてノイズ変動幅が特定されるため、上述のような適切とは言い難いノイズ変動幅が算出されることを回避できるようになる。 Therefore, in this case, since the noise fluctuation range correction unit 77 specifies the noise fluctuation range by correcting the maximum regression line when the correlation coefficient r of the maximum regression line exceeds a predetermined threshold, as described above. It is possible to avoid calculating a noise fluctuation range that is difficult to say.
以下、第一と第二の実施形態とは別の実施形態として、第三の実施形態について説明する。 Hereinafter, a third embodiment will be described as an embodiment different from the first and second embodiments.
第一または第二の実施形態の構成に加えて、ノイズ変動幅補正部77は、最大側回帰直線の傾きが最小側回帰直線よりも大きい場合に、画素ブロックの所定サイズを縮小し、縮小後の所定サイズの画像ブロックに基づいて、ノイズ変動幅特定部70を介して、最大側回帰直線と最小側回帰直線を再算出し、再算出後の最小側回帰直線に基づいて、再算出後の最大側回帰直線を補正するように構成しても構わない。 In addition to the configuration of the first or second embodiment, the noise fluctuation range correction unit 77 reduces the predetermined size of the pixel block when the slope of the maximum regression line is larger than the minimum regression line, and after the reduction Based on the image block of the predetermined size, the maximum fluctuation line and the minimum regression line are recalculated via the noise fluctuation range specifying unit 70, and the recalculated value is calculated based on the recalculated minimum regression line. The maximum regression line may be corrected.
詳述すると、ノイズ変動幅補正部77は、最大側回帰直線の傾きが最小側回帰直線よりも大きい場合に、ノイズ変動幅特定部70で利用する画素ブロックのサイズを縮小するよう設定変更した後、ノイズ変動幅特定部70に備えられたブロック特性値算出部702と画素ブロック割付部703と画素ブロック抽出部704と回帰直線算出部705を介して、縮小後の所定サイズの画像ブロックに基づいて最大側回帰直線と最小側回帰直線を再算出するように構成されている。 More specifically, the noise fluctuation range correction unit 77 changes the setting so as to reduce the size of the pixel block used by the noise fluctuation range specifying unit 70 when the slope of the maximum side regression line is larger than the minimum side regression line. Based on an image block of a predetermined size after reduction through a block characteristic value calculation unit 702, a pixel block allocation unit 703, a pixel block extraction unit 704, and a regression line calculation unit 705 provided in the noise fluctuation range specification unit 70. The maximum regression line and the minimum regression line are recalculated.
したがって、当初算出された回帰直線と再算出された回帰直線を比較すると、再算出された回帰直線は、より多くの画素ブロックに基づいて算出されるため、各区分された濃度範囲のノイズ量が適切に判断されたノイズ変動幅を得ることができるようになる。 Therefore, comparing the initially calculated regression line with the recalculated regression line, the recalculated regression line is calculated based on more pixel blocks. An appropriately determined noise fluctuation range can be obtained.
また、当初のサイズの画素ブロックでは、画素ブロック内に輪郭部を示す画素と背景部を示す画素がともに含まれている場合に、絵柄を示している両画素の濃度差がノイズとして算出されることがあるが、画素ブロックのサイズが縮小されることにより、輪郭部及び背景部のそれぞれの画素のみを含む画素ブロックに区分することが可能となるため、絵柄を示している画素の濃度差がノイズとして算出されることを回避できるようになる。 In addition, in the pixel block of the initial size, when both the pixel indicating the outline portion and the pixel indicating the background portion are included in the pixel block, the density difference between the two pixels indicating the pattern is calculated as noise. However, by reducing the size of the pixel block, it is possible to divide into pixel blocks that include only the pixels in the contour and background portions. Calculation as noise can be avoided.
尚、上述した実施形態は、本発明の一例に過ぎず、本発明の作用効果を奏する範囲において各ブロックの具体的構成等を適宜変更設計できることは言うまでもない。 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.
1:写真画像処理装置
51:粒状ノイズ抑制処理部
70:ノイズ変動幅特定部
71:ノイズ抑制強度算出部
72:濃度対応フィルタ係数生成部
73:濃度対応ノイズ抑制処理部
74:RGB変換処理部
75:色差対応フィルタ係数生成部
76:色差対応ノイズ抑制処理部
77:ノイズ変動幅補正部
701:濃度成分抽出部(ノイズ変動幅特定部)
702:ブロック特性値算出部(ノイズ変動幅特定部)
703:画素ブロック割付部(ノイズ変動幅特定部)
704:画素ブロック抽出部(ノイズ変動幅特定部)
705:回帰直線算出部(ノイズ変動幅特定部)
731:補正処理部(濃度対応ノイズ抑制処理部)
S1:ノイズ変動幅特定ステップ
S2:ノイズ抑制強度算出ステップ
S3:濃度対応フィルタ係数生成ステップ
S4:濃度対応ノイズ抑制処理ステップ
S5:色差対応フィルタ係数生成ステップ
S6:色差対応ノイズ抑制処理ステップ
S8:RGB変換処理ステップ
S11:濃度成分抽出ステップ(ノイズ変動幅特定ステップ)
S12:ブロック特性値算出ステップ(ノイズ変動幅特定ステップ)
S13:画素ブロック割付ステップ(ノイズ変動幅特定ステップ)
S14:画素ブロック抽出ステップ(ノイズ変動幅特定ステップ)
S15:回帰直線算出ステップ(ノイズ変動幅特定ステップ)
S16:ノイズ変動幅補正ステップ
S41:補正処理ステップ(濃度対応ノイズ抑制処理ステップ)
1: Photographic image processing device 51: Granular noise suppression processing unit 70: Noise fluctuation width specifying unit 71: Noise suppression intensity calculation unit 72: Density corresponding filter coefficient generation unit 73: Density corresponding noise suppression processing unit 74: RGB conversion processing unit 75 : Color difference corresponding filter coefficient generation unit 76: color difference corresponding noise suppression processing unit 77: noise variation range correction unit 701: density component extraction unit (noise variation range identification unit)
702: Block characteristic value calculation unit (noise fluctuation width specifying unit)
703: Pixel block allocation unit (noise fluctuation width specifying unit)
704: Pixel block extraction unit (noise fluctuation width specifying unit)
705: regression line calculation unit (noise fluctuation range specifying unit)
731: Correction processing unit (density-corresponding noise suppression processing unit)
S1: Noise fluctuation width identification step S2: Noise suppression intensity calculation step S3: Density correspondence filter coefficient generation step S4: Density correspondence noise suppression processing step S5: Color difference correspondence filter coefficient generation step S6: Color difference correspondence noise suppression processing step S8: RGB conversion Processing Step S11: Density Component Extraction Step (Noise Fluctuation Range Specifying Step)
S12: Block characteristic value calculating step (noise fluctuation range specifying step)
S13: Pixel block allocation step (noise fluctuation width specifying step)
S14: Pixel block extraction step (noise fluctuation width specifying step)
S15: regression line calculation step (noise fluctuation range specifying step)
S16: Noise fluctuation range correction step S41: Correction processing step (density-corresponding noise suppression processing step)
Claims (12)
前記写真画像データから濃度成分画像データを抽出する濃度成分抽出ステップと、
前記濃度成分抽出ステップで抽出された前記濃度成分画像データを所定サイズの画素ブロックに分割して、画素ブロック毎に平均濃度値、最大濃度値、最小濃度値、濃度ばらつきを含むブロック特性値を算出するブロック特性値算出ステップと、
濃度範囲を示すX軸と前記ブロック特性値を示すY軸からなる二次元座標系において、前記濃度範囲を所定間隔で複数の区間に区分し、前記平均濃度値に基づいて各画素ブロックを対応する区分に割り付ける画素ブロック割付ステップと、
各区分に割り付けられた画素ブロックから前記濃度ばらつきが最小となる画素ブロックを代表画素ブロックとして抽出する画素ブロック抽出ステップと、
を備え、前記画素ブロック抽出ステップで抽出された複数の代表画素ブロックの各平均濃度値を説明変数とし、各最大濃度値を従属変数とする最大側回帰直線と各最小濃度値を従属変数とする最小側回帰直線を算出し、前記最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定するノイズ変動幅特定ステップと、
前記ノイズ変動幅特定ステップで算出された前記最小側回帰直線に基づいて、前記最大側回帰直線を補正し、当該補正後の前記最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定するノイズ変動幅補正ステップと、
を含む写真画像処理方法。 A photographic image processing method for performing noise suppression processing based on a fluctuation range of granular noise included in photographic image data,
A density component extraction step for extracting density component image data from the photographic image data;
The density component image data extracted in the density component extraction step is divided into pixel blocks of a predetermined size, and block characteristic values including average density value, maximum density value, minimum density value, and density variation are calculated for each pixel block. A block characteristic value calculating step,
In a two-dimensional coordinate system including an X axis indicating a density range and a Y axis indicating the block characteristic value, the density range is divided into a plurality of sections at predetermined intervals, and each pixel block is associated based on the average density value. A pixel block assignment step for assigning to the sections;
A pixel block extraction step of extracting, as a representative pixel block, a pixel block having the minimum density variation from the pixel blocks assigned to each section;
The average density value of the plurality of representative pixel blocks extracted in the pixel block extraction step is used as an explanatory variable, and the maximum regression line having each maximum density value as a dependent variable and each minimum density value as a dependent variable. A noise fluctuation range specifying step of calculating a minimum regression line and specifying a range defined by the maximum regression line and the minimum regression line as a fluctuation range of the granular noise;
Based on the minimum-side regression line calculated in the noise fluctuation range specifying step, the maximum-side regression line is corrected, and a range defined by the corrected maximum-side regression line and the minimum-side regression line is A noise fluctuation range correction step that is specified as a fluctuation range of granular noise,
A photographic image processing method.
当該注目画素と周辺画素の濃度差分値と、前記ノイズ抑制強度算出ステップで得られたノイズ抑制強度に基づいて、濃度成分画像データに対応したサイズの加重平均フィルタのフィルタ係数を動的に算出する濃度対応フィルタ係数生成ステップと、
前記濃度対応フィルタ係数生成ステップで得られた各注目画素に対応するフィルタ係数に基づいて、前記濃度成分画像データを加重平均フィルタ処理する濃度対応ノイズ抑制処理ステップを、
さらに含む請求項1から6の何れかに記載の写真画像処理方法。 Based on each regression line obtained in the noise fluctuation range correction step, obtain a noise fluctuation range for any target pixel, and calculate a noise suppression intensity from the noise fluctuation range,
A filter coefficient of a weighted average filter having a size corresponding to the density component image data is dynamically calculated based on the density difference value between the target pixel and surrounding pixels and the noise suppression intensity obtained in the noise suppression intensity calculation step. A density-corresponding filter coefficient generation step;
Based on the filter coefficient corresponding to each target pixel obtained in the density-corresponding filter coefficient generation step, the density-corresponding noise suppression processing step for performing weighted average filter processing on the density component image data,
The photographic image processing method according to claim 1, further comprising:
前記色差対応フィルタ係数生成ステップで得られた各注目画素に対応するフィルタ係数に基づいて、色差成分画像データを加重平均フィルタ処理する色差対応ノイズ抑制処理ステップを、
さらに含む請求項7記載の写真画像処理方法。 A filter coefficient of a weighted average filter having a size corresponding to the color difference component image data is dynamically calculated based on the density difference value between the target pixel and surrounding pixels and the noise suppression intensity obtained in the noise suppression intensity calculation step. A color difference corresponding filter coefficient generation step;
Based on the filter coefficient corresponding to each pixel of interest obtained in the color difference corresponding filter coefficient generation step, a color difference corresponding noise suppression processing step for performing weighted average filter processing of the color difference component image data,
The photographic image processing method according to claim 7, further comprising:
前記写真画像データから濃度成分画像データを抽出する濃度成分抽出ステップと、
前記濃度成分抽出ステップで抽出された前記濃度成分画像データを所定サイズの画素ブロックに分割して、画素ブロック毎に平均濃度値、最大濃度値、最小濃度値、濃度ばらつきを含むブロック特性値を算出するブロック特性値算出ステップと、
濃度範囲を所定間隔で複数の区間に区分し、前記平均濃度値に基づいて各画素ブロックを対応する区分に割り付ける画素ブロック割付ステップと、
各区分に割り付けられた画素ブロックから前記濃度ばらつきが最小となる画素ブロックを代表画素ブロックとして抽出する画素ブロック抽出ステップと、
を備え、前記画素ブロック抽出ステップで抽出された複数の代表画素ブロックの各平均濃度値を説明変数とし、各最大濃度値を従属変数とする最大側回帰直線と各最小濃度値を従属変数とする最小側回帰直線を算出し、前記最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定するノイズ変動幅特定ステップと、
前記ノイズ変動幅特定ステップで算出された前記最小側回帰直線に基づいて、前記最大側回帰直線を補正し、当該補正後の前記最大側回帰直線と前記最小側回帰直線で区画される範囲を前記粒状のノイズの変動幅として特定するノイズ変動幅補正ステップと、
をコンピュータに実行させる写真画像処理プログラム。 A photographic image processing program for performing noise suppression processing based on a fluctuation range of granular noise included in photographic image data,
A density component extraction step for extracting density component image data from the photographic image data;
The density component image data extracted in the density component extraction step is divided into pixel blocks of a predetermined size, and block characteristic values including average density value, maximum density value, minimum density value, and density variation are calculated for each pixel block. A block characteristic value calculating step,
A pixel block allocating step of dividing the density range into a plurality of sections at predetermined intervals, and allocating each pixel block to a corresponding section based on the average density value;
A pixel block extraction step of extracting, as a representative pixel block, a pixel block having the minimum density variation from the pixel blocks assigned to each section;
The average density value of the plurality of representative pixel blocks extracted in the pixel block extraction step is used as an explanatory variable, and the maximum regression line having each maximum density value as a dependent variable and each minimum density value as a dependent variable. A noise fluctuation range specifying step of calculating a minimum regression line and specifying a range defined by the maximum regression line and the minimum regression line as a fluctuation range of the granular noise;
Based on the minimum-side regression line calculated in the noise fluctuation range specifying step, the maximum-side regression line is corrected, and a range defined by the corrected maximum-side regression line and the minimum-side regression line is A noise fluctuation range correction step that is specified as a fluctuation range of granular noise,
A photographic image processing program that causes a computer to execute.
当該注目画素と周辺画素の濃度差分値と、前記ノイズ抑制強度算出ステップで得られたノイズ抑制強度に基づいて、濃度成分画像データに対応したサイズの加重平均フィルタのフィルタ係数を動的に算出する濃度対応フィルタ係数生成ステップと、
前記濃度対応フィルタ係数生成ステップで得られた各注目画素に対応するフィルタ係数に基づいて、前記濃度成分画像データを加重平均フィルタ処理する濃度対応ノイズ抑制処理ステップを、
さらに含む請求項9記載の写真画像処理プログラム。 Based on each regression line obtained in the noise fluctuation range correction step, obtain a noise fluctuation range for any target pixel, and calculate a noise suppression intensity from the noise fluctuation range,
A filter coefficient of a weighted average filter having a size corresponding to the density component image data is dynamically calculated based on the density difference value between the target pixel and surrounding pixels and the noise suppression intensity obtained in the noise suppression intensity calculation step. A density-corresponding filter coefficient generation step;
Based on the filter coefficient corresponding to each target pixel obtained in the density-corresponding filter coefficient generation step, the density-corresponding noise suppression processing step for performing weighted average filter processing on the density component image data,
The photographic image processing program according to claim 9, further comprising:
前記色差対応フィルタ係数生成ステップで得られた各注目画素に対応するフィルタ係数に基づいて、色差成分画像データを加重平均フィルタ処理する色差対応ノイズ抑制処理ステップを、
さらに含む請求項10記載の写真画像処理プログラム。 A filter coefficient of a weighted average filter having a size corresponding to the color difference component image data is dynamically calculated based on the density difference value between the target pixel and surrounding pixels and the noise suppression intensity obtained in the noise suppression intensity calculation step. A color difference corresponding filter coefficient generation step;
Based on the filter coefficient corresponding to each pixel of interest obtained in the color difference corresponding filter coefficient generation step, a color difference corresponding noise suppression processing step for performing weighted average filter processing of the color difference component image data,
The photographic image processing program according to claim 10, further comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008313602A JP5062156B2 (en) | 2008-12-09 | 2008-12-09 | Photo image processing method, photo image processing program, and photo image processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008313602A JP5062156B2 (en) | 2008-12-09 | 2008-12-09 | Photo image processing method, photo image processing program, and photo image processing apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010141435A JP2010141435A (en) | 2010-06-24 |
JP5062156B2 true JP5062156B2 (en) | 2012-10-31 |
Family
ID=42351195
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008313602A Active JP5062156B2 (en) | 2008-12-09 | 2008-12-09 | Photo image processing method, photo image processing program, and photo image processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5062156B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3726653B2 (en) * | 2000-07-27 | 2005-12-14 | ノーリツ鋼機株式会社 | Image processing method, image processing apparatus, and recording medium on which program for executing image processing method is recorded |
JP2005303705A (en) * | 2004-04-13 | 2005-10-27 | Olympus Corp | Image processing device and image processing method |
JP4780374B2 (en) * | 2005-04-21 | 2011-09-28 | Nkワークス株式会社 | Image processing method and program for suppressing granular noise, and granular suppression processing module for implementing the method |
JP2007312125A (en) * | 2006-05-18 | 2007-11-29 | Konica Minolta Photo Imaging Inc | Image processor, image processing method, and image processing program |
-
2008
- 2008-12-09 JP JP2008313602A patent/JP5062156B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2010141435A (en) | 2010-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8391646B2 (en) | Image processing device and method that performs image quality adjustment and resize processing on image data | |
US20050286793A1 (en) | Photographic image processing method and equipment | |
JP2002314817A (en) | Method, device, program, and recording medium for locally changing sharpness of photographed image by using mask, and image reproducing device | |
JP2005141477A (en) | Image sharpening process and image processor implementing this process | |
US10848644B2 (en) | Image processing apparatus, image processing method, and non-transitory computer-readable storage medium | |
JP5157678B2 (en) | Photo image processing method, photo image processing program, and photo image processing apparatus | |
JP5125954B2 (en) | Photo image processing method, photo image processing program, and photo image processing apparatus | |
JP2010034713A (en) | Photographic image processing method, photographic image processing program and photographic image processing apparatus | |
JP2010068361A (en) | Photographic image processing method, photographic image processing program, and photographic image processor | |
JP4920814B2 (en) | Image processing method, apparatus, and recording medium | |
JP5157760B2 (en) | Photo image processing method, photo image processing program, and photo image processing apparatus | |
JP4366634B2 (en) | Noise pixel map creation method, apparatus and program for implementing the method, and photo print apparatus | |
JP2007249802A (en) | Image processor and image processing method | |
JP5245715B2 (en) | Photo image processing method, photo image processing program, and photo image processing apparatus | |
JP5062156B2 (en) | Photo image processing method, photo image processing program, and photo image processing apparatus | |
JP2009010853A (en) | Image correction method and image correction apparatus | |
JP5157677B2 (en) | Photo image processing method, photo image processing program, and photo image processing apparatus | |
JP4496856B2 (en) | Photographic image processing method and apparatus | |
JP6166768B2 (en) | Image processing apparatus, image processing method, and program | |
JP2010010974A (en) | Photographic image processing method, photographic image processing program, and photographic image processing device | |
JP2009016940A (en) | Uniformity correction processing apparatus and uniformity correction processing method of frame image | |
JP2008079196A (en) | Image correcting method, image correcting program and image correcting module | |
JP2008147714A (en) | Image processor and image processing method | |
JP4635884B2 (en) | Image processing apparatus and method | |
JP5856640B2 (en) | Image processing apparatus, image processing method, and program |
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 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20111107 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120629 |
|
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: 20120710 |
|
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: 20120723 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5062156 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150817 Year of fee payment: 3 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |