JP2012222509A - Image processor and image processing program - Google Patents
Image processor and image processing program Download PDFInfo
- Publication number
- JP2012222509A JP2012222509A JP2011084573A JP2011084573A JP2012222509A JP 2012222509 A JP2012222509 A JP 2012222509A JP 2011084573 A JP2011084573 A JP 2011084573A JP 2011084573 A JP2011084573 A JP 2011084573A JP 2012222509 A JP2012222509 A JP 2012222509A
- Authority
- JP
- Japan
- Prior art keywords
- image
- processing apparatus
- image processing
- foreign object
- captured image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012545 processing Methods 0.000 claims description 82
- 238000003702 image correction Methods 0.000 claims description 9
- 241000406668 Loxodonta cyclotis Species 0.000 claims description 2
- 235000019557 luminance Nutrition 0.000 description 36
- 238000001514 detection method Methods 0.000 description 28
- 238000012937 correction Methods 0.000 description 17
- 230000003287 optical effect Effects 0.000 description 15
- 238000003384 imaging method Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 8
- 230000007547 defect Effects 0.000 description 6
- 238000000605 extraction Methods 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 239000000126 substance Substances 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 239000000428 dust Substances 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000002834 transmittance Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
本発明は、画像処理装置及び画像処理プログラムに関する。 The present invention relates to an image processing apparatus and an image processing program.
電子カメラ等により撮像を行う際、光学フィルタ等に異物が付着していると、異物の影が撮像画像に写り込む場合がある。このように画像に写り込んだ異物影等による画像欠損部位を補正するものとして、異物影の写り込んだ基準画像から異物位置の座標等の情報を得て、その情報に基づいて通常撮影された撮影画像に写り込んだ異物影による画像欠損を補正する画像処理装置が知られている。
また、補正対象の画像における異物影による透過率の変化(各画素における輝度情報の変化)から異物を検出し、異物影を削除する補正を行う技術が知られている(特許文献1参照)。
When capturing an image with an electronic camera or the like, if a foreign object adheres to the optical filter or the like, a shadow of the foreign object may appear in the captured image. As described above, information such as the coordinates of the position of the foreign object was obtained from the reference image in which the foreign object shadow was reflected, and the image was normally shot based on the information. There is known an image processing apparatus that corrects an image defect caused by a foreign object shadow reflected in a captured image.
Further, a technique is known in which a foreign object is detected from a change in transmittance (change in luminance information in each pixel) due to a foreign object shadow in an image to be corrected, and correction for deleting the foreign object shadow is performed (see Patent Document 1).
しかしながら、上記従来技術においては、異物の写り込んだ基準画像を撮影する必要がある。また、撮影画像と基準画像とにおいて、異物位置の座標等が異なる場合もある。 However, in the above prior art, it is necessary to take a reference image in which foreign matter is reflected. In addition, the coordinates of the foreign substance position may differ between the captured image and the reference image.
本発明の課題は、より容易に撮影画像中の異物を検出可能な画像処理装置及び画像処理プログラムを提供することである。 The subject of this invention is providing the image processing apparatus and image processing program which can detect the foreign material in a picked-up image more easily.
本発明は、以下のような解決手段により前記課題を解決する。なお、理解を容易にするために、本発明の実施形態に対応する符号を付して説明するが、これに限定されるものではない。 The present invention solves the above problems by the following means. In addition, in order to make an understanding easy, although the code | symbol corresponding to embodiment of this invention is attached | subjected and demonstrated, it is not limited to this.
請求項1に記載の発明は、第一の撮影画像(G1)中における特定位置を選択可能な位置選択部(34)と、前記第一の撮影画像(G1)中において、前記位置選択部(34)により選択された位置を含む一定の範囲(E1)を決定する範囲決定部(61)と、前記第一の撮影画像(G1)と異なる第二の撮影画像(G2)を選択する画像選択部(62)と、前記第二の撮影画像(G2)中における、前記第一の撮影画像(G1)の前記一定の範囲(E1)に対応する対応範囲(E2)から、前記第二の撮影画像(G2)中に移りこんだ異物影情報を取得する異物影情報取得部(63)と、を備えること、を特徴とする画像処理装置(50)である。
請求項2に記載の発明は、請求項1に記載の画像処理装置(50)であって、前記画像選択部(62)は、前記第二の撮影画像(G2)として、前記第一の撮影画像(G1)の撮影条件に近い撮影条件で撮影された画像を選択すること、を特徴とする画像処理装置(50)である。
請求項3に記載の発明は、請求項2に記載の画像処理装置(50)であって、前記撮影条件は、前記第一の撮影画像(G1)を撮影したカメラ本体と同一のカメラ本体であることと、絞り値、撮影距離、レンズ、焦点距離、及び撮影時間のうちの少なくとも1つが同一であることと、を含むこと、を特徴とする画像処理装置(50)である。
請求項4に記載の発明は、請求項1から3のいずれか1項に記載の画像処理装置(50)であって、前記異物影情報取得部(63)は、輝度情報を用いて異物影情報を取得すること、を特徴とする画像処理装置(50)である。
請求項5に記載の発明は、請求項1から4のいずれか1項に記載の画像処理装置(50)であって、前記画像選択部(62)は、前記第二の撮影画像(G2)として、前記第一の撮影画像(G1)と同じファイル型式にした場合に、前記対応範囲(E2)内に前記異物影情報を有し、かつ、前記対応範囲(E2)周辺の輝度が第一の撮影画像(G1)と同一又はもっとも近い画像を選択すること、を特徴とする画像処理装置(50)である。
請求項6に記載の発明は、請求項1から4のいずれか1項に記載の画像処理装置(50)であって、前記画像選択部(62)は、前記第二の撮影画像(G2)として、前記第一の撮影画像(G1)と同じファイル型式にした場合に、前記対応範囲(E2)内に前記異物影情報を有し、かつ、前記範囲周辺の色相が第一の撮影象画像と同一又はもっとも近い画像を選択すること、を特徴とする画像処理装置(50)である。
請求項7に記載の発明は、請求項1から6のいずれか1項に記載の画像処理装置(50)であって、前記画像選択部(62)は、前記第二の撮影画像(G2)として、前記対応範囲(E2)内に前記異物影情報を有し、かつ、前記対応範囲(E2)周辺の輝度の標準偏差が最も小さい画像を選択すること、を特徴とする画像処理装置(50)である。
請求項8に記載の発明は、請求項1から7のいずれか1項に記載の画像処理装置(50)であって、前記画像選択部(62)は、前記第二の撮影画像(G2)における、前記対応範囲(E2)の平均した輝度のプロファイルから、前記第一の撮影画像(G1)を補正するためのデータを作成すること、を特徴とする画像処理装置(50)である。
請求項9に記載の発明は、請求項1から8のいずれか1項に記載の画像処理装置(50)であって、前記画像選択部(62)は、前記第一の撮影画像(G1)以外の撮影画像から、シャッタスピードの異なるものを前記第二の撮影画像(G2)として選択すること、を特徴とする画像処理装置(50)である。
請求項10に記載の発明は、請求項1から9のいずれか1項に記載の画像処理装置(50)であって、画像の補正部(51)を備えること、を特徴とする画像処理装置(50)である。
請求項11に記載の発明は、請求項1から10のいずれか1項に記載の画像処理装置(50)の機能をコンピュータ(30)に実行させること、を特徴とする画像処理プログラムである。
According to the first aspect of the present invention, the position selection unit (34) capable of selecting a specific position in the first captured image (G1) and the position selection unit (in the first captured image (G1)) 34) A range determination unit (61) for determining a certain range (E1) including the position selected by the image selection, and an image selection for selecting a second captured image (G2) different from the first captured image (G1). And the second captured image from the corresponding range (E2) corresponding to the predetermined range (E1) of the first captured image (G1) in the second captured image (G2). An image processing apparatus (50) comprising: a foreign object shadow information acquisition unit (63) that acquires foreign object shadow information transferred into the image (G2).
A second aspect of the present invention is the image processing device (50) according to the first aspect, wherein the image selection unit (62) uses the first photographing as the second photographed image (G2). An image processing apparatus (50) characterized by selecting an image photographed under a photographing condition close to the photographing condition of the image (G1).
The invention according to
The invention described in claim 4 is the image processing apparatus (50) according to any one of
Invention of Claim 5 is an image processing apparatus (50) of any one of
A sixth aspect of the present invention is the image processing device (50) according to any one of the first to fourth aspects, wherein the image selection unit (62) includes the second captured image (G2). When the same file type as the first photographed image (G1) is used, the foreign object shadow information is included in the corresponding range (E2), and the hue around the range is the first photographed elephant image. The image processing apparatus (50) is characterized in that the same or closest image is selected.
A seventh aspect of the present invention is the image processing device (50) according to any one of the first to sixth aspects, wherein the image selection unit (62) includes the second captured image (G2). As an image processing apparatus (50), an image having the foreign object shadow information in the corresponding range (E2) and having the smallest standard deviation of luminance around the corresponding range (E2) is selected. ).
The invention according to claim 8 is the image processing device (50) according to any one of
The invention according to a ninth aspect is the image processing device (50) according to any one of the first to eighth aspects, wherein the image selection unit (62) includes the first captured image (G1). The image processing apparatus (50) is characterized in that one having a different shutter speed is selected as the second captured image (G2) from the other captured images.
A tenth aspect of the present invention is the image processing apparatus (50) according to any one of the first to ninth aspects, further comprising an image correcting unit (51). (50).
The invention described in
本発明によれば、より容易に撮影画像中の異物を検出可能な画像処理装置及び画像処理プログラムを提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the image processing apparatus and image processing program which can detect the foreign material in a picked-up image more easily can be provided.
以下、図面等を参照して、本発明の実施形態について説明する。
図1は、レンズ交換式のカメラ1の構成を示す図である。図2は、カメラ1と画像処理装置を構成するパーソナルコンピュータ(PC)30及び周辺装置を示すブロック図である。
カメラ1は、被写体像を電気信号に変換した画像データとして出力する電子スチルカメラである。本実施形態は、カメラ1が撮影した画像データを、画像処理装置として機能するPC30が取得して後述する異物影の検出及び補正処理を行うものである。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a diagram illustrating a configuration of a lens-
The
カメラ1は、カメラボディ2と、カメラボディ2に対して着脱可能な撮像レンズ3とにより構成されている。撮像レンズ3は、複数の光学レンズ群(図1においては1枚のレンズで示す)を有する結像光学系3Lを備えている。
The
カメラボディ2は、シャッタ11、光学フィルタ12、撮像素子13、画像処理部14、操作部15、表示部16、メモリカード用インターフェース(以下、「メモリカードIF」と記す)17、外部インターフェース(以下、「外部IF」と記す)18、電源19、制御部20等を備えている。
The
シャッタ11は、結像光学系3Lから撮像素子13へ向かう撮影光を遮蔽及び通過させることによって、露光時間を調整する。
光学フィルタ12は、撮像に際して偽色(色モアレ)等の発生を防止する光学ローパスフィルタ等によって構成される。なお、図1中の符号4は、この光学フィルタ12の表面に付着した塵や埃などの異物を示す。このような撮影光の光路上にあって撮影光を透過する光学フィルタ12に異物4が付着していると、撮像素子13によって取得される画像データのなかに、異物影の影響を受けた画素が含まれる場合がある。
The
The
撮像素子13は、CCDやCMOS等の光電変換素子であって、複数の画素から構成される矩形形状の撮像領域を有している。そして、撮像素子13は、その結像面に結像された像を電気信号に変換し、被写体像に対応する画像信号(撮像信号)を出力する。撮像素子13から出力された画像信号は、所定のアナログ信号処理の後、A/D変換されて画像処理部14に入力される。
The
画像処理部14は、撮像素子13から入力された画像データに対して、補間,階調変換や輪郭強調などの画像処理を行う。
操作部15は、撮影者が撮影タイミング等を決定する信号を入力するレリーズボタンや、モード切り換え用の選択ボタン等を備えている。そして、操作部15は、それらの操作情報を制御部に入力する。
The
The
表示部16は、LCD等によって構成され、カメラ1における各種設定メニュー、撮像素子13による撮像画像やメモリカードに格納された画像データに基づく再生画像を表示する。
The
メモリカード用IF17は、メモリカード(カード状のリムーバブルメモリ)40とのインターフェースをとなる。
外部IF18は、所定のケーブルや無線伝送路を介してPC30等の外部装置とのインターフェースとなる。
電源19は、カメラ1の各機能部に電力を供給する。
The memory card IF 17 serves as an interface with a memory card (card-like removable memory) 40.
The external IF 18 serves as an interface with an external device such as the
The power source 19 supplies power to each functional unit of the
制御部20は、カメラ1における各機能部を統括制御する。すなわち、制御部20は、操作部15におけるレリーズスイッチから撮影指示信号が入力されると、シャッタ11を駆動制御して露光動作等の撮影動作を制御する。また、制御部20は、撮像素子13で取得されて画像処理部14で画像処理が行われて入力された画像データを、メモリカード用IF17に着脱可能に取り付けられたメモリカード40等に記憶させ、保存する。さらに、制御部20は、メモリカード40等に記憶された画像データを呼び出し、表示部16に表示させる。
The
上記のように構成されたカメラ1は、撮影時において制御部20によって制御されて、下記のように作用する。
操作者によって操作部15のレリーズボタンが押圧操作されると、シャッタ11を所定時間開放する。撮像素子13は、結像光学系3Lにより撮像領域に結像された光学像に対応する画像信号を生成する。撮像素子13によって生成された画像信号は、画像データとして画像処理部14に入力され、画像処理部14によって所定の画像処理が施される。そして、画像処理部14で画像処理された画像データに基づいて表示部16に撮影画像を表示すると共に、その画像データに必要に応じてJPEGやRAW等による圧縮処理を施してメモリカード用IF17に装着されたメモリカード40に記憶・保存する。また、外部IF18を介して接続された後述するPC30に、画像データを送出する。
The
When the release button of the
ここで、メモリカード40に記憶・保存され、又は、外部IF18を介してPC30に送出される画像データは、例えば、Exif(EXchange Image File format)ファイルに記録される。Exifファイルには、カメラボディ2の種類、カメラメーカー名、撮像画素情報、絞り値(F値)や焦点、シャッタスピード及び露光補正等の露出条件、撮影時刻、撮影距離などの付加情報が共に記録される。
Here, the image data stored / saved in the
パーソナルコンピュータ(PC)30は、図示しないが、CPU、メモリ、ハードディスク、メモリカード40とのインターフェースとなるメモリカード用IF、ケーブルや無線伝送路を介してカメラ1等の外部装置とのインターフェースとなる外部IF等を備えている。また、PC30には、画像表示部としてのモニタ31やプリンタ32等が接続されていると共に、モニタ31に表示された撮影画像中における異物影等の異物が写り込んだ特定位置をユーザが任意選択的に指し示す選択部としてのマウス34が接続されている。
Although not shown, the personal computer (PC) 30 serves as an interface with an external device such as the
さらに、PC30に接続のCD−ROM33には、異物影等の異物検出及び検出された異物の情報に基づいて画像を補正処理するアプリケーションプログラムが予めインストールされている。
Further, an application program for correcting an image based on information on the detection of a foreign object such as a foreign object shadow and the detected foreign object is installed in the CD-
つぎに、撮影された第一の撮影画像中における異物影等による異物影情報を検出し、その検出した異物影情報に基づいて第一の撮影画像を補正する処理(異物影情報検出・補正処理)について説明する。 Next, processing for detecting foreign object shadow information such as foreign object shadow in the photographed first captured image and correcting the first captured image based on the detected foreign object shadow information (foreign object shadow information detection / correction processing) ).
異物影情報検出・補正処理は、メモリカード30を介して提供された、又は、カメラ1の外部インターフェース18から伝送された画像処理完了後の画像データに対して、PC30によって行われる。
前述したように、PC30には、異物影情報検出及び画像補正処理のアプリケーションプログラムがインストールされており、PC30は、このプログラムを実行することによって、異物影情報検出及び画像の補正処理を行う画像処理装置50として機能する。
The foreign object shadow information detection / correction processing is performed by the
As described above, the foreign object shadow information detection and image correction processing application program is installed in the
図3は、異物影情報検出・補正処理を行う画像処理装置50の機能ブロック図である。図4は、画像処理装置50における異物影検出部60の機能ブロック図である。
PC30とプログラムとによって機能する画像処理装置50は、図3に示すように、異物影情報を検出する異物影検出部60と、異物影検出部60によって検出された異物影情報に基づいて、その異物による異物影を補正する補正部51と、を備えている。
異物影検出部60は、図4に示すように、範囲決定部61と、画像選択部62と、異物影情報取得部63と、を備えている。そして、異物影情報取得部63はさらに、連結領域判定部64と、対象領域抽出部65と、輝度判定部66とを備えている。
FIG. 3 is a functional block diagram of the
As shown in FIG. 3, the
As shown in FIG. 4, the foreign object
図5は、画像処理装置50における異物影情報検出及び画像の補正処理の流れを説明するフローチャートである。図5のフローチャートに従って、画像処理装置50における異物影情報検出及び画像の補正処理の流れを説明する。図5及び以下の説明中、ステップを「S」とも略記する。
FIG. 5 is a flowchart for explaining the flow of foreign object shadow information detection and image correction processing in the
まず、画像処理装置50を含むPC30は、ステップS01において、メモリカード40を介して、又は、カメラ1の外部インターフェース18を介して入力された第一(対象)の撮影画像G1のデータを読み込む。
First, in step S01, the
ステップS02では、読み込んだ第一の撮影画像G1をモニタ31上に表示する。図6は、モニタ31上に表示された第一の撮影画像G1の一例を示す。図6の第一の撮影画像G1において、木々に囲まれた部分に異物影4Aがある。このような異物影は、例えば光学フィルタ12の前面に付着した異物(異物4)(図1参照)により生じている。
In step S02, the read first photographed image G1 is displayed on the
ここで、ユーザは異物影部分を認識することが可能であるが、異物影4Aの輝度勾配と木々の輝度勾配とが重なり、輝度勾配から異物影4A情報を検出することは困難な可能性がある。
Here, the user can recognize the foreign object shadow part, but the luminance gradient of the
そこで、まず、ステップS03において、モニタ31上に表示された第一の撮影画像G1の、異物影4Aの位置をユーザがマウス34によりクリックすると、範囲決定部61は、マウス34によるクリック位置を中心にして異物影及びその周辺を含めた所定の大きさの検出範囲Eを決定する。
ここで、この検出範囲Eは、予め規定されていてもよく、また、ユーザがマウス34を移動させて任意の大きさを設定できるようにしてもよい。
Therefore, first, in step S03, when the user clicks the position of the
Here, the detection range E may be defined in advance, or the user may be able to set an arbitrary size by moving the
ステップS04で画像選択部62は、記憶部35のデータベース36に保存されている複数の第二の撮影画像のうち、第一の撮影画像G1と撮影条件が同一又は略同一である第二の撮影画像G2を検索し選択する。
In step S <b> 04, the
この場合、撮影条件の同一性の判断は、第一の撮影画像G1及び第二の撮影画像G2のExif情報に代表される撮影情報を基に行う。
具体的には、Exif情報等の撮影情報における、カメラボディ(カメラ種類)2、絞り値(F値)、焦点距離、撮影時刻、レンズ、撮影距離等が同一であることが判断基準である。
これらの撮影条件のうち、カメラボディ2が同一であることとは本実施形態において必須とする。本実施形態は、同一のカメラボディ2で撮影した場合に、異なる撮影画像であっても、カメラボディ2内に配置されている光学フィルタ12に付着した異物は、同じ位置に影として移り込む現象を利用して異物影を補正するものであるからである。
In this case, the determination of the identity of the shooting conditions is performed based on shooting information represented by the Exif information of the first shot image G1 and the second shot image G2.
Specifically, the criterion is that the camera body (camera type) 2, aperture value (F value), focal length, shooting time, lens, shooting distance, etc. in the shooting information such as Exif information are the same.
Among these photographing conditions, it is essential in the present embodiment that the
その他の撮影条件は、少なくとも1つ以上、特に、絞り値が一致することが好ましく、撮影距離、焦点距離、撮影時間等も同一であることがより好ましい。全ての条件が一致することがさらに好ましい。
画像選択部62により選択される第二の撮影画像G2は、選択条件に応じて、1以上又は複数選択される。なお、1枚も選択されなかった場合は、モニタ31に、選択枚数ゼロ等の警告表示が出るようにしてもよい。
図7は、画像選択部62により第二の撮影画像G2が複数選択された場合の2つの画像G2(1)及びG2(2)を示す図である。
At least one of the other shooting conditions, in particular, the aperture values preferably match, and the shooting distance, the focal length, the shooting time, and the like are more preferably the same. More preferably, all conditions are met.
One or more or a plurality of second captured images G2 selected by the
FIG. 7 is a diagram illustrating two images G2 (1) and G2 (2) when a plurality of second photographed images G2 are selected by the
次に、ステップS05で異物影情報取得部63は、選択された複数の第二の撮影画像G2中の、第一の撮影画像G1中の所定の検出範囲Eに対応する対応範囲E2を特定する。
Next, in step S05, the foreign object shadow
ステップS06で連結領域判定部64は、対応範囲E2内の画像を形成するRGBによる各画素の画像データより輝度平面を求め、輝度平面に対して逆ガンマ補正をかけ、入出力の関係を線形に戻す。そして、逆ガンマ補正後の輝度平面から、輝度勾配平面を生成する。
輝度勾配平面では、異物影の周縁部では高い画素値を示し、空などの一様な平面では低い画素値を示す。つまり、エッジ部分では高い画素値を示し、これによって異物影のエッジ部分を検出できる。
In step S06, the connected
In the luminance gradient plane, a high pixel value is shown at the peripheral part of the foreign object shadow, and a low pixel value is shown in a uniform plane such as the sky. That is, a high pixel value is shown in the edge portion, and thereby the edge portion of the foreign object shadow can be detected.
次に、連結領域判定部64は、所定の閾値を設定して、輝度勾配平面を2値画像に変換する。すなわち、閾値より高い輝度勾配値を有する画素を「1」、閾値より低い明度勾配値を有する画素を「0」と置換する。
そして、ステップS07において、連結領域判定部64は、このようにして得られた2値画像から、「1」の画素が連結した領域(連結画素領域)を抽出する。連結画素領域とは、例えば、矩形の画素の4辺の内の少なくとも1辺で連続した(4近傍の)画素領域とする。この連結画素領域が、異物影の可能性のある領域である。
Next, the connected
In step S07, the connected
ステップS08において、対象領域抽出部65は、連結領域判定部64によって抽出された連結画素領域の中から、異物影のサイズ(大小)に基づいて補正候補領域を抽出する。この対象領域抽出部65における異物影の大きさの判別は、画素数によって規定する。
ここで、対象領域抽出部65は、連結画素領域から補正候補領域を抽出する際において、異物影の絶対的な大きさを基準とする。ここでは、一般的な異物のサイズと異物影のサイズがほぼ等しいものとして、最小100μm×100μm〜最大400μm×400μmの大きさを検出対象とする。
In step S08, the target
Here, the target
そして、対象領域抽出部65では、上記異物影の画素数によって表される面積を閾値として、連結領域判定部64において2値画像から抽出された連結画素領域の大きさ(画素数)がこの閾値内に含まれるものを、補正対象となり得る異物影候補と判定し、選択する。
The target
さらにステップS9において輝度判定部66は、先の連結領域判定部64において説明した輝度値と画像平面に対応する輝度平面とを用い、連結画素領域における内外の輝度を比較する。ここで、ゴミ影は、内部の輝度が周辺の輝度に比較して低く、輝度比(内部の輝度/周辺の輝度)は1よりとても小さい。このため、輝度比が小さい所定の閾値を設定し、連結画像領域の輝度比がこの閾値より小さいに場合にのみ、異物影であると判定し、選択する。
Further, in step S9, the
そしてステップS11において、異物影情報取得部63は、異物影であると判定された影を有する第二の撮影画像G2の範囲E2における、ゲインマップと異物位置情報(座標)を取得する。
In step S11, the foreign object shadow
ここで、異物影が存在すると検出された画像が複数である場合、それらの複数の第二の撮影画像G2中における、範囲E2の輝度の標準偏差をそれぞれ演算する。そして、第二の撮影画像G2のなかで、範囲E2の標準偏差の分散が所定閾値以下となる撮影画像を選択する。 Here, when there are a plurality of images detected as having a foreign object shadow, the standard deviation of the luminance in the range E2 in each of the plurality of second captured images G2 is calculated. Then, a photographed image in which the variance of the standard deviation of the range E2 is equal to or less than a predetermined threshold is selected from the second photographed image G2.
分散が所定閾値以下ということは、範囲E2が平坦な画像、すなわち輝度のばらつきが少ない画像であり、異物影の判断が容易であるからである。
なお、本実施形態では分散が所定値以下であることを用いるが、エッジが少ない画像、ヒストグラムが均一な画像であることを利用してもよい。
The variance is equal to or less than the predetermined threshold value because the range E2 is a flat image, that is, an image with little variation in luminance, and foreign object shadows can be easily determined.
In this embodiment, it is used that the variance is equal to or less than a predetermined value, but it may be used that the image has few edges and the histogram is uniform.
なお、本実施形態では、輝度の分散が少ないことを画像枚数の絞込みに利用するが、本発明はこれに限定されない。例えば、画像枚数を絞りこまずに、複数画像のゲインマップを平均することによりゲインマップと異物位置情報(座標)を得てもよい。
また、第一の撮影画像G1の検出範囲Eとの輝度が最も近い画像を選択してもよい。
さらに、第一の撮影画像G1の検出範囲Eとの色相が最も近い画像を選択してもよい。
また、撮影条件が最も近いものの画像を選択してもよい。
さらに、シャッタ速度が違うものを選択してもよい。シャッタ速度が異なるということは、シーンが違う可能性が高く、異なる被写体を撮影している可能性が高いため、両方に付着している異物であれば、より異物影である可能性が高いからである。
また、上述の各条件(輝度、色相、標準偏差)に重み付けを行って、総合的に判断して第二の撮影画像G2を選択してもよい。
In this embodiment, the fact that the luminance dispersion is small is used for narrowing down the number of images, but the present invention is not limited to this. For example, the gain map and foreign object position information (coordinates) may be obtained by averaging the gain maps of a plurality of images without narrowing down the number of images.
Moreover, you may select the image with the nearest brightness | luminance with the detection range E of the 1st picked-up image G1.
Furthermore, you may select the image with the closest hue with the detection range E of the 1st picked-up image G1.
Alternatively, an image with the closest shooting condition may be selected.
Further, a shutter with a different shutter speed may be selected. Different shutter speeds are more likely to be in different scenes and more likely to be shooting different subjects, so foreign objects attached to both are more likely to be shadows of foreign objects. It is.
Further, the second captured image G2 may be selected by weighting the above-described conditions (luminance, hue, standard deviation) and making a comprehensive determination.
次に、ステップS11において、補正部51は、上述のように選択された第二の撮影画像G2中に写り込んだ異物影情報としてのゲインマップと異物位置情報(座標)を用いて第一の撮影画像を補正して異物影の輝度を低減又は削除する補正を行う。
Next, in step S11, the
すなわち、補正部51は、第一の撮影画像G1中の所定の検出範囲Eについて、第二の撮影画像G2中の所定の検出範囲Eから取得したゲインマップを用い、第一の撮影画像G1の所定の検出範囲Eの輝度に、輝度信号の逆数を掛け算して、ゲイン補正を行う。これにより、第一の撮影画像G1中の所定の検出範囲Eに出現する異物影等の異物による輝度の変化を低減もしくは除去する画像補正を行う。
That is, the
ここで、画像補正が行われた第一の撮影画像G1をモニタ31上に再び表示させて、ユーザにおいて再度、異物影情報検出及び画像の補正処理を行なうか否かを選択させることも可能である。
Here, it is also possible to display the first photographed image G1 subjected to the image correction again on the
以上、本実施形態の画像処理装置50は、撮影画像中に異物影等の異物が写りこんでいる特定位置を任意に選択可能な選択部(マウス)34と、選択された位置を含む一定の範囲を決定する範囲決定部61と、撮影画像と異なる第二の撮影画像を選択する画像選択部62と、を備えている。これにより、通常撮影の前に、異物影等の異物の写り込んだ基準画像を撮影するといった面倒な手数は不要であり、例えば、モニタ31に表示された検出対象となる第一の撮影画像を視て、異物影等が写り込んだ特定位置をマウス34によりクリック(選択)するという簡単な操作を行うだけで、異物検出機能を実行することができる。
As described above, the
画像処理装置50における異物影情報取得部63は、画像選択部62に選択された撮影条件の近い第二の撮影画像中における、範囲決定部61により決定された範囲Eから、第二の撮影画像中に写り込んだ異物影情報を取得する。これにより、第一の撮影画像中の欠陥となる異物影情報を高い精度で検出することができる。また、検出された異物影情報に基づいて撮影画像中における欠陥を適正に補正することができる。
The foreign object shadow
(変形形態)
以上、説明した実施形態に限定されることなく、以下に示すような種々の変形や変更が可能であり、それらも本発明の範囲内である。
(Deformation)
The present invention is not limited to the above-described embodiment, and various modifications and changes as described below are possible, and these are also within the scope of the present invention.
(1)上記実施形態では、電子スチルカメラであるカメラ1によって撮影した画像データを処理する例を説明したが、必ずしもこの内容に限定する必要はない。本発明は、動画を扱うビデオカメラで撮影した画像データにも適用できる。また、カメラつき携帯電話などで撮影した画像データにも適用できる。さらに、コピー機やスキャナ等にも適用できる。すなわち、撮像素子を使用して撮像したあらゆる画像データに対して、本発明を適用することができる。
(1) In the above embodiment, an example in which image data captured by the
(2)上記実施の形態では、電子スチルカメラであるカメラ1で撮影した画像データをPC(パソコン)30で処理して異物の影響を除去する例を説明したが、この内容に限定するものではない。カメラ1にそのようなプログラムを備えてもよい。その場合、カメラ1の液晶画面での欠陥位置の特定は、タッチパネル方式や、カメラ背面に設けられた十字キー等で行ってもよい。
また、プリンタや投影装置などにそのようなプログラムを備えてもよい。すなわち、本発明は、画像データを扱うあらゆる装置に適用することができる。
(2) In the above-described embodiment, the example in which the image data captured by the
Further, such a program may be provided in a printer, a projection device, or the like. That is, the present invention can be applied to any apparatus that handles image data.
(3)PC30で実行するプログラムは、CD−ROMなどの記録媒体に限らず、インターネットなどのデータ信号を通じて提供することができる。
なお、実施形態及び変形形態は、適宜組み合わせて用いることもできるが、詳細な説明は省略する。また、本発明は以上説明した実施形態によって限定されることはない。
(3) The program executed on the
In addition, although embodiment and a deformation | transformation form can also be used in combination as appropriate, detailed description is abbreviate | omitted. Further, the present invention is not limited to the embodiment described above.
1:カメラ、2:カメラボディ、12:光学フィルタ、13:撮像素子、17:メモリカード用IF、18:外部IF、30:パーソナルコンピュータ(PC)、33:CD−ROM、34:マウス(選択部)、36:メモリカード、50:画像処理装置、51:補正部、60:異物影情報検出部、61:範囲決定部、62:画像選択部、63:異物影情報取得部、G1:第一の撮影画像、G2:第二の撮影画像、E:検出範囲 1: Camera, 2: Camera body, 12: Optical filter, 13: Image sensor, 17: Memory card IF, 18: External IF, 30: Personal computer (PC), 33: CD-ROM, 34: Mouse (selection) Part), 36: memory card, 50: image processing device, 51: correction part, 60: foreign object shadow information detection part, 61: range determination part, 62: image selection part, 63: foreign object shadow information acquisition part, G1: first One shot image, G2: second shot image, E: detection range
Claims (11)
前記第一の撮影画像中において、前記位置選択部により選択された位置を含む一定の範囲を決定する範囲決定部と、
前記第一の撮影画像と異なる第二の撮影画像を選択する画像選択部と、
前記第二の撮影画像中における、前記第一の撮影画像の前記一定の範囲に対応する対応範囲から、前記第二の撮影画像中に移りこんだ異物影情報を取得する異物影情報取得部と、を備えること、
を特徴とする画像処理装置。 A position selection unit capable of selecting a specific position in the first captured image;
In the first captured image, a range determination unit that determines a certain range including the position selected by the position selection unit;
An image selection unit for selecting a second captured image different from the first captured image;
A foreign object shadow information acquisition unit that acquires foreign object shadow information that has moved into the second captured image from a corresponding range corresponding to the certain range of the first captured image in the second captured image; Providing,
An image processing apparatus.
前記画像選択部は、前記第二の撮影画像として、前記第一の撮影画像の撮影条件に近い撮影条件で撮影された画像を選択すること、
を特徴とする画像処理装置。 The image processing apparatus according to claim 1,
The image selection unit selects, as the second photographed image, an image photographed under a photographing condition close to the photographing condition of the first photographed image;
An image processing apparatus.
前記撮影条件は、前記第一の撮影画像を撮影したカメラ本体と同一のカメラ本体であることと、絞り値、撮影距離、レンズ、焦点距離、及び撮影時間のうちの少なくとも1つが同一であること、を含むこと、
を特徴とする画像処理装置。 The image processing apparatus according to claim 2,
The shooting condition is that the camera body is the same as the camera body that shot the first captured image, and at least one of an aperture value, a shooting distance, a lens, a focal length, and a shooting time is the same. Including,
An image processing apparatus.
前記異物影情報取得部は、輝度情報を用いて異物影情報を取得すること、
を特徴とする画像処理装置。 The image processing apparatus according to any one of claims 1 to 3,
The foreign object shadow information acquisition unit acquires the foreign object shadow information using luminance information;
An image processing apparatus.
前記画像選択部は、前記第二の撮影画像として、前記第一の撮影画像と同じファイル型式にした場合に、前記対応範囲内に前記異物影情報を有し、かつ、前記対応範囲周辺の輝度が第一の撮影画像と同一又はもっとも近い画像を選択すること、
を特徴とする画像処理装置。 The image processing apparatus according to any one of claims 1 to 4,
The image selection unit has the foreign object shadow information in the corresponding range when the second captured image has the same file type as the first captured image, and brightness around the corresponding range. Select an image that is the same as or closest to the first captured image,
An image processing apparatus.
前記画像選択部は、前記第二の撮影画像として、前記第一の撮影画像と同じファイル型式にした場合に、前記対応範囲内に前記異物影情報を有し、かつ、前記範囲周辺の色相が第一の撮影象画像と同一又はもっとも近い画像を選択すること、
を特徴とする画像処理装置。 The image processing apparatus according to any one of claims 1 to 4,
The image selection unit has the foreign object shadow information in the corresponding range when the second captured image has the same file type as the first captured image, and the hue around the range is Select the same or closest image as the first captured elephant image,
An image processing apparatus.
前記画像選択部は、前記第二の撮影画像として、前記対応範囲内に前記異物影情報を有し、かつ、前記対応範囲周辺の輝度の標準偏差が最も小さい画像を選択すること、
を特徴とする画像処理装置。 The image processing apparatus according to any one of claims 1 to 6,
The image selection unit selects, as the second captured image, an image having the foreign object shadow information in the corresponding range and having the smallest standard deviation of luminance around the corresponding range;
An image processing apparatus.
前記画像選択部は、前記第二の撮影画像における、前記対応範囲の平均した輝度のプロファイルから、前記第一の撮影画像を補正するためのデータを作成すること、
を特徴とする画像処理装置。 The image processing apparatus according to any one of claims 1 to 7,
The image selection unit creates data for correcting the first captured image from the average brightness profile of the corresponding range in the second captured image;
An image processing apparatus.
前記画像選択部は、前記第一の撮影画像以外の撮影画像から、シャッタスピードの異なるものを前記第二の撮影画像として選択すること、
を特徴とする画像処理装置。 The image processing apparatus according to any one of claims 1 to 8,
The image selection unit selects a photographed image other than the first photographed image with a different shutter speed as the second photographed image;
An image processing apparatus.
画像の補正部を備えること、
を特徴とする画像処理装置。 The image processing apparatus according to any one of claims 1 to 9,
Providing an image correction unit;
An image processing apparatus.
を特徴とする画像処理プログラム。 Causing a computer to execute the function of the image processing apparatus according to claim 1;
An image processing program characterized by the above.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011084573A JP2012222509A (en) | 2011-04-06 | 2011-04-06 | Image processor and image processing program |
PCT/JP2012/057604 WO2012133228A1 (en) | 2011-03-31 | 2012-03-23 | Image processing apparatus and image processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011084573A JP2012222509A (en) | 2011-04-06 | 2011-04-06 | Image processor and image processing program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012222509A true JP2012222509A (en) | 2012-11-12 |
Family
ID=47273596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011084573A Pending JP2012222509A (en) | 2011-03-31 | 2011-04-06 | Image processor and image processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012222509A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014125837A1 (en) * | 2013-02-18 | 2014-08-21 | パナソニック株式会社 | Image capture device foreign matter information detection device and foreign matter information detection method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004343519A (en) * | 2003-05-16 | 2004-12-02 | Nikon Corp | Imaging apparatus and image processing apparatus |
JP2008244867A (en) * | 2007-03-27 | 2008-10-09 | Canon Inc | Image processing device, control method thereof, storage medium and imaging apparatus |
-
2011
- 2011-04-06 JP JP2011084573A patent/JP2012222509A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004343519A (en) * | 2003-05-16 | 2004-12-02 | Nikon Corp | Imaging apparatus and image processing apparatus |
JP2008244867A (en) * | 2007-03-27 | 2008-10-09 | Canon Inc | Image processing device, control method thereof, storage medium and imaging apparatus |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014125837A1 (en) * | 2013-02-18 | 2014-08-21 | パナソニック株式会社 | Image capture device foreign matter information detection device and foreign matter information detection method |
JP5610106B1 (en) * | 2013-02-18 | 2014-10-22 | パナソニック株式会社 | Foreign matter information detection device and foreign matter information detection method for imaging apparatus |
US9706110B2 (en) | 2013-02-18 | 2017-07-11 | Panasonic Intellectual Property Management Co., Ltd. | Foreign body information detection device and foreign body information detection method of imaging apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9154697B2 (en) | Camera selection based on occlusion of field of view | |
JP4186699B2 (en) | Imaging apparatus and image processing apparatus | |
JP6173156B2 (en) | Image processing apparatus, imaging apparatus, and image processing method | |
US8442347B2 (en) | Information processing apparatus, information processing method, program, and imaging apparatus including optical microscope | |
JP6267502B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM | |
JP5246078B2 (en) | Object location program and camera | |
JP4466015B2 (en) | Image processing apparatus and image processing program | |
JP6351271B2 (en) | Image composition apparatus, image composition method, and program | |
JP2013106284A (en) | Light source estimation device, light source estimation method, light source estimation program, and imaging apparatus | |
US20130135494A1 (en) | User interface (ui) providing method and photographing apparatus using the same | |
JP5768193B2 (en) | Image processing apparatus, imaging apparatus, image processing method, and image processing program | |
US8537266B2 (en) | Apparatus for processing digital image and method of controlling the same | |
US10896344B2 (en) | Information processing apparatus, information processing method, and computer program | |
JP2013225779A (en) | Image processing device, imaging device, and image processing program | |
JP2007258923A (en) | Image processing apparatus, image processing method, image processing program | |
JP6099973B2 (en) | Subject area tracking device, control method thereof, and program | |
JP6172973B2 (en) | Image processing device | |
JP2012222509A (en) | Image processor and image processing program | |
JP2004222233A (en) | Image processing apparatus and image processing program | |
JP2012222508A (en) | Image processor and image processing program | |
JP2012213075A (en) | Image processor and image processing program | |
WO2012133228A1 (en) | Image processing apparatus and image processing program | |
JP5750934B2 (en) | Image processing apparatus and image processing program | |
JP2013012089A (en) | Image processing device, camera and image processing program | |
JP2012256169A (en) | Image processing system and image processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140306 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150707 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20151110 |