JP2012044542A - Image processing device, method, and program - Google Patents
Image processing device, method, and program Download PDFInfo
- Publication number
- JP2012044542A JP2012044542A JP2010185310A JP2010185310A JP2012044542A JP 2012044542 A JP2012044542 A JP 2012044542A JP 2010185310 A JP2010185310 A JP 2010185310A JP 2010185310 A JP2010185310 A JP 2010185310A JP 2012044542 A JP2012044542 A JP 2012044542A
- Authority
- JP
- Japan
- Prior art keywords
- image
- foreign matter
- position information
- cut
- information
- 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
- 238000000034 method Methods 0.000 title claims description 31
- 238000003384 imaging method Methods 0.000 claims abstract description 21
- 238000006243 chemical reaction Methods 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 17
- 238000003672 processing method Methods 0.000 claims 1
- 239000000428 dust Substances 0.000 description 74
- 230000003287 optical effect Effects 0.000 description 10
- 210000001747 pupil Anatomy 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 239000000126 substance Substances 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
Images
Abstract
Description
本発明は、CCDやCMOSセンサ等の撮像素子を用いた撮像装置における、光学ローパスフィルタ等の光学素子の表面に付着した異物による画質劣化を抑制する技術に関する。 The present invention relates to a technique for suppressing image quality deterioration due to foreign matters adhering to the surface of an optical element such as an optical low-pass filter in an imaging apparatus using an imaging element such as a CCD or a CMOS sensor.
一眼レフ方式等のレンズ交換が可能なデジタルカメラにおいては、構造上、光学系内にゴミ等の異物が混入しやすい。特に撮像素子の前方に配置されたローパスフィルタ等の光学素子の表面に異物が付着すると、撮影画像にその異物の影が写り込み、画像の品質が低下するという問題がある。 In a digital camera capable of exchanging lenses such as a single lens reflex system, foreign matters such as dust are likely to be mixed in the optical system due to its structure. In particular, when a foreign object adheres to the surface of an optical element such as a low-pass filter disposed in front of the image sensor, there is a problem in that the shadow of the foreign object appears in the captured image and the quality of the image decreases.
そこで、レンズの絞りを絞った状態で白い壁等を撮影し、撮像素子上のゴミだけが写った画像を予め用意して通常撮影画像と組み合わせて使用することで、ゴミを目立たなくする方法が知られている(特許文献1参照)。 Therefore, there is a method to make the dust inconspicuous by taking a picture of a white wall etc. with the lens aperture closed and preparing an image showing only dust on the image sensor in combination with a normal shot image. It is known (see Patent Document 1).
しかしながら、この方法では、ゴミ検出用に撮影した画像と、それに関連付ける本撮影画像群との対応付けを常に意識しなくてはならず、煩わしい。 However, in this method, it is necessary to always be aware of the association between the image captured for dust detection and the actual captured image group associated therewith, which is troublesome.
そこで、白い壁等を撮影してゴミの位置を取得した後これをデジタルカメラ上で保持しておき、通常撮影時の画像データにゴミの位置や大きさのリスト(ダスト情報)を添付することが考えられる。例えば別途用意された画像処理装置を用い、添付されたゴミの位置から撮影画像データ上のゴミ位置を解析し、解析された領域を周囲の画素で補間処理することにより目立たなくすることができる(特許文献2参照)。 Therefore, after capturing the position of dust by photographing a white wall etc., hold it on the digital camera and attach a list of dust positions and sizes (dust information) to the image data at the time of normal shooting Can be considered. For example, using a separately prepared image processing device, the dust position on the captured image data is analyzed from the attached dust position, and the analyzed area is interpolated with surrounding pixels to make it inconspicuous ( Patent Document 2).
一方、撮影時に、撮影画像の一部を切り出すことで、アスペクト比を変更した画像を記録したり、被写体をズームアップした画像を記録したりする機能がある。このような機能で生成した画像では、予め保存したゴミの位置をそのまま適用できないため、画像に全体から切り出した位置を記録して、補間処理を行う際にゴミ位置の変換を行うようになっている。 On the other hand, there is a function of recording an image with a changed aspect ratio or recording a zoomed up image of a subject by cutting out a part of the captured image at the time of shooting. In an image generated by such a function, since the position of dust stored in advance cannot be applied as it is, the position cut out from the entire image is recorded, and dust position conversion is performed when performing interpolation processing. Yes.
しかしながら、図2に示すように、撮影画像200から切り出した画像201の近傍にゴミ100がある場合、すなわちゴミ100を囲む円の中心座標D(Xi,Yi)は画像の切り出し位置の外にありながら、ゴミ100自体の大きさによって切り出し画像201に含まれてしまう場合、その含まれた部分の補間処理を行えないという問題がある。
However, as shown in FIG. 2, when there is
本発明は上述した課題に鑑みてなされたものであり、撮影画像の一部を切り出したときにも、その切り出し画像に対する異物除去処理を精度よく行えるようにすることを目的とする。 The present invention has been made in view of the above-described problems, and it is an object of the present invention to perform a foreign substance removal process on a clipped image with high accuracy even when a portion of the captured image is clipped.
本発明の画像処理装置は、撮像手段で得られた異物検出用の撮影画像から抽出された異物の位置情報及び異物の大きさ情報を含む異物情報を取得する異物情報取得手段と、前記撮像手段による通常撮影時の撮影画像から切り出す、切り出し画像の切り出し位置情報を取得する切り出し位置情報取得手段と、前記異物の位置情報及び前記切り出し位置情報に基づいて、異物の位置が前記切り出し画像内にあるか否かを判定する判定手段と、前記判定手段により、異物の位置が前記切り出し画像内にないと判定された場合、前記異物の位置情報を、前記異物の大きさ情報に基づいて第2の異物の位置情報に変換する変換手段とを備えたことを特徴とする。 The image processing apparatus of the present invention includes a foreign object information acquisition unit that acquires foreign object information including foreign object position information and foreign object size information extracted from a captured image for foreign object detection obtained by the imaging unit, and the imaging unit. Based on the cutout position information acquisition means for cutting out the cutout position information of the cutout image cut out from the photographed image at the time of normal shooting by means of, the position of the foreign matter is in the cutout image based on the position information of the foreign matter and the cutout position information If the determination means and the determination means determine that the position of the foreign object is not in the cut-out image, the position information of the foreign object is determined based on the size information of the foreign object. Conversion means for converting into position information of a foreign object.
本発明によれば、撮影画像の一部を切り出したときにも、その切り出し画像に対する異物除去処理を精度よく行うことができる。 According to the present invention, even when a part of a photographed image is cut out, the foreign substance removal process for the cut-out image can be performed with high accuracy.
以下、添付図面を参照して、本発明の好適な実施形態について説明する。
図1は、本発明の実施形態に係る電子カメラの回路構成を示すブロック図である。1はレンズを含む撮像光学系である。2はCCDCMOSセンサ等の撮像素子(光電変換素子)である。3はA/D変換回路であり、撮像素子2で得られたアナログ画像信号をデジタル信号に変換する。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.
FIG. 1 is a block diagram showing a circuit configuration of an electronic camera according to an embodiment of the present invention. Reference numeral 1 denotes an imaging optical system including a lens.
4は画像処理回路(プロセス回路)であり、ガンマ補正等の画像処理を行う。5はメモリ制御回路(記録再生部)であり、画像データの圧縮・伸長を行い、外部メモリ7からの信号の授受を行う。6は画像の展開やカメラの制御に使用するフレームメモリである。7は画像を記録する外部メモリである。8は画像表示用のメモリ(バッファメモリ)である。9は撮影画像等を表示する画像表示部(モニタ)である。10はCPU等からなるシステム制御回路である。
An image processing circuit (process circuit) 4 performs image processing such as gamma correction.
11はレンズ駆動制御回路であり、撮像光学系1のフォーカシング駆動の制御を行う。12は撮影情報表示部であり、シャッター速度や絞り値等を表示する。13はカメラに撮影を指示する撮影指示スイッチである。14はカメラに画像表示を行うよう指示する画像表示スイッチである。15はカメラに設定変更のメニュー画面を表示するように指示する設定変更スイッチである。
次に、上記構成の電子カメラの動作について説明する。始めに、システム制御回路10は、撮影者の操作によるスイッチ13、14、15のいずれかの状態変化を検出し、他の各ブロック及び撮像光学系への電源供給を開始して、各ブロックを使用できる状態にする。
Next, the operation of the electronic camera having the above configuration will be described. First, the
(撮像処理)
撮影者が撮影指示スイッチ13の操作により撮影動作を行った場合、システム制御回路10からの制御信号によって、撮像光学系1が作動し、撮像素子2上に被写体像が結像する。撮像素子2で光電変換された電気信号は、各画素毎に順々にA/D変換回路3を通して所定のデジタル信号に変換された後、画像処理回路4へ入力される。画像処理回路4では、撮像素子2の各画素データを基にRGBの各色信号を生成する。次に、これら各画素データをメモリ6に記憶する。メモリ6に記憶された画像データは、画像表示メモリ8へ転送され、画像表示部9を介して表示される。
(Imaging processing)
When the photographer performs a photographing operation by operating the photographing
(切り出し画像生成処理)
また、システム制御回路10は、メモリ6に記憶された画像データから、予め設定してある画像の切り出し位置情報、例えば図2の左上位置(Xt,Yt)と右下位置(Xb,Yb)といった情報Tに基づいて画像データを切り出す。そして、切り出し画像を新たな画像としてメモリ6に記憶することができる。
(Cut image generation processing)
Further, the
(画像保存処理)
撮影結果を保存する場合は、メモリ6に記憶された画像データを、メモリ制御回路5により所定の圧縮フォーマットに基づいてデータ圧縮し、その結果を外部メモリ7(通常フラッシュメモリ等の不揮発性メモリを使用)に記録する。その際、画像データに付随する情報として、画像の切り出し位置情報T(図2の左上位置(Xt,Yt)と右下位置(Xb,Yb))等の情報を付与することができる。
(Image saving process)
When saving the shooting result, the image data stored in the
また、撮影者が設定変更スイッチ15の操作によりカメラの設定を変更する場合、システム制御回路10から画像表示メモリ8を通して画像表示部9に設定変更画面(メニュー等のユーザーインターフェースにより構成される)を表示して行うことができる。
When the photographer changes the setting of the camera by operating the
(ゴミ検出処理)
図3は、本実施形態に係る電子カメラによるゴミ検出処理(ゴミによって画像不良が生じている画素位置の検出処理)を説明するフローチャートである。ゴミ検出処理は、ゴミ検出用画像を撮像することにより行われる。
(Dust detection process)
FIG. 3 is a flowchart for explaining dust detection processing (detection processing of a pixel position where an image defect is caused by dust) by the electronic camera according to the present embodiment. The dust detection process is performed by capturing a dust detection image.
ゴミ検出処理を行う場合、面光源装置の出射面や白い壁等の均一な色を持つ面に撮像光学系1を向けてカメラを設置し、ゴミ検出の準備を行う。準備が終了した後、例えば撮影指示スイッチ13からゴミ検出処理の開始が指示されると、システム制御回路10は、まず絞りの設定を行う。撮像素子2近傍のゴミはレンズの絞り値によって結像状態が変わり、レンズの瞳位置によって位置が変化する。したがって、異物情報たるゴミ補正データには、ゴミの位置情報及び大きさ情報に加え、ゴミ検出処理時の絞り値とレンズの瞳位置を保持する必要がある。ここでは、例えばF16を指定する(ステップS21)。
When performing dust detection processing, a camera is installed with the imaging optical system 1 facing a surface having a uniform color, such as an emission surface of a surface light source device or a white wall, and preparation for dust detection is performed. After the preparation is completed, for example, when the start of dust detection processing is instructed from the photographing
次に、システム制御回路10は、レンズ駆動制御回路11に対し、撮像光学系1の絞り羽根制御を行わせ、ステップS21で指定された絞り値に絞りを設定する(ステップS22)。また、フォーカス位置を無限遠に設定する(ステップS23)。
Next, the
絞り値とフォーカス位置が設定されると、ゴミ検出処理モードでの撮影を実行する(ステップS24)。これにより、異物検出用の撮影画像であるゴミ検出用画像が得られる。 When the aperture value and the focus position are set, shooting in the dust detection processing mode is executed (step S24). As a result, a dust detection image, which is a captured image for detecting foreign matter, is obtained.
撮影が終了すると、撮影時の絞り値とレンズ瞳位置を取得する(ステップS25)。次に、画像処理回路4とメモリ制御回路5を通してメモリ6に記憶されている撮影画像の各画素に対応するデータを呼び出す(ステップS26)。
When shooting is completed, the aperture value and lens pupil position at the time of shooting are acquired (step S25). Next, data corresponding to each pixel of the captured image stored in the
システム制御回路10は、ゴミが存在する画素の位置と大きさを取得する(ステップS27)。このステップS27のゴミ領域取得処理は、公知の手法、例えば特許文献2に開示された手法を用いればよく、ここではその詳細な説明は省略する。ステップS27のゴミ領域取得処理で取得されるゴミの位置情報とゴミの大きさ情報は、図4に示すように、ゴミ100を囲む円の中心座標D(Xi,Yi)(以下、Diと略す)を位置情報、ゴミ100を囲む円の半径Riを大きさ情報とする。
The
ステップS27で取得したゴミが存在する画素の位置及び大きさ、及びステップS25で取得した絞り値とレンズ瞳位置情報を、ゴミ補正データとして外部メモリ7に登録する(ステップS28)。
The position and size of the pixel where dust is present acquired in step S27, and the aperture value and lens pupil position information acquired in step S25 are registered in the
(ゴミ除去(異物除去)処理)
次に、ゴミ除去処理の流れについて説明する。ゴミ除去処理は、電子カメラではなく、別途用意したパーソナルコンピュータ(PC)等の画像処理装置で行う。図5は、画像処理装置の概略構成を示す図である。CPU1001は、システム全体の動作をコントロールし、一次記憶部1002に格納されたプログラムの実行等を行う。
(Dust removal (foreign matter removal) processing)
Next, the flow of dust removal processing will be described. The dust removal process is performed not by an electronic camera but by an image processing apparatus such as a personal computer (PC) prepared separately. FIG. 5 is a diagram illustrating a schematic configuration of the image processing apparatus. The
一次記憶部1002は、主にメモリであり、二次記憶部1003に記憶されたプログラム等を読み込んで格納する。二次記憶部1003は、例えばハードディスク等がこれに該当する。一般に一次記憶部の容量は二次記憶部の容量より小さく、一次記憶部に格納しきれないプログラムやデータ等は二次記憶部に格納される。また、長時間記憶しなくてはならないデータ等も二次記憶部に格納される。本実施形態では、プログラムを二次記憶部1003に格納し、プログラム実行時に一次記憶部1002に読み込んでCPU1001が実行処理を行う。
The
入力デバイス1004とは、例えばシステムのコントロールに用いるマウスやキーボードの他、画像データの入力に必要なカードリーダー、スキャナ、フィルムスキャナ等がこれに該当する。出力デバイス1005とは、例えばモニタやプリンタ等が挙げられる。この装置の構成方法は他にも様々な形態が考えられるが、本発明の主眼ではないので説明を省略する。
The
図6は、本実施形態に係る画像処理装置によるゴミ除去処理を説明するフローチャートである。まず、画像処理装置は、電子カメラ内又は電子カメラから取り外された外部メモリ7からゴミ補正データが添付された通常撮影画像データを取り込んで、一次記憶部1002又は二次記憶部1003に記憶する(ステップS101)。
FIG. 6 is a flowchart for explaining dust removal processing by the image processing apparatus according to the present embodiment. First, the image processing apparatus takes in normal photographed image data attached with dust correction data from the
次に、通常撮影画像データから、異物情報取得のために、ステップS28で登録されたゴミ補正データを抽出する(ステップS102)。 Next, the dust correction data registered in step S28 is extracted from the normal captured image data in order to acquire foreign substance information (step S102).
次に、ステップS102で抽出したゴミ補正データから、ゴミの位置情報である座標列Di(i=1,2,…,n)、ゴミの大きさ情報である半径列Ri(i=1,2,…,n)、絞り値f1及びレンズ瞳位置L1を取得する(ステップS103)。 Next, from the dust correction data extracted in step S102, a coordinate row Di (i = 1, 2,..., N) which is dust position information and a radius row Ri (i = 1, 2) which is dust size information. ,..., N), the aperture value f1 and the lens pupil position L1 are acquired (step S103).
次に、通常撮影画像の撮影時の絞り値f2とレンズ瞳位置L2を取得する(ステップS104)。そして、ゴミの位置情報である座標Diとゴミの大きさ情報である半径列Riを次式(1)、(2)で変換して、変換後の座標Di’と変換後の半径Ri’を得る(ステップS105)。ここで、dは画像中心から座標Diまでの距離、Hは撮像素子2の表面とゴミとの距離である。ここでの単位はピクセルであり、Ri’についての「+3」はマージン量である。
Di’=(L2×(L1−H)×d/((L2−H)×L1))×Di・・・(1)
Ri’=(Ri×f1/f2+3)・・・(2)
Next, an aperture value f2 and a lens pupil position L2 at the time of photographing a normal photographed image are acquired (step S104). Then, the coordinate Di, which is dust position information, and the radius sequence Ri, which is dust size information, are converted by the following equations (1) and (2), and the converted coordinates Di ′ and the converted radius Ri ′ are obtained. Obtain (step S105). Here, d is the distance from the center of the image to the coordinates Di, and H is the distance between the surface of the
Di ′ = (L2 × (L1-H) × d / ((L2-H) × L1)) × Di (1)
Ri ′ = (Ri × f1 / f2 + 3) (2)
次に、切り出し位置情報取得のために、画像保存時に付与した画像の切り出し位置情報T(図2の左上位置(Xt,Yt)と右下位置(Xb,Yb))を取得する。そして、ステップS105での変換後の座標Di’を、画像の切り出し位置情報T、更には必要に応じてゴミの大きさ情報Riに基づいて変換して、変換後の座標Dia(x,y)又はDib(x,y)を得る(ステップS106)。このゴミ位置変換ルーチンの詳細については後述する。 Next, in order to acquire cutout position information, cutout position information T (upper left position (Xt, Yt) and lower right position (Xb, Yb) in FIG. 2) of the image assigned when the image is stored is acquired. Then, the coordinate Di ′ after the conversion in step S105 is converted based on the cutout position information T of the image and, if necessary, the dust size information Ri, and the converted coordinate Dia (x, y). Or, Div (x, y) is obtained (step S106). Details of the dust position conversion routine will be described later.
次に、ステップS106での変換後の座標Dia(x,y)又はDib(x,y)、及び、ゴミの大きさ情報Ri’で示される領域内のゴミを検出し、必要に応じて補間処理を適用する(ステップS107)。このステップS107の補間処理は、公知の手法、例えば特許文献2に開示された手法を用いればよく、ここではその詳細な説明は省略する。
Next, dust in the area indicated by the coordinate Dia (x, y) or Div (x, y) after the conversion in step S106 and the dust size information Ri ′ is detected and interpolated as necessary. Processing is applied (step S107). The interpolation processing in step S107 may use a known method, for example, the method disclosed in
その後、全てのゴミについてゴミ除去処理を適用したか否かを判定し(ステップS108)、全てのゴミについて処理が終わっていれば処理を終了し、そうでなければステップS107に戻る。 Thereafter, it is determined whether or not dust removal processing has been applied to all dust (step S108). If processing has been completed for all dust, the processing ends. Otherwise, the processing returns to step S107.
(ゴミ位置変換ルーチン)
図7を参照して、図6のステップS106のゴミ位置変換ルーチンの流れを説明する。なお、このゴミ位置変換ルーチンで扱う座標は、切り出し画像201の左上を原点(0,0)とし、右及び下方向を増加する方向としている。
(Dust position conversion routine)
With reference to FIG. 7, the flow of the dust position conversion routine in step S106 of FIG. 6 will be described. Note that the coordinates handled in this dust position conversion routine are such that the upper left of the clipped
まずステップS201で、ステップS105での変換後の座標Di’が、画像の切り出し範囲T(図2の左上位置(Xt,Yt)と右下位置(Xb,Yb))内にあるか否かを判定する。 First, in step S201, it is determined whether or not the coordinate Di ′ after the conversion in step S105 is within the image cutout range T (upper left position (Xt, Yt) and lower right position (Xb, Yb) in FIG. 2). judge.
ステップS201で座標Di’が画像の切り出し範囲T内にあれば、ステップS202に進み、座標Di’を切り出し画像201を基準とした座標に次式(3)で変換し、座標Di’を変換後の座標Dia(x,y)で置き換える。その後、ステップS207に進む。
Dia(x,y)=Di’−(Xt,Yt)・・・(3)
If the coordinate Di ′ is within the cutout range T of the image in step S201, the process proceeds to step S202, where the coordinate Di ′ is converted into a coordinate based on the
Dia (x, y) = Di ′ − (Xt, Yt) (3)
一方、ステップS201で座標Di’が画像の切り出し範囲T内になければ,ステップS203に進み、座標Di’を切り出し画像201を基準とした座標に変換するとともに、ゴミの大きさ情報Riに基づいて変換する。ステップS203では、座標Di’を以下のいずれかの条件に従って変換し、座標Di’を変換後の座標Dib(x,y)(第2の異物の位置情報)で置き換える。
Di’がT(図2の左上位置(Xt,Yt)と右下位置(Xb,Yb))より上位置にある場合、
Dib(x,y)=Di’−(Xt,Yt)+(0,Ri)
Di’がT(図2の左上位置(Xt,Yt)と右下位置(Xb,Yb))より下位置にある場合、
Dib(x,y)=Di’−(Xt,Yt)−(0,Ri)
Di’がT(図2の左上位置(Xt,Yt)と右下位置(Xb,Yb))より左位置にある場合、
Dib(x,y)=Di’−(Xt,Yt)+(Ri,0)
Di’がT(図2の左上位置(Xt,Yt)と右下位置(Xb,Yb))より右位置にある場合、
Dib(x,y)=Di’−(Xt,Yt)−(Ri,0)
On the other hand, if the coordinate Di ′ is not within the cutout range T of the image in step S201, the process proceeds to step S203, where the coordinate Di ′ is converted into a coordinate based on the
When Di ′ is above T (upper left position (Xt, Yt) and lower right position (Xb, Yb) in FIG. 2),
Dib (x, y) = Di ′ − (Xt, Yt) + (0, Ri)
When Di ′ is below T (upper left position (Xt, Yt) and lower right position (Xb, Yb) in FIG. 2),
Dib (x, y) = Di ′ − (Xt, Yt) − (0, Ri)
When Di ′ is at a position to the left of T (upper left position (Xt, Yt) and lower right position (Xb, Yb) in FIG. 2),
Dib (x, y) = Di ′ − (Xt, Yt) + (Ri, 0)
When Di ′ is at the right position from T (upper left position (Xt, Yt) and lower right position (Xb, Yb) in FIG. 2),
Dib (x, y) = Di ′ − (Xt, Yt) − (Ri, 0)
次に、ステップS204で、第2の判定として、ステップS203で変換した座標Dib(x,y)が画像の切り出し位置範囲T内にあるか否かを判定する。座標Dib(x,y)が画像の切り出し範囲T内にあれば、ステップS205に進み、座標Di’を変換後の座標Dib(x,y)で置き換える。その後、ステップS207に進む。 Next, in step S204, as a second determination, it is determined whether or not the coordinates Div (x, y) converted in step S203 are within the cutout position range T of the image. If the coordinate Div (x, y) is within the image cutout range T, the process proceeds to step S205, and the coordinate Di 'is replaced with the converted coordinate Div (x, y). Thereafter, the process proceeds to step S207.
一方、座標Dib(x,y)が画像の切り出し範囲T内になければ,ステップS206に進み、座標Di’を座標列から削除し、ゴミ除去処理の対象としないようにする。この場合は、ゴミの位置が切り出し画像201の外であって、ゴミ自体の大きさによっても切り出し画像201に含まれない場合であり、ゴミ除去処理の対象外としたものである。
On the other hand, if the coordinate Dib (x, y) is not within the image cutout range T, the process proceeds to step S206, where the coordinate Di 'is deleted from the coordinate sequence so that it is not subject to dust removal processing. In this case, the position of the dust is outside the
ステップS207で、全ての座標についてゴミ位置情報の変換を適用したか否かを判定し、全ての座標について処理が終わっていれば処理を終了し、そうでなければステップS201に戻る。 In step S207, it is determined whether the conversion of dust position information has been applied to all coordinates. If the processing has been completed for all coordinates, the process ends. If not, the process returns to step S201.
以上述べたように、切り出して作成した画像に対してでも、後のゴミ除去処理において、ゴミの位置が切り出し範囲外にあるにもかかわらず、ゴミの端が切り出し画像内にあるようなゴミであっても、ゴミの除去処理を適用することができるようになる。 As described above, even in the case of an image created by cutting out, in the subsequent dust removal processing, even if the position of the dust is outside the clipping range, Even in such a case, the dust removal process can be applied.
(その他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。すなわち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other embodiments)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.
1001:CPU、1002:一次記憶部、1003:二次記憶部、1004:入力デバイス、1005:出力デバイス 1001: CPU, 1002: primary storage unit, 1003: secondary storage unit, 1004: input device, 1005: output device
Claims (4)
前記撮像手段による通常撮影時の撮影画像から切り出す、切り出し画像の切り出し位置情報を取得する切り出し位置情報取得手段と、
前記異物の位置情報及び前記切り出し位置情報に基づいて、異物の位置が前記切り出し画像内にあるか否かを判定する判定手段と、
前記判定手段により、異物の位置が前記切り出し画像内にないと判定された場合、前記異物の位置情報を、前記異物の大きさ情報に基づいて第2の異物の位置情報に変換する変換手段とを備えたことを特徴とする画像処理装置。 Foreign matter information acquisition means for acquiring foreign matter information including foreign matter position information and foreign matter size information extracted from a captured image for foreign matter detection obtained by the imaging means;
Cutout position information acquisition means for acquiring cutout position information of a cutout image cut out from a captured image at the time of normal shooting by the imaging means;
Determining means for determining whether or not the position of the foreign object is in the cut-out image based on the position information of the foreign object and the cut-out position information;
Conversion means for converting the position information of the foreign object into position information of the second foreign object based on the size information of the foreign object when the determination unit determines that the position of the foreign object is not in the cut-out image; An image processing apparatus comprising:
前記第2の判定手段により、変換後の異物の位置が前記切り出し画像内にあると判定された場合、前記第2の異物の位置情報及び前記異物の大きさ情報に基づいて、前記切り出し画像に対して異物除去のための補間処理を行うことを特徴とする請求項1に記載の画像処理装置。 Based on the position information of the second foreign matter and the cutout position information, further comprising second determination means for determining whether the position of the foreign matter after conversion is in the cutout image;
When the second determination means determines that the position of the foreign matter after conversion is in the cutout image, the cutout image is determined based on the position information of the second foreign matter and the size information of the foreign matter. The image processing apparatus according to claim 1, wherein an interpolation process for removing foreign matter is performed on the image processing apparatus.
前記撮像手段による通常撮影時の撮影画像から切り出す、切り出し画像の切り出し位置情報を取得するステップと、
前記異物の位置情報及び前記切り出し位置情報に基づいて、異物の位置が前記切り出し画像内にあるか否かを判定するステップと、
異物の位置が前記切り出し画像内にないと判定された場合、前記異物の位置情報を、前記異物の大きさ情報に基づいて第2の異物の位置情報に変換するステップとを有することを特徴とする画像処理方法。 Acquiring foreign matter information including foreign matter position information and foreign matter size information extracted from a captured image for foreign matter detection obtained by the imaging means;
A step of obtaining cutout position information of a cutout image cut out from a shot image at the time of normal shooting by the imaging means;
Determining whether the position of the foreign object is in the cut-out image based on the position information of the foreign object and the cut-out position information;
Converting the position information of the foreign object into position information of a second foreign object based on the size information of the foreign object when it is determined that the position of the foreign object is not in the cut-out image. Image processing method.
前記撮像手段による通常撮影時の撮影画像から切り出す、切り出し画像の切り出し位置情報を取得する処理と、
前記異物の位置情報及び前記切り出し位置情報に基づいて、異物の位置が前記切り出し画像内にあるか否かを判定する処理と、
異物の位置が前記切り出し画像内にないと判定された場合、前記異物の位置情報を、前記異物の大きさ情報に基づいて第2の異物の位置情報に変換する処理とをコンピュータに実行させるためのプログラム。 Processing for acquiring foreign matter information including foreign matter position information and foreign matter size information extracted from a captured image for foreign matter detection obtained by the imaging means;
A process of obtaining cutout position information of a cutout image cut out from a shot image at the time of normal shooting by the imaging unit;
A process for determining whether or not the position of the foreign object is in the cut-out image based on the position information of the foreign object and the cut-out position information;
In order to cause the computer to execute processing for converting the position information of the foreign object into the position information of the second foreign object based on the size information of the foreign object when it is determined that the position of the foreign object is not in the cut-out image Program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010185310A JP2012044542A (en) | 2010-08-20 | 2010-08-20 | Image processing device, method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010185310A JP2012044542A (en) | 2010-08-20 | 2010-08-20 | Image processing device, method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012044542A true JP2012044542A (en) | 2012-03-01 |
Family
ID=45900308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010185310A Pending JP2012044542A (en) | 2010-08-20 | 2010-08-20 | Image processing device, method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012044542A (en) |
-
2010
- 2010-08-20 JP JP2010185310A patent/JP2012044542A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4989385B2 (en) | Imaging apparatus, control method thereof, and program | |
JP6267502B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM | |
JP2007215151A (en) | Imaging apparatus, control method thereof, and program | |
JP2006287803A (en) | Imaging device | |
JP2007189467A (en) | Image processor, image processing method, and program | |
JP2010288240A (en) | Imaging apparatus, control method of the same, and program | |
KR20120002834A (en) | Image pickup apparatus for providing reference image and method for providing reference image thereof | |
JP2012008307A (en) | Imaging apparatus and display method | |
JP2007081732A (en) | Imaging apparatus | |
JP2008172507A (en) | Imaging apparatus | |
JP2012044243A (en) | Image processing apparatus, imaging apparatus and image processing program | |
JP2006033291A (en) | Imaging apparatus, method of controlling the same and processing program thereof | |
JP2011055361A (en) | Image processing apparatus and imaging apparatus | |
KR20120110869A (en) | Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method | |
US11055871B2 (en) | Image capturing apparatus, control method for the same, and storage medium | |
JP2006217249A (en) | Electronic camera, electronic camera system and program | |
JP5332668B2 (en) | Imaging apparatus and subject detection program | |
JP2012044542A (en) | Image processing device, method, and program | |
US10897571B2 (en) | Image capturing apparatus, control method for the same, and storage medium | |
JP2007333909A (en) | Electronic camera | |
JP2012156884A (en) | Control device and computer program | |
JP4902512B2 (en) | Imaging apparatus, control method thereof, and program | |
JP6278688B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM | |
JP5094571B2 (en) | Imaging apparatus, control method thereof, and program | |
JP2019062369A (en) | Imaging apparatus and control method thereof, electronic device and control method thereof, and program |