JP4442413B2 - Image processing apparatus, image processing method, program, and recording medium - Google Patents
Image processing apparatus, image processing method, program, and recording medium Download PDFInfo
- Publication number
- JP4442413B2 JP4442413B2 JP2004371984A JP2004371984A JP4442413B2 JP 4442413 B2 JP4442413 B2 JP 4442413B2 JP 2004371984 A JP2004371984 A JP 2004371984A JP 2004371984 A JP2004371984 A JP 2004371984A JP 4442413 B2 JP4442413 B2 JP 4442413B2
- Authority
- JP
- Japan
- Prior art keywords
- evaluation value
- image
- filter
- calculating
- edge
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000003672 processing method Methods 0.000 title claims description 7
- 238000011156 evaluation Methods 0.000 claims description 92
- 238000001914 filtration Methods 0.000 claims description 31
- 238000003384 imaging method Methods 0.000 claims description 30
- 238000000034 method Methods 0.000 claims description 12
- 230000035945 sensitivity Effects 0.000 claims description 2
- 230000002146 bilateral effect Effects 0.000 description 39
- 238000003708 edge detection Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 6
- 239000011159 matrix material Substances 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
画像のエッジを保存しつつ画像を平滑化する画像処理装置、画像処理方法、プログラム、及び記録媒体に関する。 The present invention relates to an image processing apparatus, an image processing method, a program, and a recording medium that smooth an image while preserving image edges.
従来、静止画や動画の画質を向上させるためにフィルタが使用されている。このようなフィルタの一つとして、バイラテラルフィルタと呼ばれるフィルタが存在する。バイラテラルフィルタは、エッジ保存フィルタの一種であり、画像のエッジを保存しつつノイズを除去して画像を平滑化させる。 Conventionally, filters are used to improve the quality of still images and moving images. As one of such filters, there is a filter called a bilateral filter. The bilateral filter is a kind of edge preserving filter, and smoothes an image by removing noise while preserving the edge of the image.
図4にバイラテラルフィルタ20の構成を示す。バイラテラルフィルタ20は、フィルタ部22と、フィルタの係数を演算する係数演算部21とから構成される。フィルタ部22のタップ数は、2N+1である(Nは任意の自然数)。バイラテラルフィルタ20の処理単位は、フィルタ対象領域である。フィルタ対象領域は、図5に示すように、フィルタ対象領域は入力画像INから座標(X、Y)の画素を中心とした縦2N+1×横2N+1のマトリクスを抜き出したものである。バイラテラルフィルタ20は、フィルタ対象領域の中心の座標(X、Y)に対応する出力画素値OUT(X、Y)を算出する。
FIG. 4 shows the configuration of the
バイラテラルフィルタ20は、入力画像のフィルタリング処理を1画素づつなめるように繰り返す。バイラテラルフィルタ20による全ての画素のフィルタリング処理が完了したときに出力画像OUTが完成する。
The
係数演算部21は、距離演算部23と、エッジ演算部24と、乗算部とから構成される。距離演算部23は、以下の式(1)に従い、フィルタ対象領域の中心画素の座標(X、Y)とフィルタ対象領域を構成する他の画素の座標(PX、PY)との距離に依存する値Wsを算出する。式(1)において、σSは座標(X、Y)と座標(PX、PY)との標準偏差である。
The
エッジ演算部24は、以下の式(2)に従い、ピクセル座標(X、Y)における画素値とフィルタ対象領域の座標(PX、PY)における画素値との差に依存する値Wrを求める。Wrは、エッジの有無を示すエッジ評価値である。式(2)において、Edge(X、Y)は座標(X、Y)における画素値、Edge(PX、PY)は座標(PX、PY)における画素値、σrはフィルタ対象領域を構成する画素の画素値の標準偏差である。
The
乗算部は、以下の式(3)に従い、WsとWrとを乗算して係数Wを求める。係数Wは、フィルタ部22に出力される。
The multiplication unit obtains a coefficient W by multiplying W s and W r according to the following equation (3). The coefficient W is output to the
フィルタ部22は、フィルタ対象領域の画像データと係数Wとを入力して、出力画素値OUT(X、Y)を算出する。フィルタ部22の演算を式(4)に示す。式(4)において、Wは係数演算部21の出力、IN(X、Y)は座標(X、Y)における入力画像INの画素値である。
The
バイラテラルフィルタ20では、エッジの検出を係数演算部21で行う。フィルタ部22は、係数演算部21で算出した係数と入力画像INの画素値とを基に出力画素値OUT(X、Y)を算出する。
In the
従来のバイラテラルフィルタ20では、単一の入力画像INに基づいて係数の演算と出力画像の算出とを行うため、例えば、露出不足の画像に感度向上処理を適用したために強いノイズが含まれるようになった入力画像にフィルタリング処理を施すときなど、エッジの検出が不正確であったり、ノイズが連続している画像がエッジとして検出されて温存されたりすることがある。
Since the conventional
また、バイラテラルフィルタ20のバリエーションとして、クロスバイラテラルフィルタ30と呼ばれるフィルタが存在する。クロスバイラテラルフィルタ30は、フィルタを適用させる画像INと、エッジ評価用の画像Edgeとの2枚の入力画像を利用する。
As a variation of the
図6にクロスバイラテラルフィルタ30の構成を示す。クロスバイラテラルフィルタ30は、係数演算部31にエッジ評価用の画像Edgeを入力する。係数演算部31は、画像Edgeから抜き出したフィルタ対象領域を用いて係数Wを算出する。フィルタ部32は、フィルタ適用させる画像INを入力する。フィルタ部32は、画像INから抜き出したフィルタ対象領域と係数Wとを用いて出力画素値OUT(X、Y)を算出する。
FIG. 6 shows the configuration of the cross
クロスバイラテラルフィルタ30の構成要素は、バイラテラルフィルタと同じである。クロスバイラテラルフィルタ30では、係数演算にエッジ評価用画像Edgeを使用するため、式(1)、式(2)における(X、Y、PX、PY)はエッジ評価用画像Edge上の値となる。
The components of the cross
クロスバイラテラルフィルタ30は、例えば、フラッシュを用いて撮影した画像と、そうでない画像との2枚の画像とを使用する。フラッシュを用いて撮影した画像は、フラッシュなしで撮影した画像よりもエッジが鮮明であるが色味が単調になるという問題がある。フラッシュなしで撮影した画像は、色味は正確であるがノイズが多くなるという問題がある。クロスバイラテラルフィルタ30は、フラッシュを用いて撮影した画像をエッジ評価用画像Edgeとし、フラッシュなしで撮影した画像をフィルタ適用のための画像INとすることにより、エッジが鮮明で色味が正確な画像を生成する(例えば、特許文献1参照)。
The cross
従来のクロスバイラテラルフィルタ30では、エッジ評価用画像Edgeでエッジ評価を行う。このクロスバイラテラルフィルタ30では、エッジ評価用画像Edgeのエッジは評価されるが、フィルタ対象用画像INのエッジは評価されない。
In the conventional cross
本発明は、上述した課題に鑑みてなされたものであって、複数の画像の何れかにエッジが存在する場合、このエッジを保存したままノイズを低減する画像処理装置、画像処理方法、プログラム及び記録媒体を提供することを目的とする。 The present invention has been made in view of the above-described problems, and in the case where an edge exists in any of a plurality of images, an image processing apparatus, an image processing method, a program, and an image processing apparatus that reduce noise while preserving the edge. An object is to provide a recording medium.
上述した目的を達成するために、本発明にかかる画像処理装置は、フィルタ対象画像のエッジを保存しつつ該フィルタ対象画像に対してフィルタリング処理を施す画像処理装置であって、異なる撮像条件のもとで上記フィルタ対象画像と同一の像を同時に撮像した複数の画像に基づいてエッジ評価値を算出するエッジ評価値算出手段と、上記エッジ評価値に基づいてフィルタの係数を算出する係数算出手段と、上記係数に基づいて上記フィルタ対象画像にフィルタリング処理を施すフィルタ手段とを備え、上記複数の画像の少なくとも1つは、赤外光画像又は紫外光画像であり、上記フィルタ対象画像の任意の座標の画素に対してフィルタリング処理を施す場合に、上記エッジ評価値算出手段は、上記複数の画像の上記任意の座標の画素値と上記任意の座標の周辺の画素値との差を基にエッジ評価値を算出し、上記任意の座標と、上記任意の座標の周辺の座標との距離に基づいて距離評価値を算出する距離評価値算出手段を備え、上記係数算出手段は、上記エッジ評価値と上記距離評価値とを基にフィルタの係数を算出する。 In order to achieve the above-described object, an image processing apparatus according to the present invention is an image processing apparatus that performs filtering processing on a filter target image while preserving edges of the filter target image, and has different imaging conditions. And an edge evaluation value calculation means for calculating an edge evaluation value based on a plurality of images obtained by simultaneously capturing the same image as the filter target image, and a coefficient calculation means for calculating a filter coefficient based on the edge evaluation value; , and a filter means for performing a filtering process to the filter target image based on the coefficient, at least one of the plurality of images, infrared images or ultraviolet light image der is, any of the filter object image When performing the filtering process on the pixel of the coordinate, the edge evaluation value calculation means and the pixel value of the arbitrary coordinate of the plurality of images The edge evaluation value is calculated based on the difference between the pixel values around the arbitrary coordinates and the edge evaluation value, and the distance evaluation value is calculated based on the distance between the arbitrary coordinates and the coordinates around the arbitrary coordinates. Value calculating means, and the coefficient calculating means calculates a filter coefficient based on the edge evaluation value and the distance evaluation value.
本発明にかかる画像処理方法は、フィルタ対象画像のエッジを保存しつつ該フィルタ対象画像に対してフィルタリング処理を施す画像処理方法であって、上記フィルタ対象画像と同一の像を異なる条件のもとで同時に撮像した複数の画像に基づいてエッジ評価値を算出するエッジ評価値算出工程と、上記エッジ評価値に基づいてフィルタの係数を算出するフィルタ係数算出工程と、上記係数を用いて上記フィルタ対象画像にフィルタリング処理を施すフィルタ工程とを有し、上記複数の画像の少なくとも1つは、赤外光画像又は紫外光画像であり、上記フィルタ対象画像の任意の座標の画素に対してフィルタリング処理を施す場合に、上記エッジ評価値算出工程では、上記複数の画像の上記任意の座標の画素値と上記任意の座標の周辺の画素値との差を基にエッジ評価値を算出し、上記任意の座標と、上記任意の座標の周辺の座標との距離に基づいて距離評価値を算出する距離評価値算出工程を更に有し、上記フィルタ係数算出工程では、上記エッジ評価値と上記距離評価値とを基にフィルタの係数を算出する。 An image processing method according to the present invention is an image processing method for performing filtering processing on a filter target image while preserving edges of the filter target image, wherein the same image as the filter target image is subjected to different conditions. An edge evaluation value calculating step for calculating an edge evaluation value based on a plurality of images simultaneously picked up in the step, a filter coefficient calculating step for calculating a filter coefficient based on the edge evaluation value, and the filter object using the coefficient and a filter step of performing a filtering process on the image, at least one of the plurality of images, infrared images or ultraviolet light image der is, the filtering process on the pixel of arbitrary coordinates of the filter object image In the edge evaluation value calculation step, the pixel values at the arbitrary coordinates and the pixels around the arbitrary coordinates in the plurality of images A distance evaluation value calculating step of calculating an edge evaluation value based on a difference between the arbitrary coordinate and a distance evaluation value based on a distance between the arbitrary coordinate and a coordinate around the arbitrary coordinate, In the filter coefficient calculation step, a filter coefficient is calculated based on the edge evaluation value and the distance evaluation value.
本発明にかかるプログラムは、フィルタ対象画像のエッジを保存しつつ該フィルタ画像に対するフィルタリング処理をコンピュータに実行させるプログラムにおいて、上記フィルタ対象画像と同一の像を異なる条件のもとで同時に撮像した複数の画像に基づいてエッジ評価値を算出するエッジ評価値算出工程と、上記エッジ評価値に基づいてフィルタの係数を算出するフィルタ係数算出工程と、上記係数を用いて上記フィルタ対象画像にフィルタリング処理を施すフィルタ工程とを有し、上記複数の画像の少なくとも1つは、赤外光画像又は紫外光画像であり、上記フィルタ対象画像の任意の座標の画素に対してフィルタリング処理を施す場合に、上記エッジ評価値算出工程では、上記複数の画像の上記任意の座標の画素値と上記任意の座標の周辺の画素値との差を基にエッジ評価値を算出し、上記任意の座標と、上記任意の座標の周辺の座標との距離に基づいて距離評価値を算出する距離評価値算出工程を更に有し、上記フィルタ係数算出工程では、上記エッジ評価値と上記距離評価値とを基にフィルタの係数を算出する。 A program according to the present invention is a program that causes a computer to execute filtering processing on a filter image while preserving edges of the filter target image, and a plurality of images obtained by simultaneously capturing the same image as the filter target image under different conditions. An edge evaluation value calculation step for calculating an edge evaluation value based on the image, a filter coefficient calculation step for calculating a filter coefficient based on the edge evaluation value, and a filtering process on the filter target image using the coefficient and a filter step, at least one of the plurality of images, infrared images or ultraviolet light image der is, when performing filtering processing on the pixel of arbitrary coordinates of the filter target image, the In the edge evaluation value calculation step, the pixel values of the arbitrary coordinates and the arbitrary coordinates of the plurality of images A distance evaluation value calculating step of calculating an edge evaluation value based on a difference from surrounding pixel values, and calculating a distance evaluation value based on a distance between the arbitrary coordinates and the peripheral coordinates of the arbitrary coordinates; And the filter coefficient calculation step calculates a filter coefficient based on the edge evaluation value and the distance evaluation value.
本発明にかかる記録媒体は、フィルタ対象画像のエッジを保存しつつ該フィルタ画像に対するフィルタリング処理をコンピュータに実行させるプログラムが記録された記録媒体において、上記フィルタ対象画像と同一の像を異なる条件のもとで同時に撮像した複数の画像に基づいてエッジ評価値を算出するエッジ評価値算出工程と、上記エッジ評価値に基づいてフィルタの係数を算出するフィルタ係数算出工程と、上記係数を用いて上記フィルタ対象画像にフィルタリング処理を施すフィルタ工程とを有し、上記複数の画像の少なくとも1つは、赤外光画像又は紫外光画像であり、上記フィルタ対象画像の任意の座標の画素に対してフィルタリング処理を施す場合に、上記エッジ評価値算出工程では、上記複数の画像の上記任意の座標の画素値と上記任意の座標の周辺の画素値との差を基にエッジ評価値を算出し、上記任意の座標と、上記任意の座標の周辺の座標との距離に基づいて距離評価値を算出する距離評価値算出工程を更に有し、上記フィルタ係数算出工程では、上記エッジ評価値と上記距離評価値とを基にフィルタの係数を算出するプログラムが記録されている。 According to the present invention, there is provided a recording medium on which a program for causing a computer to execute filtering processing on a filter image while storing an edge of the filter target image is recorded. And an edge evaluation value calculating step for calculating an edge evaluation value based on a plurality of images taken simultaneously, a filter coefficient calculating step for calculating a filter coefficient based on the edge evaluation value, and the filter using the coefficient and a filter step of performing a filtering process to the target image, at least one of the plurality of images, infrared images or ultraviolet light image der is, filtering a pixel of the arbitrary coordinate of the filter object image In the case of performing processing, in the edge evaluation value calculating step, the pixels at the arbitrary coordinates of the plurality of images The distance evaluation value is calculated based on the distance between the arbitrary coordinate and the peripheral coordinates of the arbitrary coordinate, and the edge evaluation value is calculated based on the difference between the pixel value and the peripheral pixel value of the arbitrary coordinate. An evaluation value calculation step is further included, and in the filter coefficient calculation step, a program for calculating a filter coefficient based on the edge evaluation value and the distance evaluation value is recorded.
本発明を適用した画像処理装置は、複数枚の画像をエッジ検出の評価対象とし、入力した画像の少なくとも1枚の画像にエッジが存在する場合、このエッジを保存したままノイズを低減することができる。 The image processing apparatus to which the present invention is applied can evaluate a plurality of images for edge detection evaluation, and if at least one of the input images has an edge, noise can be reduced while the edge is stored. it can.
以下、図面を参照して本発明を適用した撮像装置について説明する。図1は、撮像装置1の構成を示すブロック図である。撮像装置1は、可視光画像を撮像する可視光撮像部2と、赤外光画像を撮像する赤外光撮像部3と、様々な画像処理を行う画像処理部4と、画像を表示する表示部7と、画像を格納するメモリ8と、外部記録装置10とのデータの送受信を中継するシリアルインターフェース9と、撮像装置1全体を制御するシステムコントローラ6とを備える。
Hereinafter, an imaging apparatus to which the present invention is applied will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a configuration of the
可視光撮像部2は、可視光に感度のある撮像素子を備え、撮像した可視光画像Visibleを画像処理部4に出力する。赤外光撮像部3は、赤外光に感度のある撮像素子を備え、撮像した赤外光画像Infrを画像処理部4に出力する。赤外光画像Infrを撮像する撮像素子と可視光画像Visibleを撮像する撮像素子とは、同画素数、同画角である。赤外光画像Infrの座標(X、Y)と可視光画像Visibleの任意の座標(X、Y)には、同一の被写体が撮像されている。なお、撮像部は、図に示すように可視光用と赤外光用と別々に設けてもよいし、一つの撮像部内で可視光と赤外光とを分光するようにしてもよい。
The visible
画像処理部4は、バイラテラルフィルタ5を備える。図2は、バイラテラルフィルタ5の構成を示している。バイラテラルフィルタ5は、フィルタ部52と、フィルタの係数を演算する係数演算部51とから構成される。
The image processing unit 4 includes a bilateral filter 5. FIG. 2 shows the configuration of the bilateral filter 5. The bilateral filter 5 includes a filter unit 52 and a
係数演算部51は、距離演算部53と、エッジ演算部54と、乗算部55とから構成される。係数演算部51は、可視光画像Visibleのフィルタ対象領域と、赤外光画像Infrのフィルタ対象領域とを基に係数を算出する。フィルタ対象領域とは、座標(X、Y)を中心とした縦2N+1×横2N+1のマトリクスを抜き出した領域である。
The
距離演算部53は、以下の式(5)に従い、フィルタ対象領域の中心画素の座標(X、Y)とフィルタ対象領域を構成する他の画素の座標(PX、PY)との距離に依存する値Wsを算出する。式(5)において、σSは座標(X、Y)と座標(PX、PY)との標準偏差である。式(5)は、従来のバイラテラルフィルタにおける式(1)と同じ式である。
The
エッジ演算部54は、以下の式(6)に従い、フィルタ対象領域の中心座標(X、Y)とその他の座標(PX、PY)との画素値の差に依存する値Wrを算出する。値Wrは、エッジの有無を示すエッジ評価値である。式(6)において、Visible(X、Y)は可視光画像Visibleから抜き出したフィルタ対象領域の中心座標(X、Y)の画素値、Visible(PX、PY)は可視光画像Visibleから抜き出したフィルタ対象領域の座標(PX、PY)における画素値、σvは可視光画像Visibleから抜き出したフィルタ対象領域を構成する画素の画素値の標準偏差である。また、式(6)において、Infr(X、Y)は赤外光画像Infrから抜き出したフィルタ対象領域の中心座標(X、Y)の画素値、Infr(PX、PY)は赤外光画像Infrから抜き出したフィルタ対象領域の座標(PX、PY)における画素値、σiは赤外光画像Infrから抜き出したフィルタ対象領域を構成する画素の画素値の標準偏差である。
The
エッジ演算部54は、可視光画像Visibleの画素値と、赤外光画像Infrの画素値との両方を基に値Wrを算出する。Wrは、可視光画像Visibleと赤外光画像Infrとの少なくとも1枚の画像にエッジが存在するとそのエッジを反映して変化する。
Edge calculating
乗算部55は、以下の式(7)に従い、WsとWrとを乗算して係数Wを求める。係数Wは、値Wrの影響により、可視光画像Visibleと赤外光画像Infrとの少なくとも1枚の画像にエッジが存在するとそのエッジを反映して変化する。
The
フィルタ部52は、以下の式(8)に従って、可視光画像Visibleの座標(X、Y)における画素値Visible(X、Y)と係数Wとを基に出力画素値OUT(X、Y)を算出する。 The filter unit 52 calculates the output pixel value OUT (X, Y) based on the pixel value Visible (X, Y) and the coefficient W at the coordinates (X, Y) of the visible light image Visible according to the following equation (8). calculate.
本発明を適用した撮像装置1では、エッジ演算部54において可視光画像Visibleと赤外光画像Infrとの両方に含まれるエッジを反映した値Wrを算出することにより、可視光画像Visibleと赤外光画像Infrとの何れか一方にしか存在しないエッジであっても検出することができる。
In the
自然光の下で撮像した場合、可視光画像Visibleにはエッジがあるが、赤外光画像Infrにはエッジがない、または、赤外光画像Infrにはエッジがあるが可視光画像Visibleにはエッジがないということがあり、両方の画像にエッジがあるとは限らない。本発明を適用した撮像装置1は、可視光画像Visibleと赤外光画像Infrとの2枚の画像をエッジの評価対象とすることによりエッジの検出漏れを少なくする。
When imaged under natural light, the visible light image Visible has an edge but the infrared light image Infr has no edge, or the infrared light image Infr has an edge but the visible light image Visible has an edge. There are no edges and both images do not always have edges. The
また、可視光画像Visibleと赤外光画像Infrとは、同時に撮像することができるので撮像時間のずれが発生しない。さらに、赤外光画像Infrは、自然光で撮像することができるのフラッシュが使えない状況でも撮像することができる。 In addition, since the visible light image Visible and the infrared light image Infr can be captured at the same time, there is no shift in imaging time. Furthermore, the infrared light image Infr can be captured even in a situation where the flash can not be used although it can be captured with natural light.
また、本願発明は、可視光画像Visibleと赤外光画像Infr以外にも適用可能である。例えば、赤外光の代わりに紫外光を用いることもできる。波長の長い赤外光と、波長の短い赤外光というように、分光特性を細分化した画像を使用することもできる。 Further, the present invention is applicable to other than the visible light image Visible and the infrared light image Infr. For example, ultraviolet light can be used instead of infrared light. An image obtained by subdividing spectral characteristics, such as infrared light having a long wavelength and infrared light having a short wavelength, can also be used.
次に、変形例として3枚以上の画像をエッジ検出の評価用画像として使用するバイラテラルフィルタ60について説明する。図3は、3枚の画像をエッジ評価用画像としたときのバイラテラルフィルタ60の構成を説明する。バイラテラルフィルタ60は、上述したバイラテラルフィルタ5と同様にフィルタ部62と、係数演算部61とを備える。このバイラテラルフィルタ60には、3枚の画像が入力される。1枚目の画像は可視光画像Visible、2枚目の画像は波長の長い赤外光を撮像した長波長画像InfrLng、3枚目の画像は波長の短い赤外光を撮像した短波長画像InfrShtである。 Next, a bilateral filter 60 that uses three or more images as evaluation images for edge detection will be described as a modification. FIG. 3 illustrates the configuration of the bilateral filter 60 when three images are used as edge evaluation images. Similar to the bilateral filter 5 described above, the bilateral filter 60 includes a filter unit 62 and a coefficient calculation unit 61. Three images are input to the bilateral filter 60. The first image is a visible light image Visible, the second image is a long-wavelength image InfrLng obtained by imaging infrared light having a long wavelength, and the third image is a short-wavelength image InfrSht obtained by imaging infrared light having a short wavelength. It is.
係数演算部61は、3枚の画像Visible、InfrLng、InfrShtを入力し、係数Wを算出する。係数Wは、3枚の画像に含まれるエッジを反映している。エッジは、3枚画像のうち少なくとも1枚の画像に含まれていればよい。 The coefficient calculation unit 61 inputs three images Visible, InfrLng, and InfrSht, and calculates a coefficient W. The coefficient W reflects the edges included in the three images. The edge only needs to be included in at least one of the three images.
係数演算部61は、距離演算部63と、エッジ演算部64と、乗算部65とから構成される。係数演算部61は、フィルタ対象領域を処理単位として係数Wを算出する。フィルタ対象領域とは、座標(X、Y)を中心とした縦2N+1×横2N+1のマトリクスを抜き出した領域である。係数演算部61は、3枚の画像Visible、InfrLng、InfrShtのフィルタ対象領域を処理単位として使用する。
The coefficient calculation unit 61 includes a
距離演算部63は、上述した式(5)に従い、フィルタ対象領域の中心画素の座標(X、Y)とフィルタ対象領域を構成する他の画素の座標(PX、PY)との距離に依存する値Wsを算出する。距離演算部63の式(5)は、上述した距離演算部53と同じ式である。
The
エッジ演算部64は、以下の式(9)に従って、フィルタ対象領域の中心座標(X、Y)とその他の座標(PX、PY)との画素値の差に依存する値Wrを算出する。式(9)において、Visible(X、Y)は可視光画像Visibleから抜き出したフィルタ対象領域の中心座標(X、Y)の画素値、Visible(PX、PY)は可視光画像Visibleから抜き出したフィルタ対象領域の座標(PX、PY)における画素値、σvは可視光画像Visibleから抜き出したフィルタ対象領域を構成する画素の画素値の標準偏差である。式(9)においてEdge1(X、Y)は長波長画像InfrLngの座標(X、Y)における画素値、Edge1(PX、PY)は長波長画像InfrLngの座標(PX、PY)における画素値、σr1は長波長画像InfrLngから抜き出したフィルタ対象領域を構成する画素の画素値の標準偏差である。式(9)において、Edge2(X、Y)は短波長画像InfrShtから抜き出したフィルタ対象領域の中心座標(X、Y)の画素値、Edge2(PX、PY)は短波長画像InfrShtから抜き出したフィルタ対象領域の座標(PX、PY)における画素値、σr2はフィルタ対象領域を構成する画素の画素値の標準偏差である。
The
エッジ演算部64は、可視光画像Visibleと、長波長画像InfrLngと、短波長画像InfrShtとの3枚の画像を基に値Wrを算出する。Wrは、可視光画像Visibleと、長波長画像InfrLngと、短波長画像InfrShtとの何れかにエッジが含まれている場合それを反映して変化する。
The
乗算部65は、上述した式(7)に従い、係数Wを算出する。係数Wは、値Wrの影響により、可視光画像Visible、長波長画像InfrLng、短波長画像InfrShtとの何れかに含まれるエッジを反映した値となる。
The
フィルタ部62は、上述した式(8)に従い、可視光画像Visibleの座標(X、Y)における画素値IN(X、Y)と係数Wとを基に出力画素値OUT(X、Y)を算出する。 The filter unit 62 calculates the output pixel value OUT (X, Y) based on the pixel value IN (X, Y) and the coefficient W at the coordinates (X, Y) of the visible light image Visible according to the above-described equation (8). calculate.
このように、本発明を適用した撮像装置では、複数のエッジ評価画像をエッジ検出の評価対象とすることができる。また、式(9)を式(10)のように変形することにより、エッジ検出対象となる画像を増加することができる。式(10)における変数jは、エッジ検出対象となる画像の枚数を示す(jは任意の自然数)。エッジ検出対象の画像は、j−1枚の画像にフィルタ対象用の画像1枚を足したj枚になる。 Thus, in the imaging apparatus to which the present invention is applied, a plurality of edge evaluation images can be set as evaluation targets for edge detection. Further, by transforming equation (9) into equation (10), it is possible to increase the number of images that are subject to edge detection. A variable j in Expression (10) indicates the number of images to be subjected to edge detection (j is an arbitrary natural number). The number of edge detection target images is j-1 images plus one filter target image.
本発明を適用した撮像装置1は、バイラテラルフィルタ5を備える。バイラテラルフィルタ5は、複数枚の画像をエッジ検出の評価対象とし、入力した画像の少なくとも1枚でエッジが検出されると、このエッジを保存した状態でノイズを低減することができる。
An
また、バイラテラルフィルタ5は、エッジ検出の評価対象として可視光画像Visibleと赤外光画像Infrとをエッジ検出の評価対象とする。可視光画像と赤外光画像とは同時に撮像することができるため、画像の撮像時間にずれが生じず、動画や動く被写体のノイズを除去することもできる。 Further, the bilateral filter 5 uses the visible light image Visible and the infrared light image Infr as evaluation objects for edge detection as evaluation objects for edge detection. Since the visible light image and the infrared light image can be captured at the same time, there is no shift in the image capturing time, and the moving image and noise of the moving subject can be removed.
なお、本実施の形態では、本発明を撮像装置に適用した例について説明したが、本発明の要旨は、複数の画像のエッジを保存しつつノイズを除去する点であり、撮像部を備えない画像処理装置やパーソナルコンピュータなどの他の電子機器にも適用することができる。 In this embodiment, an example in which the present invention is applied to an imaging apparatus has been described. However, the gist of the present invention is that noise is removed while preserving edges of a plurality of images, and no imaging unit is provided. The present invention can also be applied to other electronic devices such as an image processing apparatus and a personal computer.
また、エッジ検出の評価対象となる画像としては、波長の異なる画像の他に、色相の異なる画像なども使用することもできる。さらに、動画や動く被写体を撮像しない場合には、フラッシュを使用した画像とフラッシュを使用しない画像など撮像時間にずれが生じる画像を使用することもできる。 In addition to images with different wavelengths, images with different hues can also be used as images to be evaluated for edge detection. Furthermore, when a moving image or a moving subject is not imaged, an image with a difference in imaging time such as an image using a flash and an image not using a flash can be used.
画像処理部4におけるフィルタリング処理は、制御プログラムに基づいて実行してもよい。このような制御プログラムは、撮像装置1のファームウェアに記録されている。なお、制御プログラムは、外部記録装置10が読み取り可能な形式で記録された記録媒体を介して取得してもよい。制御プログラムを記録する記録媒体としては、磁気読取方式の記録媒体(例えば、磁気テープ、フレキシブルディスク、磁気カード)、光学読取方式の記録媒体(例えば、CD−ROM、MO、CD−R、DVD)、半導体メモリ(メモリカード、ICカード)等が考えられる。また、制御プログラムは、いわゆるインターネット等を介して取得してもよい。
The filtering process in the image processing unit 4 may be executed based on a control program. Such a control program is recorded in the firmware of the
1 撮像装置、2 可視光撮像部、3 赤外光撮像部、4 画像処理部、5 バイラテラルフィルタ、6 システムコントローラ、51 係数演算部、52 フィルタ部、53 距離演算部、54 エッジ演算部、55 乗算部
DESCRIPTION OF
Claims (6)
異なる撮像条件のもとで上記フィルタ対象画像と同一の像を同時に撮像した複数の画像に基づいてエッジ評価値を算出するエッジ評価値算出手段と、
上記エッジ評価値に基づいてフィルタの係数を算出する係数算出手段と、
上記係数に基づいて上記フィルタ対象画像にフィルタリング処理を施すフィルタ手段とを備え、
上記複数の画像の少なくとも1つは、赤外光画像又は紫外光画像であり、
上記フィルタ対象画像の任意の座標の画素に対してフィルタリング処理を施す場合に、上記エッジ評価値算出手段は、上記複数の画像の上記任意の座標の画素値と上記任意の座標の周辺の画素値との差を基にエッジ評価値を算出し、
上記任意の座標と、上記任意の座標の周辺の座標との距離に基づいて距離評価値を算出する距離評価値算出手段を備え、
上記係数算出手段は、上記エッジ評価値と上記距離評価値とを基にフィルタの係数を算出する
画像処理装置。 An image processing apparatus that performs filtering processing on a filter target image while preserving edges of the filter target image,
Edge evaluation value calculating means for calculating an edge evaluation value based on a plurality of images obtained by simultaneously capturing the same image as the filter target image under different imaging conditions;
Coefficient calculation means for calculating a coefficient of the filter based on the edge evaluation value;
Filter means for performing a filtering process on the filter target image based on the coefficient,
At least one of the plurality of images, Ri infrared light image or ultraviolet light image der,
In a case where filtering processing is performed on pixels at arbitrary coordinates of the filter target image, the edge evaluation value calculation means includes the pixel values of the arbitrary coordinates of the plurality of images and pixel values around the arbitrary coordinates. Edge evaluation value is calculated based on the difference between
A distance evaluation value calculating means for calculating a distance evaluation value based on a distance between the arbitrary coordinate and a coordinate around the arbitrary coordinate;
The coefficient calculation means is an image processing apparatus that calculates a filter coefficient based on the edge evaluation value and the distance evaluation value .
上記フィルタ対象画像と同一の像を異なる条件のもとで同時に撮像した複数の画像に基づいてエッジ評価値を算出するエッジ評価値算出工程と、
上記エッジ評価値に基づいてフィルタの係数を算出するフィルタ係数算出工程と、
上記係数を用いて上記フィルタ対象画像にフィルタリング処理を施すフィルタ工程とを有し、
上記複数の画像の少なくとも1つは、赤外光画像又は紫外光画像であり、
上記フィルタ対象画像の任意の座標の画素に対してフィルタリング処理を施す場合に、上記エッジ評価値算出工程では、上記複数の画像の上記任意の座標の画素値と上記任意の座標の周辺の画素値との差を基にエッジ評価値を算出し、
上記任意の座標と、上記任意の座標の周辺の座標との距離に基づいて距離評価値を算出する距離評価値算出工程を更に有し、
上記フィルタ係数算出工程では、上記エッジ評価値と上記距離評価値とを基にフィルタの係数を算出する
画像処理方法。 An image processing method for performing filtering processing on a filter target image while preserving edges of the filter target image,
An edge evaluation value calculating step for calculating an edge evaluation value based on a plurality of images obtained by simultaneously capturing the same image as the filter target image under different conditions;
A filter coefficient calculation step of calculating a filter coefficient based on the edge evaluation value;
A filtering step of performing a filtering process on the filter target image using the coefficient,
At least one of the plurality of images, Ri infrared light image or ultraviolet light image der,
When filtering processing is performed on pixels at arbitrary coordinates of the filter target image, in the edge evaluation value calculation step, the pixel values of the arbitrary coordinates and the pixel values around the arbitrary coordinates of the plurality of images Edge evaluation value is calculated based on the difference between
A distance evaluation value calculating step of calculating a distance evaluation value based on a distance between the arbitrary coordinates and the coordinates around the arbitrary coordinates;
An image processing method for calculating a filter coefficient based on the edge evaluation value and the distance evaluation value in the filter coefficient calculation step .
上記フィルタ対象画像と同一の像を異なる条件のもとで同時に撮像した複数の画像に基づいてエッジ評価値を算出するエッジ評価値算出工程と、
上記エッジ評価値に基づいてフィルタの係数を算出するフィルタ係数算出工程と、
上記係数を用いて上記フィルタ対象画像にフィルタリング処理を施すフィルタ工程とを有し、
上記複数の画像の少なくとも1つは、赤外光画像又は紫外光画像であり、
上記フィルタ対象画像の任意の座標の画素に対してフィルタリング処理を施す場合に、上記エッジ評価値算出工程では、上記複数の画像の上記任意の座標の画素値と上記任意の座標の周辺の画素値との差を基にエッジ評価値を算出し、
上記任意の座標と、上記任意の座標の周辺の座標との距離に基づいて距離評価値を算出する距離評価値算出工程を更に有し、
上記フィルタ係数算出工程では、上記エッジ評価値と上記距離評価値とを基にフィルタの係数を算出する
プログラム。 In a program for causing a computer to execute filtering processing on a filter image while preserving edges of the filter target image,
An edge evaluation value calculating step for calculating an edge evaluation value based on a plurality of images obtained by simultaneously capturing the same image as the filter target image under different conditions;
A filter coefficient calculation step of calculating a filter coefficient based on the edge evaluation value;
A filtering step of performing a filtering process on the filter target image using the coefficient,
At least one of the plurality of images, Ri infrared light image or ultraviolet light image der,
When filtering processing is performed on pixels at arbitrary coordinates of the filter target image, in the edge evaluation value calculation step, the pixel values of the arbitrary coordinates and the pixel values around the arbitrary coordinates of the plurality of images Edge evaluation value is calculated based on the difference between
A distance evaluation value calculating step of calculating a distance evaluation value based on a distance between the arbitrary coordinates and the coordinates around the arbitrary coordinates;
In the filter coefficient calculation step, a program for calculating a filter coefficient based on the edge evaluation value and the distance evaluation value .
上記フィルタ対象画像と同一の像を異なる条件のもとで同時に撮像した複数の画像に基づいてエッジ評価値を算出するエッジ評価値算出工程と、
上記エッジ評価値に基づいてフィルタの係数を算出するフィルタ係数算出工程と、
上記係数を用いて上記フィルタ対象画像にフィルタリング処理を施すフィルタ工程とを有し、
上記複数の画像の少なくとも1つは、赤外光画像又は紫外光画像であり、
上記フィルタ対象画像の任意の座標の画素に対してフィルタリング処理を施す場合に、上記エッジ評価値算出工程では、上記複数の画像の上記任意の座標の画素値と上記任意の座標の周辺の画素値との差を基にエッジ評価値を算出し、
上記任意の座標と、上記任意の座標の周辺の座標との距離に基づいて距離評価値を算出する距離評価値算出工程を更に有し、
上記フィルタ係数算出工程では、上記エッジ評価値と上記距離評価値とを基にフィルタの係数を算出する
プログラムが記録された記録媒体。 In a recording medium on which a program for causing a computer to execute filtering processing on the filter image while storing edges of the filter target image is recorded,
An edge evaluation value calculating step for calculating an edge evaluation value based on a plurality of images obtained by simultaneously capturing the same image as the filter target image under different conditions;
A filter coefficient calculation step of calculating a filter coefficient based on the edge evaluation value;
A filtering step of performing a filtering process on the filter target image using the coefficient,
At least one of the plurality of images, Ri infrared light image or ultraviolet light image der,
When filtering processing is performed on pixels at arbitrary coordinates of the filter target image, in the edge evaluation value calculation step, the pixel values of the arbitrary coordinates and the pixel values around the arbitrary coordinates of the plurality of images Edge evaluation value is calculated based on the difference between
A distance evaluation value calculating step of calculating a distance evaluation value based on a distance between the arbitrary coordinates and the coordinates around the arbitrary coordinates;
In the filter coefficient calculation step, a recording medium on which a program for calculating a filter coefficient based on the edge evaluation value and the distance evaluation value is recorded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004371984A JP4442413B2 (en) | 2004-12-22 | 2004-12-22 | Image processing apparatus, image processing method, program, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004371984A JP4442413B2 (en) | 2004-12-22 | 2004-12-22 | Image processing apparatus, image processing method, program, and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006180268A JP2006180268A (en) | 2006-07-06 |
JP4442413B2 true JP4442413B2 (en) | 2010-03-31 |
Family
ID=36733937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004371984A Expired - Fee Related JP4442413B2 (en) | 2004-12-22 | 2004-12-22 | Image processing apparatus, image processing method, program, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4442413B2 (en) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8180168B2 (en) * | 2007-01-16 | 2012-05-15 | Hewlett-Packard Development Company, L.P. | One-pass filtering and infrared-visible light decorrelation to reduce noise and distortions |
JP4288623B2 (en) | 2007-01-18 | 2009-07-01 | ソニー株式会社 | Imaging device, noise removal device, noise removal method, noise removal method program, and recording medium recording noise removal method program |
WO2009107197A1 (en) * | 2008-02-26 | 2009-09-03 | 富士通株式会社 | Picture processor, picture processing method and picture processing program |
JP5034665B2 (en) * | 2007-05-11 | 2012-09-26 | ソニー株式会社 | Image input processing device, pixel signal processing circuit, and edge detection method |
EP2034437A1 (en) * | 2007-09-06 | 2009-03-11 | Thomson Licensing | Spatial diffusion in images |
JP5144202B2 (en) | 2007-10-05 | 2013-02-13 | オリンパス株式会社 | Image processing apparatus and program |
JP2010041697A (en) * | 2008-08-08 | 2010-02-18 | Sony Corp | Video signal processing apparatus, video signal processing method, and program |
JP4727720B2 (en) | 2008-12-31 | 2011-07-20 | 株式会社モルフォ | Image processing method and image processing apparatus |
JP2011034226A (en) * | 2009-07-30 | 2011-02-17 | Toshiba Corp | Image processing apparatus |
JP5169997B2 (en) | 2009-05-29 | 2013-03-27 | ソニー株式会社 | Filter circuit, image processing apparatus, imaging apparatus, image processing method, and program |
US8588535B2 (en) | 2010-09-15 | 2013-11-19 | Sharp Laboratories Of America, Inc. | Methods and systems for estimation of compression noise |
US8600188B2 (en) | 2010-09-15 | 2013-12-03 | Sharp Laboratories Of America, Inc. | Methods and systems for noise reduction and image enhancement |
US8175411B2 (en) | 2010-09-28 | 2012-05-08 | Sharp Laboratories Of America, Inc. | Methods and systems for estimation of compression noise |
US8538193B2 (en) | 2010-09-28 | 2013-09-17 | Sharp Laboratories Of America, Inc. | Methods and systems for image enhancement and estimation of compression noise |
US8532429B2 (en) * | 2010-09-28 | 2013-09-10 | Sharp Laboratories Of America, Inc. | Methods and systems for noise reduction and image enhancement involving selection of noise-control parameter |
JP5874180B2 (en) * | 2011-03-14 | 2016-03-02 | 株式会社ニコン | Image processing apparatus, imaging apparatus, and image processing program |
JP6564421B2 (en) * | 2017-05-17 | 2019-08-21 | キヤノン株式会社 | Image processing apparatus, imaging apparatus, image processing method, and program |
CN108961170B (en) * | 2017-05-24 | 2022-05-03 | 阿里巴巴集团控股有限公司 | Image processing method, device and system |
-
2004
- 2004-12-22 JP JP2004371984A patent/JP4442413B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2006180268A (en) | 2006-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4442413B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
Zhuo et al. | Defocus map estimation from a single image | |
US7589771B2 (en) | Image processing apparatus, image processing method, image pickup apparatus, computer program and recording medium | |
JP4640508B2 (en) | Image processing apparatus, image processing method, program, and imaging apparatus | |
JP5291084B2 (en) | Edge mapping incorporating panchromatic pixels | |
TWI441095B (en) | Distance evaluation methods and apparatuses, and machine readable medium thereof | |
US10210643B2 (en) | Image processing apparatus, image processing method, and storage medium storing a program that generates an image from a captured image in which an influence of fine particles in an atmosphere has been reduced | |
US20150278996A1 (en) | Image processing apparatus, method, and medium for generating color image data | |
US20140340515A1 (en) | Image processing method and system | |
JP6693684B2 (en) | Abnormality inspection device and abnormality inspection method | |
JP2010525427A (en) | Edge mapping using panchromatic pixels | |
JP4466015B2 (en) | Image processing apparatus and image processing program | |
JP2003116060A (en) | Correcting device for defective picture element | |
JP6711396B2 (en) | Image processing device, imaging device, image processing method, and program | |
KR20170027301A (en) | Image processing apparatus, image processing method, and storage medium | |
US20100061650A1 (en) | Method And Apparatus For Providing A Variable Filter Size For Providing Image Effects | |
US20170032501A1 (en) | Image processing apparatus, image capturing apparatus, and storage medium that stores image processing program | |
CN102543793A (en) | Wafer focusing image quality feedback system and method therefor | |
JP4438363B2 (en) | Image processing apparatus and image processing program | |
US20220414826A1 (en) | Image processing apparatus, image processing method, and medium | |
JP4466017B2 (en) | Image processing apparatus and image processing program | |
JP5172283B2 (en) | Stereo image processing apparatus, stereo image processing method, and program | |
JP5115297B2 (en) | Image processing apparatus, imaging apparatus, image processing method, and program | |
JP4466016B2 (en) | Image processing apparatus and image processing program | |
US9648232B2 (en) | Image processing apparatus, image capturing apparatus, control method and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20071116 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090421 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090622 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090825 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091019 |
|
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: 20091222 |
|
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: 20100104 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130122 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |