JP6331258B2 - Imaging apparatus and method - Google Patents
Imaging apparatus and method Download PDFInfo
- Publication number
- JP6331258B2 JP6331258B2 JP2013086043A JP2013086043A JP6331258B2 JP 6331258 B2 JP6331258 B2 JP 6331258B2 JP 2013086043 A JP2013086043 A JP 2013086043A JP 2013086043 A JP2013086043 A JP 2013086043A JP 6331258 B2 JP6331258 B2 JP 6331258B2
- Authority
- JP
- Japan
- Prior art keywords
- false color
- color
- determination result
- pixel
- false
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003384 imaging method Methods 0.000 title claims description 9
- 238000000034 method Methods 0.000 title description 30
- 238000001514 detection method Methods 0.000 claims description 58
- 235000019557 luminance Nutrition 0.000 claims description 41
- 230000000295 complement effect Effects 0.000 claims description 25
- 239000011159 matrix material Substances 0.000 claims description 13
- 239000003086 colorant Substances 0.000 claims description 12
- 230000002093 peripheral effect Effects 0.000 claims description 10
- 230000003287 optical effect Effects 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 description 7
- 230000035945 sensitivity Effects 0.000 description 3
- 230000003595 spectral effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000003708 edge detection Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Landscapes
- Color Television Image Signal Generators (AREA)
Description
本発明は、偽色を検出する偽色検出装置及び方法に関する。 The present invention relates to a false color detection apparatus and method for detecting a false color.
固体撮像素子を用いて被写体像を撮像するデジタルカメラが知られている。固体撮像素子は複数の画素を有し、1つの画素に1色のカラーフィルタが設けられる。画像を構成する1つの画素は3つの色成分を有するため、不足する色成分を周辺画素の色成分で補間する。そのため、固体撮像素子の画素の間隔よりも高い周波数を有する被写体像が入射したとき、固体撮像素子の画素が被写体像を正確にサンプリング及び補間できず、画像に偽色が発生する。偽色を検出する手段を開示する文献として特許文献1及び2が知られている。特許文献1は、固体撮像素子が出力した画像信号に対してエッジ検出を行い、高輝度な部位を検出する。そして、検出した部位に近接する領域における色差成分の値が所定の範囲内にあるか否かに応じて偽色を検出する。特許文献2は、被写体像に合焦した画像と合焦していない画像とを比較して偽色を検出する。
A digital camera that captures a subject image using a solid-state image sensor is known. The solid-state imaging device has a plurality of pixels, and one color filter is provided for each pixel. Since one pixel constituting the image has three color components, the insufficient color component is interpolated with the color components of the surrounding pixels. Therefore, when a subject image having a frequency higher than the interval between the pixels of the solid-state image sensor is incident, the pixels of the solid-state image sensor cannot accurately sample and interpolate the subject image, and a false color is generated in the image.
しかし、特許文献1による構成では、被写体像の周波数が高すぎると固体撮像素子が被写体像を解像できず、被写体像のエッジを捉えることができない。被写体像のエッジを捉えることができないとエッジ検出できないため、偽色を検出できない。また、色差成分の値に基づいて偽色を検出する構成では、偽色以外の部分をも検出してしまうおそれがある。また、特許文献2による構成では、被写体像に合焦した画像と合焦していない画像とを撮像した瞬間にタイムラグがあるため、これらの2枚の画像を比較することが困難となるおそれがある。加えて、比較するために、2枚の画像において特徴点をそれぞれ抽出して被写体像の位置を合わせるなどの特殊な処理が必要となる。この特殊な処理は、装置を複雑にするとともに、コスト上昇を招く。
However, in the configuration according to
本発明はこれらの問題に鑑みてなされたものであり、画像に含まれる偽色を検出する偽色検出装置及び方法を得ることを目的とする。 The present invention has been made in view of these problems, and an object thereof is to obtain a false color detection apparatus and method for detecting a false color included in an image.
本願第1の発明による偽色検出装置は、輝度成分及び色差成分により画素の色を表した画像データを取得し、所定の色空間において偽色が生じやすい第1の偽色領域を決定し、第1の偽色領域と補色関係にある第2の偽色領域を決定する演算部と、画像データに含まれる注目画素を成す色差成分が第1の偽色領域に含まれるか否かを示す第1の判断結果を作成し、注目画素を成す色差成分が第2の偽色領域に含まれるか否かを示す第2の判断結果を作成し、第1の判断結果及び第2の判断結果に基づいて画像データに偽色が含まれるか否かを判断する検出部を備えることを特徴とする。 The false color detection device according to the first invention of the present application acquires image data representing the color of a pixel by a luminance component and a color difference component, determines a first false color region in which a false color is likely to occur in a predetermined color space, An arithmetic unit that determines a second false color area that is complementary to the first false color area, and whether or not a color difference component that forms a pixel of interest included in the image data is included in the first false color area. A first determination result is generated, a second determination result indicating whether or not the color difference component forming the target pixel is included in the second false color region is generated, and the first determination result and the second determination result are generated. And a detection unit that determines whether or not the image data includes a false color.
演算部は、注目画素の色差成分から成る行列を所定の回転角度で回転変換して回転色差成分を作成し、検出部は、回転色差成分が第1の偽色領域に含まれるか否かを示す第1の判断結果を作成し、回転色差成分が第2の偽色領域に含まれるか否かを示す第2の判断結果を作成することが好ましい。 The calculation unit rotates the matrix composed of the color difference components of the pixel of interest at a predetermined rotation angle to create a rotation color difference component, and the detection unit determines whether the rotation color difference component is included in the first false color region. It is preferable that a first determination result is generated, and a second determination result indicating whether or not the rotation color difference component is included in the second false color region is generated.
色空間は、直交する2つの色差成分により規定される二次元直交座標系で表される平面が好適である。 The color space is preferably a plane represented by a two-dimensional orthogonal coordinate system defined by two orthogonal color difference components.
色空間は、色差に対応する偏角と彩度に対応する動径とにより規定される二次元極座標系で表される平面が好適である。 The color space is preferably a plane represented by a two-dimensional polar coordinate system defined by the declination corresponding to the color difference and the radius corresponding to the saturation.
検出部は、注目画素の色差成分が第1の偽色領域に含まれ、かつ注目画素から所定の範囲内にある周辺画素の色差成分が第2の偽色領域に含まれるか否かを示す第1の最終判断結果を作成し、注目画素の色差成分が第2の偽色領域に含まれ、かつ注目画素から所定の範囲内にある周辺画素の色差成分が第1の偽色領域に含まれるか否かを示す第2の最終判断結果を作成し、第1の最終判断結果及び第2の最終判断結果に基づいて注目画素が偽色画素であるか否か判断することが好ましい。 The detection unit indicates whether or not the color difference component of the pixel of interest is included in the first false color region and the color difference component of the peripheral pixels within a predetermined range from the pixel of interest is included in the second false color region. A first final determination result is created, the color difference component of the target pixel is included in the second false color area, and the color difference components of peripheral pixels within a predetermined range from the target pixel are included in the first false color area It is preferable to create a second final determination result indicating whether or not the target pixel is a false color pixel based on the first final determination result and the second final determination result.
注目画素の色差成分が第1の偽色領域に含まれ、かつ注目画素から所定の範囲内にある周辺画素の色差成分が第2の偽色領域に含まれることを第1の最終判断結果が示し、かつ注目画素の色差成分が第2の偽色領域に含まれ、かつ注目画素から所定の範囲内にある周辺画素の色差成分が第1の偽色領域に含まれることを第2の最終判断結果が示す場合に、注目画素を偽色画素であると判断してもよい。 The first final determination result indicates that the color difference component of the pixel of interest is included in the first false color area and the color difference component of the peripheral pixel within the predetermined range from the pixel of interest is included in the second false color area. And the second final color region includes a color difference component of the target pixel included in the second false color region and a color difference component of peripheral pixels within a predetermined range from the target pixel included in the first false color region. When the determination result indicates, the target pixel may be determined to be a false color pixel.
所定の範囲は、画像データが有する画素数に応じて決定され、画素数が多くなるにつれて所定の範囲が広くなるように構成されてもよい。 The predetermined range may be determined according to the number of pixels included in the image data, and may be configured such that the predetermined range becomes wider as the number of pixels increases.
検出部は、第2の判断結果から高周波成分を除去して得られる第2の除去結果を作成し、第2の除去結果と第1の判断結果とに基づいて第1の除去判断結果を作成し、第1の判断結果から高周波成分を除去して得られる第1の除去結果を作成し、第1の除去結果と第2の判断結果とに基づいて第2の除去判断結果を作成し、第1の除去判断結果と第2の除去判断結果とに基づいて、注目画素を偽色画素であると判断してもよい。 The detection unit creates a second removal result obtained by removing high-frequency components from the second judgment result, and creates a first removal judgment result based on the second removal result and the first judgment result Creating a first removal result obtained by removing the high frequency component from the first judgment result, creating a second removal judgment result based on the first removal result and the second judgment result, Based on the first removal determination result and the second removal determination result, the target pixel may be determined to be a false color pixel.
検出部は、第1の判断結果において第1の偽色領域に含まれると判断されている注目画素の輝度と、第2の判断結果において第2の偽色領域に含まれると判断されている全ての画素の輝度との相加平均である第1の輝度を算出し、第2の判断結果において第2の偽色領域に含まれると判断されている注目画素の輝度と、第1の判断結果において第1の偽色領域に含まれると判断されている全ての画素の輝度との相加平均である第2の輝度を算出し、第1の輝度と第2の輝度との差が閾値よりも小さい場合に、注目画素が偽色を含むと判断してもよい。 The detection unit is determined to be included in the second false color region in the second determination result and the luminance of the target pixel determined to be included in the first false color region in the first determination result. The first luminance that is an arithmetic average of the luminances of all the pixels is calculated, and the luminance of the pixel of interest that is determined to be included in the second false color region in the second determination result, and the first determination A second luminance that is an arithmetic average of all the pixels determined to be included in the first false color region in the result is calculated, and a difference between the first luminance and the second luminance is a threshold value. If it is smaller, the target pixel may be determined to contain a false color.
検出部は、第1の判断結果において第1の偽色領域に含まれると判断されている注目画素の彩度と、第2の判断結果において第2の偽色領域に含まれると判断されている全ての画素の彩度との二乗平均平方根である第1の彩度を算出し、第2の判断結果において第2の偽色領域に含まれると判断されている注目画素の彩度と、第1の判断結果において第1の偽色領域に含まれると判断されている全ての画素の彩度との二乗平均平方根である第2の彩度を算出し、第1の彩度と第2の彩度との差が閾値よりも小さい場合に、注目画素が偽色を含むと判断してもよい。 The detection unit is determined to be included in the second false color region in the second determination result and the saturation of the target pixel determined to be included in the first false color region in the first determination result. Calculating the first saturation which is a root mean square with the saturation of all the pixels being present, and the saturation of the pixel of interest determined to be included in the second false color region in the second determination result; A second saturation which is a root mean square with the saturation of all the pixels determined to be included in the first false color region in the first determination result is calculated, and the first saturation and the second saturation are calculated. When the difference from the saturation of is smaller than the threshold value, it may be determined that the target pixel includes a false color.
演算部は、画像データを作成した機器の特性に応じて回転角度を決定することが好ましい。 The calculation unit preferably determines the rotation angle according to the characteristics of the device that created the image data.
画像データは、入射光の光路上に設けられるカラーフィルタを介して被写体像を撮像する撮像素子により作成され、演算部は、カラーフィルタの特性に応じて回転角度を決定してもよい。 The image data may be created by an image sensor that captures a subject image via a color filter provided on the optical path of incident light, and the calculation unit may determine the rotation angle according to the characteristics of the color filter.
演算部は、画像データを作成するときに用いた画像処理に応じて回転角度を決定してもよい。 The computing unit may determine the rotation angle according to the image processing used when creating the image data.
第1の判断結果及び第2の判断結果から除去する高周波成分の範囲は、画像データが有する画素数に応じて決定され、画素数が多くなるにつれて範囲を広げてもよい。 The range of the high-frequency component removed from the first determination result and the second determination result is determined according to the number of pixels included in the image data, and the range may be expanded as the number of pixels increases.
本願第2の発明による撮像装置は、前記偽色検出装置と、画像データを作成する撮像素子と、撮像素子に入射する光の光路上に設けられるカラーフィルタとを備え、演算部は、カラーフィルタの特性に応じて回転角度を決定することを特徴とする。 An imaging device according to a second invention of the present application includes the false color detection device, an imaging device that creates image data, and a color filter that is provided on an optical path of light incident on the imaging device, and the arithmetic unit includes a color filter The rotation angle is determined in accordance with the characteristics.
本願第3の発明による偽色検出方法は、輝度成分と色差成分とから画素の色を表した画像データを取得するするステップと、所定の色空間において偽色が生じやすい第1の偽色領域を決定するステップと、第1の偽色領域と補色関係にある第2の偽色領域を決定するステップと、注目画素を成す色差成分が第1の偽色領域に含まれるか否かを示す第1の判断結果を作成するステップと、注目画素を成す色差成分が第2の偽色領域に含まれるか否かを示す第2の判断結果を作成するステップと、第1の判断結果及び第2の判断結果に基づいて画像データに偽色が含まれるか否かを判断するするステップとを備えることを特徴とする。 According to a third aspect of the present invention, there is provided a false color detection method comprising: obtaining image data representing a pixel color from a luminance component and a color difference component; and a first false color region in which a false color is likely to occur in a predetermined color space. Determining a second false color area having a complementary color relationship with the first false color area, and whether or not the first false color area includes a color difference component forming the target pixel. Creating a first judgment result, creating a second judgment result indicating whether or not the color difference component forming the target pixel is included in the second false color area, the first judgment result, and the first judgment result And determining whether or not the image data includes a false color based on the determination result of 2.
本願第4の発明による偽色検出プログラムは、輝度成分と色差成分とから画素の色を表した画像データを取得するステップと、所定の色空間において偽色が生じやすい第1の偽色領域を決定するステップと、第1の偽色領域と補色関係にある第2の偽色領域を決定するステップと、注目画素を成す色差成分が第1の偽色領域に含まれるか否かを示す第1の判断結果を作成するステップと、注目画素を成す色差成分が第2の偽色領域に含まれるか否かを示す第2の判断結果を作成するステップと、第1の判断結果及び第2の判断結果に基づいて画像データに偽色が含まれるか否かを判断するするステップとを備えることを特徴とする。 A false color detection program according to a fourth invention of the present application includes a step of acquiring image data representing a pixel color from a luminance component and a color difference component, and a first false color region in which a false color is likely to occur in a predetermined color space. A step of determining, a step of determining a second false color region complementary to the first false color region, and a first indicating whether or not a color difference component forming the target pixel is included in the first false color region A first determination result, a second determination result indicating whether or not the color difference component forming the target pixel is included in the second false color region, the first determination result, and the second determination result And determining whether or not the image data includes a false color based on the determination result.
本発明によれば、画像に含まれる偽色を検出する偽色検出装置及び方法を得る。 According to the present invention, a false color detection apparatus and method for detecting a false color included in an image is obtained.
本願発明の第1の実施形態による偽色検出装置について図1から7を用いて説明する。図1は、偽色検出装置を備えるデジタルカメラ100を示す。図1を用いてデジタルカメラ100の構成について説明する。
A false color detection apparatus according to a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 shows a
デジタルカメラ100は、DSP110、撮像素子であるCMOS121、合焦レンズ131、及びLCD122を主に備える。
The
合焦レンズ131は、複数のレンズにより構成され、デジタルカメラ100のボディに畳まれて格納され、デジタルカメラ100が撮影画像を記録する動作モードに設定されたとき、ボディから繰り出される。繰り出された合焦レンズ131は被写体に合焦して、CMOS121に被写体像を結像させる。合焦レンズ131の外周面にはピント調整リング132及び駆動モータ133が設けられる。駆動モータ133は合焦レンズ131を駆動して被写体に合焦させる。ピント調整リング132はユーザにより回転され、合焦レンズ131を被写体に合焦させる。
The focusing
合焦レンズ131とCMOS121との間の光路上には絞り羽根123、シャッター幕124が設けられる。絞り羽根123はCMOS121に到達する光量を調節し、シャッター幕124は、合焦レンズ131からCMOS121までの光路を開閉する。
A
CMOS121は、複数の画素121aと、その画素121aの1つ1つに設けられるカラーフィルタ121bとを備える。1枚のカラーフィルタ121bは、赤、緑、及び青の3色のうち、いずれか1つの色を有する。赤、緑、及び青のカラーフィルタ121bは、例えばベイヤー配列などの配列法に従って並べられる。CMOS121は、DSP110が生成する同期クロック信号を受信し、これに同期して動作する。複数の画素121aは結像した被写体像を撮像して電荷として出力する。CMOS121は、電荷の大きさにより構成される画像データを連続的にDSP110へ出力する。すなわち画像データは、輝度成分及び色差成分によって各画素121aの色を表現する。
The
DSP110は、検出部111及び演算部112を主に備える。検出部111及び演算部112は、画像データに含まれる偽色を検出する。これらの部材の詳細については後述される。
The
DSP110は、画像データに基づいて合焦レンズ131が被写体に合焦しているか否かを判断し、判断に応じた信号を駆動回路125に送信する。駆動回路125は、受信した信号に応じて駆動モータ133を動作させる。これにより、合焦レンズ131が被写体に合焦する。
The
DSP110は、メモリ127を一時記憶装置として用いながら画像データに所定の処理を施した後、画像ファイルを作成してメモリカード128に送信するとともに、処理済みの画像データをLCD122に連続的に送信する。メモリカード128は、例えばSDカードであって、デジタルカメラ100に対して着脱自在となるように設けられ、受信した画像ファイルを保存する。LCD122は、受信した画像データを表示する。
The
DSP110には、操作スイッチ126が接続される。操作スイッチ126は、シャッターレリーズボタンを備える。シャッターレリーズボタンは二段階スイッチであり、ユーザが半押しすると半押し信号をDSP110に送信し、全押しすると全押し信号をDSP110に送信する。
An
DSP110が半押し信号を受信すると、受信した画像データに応じて、絞り値及びシャッター速度を算出し、LCD122は補正画像を表示する。DSP110が全押し信号を受信すると、算出済みの絞り値及びシャッター速度で絞り羽根123及びシャッター幕124を駆動させ、CMOS121に被写体像を撮像させる。そしてCMOS121から取得した画像データに対して所定の画像処理を施し、メモリカード128に送信する。メモリカード128は、受信した画像ファイルを保存する。
When the
次に、図2及び3を用いて演算部112について説明する。図2(a)は、2つの色差成分により規定される座標系において、偽色が発生しやすい領域20を示す。この座標系は、直交する2つの色差成分により規定される二次元直交座標系であるとともに、色差に対応する偏角と彩度に対応する動径とにより規定される二次元極座標系でもある。以下、色差Cbを横軸、色差Crを縦軸として説明する。
Next, the
偽色が発生しやすい領域20は、カラーフィルタ121bの分光感度や、DSP110が実行する画像処理で行われる色補正処理などに応じて適宜決定される。分光感度や色補正処理は画像を作成した機器によって異なる。そのため、画像を作成した機器に応じて決定してもよい。領域20を決定する手段について説明する。まず、回転角度を決定すべき機器を用いて、CZP(Circular Zone Plate)チャートを撮像する。これにより得られる画像データは偽色を有する。そこで、この画像データが有する輝度成分と色差成分を用いて、図2(a)に示す座標系において偽色が発生する領域を決定する。偽色が発生する程度に応じて、領域20の大きさが変更される。
The
次に、この領域20内に、矩形の第1の未回転偽色領域21bと第2の未回転偽色領域22bを設定する(図2(b)参照)。領域20を矩形の領域に近似することにより、画像データの色差成分が含まれるか否かの判断が容易となる。しかしながら、第1の未回転偽色領域21bと第2の未回転偽色領域22bの長手方向が縦軸に対して平行でなく傾いているため、これらの領域に画像データの色差成分が含まれるか否かを判断すると、計算が複雑となり、計算負荷が大きくなる。そこで、第1の未回転偽色領域21bと第2の未回転偽色領域22bとを回転変換することにより第1の回転偽色領域21cと第2の回転偽色領域22cを作成する(図2(c)参照)。第1の回転偽色領域21cと第2の回転偽色領域22cの長手方向は縦軸に対して平行であるため、これらの領域に画像データの色差成分が含まれるか否かを判断すれば、計算が容易となり、計算負荷を抑えることができる。第1の回転偽色領域21cと第2の回転偽色領域22cとは、互いに補色関係にあり、これらの縦方向の長さは彩度と一致し、これらの横方向の長さは色相と一致する。
Next, a rectangular first unrotated
回転変換の角度は、領域20を決定する手段と同様に、カラーフィルタ121bの分光感度、DSP110が実行する画像処理で行われる色補正などに応じて適宜決定される。すなわち、画像を作成した機器に応じて決定される。回転角度を決定する手段について説明する。領域20を決定する手段と同様に、回転角度を決定すべき機器を用いてCZPチャートを撮像し、偽色が発生する領域を決定する。そして、この領域を回転変換したとき、領域の長手方向が縦軸と平行になるような回転角度を求める。求められた回転角度が、その機器固有の回転角度である。回転前の色差成分を(Cb,Cr)、回転後の色差成分を(Cb’,Cr’)、回転角度をθとすると、回転後の色差成分(Cb’,Cr’)は以下の式により表される。
Cb’=Cb・cosθ−Cr・sinθ
Cr’=Cb・sinθ+Cr ・cosθ
演算部112は、この式を用いて、取得した画像データの色差成分を回転変換し、回転色差成分を作成する。言い換えると、演算部112が画像データの色相を回転変換する。この処理を回転変換処理という。
Similar to the means for determining the
Cb ′ = Cb · cos θ−Cr · sin θ
Cr ′ = Cb · sin θ + Cr · cos θ
Using this equation, the
図3は、図2(a)に示されるものと異なる特性を持つ機器の偽色が発生しやすい領域30aを示した図である。領域30a内に、矩形の第1の未回転偽色領域31aと第2の未回転偽色領域32aが設定されている(図3(a)参照)。
FIG. 3 is a diagram showing a
図2の領域20が長手方向に一直線に延びるのに対して、領域30aは「く」の字型に折れ曲がっている。そのため、領域30a全体を一定の回転角度で回転させても、2つの回転偽色領域の長手方向は縦軸と平行にならない。そこで、第1の未回転偽色領域31aの長手方向が縦軸と平行になるような第1の回転角度θ1と、第2の未回転偽色領域32aの長手方向が縦軸と平行になるような第2の回転角度θ2を求める。求められた第1の回転角度θ1及び第2の回転角度θ2が、その機器固有の回転角度である。演算部112は、第1の回転角度θ1及び第2の回転角度θ2を用いて、取得した画像データの色差成分を回転変換し、回転色差成分を作成する。言い換えると、演算部112が画像データの色相を回転変換する。この処理を回転変換処理という。
While the
次に、図2及び4を用いて検出部111について説明する。検出部111は、画像データに含まれる各画素121aの色差成分が第1の回転偽色領域21cと第2の回転偽色領域22cに含まれるか否かを判断し、その結果に応じて画像データに偽色が含まれるか否かを決定する。すなわち、偽色を有する可能性がある画素121a(偽色可能性画素)に対し、その偽色可能性画素から所定の範囲内に、その偽色可能性画素と補色関係にある偽色可能性画素が存在する場合、その偽色可能性画素が偽色を有すると判断する。以下、この処理について詳細に説明する。
Next, the
まず、検出部111は、画像データを構成する画素121aから検査対象である注目画素を1つ選択する。そして、注目画素を成す色差成分が第1の回転偽色領域21cに含まれるか否かを判断する。そして、第1の回転偽色領域21cに含まれる場合には値1を判断結果として出力し、含まれない場合には値0を判断結果として出力する。この処理を全ての画素121aに対して実行する。出力された判断結果を画素121aの配列に対応するように並べて得られる行列が第1の中間判断結果である。同様にして注目画素を成す色差成分が第2の回転偽色領域22cに含まれるか否かを判断し、第2の中間判断結果を作成する。
First, the detecting
次に、検出部111は、第1の中間判断結果において値1を有する注目画素を検出し、第2の中間判断結果におけるその注目画素及び注目画素から所定の範囲内の画素121aの値に1が含まれるか否かを判断する。図4(a)は、第1の中間判断結果において値1を有する注目画素41と、その注目画素から2画素分の範囲に含まれる画素121aの値を示す。図4(b)及び図4(c)は、第2の中間判断結果の一部であって、注目画素を中心とする行列であり、第1の中間判断結果において値1を有する注目画素に対応する画素42と、その注目画素から2画素分の範囲に含まれる画素121aの値を示す。図4(b)及び図4(c)は、5×5の正方行列であり、注目画素から2画素分の範囲が所定の範囲に相当する。所定の範囲は、画像データが有する画素数に応じて決定され、画素数が多くなるにつれて所定の範囲が広くなる。図4(b)には値1を取る画素121aが含まれる。しかし図4(c)には値1を取る画素121aが含まれず、全ての画素121aの値が0を取る。図4(b)に示すように、第1の中間判断結果において値1を有する注目画素のうち、第2の中間判断結果におけるその注目画素及び注目画素から所定の範囲内の画素121aの値に1が含まれるとき、注目画素に偽色が含まれると判断して値1を判断結果として出力する。他方、図4(c)に示すように、第1の中間判断結果において値1を有する注目画素のうち、第2の中間判断結果におけるその注目画素及び注目画素から所定の範囲内の画素121aの値に1が含まれないとき、注目画素に偽色が含まれないと判断し、値0を判断結果として出力する。この処理を全ての画素121aに対して実行する。出力された判断結果を画素121aの配列に対応するように並べて得られる行列が第1の最終判断結果である。同様にして、検出部111は、第2の中間判断結果において値1を有する注目画素を検出し、第1の中間判断結果におけるその注目画素及び注目画素から所定の範囲内の画素121aの値に1が含まれるか否かを判断する。判断結果を画素121aの配列に対応するように並べて得られる行列が第2の最終判断結果である。
Next, the
そして、検出部111は、第1の最終判断結果と第2の最終判断結果とを対応する画素毎に加算して、偽色判定結果を作成する。偽色判定結果は、画像データの画素121aが作る行列と同じ行列であり、行列において対応する要素の値が1であるとき、その画素121aは偽色であると判断されていることを示し、対応する要素の値が0であるとき、その画素121aは偽色でないと判断されていることを示す。
Then, the
次に、図5を用いて第1の偽色判定処理について説明する。第1の偽色判定処理は、演算部112及び検出部111によって実行される処理である。
Next, the first false color determination process will be described with reference to FIG. The first false color determination process is a process executed by the
初めのステップS51では、演算部112が画像データを読み込む。画像データは、例えばJPEG形式のような輝度成分及び色差成分から構成される画像データである。
In the first step S51, the
次のステップS52では、演算部112が画像データの色相を回転変換処理して回転色差成分を作成する。
In the next step S52, the
次のステップS53では、検出部111が第1の中間判断結果及び第2の中間判断結果を作成する。
In the next step S53, the
次のステップS54では、検出部111が、第1の中間判断結果及び第2の中間判断結果に基づいて第1の最終判断結果及び第2の最終判断結果を作成した後、第1の最終判断結果と第2の最終判断結果とを加算して偽色判定結果を作成する。これにより、偽色を持つ画素121aが検出される。
In the next step S54, after the
本実施形態によれば、第1の回転偽色領域21cと、第1の回転偽色領域21cと補色関係にある第2の回転偽色領域22cとを用いて偽色の判定を行うため、偽色と同じような配色を誤って偽色と判断することを防止し、精度良く偽色を検出できる。
According to the present embodiment, since the false color determination is performed using the first rotation
また、演算部112が回転変換を行うことにより、計算が複雑となることを防ぎ、計算負荷を減らすことができる。
In addition, since the
さらに、画像データの画素数が増えるに従って、前述した所定の範囲を拡大、すなわち図4(b)及び図4(c)に示す正方行列の大きさを大きくすることにより、画像データの画素数に適した範囲を設定して、精度良く偽色を含む領域を検出できる。 Further, as the number of pixels of the image data increases, the predetermined range described above is expanded, that is, by increasing the size of the square matrix shown in FIGS. 4B and 4C, the number of pixels of the image data is increased. By setting a suitable range, it is possible to accurately detect a region including a false color.
次に、図2、5、及び6を用いて第2の実施形態について説明する。第2の実施形態は、第1の中間判断結果又は第2の中間判断結果にLPF(ローパスフィルタ)を掛けてから第1の最終判断結果及び第2の最終判断結果を算出する点が第1の実施形態と異なる。第1の実施形態と同様の構成については、同じ符号を付して説明を省略する。 Next, a second embodiment will be described with reference to FIGS. In the second embodiment, the first final determination result and the second final determination result are calculated after the first intermediate determination result or the second intermediate determination result is subjected to LPF (low pass filter). Different from the embodiment. The same components as those in the first embodiment are denoted by the same reference numerals and description thereof is omitted.
次に、図6を用いて検出部111について説明する。検出部111は、画像データに含まれる各画素121aの色差成分が第1の回転偽色領域21cと第2の回転偽色領域22cに含まれるか否かを判断し、その結果にLPFを掛けた結果に応じて画像データに偽色が含まれるか否かを決定する。以下、これらの処理について詳細に説明する。第1の中間判断結果及び第2の中間判断結果を作成する手順に関しては第1の実施形態と同様であるため、説明を省略する。
Next, the
図6(a)は5×5のサイズを有するLPFを示し、図6(b)は第2の中間判断結果を示す。ここで、注目画素をA13とすると、A13に対してLPFを掛けて得られる値LPF_A13は以下の式により求められる。
LPF_A13=L1・A1+L2・A2+L3・A3+L4・A4+L5・A5+L6・A6+L7・A7+L8・A8+L9・A9+L10・A10+L11・A11+L12・A12+L13・A13+L14・A14+L15・A15+L16・A16+L17・A17+L18・A19+L20・A20+L21・A21+L22・A22+L23・A23+L24・A24+L25・A25
同様の処理を第2の中間判断結果に含まれる全ての画素121aに対して行い、第2の除去結果を得る。そして、第1の中間判断結果と第2の除去結果とを同じ位置にある要素毎に乗算を行う。乗じた要素と同じ位置に乗算の結果を配置した結果が第1の除去判断結果である。これにより、第1の中間判断結果と第2の除去結果との双方において0でない値を取る画素121aのみが、第1の除去判断結果において0でない値を取ることになり、いずれかにおいて値が0である画素121aは第1の除去判断結果において値0を取ることになる。同様にして、検出部111は、第1の中間判断結果に対してLPFを掛けて第1の除去結果を得る。そして第2の中間判断結果と第1の除去結果とを同じ位置にある要素毎に乗算を行い、第2の除去判断結果を得る。第1の中間判断結果及び第2の中間判断結果に対してLPFを掛けると、第1の除去結果及び第2の除去結果において0でない値を取る領域が拡大する。つまり、第1の中間判断結果及び第2の中間判断結果から高周波成分を除去すると第1の偽色領域に含まれる画素が第2の判断結果において増え、第2の偽色領域に含まれる画素が第1の判断結果において増える。すなわち、偽色を含む可能性がある領域が拡大する。これにより、より確実に偽色を含む領域を検出できる。
FIG. 6A shows an LPF having a size of 5 × 5, and FIG. 6B shows a second intermediate determination result. Here, assuming that the target pixel is A13, a value LPF_A13 obtained by multiplying A13 by LPF is obtained by the following equation.
LPF_A13 = L1 ・ A1 + L2 ・ A2 + L3 ・ A3 + L4 ・ A4 + L5 ・ A5 + L6 ・ A6 + L7 ・ A7 + L8 ・ A8 + L9 ・ A9 + L10 ・ A10 + L11 ・ A11 + L12 ・ A12 + L13 ・ A18 + L15 ・ A14 + L15 A25
Similar processing is performed on all the
そして、検出部111は、第1の除去判断結果と第2の除去判断結果とを対応する要素毎に加算して、偽色判定結果を作成する。偽色判定結果は、画像データの画素121aが作る行列と同じ行列であり、行列において対応する要素の値が1であるとき、その画素121aは偽色であると判断されており、対応する要素の値が0であるとき、その画素121aは偽色でないと判断されている。
Then, the
図6(c)は、全ての要素が同じ値を取るLPFの一例である。補色関係にある第1の回転偽色領域21cと第2の回転偽色領域22cに含まれるか否かを判断して作成される第1の中間判断結果と第2の中間判断結果は、通常、同じ位置に値1を取る要素、すなわち第1の回転偽色領域21c又は第2の回転偽色領域22cに含まれる画素121aを持たない。ここで、第2の中間判断結果に対してLPFを掛けると、第2の除去結果において0でない値を取る領域、すなわち偽色を含む可能性がある領域が第2の中間判断結果よりも拡大する。これにより、第2の除去結果と第1の中間判断結果とが補色関係となる。
FIG. 6C is an example of an LPF in which all elements have the same value. The first intermediate determination result and the second intermediate determination result created by determining whether or not they are included in the first rotation
また、第1の中間判断結果及び第2の中間判断結果に対してLPFを掛ける回数を増やすにつれて、第1の除去結果及び第2の除去結果において0でない値を取る領域が拡大していく。そこで、画像データの画素数が増えるに従って、LPFを掛ける回数を増やせば、偽色を含む可能性がある領域を拡大して、より確実に偽色を含む領域を検出できる。 Further, as the number of times of applying the LPF to the first intermediate determination result and the second intermediate determination result is increased, a region that takes a non-zero value in the first removal result and the second removal result is expanded. Therefore, if the number of times of applying the LPF is increased as the number of pixels of the image data is increased, the area that may contain the false color can be expanded and the area containing the false color can be detected more reliably.
あるいは、LPFのサイズを大きくするにつれて、第1の除去結果及び第2の除去結果において0でない値を取る領域を拡大することもできる。そこで、画像データの画素数が増えるに従って、LPFのサイズを大きくすれば、偽色を含む可能性がある領域を拡大して、より確実に偽色を含む領域を検出できる。 Alternatively, as the size of the LPF is increased, a region that takes a non-zero value in the first removal result and the second removal result can be expanded. Therefore, if the size of the LPF is increased as the number of pixels of the image data is increased, the area that may contain the false color can be expanded, and the area containing the false color can be detected more reliably.
次に、図5を用いて第2の偽色判定処理について説明する。第2の偽色判定処理は、演算部及び検出部111によって実行される処理である。
Next, the second false color determination process will be described with reference to FIG. The second false color determination process is a process executed by the calculation unit and
ステップS51からS53は、第1の偽色判定処理と同じであるため、説明を省略する。 Steps S51 to S53 are the same as the first false color determination process, and thus description thereof is omitted.
ステップS54では、検出部111が、第1の中間判断結果及び第2の中間判断結果に基づいて第1の除去判断結果と第2の除去判断結果を作成した後、第1の除去判断結果と第2の除去判断結果とを加算して偽色判定結果を作成する。これにより、偽色を持つ画素121aが検出される。
In step S54, after the
本実施形態によれば、第1の実施形態と同様の効果を備えると共に、従来の撮像装置が備えるLPFを用いて偽色を検出できるため、新たな構成要素を設けずに、従来の画像処理ICでも偽色を精度良く検出することができる。 According to the present embodiment, the same effects as those of the first embodiment can be provided, and a false color can be detected using the LPF included in the conventional imaging apparatus. Therefore, conventional image processing can be performed without providing a new component. An IC can detect false colors with high accuracy.
また、画像データの画素数が増えるに従って、LPFを掛ける回数を増やすことにより、偽色を含む可能性がある領域を拡大して、より確実に偽色を含む領域を検出できる。 Further, by increasing the number of times of applying the LPF as the number of pixels of the image data increases, it is possible to expand the region that may contain the false color and more reliably detect the region that includes the false color.
さらに、画像データの画素数が増えるに従って、LPFのサイズを大きくすることにより、偽色を含む可能性がある領域を拡大して、より確実に偽色を含む領域を検出できる。 Furthermore, by increasing the size of the LPF as the number of pixels of the image data increases, it is possible to enlarge the area that may contain false colors and more reliably detect areas that contain false colors.
次に、図4及び7を用いて第3の実施形態について説明する。第3の実施形態は、第1の中間判断結果及び第2の中間判断結果の作成と、第1の除去判断結果と第2の除去判断結果の作成との間に、輝度及び彩度を判定する点が第1及び第2の実施形態と異なる。第1及び第2の実施形態と同様の構成については、同じ符号を付して説明を省略する。 Next, a third embodiment will be described with reference to FIGS. In the third embodiment, brightness and saturation are determined between the creation of the first intermediate judgment result and the second intermediate judgment result and the creation of the first removal judgment result and the second removal judgment result. This is different from the first and second embodiments. The same components as those in the first and second embodiments are denoted by the same reference numerals and description thereof is omitted.
次に、図4及び7を用いて第3の偽色判定処理について説明する。第3の偽色判定処理は、演算部112及び検出部111によって実行される処理である。
Next, the third false color determination process will be described with reference to FIGS. The third false color determination process is a process executed by the
ステップS51からS53は、第1及び第2の偽色判定処理と同じであるため、説明を省略する。 Steps S51 to S53 are the same as the first and second false color determination processes, and a description thereof will be omitted.
次のステップS71では、輝度を用いて偽色を判定する。より詳しく説明すると、図4(a)の第1の中間判断結果において値1を取る注目画素の輝度と、第1の中間判断結果と補色関係にある図4(b)の第2の中間判断結果において値1を取る全ての画素121aの輝度との相加平均を算出する。そして得られた値を第1の輝度とする。同様に、第2の中間判断結果において値1を取る注目画素の輝度と、第2の中間判断結果と補色関係にある第1の中間判断結果において値1を取る全ての画素121aの輝度との相加平均を算出する。そして得られた値を第2の輝度とする。次に、第1の輝度と第2の輝度との差を求め、予め定めた閾値よりも差が小さい場合には偽色を含む可能性があると判断して、第1の中間判断結果において対応する画素121a(注目画素)の値を1のまま維持する。他方、差が閾値以上である場合には偽色を含む可能性がないと判断し、第1の中間判断結果において対応する画素121a(注目画素)の値を1から0に変更する。偽色が発生した画素121aでは、補色関係にある色差成分どうしは大きく異なるが、輝度成分どうしは差が少ない現象を利用したものである。すなわち、色差成分の差が大きく、かつ輝度成分の差が少ない画素121aを、偽色を含む可能性があると判断する。これにより、補色関係にある色を有する物体が近接している被写体を撮像する場合に、補色関係にある色を誤って偽色と判断してしまうことを防止できる。
In the next step S71, the false color is determined using the luminance. More specifically, the luminance of the pixel of interest that takes the
次のステップS72では、彩度を用いて偽色を判定する。より詳しく説明すると、図4(a)の第1の中間判断結果において値1を取る注目画素の彩度と、第1の中間判断結果と補色関係にある図4(b)の第2の中間判断結果において値1を取る全ての画素121aの彩度との相加平均を算出する。彩度は、色差Cbと色差Crとの二乗平均平方根である。そして得られた値を第1の彩度とする。同様に、第2の中間判断結果において値1を取る注目画素の彩度と、第2の中間判断結果と補色関係にある第1の中間判断結果において値1を取る全ての画素121aの彩度との相加平均を算出する。そして得られた値を第2の彩度とする。次に、第1の彩度と第2の彩度との差を求め、予め定めた閾値よりも差が小さい場合には偽色を含む可能性があると判断して、第1の中間判断結果において対応する画素121a(注目画素)の値を1のまま維持する。他方、差が閾値以上である場合には偽色を含む可能性がないと判断し、第1の中間判断結果において対応する画素121a(注目画素)の値を1から0に変更する。偽色が発生した画素121aでは、補色関係にある色差成分どうしは大きく異なるが、彩度成分どうしは差が少ない現象を利用したものである。すなわち、色差成分の差が大きく、かつ彩度成分の差が少ない画素121aを、偽色を含む可能性があると判断する。これにより、補色関係にある色を有する物体が近接している被写体を撮像する場合に、補色関係にある色を誤って偽色と判断してしまうことを防止できる。
In the next step S72, the false color is determined using the saturation. More specifically, the saturation of the pixel of interest that takes the
次のステップS54では、検出部111が、第1の中間判断結果及び第2の中間判断結果に基づいて第1の最終判断結果及び第2の最終判断結果を作成した後、第1の最終判断結果と第2の最終判断結果とを加算して偽色判定結果を作成する。これにより、偽色を持つ画素121aが検出される。
In the next step S54, after the
本実施形態によれば、補色関係にある色を有する物体が近接している被写体を撮像する場合に、補色関係にある色を誤って偽色と判断してしまうことを防止できる。また、補色関係にある一方で輝度や彩度が異なる被写体を偽色と判断してしまうことを防止できる。 According to the present embodiment, it is possible to prevent a color having a complementary color relationship from being erroneously determined as a false color when an object having an object having a complementary color relationship is imaged. In addition, it is possible to prevent a subject having different luminance and saturation from being determined as a false color while having a complementary color relationship.
なお第3の実施形態において、第3の偽色判定処理における、輝度を用いた偽色の判定と彩度を用いた偽色の判定は、いずれか一方のみを実行しても良い。 In the third embodiment, only one of the false color determination using luminance and the false color determination using saturation may be executed in the third false color determination process.
また第3の実施形態において、色差Cbと色差Crとの二乗平均平方根を彩度であると説明したが、色差Cbと色差Crとの二乗平均を彩度として使用しても良い。 In the third embodiment, the root mean square of the color difference Cb and the color difference Cr is described as saturation, but the root mean square of the color difference Cb and the color difference Cr may be used as saturation.
なお、いずれの実施形態においても、検出部111は、第1の回転偽色領域21cと第2の回転偽色領域22cではなく、第1の未回転偽色領域21b、31aと第2の未回転偽色領域22b、32aに画素121aの色差成分が含まれるか否かを判断することにより、偽色を検出しても良い。
In any of the embodiments, the
また、第1の偽色判定処理のステップS51及び第2の偽色判定処理のステップS71において、輝度成分及び色差成分から構成されるJPEG形式以外の形式のファイル、例えばRAW形式を読み込んでも良い。このとき、輝度成分及び色差成分から構成されない画像データに関しては、画像データを輝度成分及び色差成分に変換する。 Further, in step S51 of the first false color determination process and step S71 of the second false color determination process, a file of a format other than the JPEG format composed of the luminance component and the color difference component, for example, the RAW format may be read. At this time, for image data that is not composed of a luminance component and a color difference component, the image data is converted into a luminance component and a color difference component.
21b 第1の未回転偽色領域
21c 第1の回転偽色領域
22b 第2の未回転偽色領域
22c 第2の回転偽色領域
31a 第1の未回転偽色領域
32a 第2の未回転偽色領域
41 注目画素
42 画素
100 デジタルカメラ
110 DSP
111 検出部
112 演算部
121 CMOS
121a 画素
121b カラーフィルタ
122 LCD
123 絞り羽根
124 シャッター幕
125 駆動回路
126 操作スイッチ
127 メモリ
128 メモリカード
131 合焦レンズ
132 ピント調整リング
133 駆動モータ
21b First unrotated
111
123
Claims (18)
前記第1の偽色領域内に第1の矩形領域を設定し、前記第2の偽色領域内に第2の矩形領域を設定し、
前記画像データに含まれる注目画素を成す色差成分が前記第1の矩形領域に含まれるか否かを示す第1の判断結果を作成し、前記注目画素を成す色差成分が前記第2の矩形領域に含まれるか否かを示す第2の判断結果を作成し、
前記第1の判断結果及び前記第2の判断結果に基づいて前記画像データに偽色が含まれるか否かを判断する検出部を備える偽色検出装置。 Image data representing pixel colors by luminance components and color difference components is acquired, a first false color area in which false colors are likely to be generated in a predetermined color space is determined, and a complementary color relationship with the first false color area is obtained. An arithmetic unit for determining a second false color region;
Setting a first rectangular area in the first false color area, setting a second rectangular area in the second false color area;
A first determination result indicating whether or not a color difference component forming a target pixel included in the image data is included in the first rectangular area is generated, and the color difference component forming the target pixel is the second rectangular area Create a second decision result that indicates whether or not
A false color detection device including a detection unit that determines whether or not a false color is included in the image data based on the first determination result and the second determination result.
前記画像データに含まれる注目画素を成す色差成分が前記第1の偽色領域に含まれるか否かを示す第1の判断結果を作成し、前記注目画素を成す色差成分が前記第2の偽色領域に含まれるか否かを示す第2の判断結果を作成し、前記第1の判断結果及び前記第2の判断結果に基づいて前記画像データに偽色が含まれるか否かを判断し、さらに、
前記注目画素の色差成分が前記第1の偽色領域に含まれ、かつ前記注目画素から所定の範囲内にある周辺画素の色差成分が前記第2の偽色領域に含まれるか否かを示す第1の最終判断結果を作成し、前記注目画素の色差成分が前記第2の偽色領域に含まれ、かつ前記注目画素から所定の範囲内にある周辺画素の色差成分が前記第1の偽色領域に含まれるか否かを示す第2の最終判断結果を作成し、前記第1の最終判断結果及び前記第2の最終判断結果に基づいて前記注目画素が偽色画素であるか否か判断する検出部を備える偽色検出装置。 Image data representing pixel colors by luminance components and color difference components is acquired, a first false color area in which false colors are likely to be generated in a predetermined color space is determined, and a complementary color relationship with the first false color area is obtained. An arithmetic unit for determining a second false color region;
A first determination result indicating whether or not a color difference component that forms a target pixel included in the image data is included in the first false color region is created, and a color difference component that forms the target pixel is the second false color A second determination result indicating whether or not the image data is included in the color area is created, and it is determined whether or not the image data includes a false color based on the first determination result and the second determination result. ,further,
Indicates whether or not the color difference component of the target pixel is included in the first false color region and the color difference component of surrounding pixels within a predetermined range from the target pixel is included in the second false color region. A first final determination result is created, and a color difference component of the pixel of interest is included in the second false color region, and a color difference component of a peripheral pixel within a predetermined range from the pixel of interest is the first false color Whether or not the pixel of interest is a false color pixel is generated based on the first final determination result and the second final determination result, and a second final determination result indicating whether or not the pixel is included in the color region is created. A false color detection device including a detection unit for determining.
前記検出部は、前記回転色差成分が前記第1の偽色領域に含まれるか否かを示す第1の判断結果を作成し、前記回転色差成分が前記第2の偽色領域に含まれるか否かを示す第2の判断結果を作成する請求項1または2に記載の偽色検出装置。 The calculation unit rotates a matrix composed of color difference components of the target pixel at a predetermined rotation angle to create a rotation color difference component,
The detection unit creates a first determination result indicating whether or not the rotation color difference component is included in the first false color region, and whether or not the rotation color difference component is included in the second false color region. The false color detection apparatus according to claim 1, wherein a second determination result indicating whether or not is generated.
前記画像データを作成する撮像素子と、
前記撮像素子に入射する光の光路上に設けられるカラーフィルタとを備え、
前記演算部は、前記カラーフィルタの特性に応じて前記回転角度を決定する撮像装置。 The false color detection device according to claim 3,
An image sensor for creating the image data;
A color filter provided on an optical path of light incident on the image sensor,
The said calculating part is an imaging device which determines the said rotation angle according to the characteristic of the said color filter.
所定の色空間において偽色が生じやすい第1の偽色領域を決定するステップと、
前記第1の偽色領域と補色関係にある第2の偽色領域を決定するステップと、
注目画素を成す色差成分が前記第1の偽色領域に含まれるか否かを示す第1の判断結果を作成するステップと、
前記注目画素を成す色差成分が前記第2の偽色領域に含まれるか否かを示す第2の判断結果を作成するステップと、
前記第1の判断結果及び前記第2の判断結果に基づいて前記画像データに偽色が含まれるか否かを判断するステップと、
前記注目画素の色差成分が前記第1の偽色領域に含まれ、かつ前記注目画素から所定の範囲内にある周辺画素の色差成分が前記第2の偽色領域に含まれるか否かを示す第1の最終判断結果を作成し、前記注目画素の色差成分が前記第2の偽色領域に含まれ、かつ前記注目画素から所定の範囲内にある周辺画素の色差成分が前記第1の偽色領域に含まれるか否かを示す第2の最終判断結果を作成し、前記第1の最終判断結果及び前記第2の最終判断結果に基づいて前記注目画素が偽色画素であるか否か判断するステップとを備える偽色検出方法。 Obtaining image data representing the color of a pixel from a luminance component and a color difference component;
Determining a first false color region in which a false color is likely to occur in a predetermined color space;
Determining a second false color area that is complementary to the first false color area;
Creating a first determination result indicating whether or not a color difference component forming a target pixel is included in the first false color region;
Creating a second determination result indicating whether or not a color difference component forming the target pixel is included in the second false color region;
Determining whether the image data includes a false color based on the first determination result and the second determination result;
Indicates whether or not the color difference component of the target pixel is included in the first false color region and the color difference component of surrounding pixels within a predetermined range from the target pixel is included in the second false color region. A first final determination result is created, and a color difference component of the pixel of interest is included in the second false color region, and a color difference component of a peripheral pixel within a predetermined range from the pixel of interest is the first false color Whether or not the pixel of interest is a false color pixel is generated based on the first final determination result and the second final determination result, and a second final determination result indicating whether or not the pixel is included in the color region is created. A false color detection method comprising: determining.
所定の色空間において偽色が生じやすい第1の偽色領域を決定するステップと、
前記第1の偽色領域と補色関係にある第2の偽色領域を決定するステップと、
注目画素を成す色差成分が前記第1の偽色領域に含まれるか否かを示す第1の判断結果を作成するステップと、
前記注目画素を成す色差成分が前記第2の偽色領域に含まれるか否かを示す第2の判断結果を作成するステップと、
前記第1の判断結果及び前記第2の判断結果に基づいて前記画像データに偽色が含まれるか否かを判断するステップと、
前記注目画素の色差成分が前記第1の偽色領域に含まれ、かつ前記注目画素から所定の範囲内にある周辺画素の色差成分が前記第2の偽色領域に含まれるか否かを示す第1の最終判断結果を作成し、前記注目画素の色差成分が前記第2の偽色領域に含まれ、かつ前記注目画素から所定の範囲内にある周辺画素の色差成分が前記第1の偽色領域に含まれるか否かを示す第2の最終判断結果を作成し、前記第1の最終判断結果及び前記第2の最終判断結果に基づいて前記注目画素が偽色画素であるか否か判断するステップとを備える偽色検出プログラム。
Obtaining image data representing the color of a pixel from a luminance component and a color difference component;
Determining a first false color region in which a false color is likely to occur in a predetermined color space;
Determining a second false color area that is complementary to the first false color area;
Creating a first determination result indicating whether or not a color difference component forming a target pixel is included in the first false color region;
Creating a second determination result indicating whether or not a color difference component forming the target pixel is included in the second false color region;
Determining whether the image data includes a false color based on the first determination result and the second determination result;
Indicates whether or not the color difference component of the target pixel is included in the first false color region and the color difference component of surrounding pixels within a predetermined range from the target pixel is included in the second false color region. A first final determination result is created, and a color difference component of the pixel of interest is included in the second false color region, and a color difference component of a peripheral pixel within a predetermined range from the pixel of interest is the first false color Whether or not the pixel of interest is a false color pixel is generated based on the first final determination result and the second final determination result, and a second final determination result indicating whether or not the pixel is included in the color region is created. A false color detection program comprising the step of determining.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013086043A JP6331258B2 (en) | 2013-04-16 | 2013-04-16 | Imaging apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013086043A JP6331258B2 (en) | 2013-04-16 | 2013-04-16 | Imaging apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014209689A JP2014209689A (en) | 2014-11-06 |
JP6331258B2 true JP6331258B2 (en) | 2018-05-30 |
Family
ID=51903653
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013086043A Active JP6331258B2 (en) | 2013-04-16 | 2013-04-16 | Imaging apparatus and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6331258B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6501106B2 (en) * | 2015-01-30 | 2019-04-17 | リコーイメージング株式会社 | Image detection apparatus, image detection method and imaging apparatus |
JP6525139B2 (en) * | 2015-03-10 | 2019-06-05 | リコーイメージング株式会社 | Image detection apparatus, image detection method and imaging apparatus |
CN112652027B (en) * | 2020-12-30 | 2024-03-22 | 凌云光技术股份有限公司 | Pseudo color detection method and system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001245307A (en) * | 2000-03-01 | 2001-09-07 | Matsushita Electric Ind Co Ltd | Image pickup device |
JP4717294B2 (en) * | 2001-09-20 | 2011-07-06 | キヤノン株式会社 | Image processing method, imaging apparatus, and program |
JP2005260675A (en) * | 2004-03-12 | 2005-09-22 | Olympus Corp | Image processor and program |
JP4403397B2 (en) * | 2004-07-21 | 2010-01-27 | ソニー株式会社 | User interface providing device |
JP4539299B2 (en) * | 2004-11-08 | 2010-09-08 | ソニー株式会社 | Image processing apparatus, image processing method, and computer program |
US7577292B2 (en) * | 2005-12-30 | 2009-08-18 | Microsoft Corporation | Automatic removal of purple fringing from images |
JP4487320B2 (en) * | 2008-03-04 | 2010-06-23 | 村田機械株式会社 | Image processing apparatus, document reading apparatus, and color / monochrome determination method |
-
2013
- 2013-04-16 JP JP2013086043A patent/JP6331258B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2014209689A (en) | 2014-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9055181B2 (en) | Solid-state imaging device, image processing apparatus, and a camera module having an image synthesizer configured to synthesize color information | |
JP6173156B2 (en) | Image processing apparatus, imaging apparatus, and image processing method | |
WO2019119842A1 (en) | Image fusion method and apparatus, electronic device, and computer readable storage medium | |
US20150278996A1 (en) | Image processing apparatus, method, and medium for generating color image data | |
JP6460653B2 (en) | Image processing apparatus, imaging apparatus including the same, image processing method, and image processing program | |
WO2014065056A1 (en) | Imaging device, image processing method, and program | |
JP2007174277A (en) | Video signal processor, imaging apparatus, video signal processing method, and computer program | |
US9307168B2 (en) | Image capture apparatus and method for controlling image capture apparatus in which defective pixels are indicated | |
WO2016056279A1 (en) | Image processing device, image capturing apparatus and image capturing method | |
JP5619124B2 (en) | Image processing apparatus, imaging apparatus, image processing program, and image processing method | |
JP4868046B2 (en) | Image processing apparatus, image processing method, and program | |
JP4250506B2 (en) | Image processing method, image processing apparatus, image processing program, and imaging system | |
AU2015331251A1 (en) | Imaging apparatus and imaging method | |
JP6230760B1 (en) | Imaging apparatus, image processing apparatus, image processing method, and image processing program | |
JP6331258B2 (en) | Imaging apparatus and method | |
US20160277721A1 (en) | Color filtered area processing method for improving image processing | |
JP2011239067A (en) | Image processor | |
US9503661B2 (en) | Imaging apparatus and image processing method | |
US10075687B2 (en) | Imaging apparatus and imaging method to obtain high quality luminance images | |
US20100231740A1 (en) | Image processing apparatus, image processing method, and computer program | |
JP2008271024A (en) | Image processing apparatus and method and program | |
TWI590659B (en) | Image processing method and imaging device | |
KR20110090080A (en) | Digital photographing apparatus, method for controlling the same, and recording medium storing program to execute the method | |
JP6727973B2 (en) | Image processing apparatus and control method thereof | |
JP6029464B2 (en) | Imaging device, control method thereof, and control program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD05 | Notification of revocation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7425 Effective date: 20150327 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160318 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170130 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170221 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170411 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170926 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20171110 |
|
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: 20180403 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180416 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6331258 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |