JP6331258B2 - Imaging apparatus and method - Google Patents

Imaging apparatus and method Download PDF

Info

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
Application number
JP2013086043A
Other languages
Japanese (ja)
Other versions
JP2014209689A (en
Inventor
吉田 和弘
和弘 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Imaging Co Ltd
Original Assignee
Ricoh Imaging Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ricoh Imaging Co Ltd filed Critical Ricoh Imaging Co Ltd
Priority to JP2013086043A priority Critical patent/JP6331258B2/en
Publication of JP2014209689A publication Critical patent/JP2014209689A/en
Application granted granted Critical
Publication of JP6331258B2 publication Critical patent/JP6331258B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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. Patent Documents 1 and 2 are known as documents disclosing means for detecting false colors. In Patent Document 1, edge detection is performed on an image signal output from a solid-state imaging device to detect a high-luminance part. Then, a false color is detected depending on whether or not the value of the color difference component in the region close to the detected part is within a predetermined range. Patent Document 2 detects a false color by comparing an image focused on a subject image with an image not focused.

特開2002−262299号公報JP 2002-262299 A 特開2011−109496号公報JP 2011-109496 A

しかし、特許文献1による構成では、被写体像の周波数が高すぎると固体撮像素子が被写体像を解像できず、被写体像のエッジを捉えることができない。被写体像のエッジを捉えることができないとエッジ検出できないため、偽色を検出できない。また、色差成分の値に基づいて偽色を検出する構成では、偽色以外の部分をも検出してしまうおそれがある。また、特許文献2による構成では、被写体像に合焦した画像と合焦していない画像とを撮像した瞬間にタイムラグがあるため、これらの2枚の画像を比較することが困難となるおそれがある。加えて、比較するために、2枚の画像において特徴点をそれぞれ抽出して被写体像の位置を合わせるなどの特殊な処理が必要となる。この特殊な処理は、装置を複雑にするとともに、コスト上昇を招く。   However, in the configuration according to Patent Document 1, if the frequency of the subject image is too high, the solid-state imaging device cannot resolve the subject image and cannot capture the edge of the subject image. If the edge of the subject image cannot be captured, the edge cannot be detected, so that the false color cannot be detected. Further, in the configuration in which the false color is detected based on the value of the color difference component, there is a possibility that a part other than the false color is also detected. Further, in the configuration according to Patent Document 2, since there is a time lag at the moment when an image focused on the subject image and an image not focused are captured, it may be difficult to compare these two images. is there. In addition, for comparison, special processing such as extracting feature points from the two images and aligning the position of the subject image is required. This special processing complicates the apparatus and increases the cost.

本発明はこれらの問題に鑑みてなされたものであり、画像に含まれる偽色を検出する偽色検出装置及び方法を得ることを目的とする。   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の実施形態による偽色検出装置を備えるデジタルカメラを概略的に示したブロック図である。It is the block diagram which showed schematically the digital camera provided with the false color detection apparatus by 1st Embodiment. 回転変換について示した図である。It is the figure shown about rotation conversion. 回転変換について示した図である。It is the figure shown about rotation conversion. 第1及び第2の中間判断結果について示した図である。It is the figure shown about the 1st and 2nd intermediate determination result. 第1の偽色判定処理を示したフローチャートである。It is the flowchart which showed the 1st false color determination process. LPFについて示した図である。It is the figure shown about LPF. 第3の実施形態による第3の偽色判定処理を示したフローチャートである。It is the flowchart which showed the 3rd false color determination process by 3rd Embodiment.

本願発明の第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 digital camera 100 equipped with a false color detection device. The configuration of the digital camera 100 will be described with reference to FIG.

デジタルカメラ100は、DSP110、撮像素子であるCMOS121、合焦レンズ131、及びLCD122を主に備える。   The digital camera 100 mainly includes a DSP 110, a CMOS 121 that is an image sensor, a focusing lens 131, and an LCD 122.

合焦レンズ131は、複数のレンズにより構成され、デジタルカメラ100のボディに畳まれて格納され、デジタルカメラ100が撮影画像を記録する動作モードに設定されたとき、ボディから繰り出される。繰り出された合焦レンズ131は被写体に合焦して、CMOS121に被写体像を結像させる。合焦レンズ131の外周面にはピント調整リング132及び駆動モータ133が設けられる。駆動モータ133は合焦レンズ131を駆動して被写体に合焦させる。ピント調整リング132はユーザにより回転され、合焦レンズ131を被写体に合焦させる。   The focusing lens 131 is composed of a plurality of lenses, is folded and stored in the body of the digital camera 100, and is extended from the body when the digital camera 100 is set to an operation mode for recording a captured image. The focusing lens 131 that has been extended focuses on the subject and forms an object image on the CMOS 121. A focus adjustment ring 132 and a drive motor 133 are provided on the outer peripheral surface of the focusing lens 131. The drive motor 133 drives the focusing lens 131 to focus on the subject. The focus adjustment ring 132 is rotated by the user to focus the focusing lens 131 on the subject.

合焦レンズ131とCMOS121との間の光路上には絞り羽根123、シャッター幕124が設けられる。絞り羽根123はCMOS121に到達する光量を調節し、シャッター幕124は、合焦レンズ131からCMOS121までの光路を開閉する。   A diaphragm blade 123 and a shutter curtain 124 are provided on the optical path between the focusing lens 131 and the CMOS 121. The diaphragm blade 123 adjusts the amount of light reaching the CMOS 121, and the shutter curtain 124 opens and closes the optical path from the focusing lens 131 to the CMOS 121.

CMOS121は、複数の画素121aと、その画素121aの1つ1つに設けられるカラーフィルタ121bとを備える。1枚のカラーフィルタ121bは、赤、緑、及び青の3色のうち、いずれか1つの色を有する。赤、緑、及び青のカラーフィルタ121bは、例えばベイヤー配列などの配列法に従って並べられる。CMOS121は、DSP110が生成する同期クロック信号を受信し、これに同期して動作する。複数の画素121aは結像した被写体像を撮像して電荷として出力する。CMOS121は、電荷の大きさにより構成される画像データを連続的にDSP110へ出力する。すなわち画像データは、輝度成分及び色差成分によって各画素121aの色を表現する。   The CMOS 121 includes a plurality of pixels 121a and a color filter 121b provided for each of the pixels 121a. One color filter 121b has one of three colors of red, green, and blue. The red, green, and blue color filters 121b are arranged according to an arrangement method such as a Bayer arrangement. The CMOS 121 receives the synchronous clock signal generated by the DSP 110 and operates in synchronization therewith. The plurality of pixels 121a pick up the formed subject image and output it as charges. The CMOS 121 continuously outputs image data constituted by the magnitude of electric charges to the DSP 110. That is, the image data expresses the color of each pixel 121a by the luminance component and the color difference component.

DSP110は、検出部111及び演算部112を主に備える。検出部111及び演算部112は、画像データに含まれる偽色を検出する。これらの部材の詳細については後述される。   The DSP 110 mainly includes a detection unit 111 and a calculation unit 112. The detection unit 111 and the calculation unit 112 detect a false color included in the image data. Details of these members will be described later.

DSP110は、画像データに基づいて合焦レンズ131が被写体に合焦しているか否かを判断し、判断に応じた信号を駆動回路125に送信する。駆動回路125は、受信した信号に応じて駆動モータ133を動作させる。これにより、合焦レンズ131が被写体に合焦する。   The DSP 110 determines whether or not the focusing lens 131 is focused on the subject based on the image data, and transmits a signal corresponding to the determination to the drive circuit 125. The drive circuit 125 operates the drive motor 133 according to the received signal. Thereby, the focusing lens 131 focuses on the subject.

DSP110は、メモリ127を一時記憶装置として用いながら画像データに所定の処理を施した後、画像ファイルを作成してメモリカード128に送信するとともに、処理済みの画像データをLCD122に連続的に送信する。メモリカード128は、例えばSDカードであって、デジタルカメラ100に対して着脱自在となるように設けられ、受信した画像ファイルを保存する。LCD122は、受信した画像データを表示する。   The DSP 110 performs predetermined processing on the image data while using the memory 127 as a temporary storage device, creates an image file and transmits the image file to the memory card 128, and continuously transmits the processed image data to the LCD 122. . The memory card 128 is an SD card, for example, provided so as to be detachable from the digital camera 100, and stores the received image file. The LCD 122 displays the received image data.

DSP110には、操作スイッチ126が接続される。操作スイッチ126は、シャッターレリーズボタンを備える。シャッターレリーズボタンは二段階スイッチであり、ユーザが半押しすると半押し信号をDSP110に送信し、全押しすると全押し信号をDSP110に送信する。   An operation switch 126 is connected to the DSP 110. The operation switch 126 includes a shutter release button. The shutter release button is a two-stage switch that transmits a half-press signal to the DSP 110 when the user half-presses it, and transmits a full-press signal to the DSP 110 when the user fully presses it.

DSP110が半押し信号を受信すると、受信した画像データに応じて、絞り値及びシャッター速度を算出し、LCD122は補正画像を表示する。DSP110が全押し信号を受信すると、算出済みの絞り値及びシャッター速度で絞り羽根123及びシャッター幕124を駆動させ、CMOS121に被写体像を撮像させる。そしてCMOS121から取得した画像データに対して所定の画像処理を施し、メモリカード128に送信する。メモリカード128は、受信した画像ファイルを保存する。   When the DSP 110 receives the half-press signal, the aperture value and shutter speed are calculated according to the received image data, and the LCD 122 displays the corrected image. When the DSP 110 receives the full-press signal, the aperture blade 123 and the shutter curtain 124 are driven with the calculated aperture value and shutter speed, and the CMOS 121 causes the subject image to be captured. The image data obtained from the CMOS 121 is subjected to predetermined image processing and transmitted to the memory card 128. The memory card 128 stores the received image file.

次に、図2及び3を用いて演算部112について説明する。図2(a)は、2つの色差成分により規定される座標系において、偽色が発生しやすい領域20を示す。この座標系は、直交する2つの色差成分により規定される二次元直交座標系であるとともに、色差に対応する偏角と彩度に対応する動径とにより規定される二次元極座標系でもある。以下、色差Cbを横軸、色差Crを縦軸として説明する。   Next, the calculation unit 112 will be described with reference to FIGS. FIG. 2A shows a region 20 where false colors are likely to occur in a coordinate system defined by two color difference components. This coordinate system is a two-dimensional orthogonal coordinate system defined by two orthogonal color difference components and a two-dimensional polar coordinate system defined by a declination corresponding to the color difference and a radius corresponding to the saturation. Hereinafter, the color difference Cb is described as the horizontal axis and the color difference Cr as the vertical axis.

偽色が発生しやすい領域20は、カラーフィルタ121bの分光感度や、DSP110が実行する画像処理で行われる色補正処理などに応じて適宜決定される。分光感度や色補正処理は画像を作成した機器によって異なる。そのため、画像を作成した機器に応じて決定してもよい。領域20を決定する手段について説明する。まず、回転角度を決定すべき機器を用いて、CZP(Circular Zone Plate)チャートを撮像する。これにより得られる画像データは偽色を有する。そこで、この画像データが有する輝度成分と色差成分を用いて、図2(a)に示す座標系において偽色が発生する領域を決定する。偽色が発生する程度に応じて、領域20の大きさが変更される。   The region 20 where false colors are likely to occur is appropriately determined according to the spectral sensitivity of the color filter 121b, color correction processing performed in image processing executed by the DSP 110, and the like. Spectral sensitivity and color correction processing vary depending on the device that created the image. Therefore, you may determine according to the apparatus which produced the image. A means for determining the region 20 will be described. First, a CZP (Circular Zone Plate) chart is imaged using a device whose rotation angle is to be determined. The image data obtained by this has a false color. Therefore, by using the luminance component and the color difference component included in the image data, a region where a false color is generated in the coordinate system shown in FIG. The size of the region 20 is changed according to the degree to which the false color is generated.

次に、この領域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 false color region 21b and second unrotated false color region 22b are set in the region 20 (see FIG. 2B). By approximating the region 20 to a rectangular region, it becomes easy to determine whether or not the color difference component of the image data is included. However, since the longitudinal directions of the first unrotated false color area 21b and the second unrotated false color area 22b are not parallel to the vertical axis but are inclined in parallel, the color difference components of the image data are included in these areas. If it is determined whether or not, the calculation becomes complicated and the calculation load increases. Therefore, the first rotated false color area 21c and the second rotated false color area 22c are created by rotationally converting the first unrotated false color area 21b and the second unrotated false color area 22b (FIG. 2 (c)). Since the longitudinal direction of the first rotation false color area 21c and the second rotation false color area 22c is parallel to the vertical axis, it is determined whether or not the color difference component of the image data is included in these areas. The calculation becomes easy and the calculation load can be suppressed. The first rotation false color region 21c and the second rotation false color region 22c are in a complementary color relationship with each other, and the length in the vertical direction matches the saturation, and the length in the horizontal direction is the hue and the hue. Match.

回転変換の角度は、領域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 region 20, the rotation conversion angle is appropriately determined according to the spectral sensitivity of the color filter 121b, the color correction performed in the image processing executed by the DSP 110, and the like. That is, it is determined according to the device that created the image. A means for determining the rotation angle will be described. Similar to the means for determining the region 20, the CZP chart is imaged using the device whose rotation angle is to be determined, and the region where the false color is generated is determined. Then, when this region is rotationally converted, a rotation angle is determined so that the longitudinal direction of the region is parallel to the vertical axis. The determined rotation angle is a rotation angle unique to the device. When the color difference component before rotation is (Cb, Cr), the color difference component after rotation is (Cb ′, Cr ′), and the rotation angle is θ, the color difference component after rotation (Cb ′, Cr ′) is obtained by the following equation. expressed.
Cb ′ = Cb · cos θ−Cr · sin θ
Cr ′ = Cb · sin θ + Cr · cos θ
Using this equation, the calculation unit 112 rotationally converts the color difference component of the acquired image data to create a rotated color difference component. In other words, the calculation unit 112 rotationally converts the hue of the image data. This process is called a rotation conversion process.

図3は、図2(a)に示されるものと異なる特性を持つ機器の偽色が発生しやすい領域30aを示した図である。領域30a内に、矩形の第1の未回転偽色領域31aと第2の未回転偽色領域32aが設定されている(図3(a)参照)。   FIG. 3 is a diagram showing a region 30a where a false color of a device having characteristics different from that shown in FIG. A rectangular first unrotated false color region 31a and second unrotated false color region 32a are set in the region 30a (see FIG. 3A).

図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 region 20 in FIG. 2 extends in a straight line in the longitudinal direction, the region 30a is bent in a “<” shape. Therefore, even if the entire region 30a is rotated at a constant rotation angle, the longitudinal directions of the two rotation false color regions are not parallel to the vertical axis. Therefore, the first rotation angle θ1 such that the longitudinal direction of the first unrotated false color region 31a is parallel to the longitudinal axis, and the longitudinal direction of the second unrotated false color region 32a is parallel to the longitudinal axis. Such a second rotation angle θ2 is obtained. The obtained first rotation angle θ1 and second rotation angle θ2 are rotation angles unique to the device. The computing unit 112 rotationally converts the color difference component of the acquired image data using the first rotation angle θ1 and the second rotation angle θ2, and creates a rotation color difference component. In other words, the calculation unit 112 rotationally converts the hue of the image data. This process is called a rotation conversion process.

次に、図2及び4を用いて検出部111について説明する。検出部111は、画像データに含まれる各画素121aの色差成分が第1の回転偽色領域21cと第2の回転偽色領域22cに含まれるか否かを判断し、その結果に応じて画像データに偽色が含まれるか否かを決定する。すなわち、偽色を有する可能性がある画素121a(偽色可能性画素)に対し、その偽色可能性画素から所定の範囲内に、その偽色可能性画素と補色関係にある偽色可能性画素が存在する場合、その偽色可能性画素が偽色を有すると判断する。以下、この処理について詳細に説明する。   Next, the detection unit 111 will be described with reference to FIGS. The detection unit 111 determines whether or not the color difference component of each pixel 121a included in the image data is included in the first rotation false color region 21c and the second rotation false color region 22c, and the image is determined according to the result. Determine whether the data contains false colors. That is, for a pixel 121a (a false color possibility pixel) that may have a false color, a false color possibility that is complementary to the false color possibility pixel within a predetermined range from the false color possibility pixel. If a pixel is present, it is determined that the false color possibility pixel has a false color. Hereinafter, this process will be described in detail.

まず、検出部111は、画像データを構成する画素121aから検査対象である注目画素を1つ選択する。そして、注目画素を成す色差成分が第1の回転偽色領域21cに含まれるか否かを判断する。そして、第1の回転偽色領域21cに含まれる場合には値1を判断結果として出力し、含まれない場合には値0を判断結果として出力する。この処理を全ての画素121aに対して実行する。出力された判断結果を画素121aの配列に対応するように並べて得られる行列が第1の中間判断結果である。同様にして注目画素を成す色差成分が第2の回転偽色領域22cに含まれるか否かを判断し、第2の中間判断結果を作成する。   First, the detecting unit 111 selects one target pixel to be inspected from the pixels 121a constituting the image data. Then, it is determined whether or not the color difference component forming the target pixel is included in the first rotation false color region 21c. If it is included in the first rotation false color region 21c, the value 1 is output as the determination result, and if it is not included, the value 0 is output as the determination result. This process is executed for all the pixels 121a. A matrix obtained by arranging the output determination results so as to correspond to the arrangement of the pixels 121a is the first intermediate determination result. Similarly, it is determined whether or not the color difference component forming the target pixel is included in the second rotation false color region 22c, and a second intermediate determination result is created.

次に、検出部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 detection unit 111 detects a target pixel having a value 1 in the first intermediate determination result, and sets the target pixel in the second intermediate determination result and the value of the pixel 121a within a predetermined range from the target pixel to 1. It is determined whether or not is included. FIG. 4A shows the target pixel 41 having a value 1 in the first intermediate determination result and the values of the pixel 121a included in the range of two pixels from the target pixel. FIG. 4B and FIG. 4C are a part of the second intermediate determination result, which is a matrix centered on the target pixel, and the target pixel having the value 1 in the first intermediate determination result. The corresponding pixel 42 and the value of the pixel 121a included in the range of two pixels from the target pixel are shown. 4B and 4C are 5 × 5 square matrices, and a range of two pixels from the target pixel corresponds to a predetermined range. The predetermined range is determined according to the number of pixels of the image data, and the predetermined range becomes wider as the number of pixels increases. FIG. 4B includes a pixel 121a having a value of 1. However, FIG. 4C does not include the pixel 121a that takes the value 1, and the values of all the pixels 121a take 0. As shown in FIG. 4B, among the target pixels having the value 1 in the first intermediate determination result, the target pixel in the second intermediate determination result and the value of the pixel 121a within a predetermined range from the target pixel. When 1 is included, it is determined that the target pixel includes a false color, and the value 1 is output as a determination result. On the other hand, as shown in FIG. 4C, among the target pixels having the value 1 in the first intermediate determination result, the target pixel in the second intermediate determination result and the pixels 121a within a predetermined range from the target pixel. When 1 is not included in the value, it is determined that the target pixel does not include a false color, and the value 0 is output as a determination result. This process is executed for all the pixels 121a. A matrix obtained by arranging the output determination results so as to correspond to the arrangement of the pixels 121a is the first final determination result. Similarly, the detection unit 111 detects a target pixel having a value of 1 in the second intermediate determination result, and sets the target pixel in the first intermediate determination result and the value of the pixel 121a within a predetermined range from the target pixel. It is determined whether 1 is included. A matrix obtained by arranging the determination results so as to correspond to the arrangement of the pixels 121a is the second final determination result.

そして、検出部111は、第1の最終判断結果と第2の最終判断結果とを対応する画素毎に加算して、偽色判定結果を作成する。偽色判定結果は、画像データの画素121aが作る行列と同じ行列であり、行列において対応する要素の値が1であるとき、その画素121aは偽色であると判断されていることを示し、対応する要素の値が0であるとき、その画素121aは偽色でないと判断されていることを示す。   Then, the detection unit 111 adds the first final determination result and the second final determination result for each corresponding pixel to create a false color determination result. The false color determination result is the same matrix as the matrix created by the pixel 121a of the image data. When the value of the corresponding element in the matrix is 1, the pixel 121a is determined to be a false color. When the value of the corresponding element is 0, it indicates that the pixel 121a is determined not to be a false color.

次に、図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 calculation unit 112 and the detection unit 111.

初めのステップS51では、演算部112が画像データを読み込む。画像データは、例えばJPEG形式のような輝度成分及び色差成分から構成される画像データである。   In the first step S51, the calculation unit 112 reads image data. The image data is image data composed of a luminance component and a color difference component as in the JPEG format, for example.

次のステップS52では、演算部112が画像データの色相を回転変換処理して回転色差成分を作成する。   In the next step S52, the calculation unit 112 performs rotation conversion processing on the hue of the image data to create a rotated color difference component.

次のステップS53では、検出部111が第1の中間判断結果及び第2の中間判断結果を作成する。   In the next step S53, the detection unit 111 creates a first intermediate determination result and a second intermediate determination result.

次のステップS54では、検出部111が、第1の中間判断結果及び第2の中間判断結果に基づいて第1の最終判断結果及び第2の最終判断結果を作成した後、第1の最終判断結果と第2の最終判断結果とを加算して偽色判定結果を作成する。これにより、偽色を持つ画素121aが検出される。   In the next step S54, after the detection unit 111 creates the first final determination result and the second final determination result based on the first intermediate determination result and the second intermediate determination result, the first final determination is performed. The result and the second final determination result are added to create a false color determination result. Thereby, the pixel 121a having a false color is detected.

本実施形態によれば、第1の回転偽色領域21cと、第1の回転偽色領域21cと補色関係にある第2の回転偽色領域22cとを用いて偽色の判定を行うため、偽色と同じような配色を誤って偽色と判断することを防止し、精度良く偽色を検出できる。   According to the present embodiment, since the false color determination is performed using the first rotation false color area 21c and the second rotation false color area 22c that is complementary to the first rotation false color area 21c, It is possible to prevent a false color from being erroneously determined as a false color and to detect the false color with high accuracy.

また、演算部112が回転変換を行うことにより、計算が複雑となることを防ぎ、計算負荷を減らすことができる。   In addition, since the calculation unit 112 performs rotation conversion, it is possible to prevent the calculation from becoming complicated and to reduce the calculation load.

さらに、画像データの画素数が増えるに従って、前述した所定の範囲を拡大、すなわち図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 detection unit 111 will be described with reference to FIG. The detection unit 111 determines whether or not the color difference component of each pixel 121a included in the image data is included in the first rotation false color region 21c and the second rotation false color region 22c, and multiplies the result by LPF. In accordance with the result, it is determined whether the image data includes a false color. Hereinafter, these processes will be described in detail. Since the procedure for creating the first intermediate determination result and the second intermediate determination result is the same as that in the first embodiment, the description thereof is omitted.

図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 pixels 121a included in the second intermediate determination result to obtain a second removal result. Then, the first intermediate determination result and the second removal result are multiplied for each element at the same position. The result of placing the multiplication result at the same position as the multiplied element is the first removal determination result. As a result, only the pixel 121a that takes a non-zero value in both the first intermediate determination result and the second removal result takes a non-zero value in the first removal determination result. The pixel 121a that is 0 takes the value 0 in the first removal determination result. Similarly, the detection unit 111 multiplies the first intermediate determination result by LPF to obtain a first removal result. Then, the second intermediate determination result and the first removal result are multiplied for each element at the same position to obtain a second removal determination result. When LPF is applied to the first intermediate determination result and the second intermediate determination result, the region that takes a non-zero value in the first removal result and the second removal result is expanded. That is, if high frequency components are removed from the first intermediate determination result and the second intermediate determination result, the pixels included in the first false color region increase in the second determination result, and the pixels included in the second false color region Increases in the first determination result. That is, the area that may contain a false color is enlarged. Thereby, the area | region containing a false color can be detected more reliably.

そして、検出部111は、第1の除去判断結果と第2の除去判断結果とを対応する要素毎に加算して、偽色判定結果を作成する。偽色判定結果は、画像データの画素121aが作る行列と同じ行列であり、行列において対応する要素の値が1であるとき、その画素121aは偽色であると判断されており、対応する要素の値が0であるとき、その画素121aは偽色でないと判断されている。   Then, the detection unit 111 adds the first removal determination result and the second removal determination result for each corresponding element to create a false color determination result. The false color determination result is the same matrix as the matrix created by the pixel 121a of the image data. When the value of the corresponding element in the matrix is 1, the pixel 121a is determined to be a false color, and the corresponding element When the value of is 0, it is determined that the pixel 121a is not a false color.

図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 false color region 21c and the second rotation false color region 22c having a complementary color relationship are usually The pixel 121a included in the first rotation false color region 21c or the second rotation false color region 22c is not included at the same position. Here, when the second intermediate determination result is multiplied by LPF, a region that takes a non-zero value in the second removal result, that is, a region that may contain a false color, is larger than the second intermediate determination result. To do. As a result, the second removal result and the first intermediate determination result have a complementary color relationship.

また、第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 detection unit 111.

ステップ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 detection unit 111 creates the first removal determination result and the second removal determination result based on the first intermediate determination result and the second intermediate determination result, The false removal determination result is created by adding the second removal determination result. Thereby, the pixel 121a having a false color is detected.

本実施形態によれば、第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 calculation unit 112 and the detection unit 111.

ステップ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 value 1 in the first intermediate determination result in FIG. 4A and the second intermediate determination in FIG. 4B that is complementary to the first intermediate determination result. In the result, the arithmetic average with the luminance of all the pixels 121a taking the value 1 is calculated. The obtained value is set as the first luminance. Similarly, the luminance of the pixel of interest that takes the value 1 in the second intermediate determination result and the luminance of all the pixels 121a that take the value 1 in the first intermediate determination result that is complementary to the second intermediate determination result. Calculate the arithmetic mean. The obtained value is set as the second luminance. Next, a difference between the first luminance and the second luminance is obtained, and when the difference is smaller than a predetermined threshold, it is determined that there is a possibility of including a false color, and in the first intermediate determination result, The value of the corresponding pixel 121a (target pixel) is maintained as 1. On the other hand, if the difference is greater than or equal to the threshold value, it is determined that there is no possibility of including a false color, and the value of the corresponding pixel 121a (target pixel) is changed from 1 to 0 in the first intermediate determination result. The pixel 121a in which the false color is generated uses a phenomenon in which the color difference components having a complementary color relationship are greatly different from each other, but the luminance components have a small difference. That is, it is determined that the pixel 121a having a large difference in color difference components and a small difference in luminance components may contain a false color. Accordingly, 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.

次のステップ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 value 1 in the first intermediate determination result of FIG. 4A and the second intermediate of FIG. 4B that is complementary to the first intermediate determination result. An arithmetic average with the saturation of all the pixels 121a having a value of 1 in the determination result is calculated. Saturation is the root mean square of the color difference Cb and the color difference Cr. The obtained value is set as the first saturation. Similarly, the saturation of the pixel of interest that takes the value 1 in the second intermediate determination result and the saturation of all the pixels 121a that take the value 1 in the first intermediate determination result that is complementary to the second intermediate determination result. The arithmetic average is calculated. The obtained value is set as the second saturation. Next, a difference between the first saturation and the second saturation is obtained, and if the difference is smaller than a predetermined threshold, it is determined that there is a possibility of including a false color, and the first intermediate determination In the result, the value of the corresponding pixel 121a (target pixel) is maintained as 1. On the other hand, if the difference is greater than or equal to the threshold value, it is determined that there is no possibility of including a false color, and the value of the corresponding pixel 121a (target pixel) is changed from 1 to 0 in the first intermediate determination result. The pixel 121a in which the false color is generated uses a phenomenon in which the color difference components having a complementary color relationship are greatly different from each other, but the saturation component is not much different. That is, it is determined that the pixel 121a having a large difference in color difference components and a small difference in saturation components may include a false color. Accordingly, 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.

次のステップS54では、検出部111が、第1の中間判断結果及び第2の中間判断結果に基づいて第1の最終判断結果及び第2の最終判断結果を作成した後、第1の最終判断結果と第2の最終判断結果とを加算して偽色判定結果を作成する。これにより、偽色を持つ画素121aが検出される。   In the next step S54, after the detection unit 111 creates the first final determination result and the second final determination result based on the first intermediate determination result and the second intermediate determination result, the first final determination is performed. The result and the second final determination result are added to create a false color determination result. Thereby, the pixel 121a having a false color is detected.

本実施形態によれば、補色関係にある色を有する物体が近接している被写体を撮像する場合に、補色関係にある色を誤って偽色と判断してしまうことを防止できる。また、補色関係にある一方で輝度や彩度が異なる被写体を偽色と判断してしまうことを防止できる。   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 detection unit 111 does not use the first rotation false color region 21c and the second rotation false color region 22c, but the first non-rotation false color regions 21b and 31a and the second non-rotation color region 21c. The false color may be detected by determining whether or not the rotation false color regions 22b and 32a include the color difference component of the pixel 121a.

また、第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 false color area 21c First rotated false color area 22b Second unrotated false color area 22c Second rotated false color area 31a First unrotated false color area 32a Second unrotated false Color area 41 Pixel of interest 42 Pixel 100 Digital camera 110 DSP
111 detector 112 arithmetic unit 121 CMOS
121a pixel 121b color filter 122 LCD
123 Aperture blade 124 Shutter curtain 125 Drive circuit 126 Operation switch 127 Memory 128 Memory card 131 Focusing lens 132 Focus adjustment ring 133 Drive motor

Claims (18)

輝度成分及び色差成分により画素の色を表した画像データを取得し、所定の色空間において偽色が生じやすい第1の偽色領域を決定し、前記第1の偽色領域と補色関係にある第2の偽色領域を決定する演算部と、
前記第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の偽色領域を決定する演算部と、
前記画像データに含まれる注目画素を成す色差成分が前記第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.
前記色空間は、直交する2つの色差成分により規定される二次元直交座標系で表される平面である請求項1から3のいずれか1項に記載の偽色検出装置。   4. The false color detection device according to claim 1, wherein the color space is a plane represented by a two-dimensional orthogonal coordinate system defined by two orthogonal color difference components. 5. 前記色空間は、色差に対応する偏角と彩度に対応する動径とにより規定される二次元極座標系で表される平面である請求項1から4のいずれか1項に記載の偽色検出装置。   5. The false color according to claim 1, wherein the color space is a plane represented by a two-dimensional polar coordinate system defined by a declination corresponding to a color difference and a radius corresponding to saturation. Detection device. 前記注目画素の色差成分が前記第1の偽色領域に含まれ、かつ前記注目画素から所定の範囲内にある周辺画素の色差成分が前記第2の偽色領域に含まれることを前記第1の最終判断結果が示し、または前記注目画素の色差成分が前記第2の偽色領域に含まれ、かつ前記注目画素から所定の範囲内にある周辺画素の色差成分が前記第1の偽色領域に含まれることを前記第2の最終判断結果が示す場合に、前記注目画素を偽色画素であると判断する請求項に記載の偽色検出装置。 The first false color region includes a color difference component of the target pixel included in the first false color region, and a color difference component of peripheral pixels within a predetermined range from the target pixel includes the first false color region. final decision result is shown, or the color difference component of the pixel of interest is included in the second false color region, and the false color region color difference component of the peripheral pixels is the first in from the pixel of interest within a predetermined range of 3. The false color detection device according to claim 2 , wherein the target pixel is determined to be a false color pixel when the second final determination result indicates that the pixel is included in the false color pixel. 前記所定の範囲は、前記画像データが有する画素数に応じて決定され、前記画素数が多くなるにつれて前記所定の範囲が広くなる請求項6に記載の偽色検出装置。   The false color detection device according to claim 6, wherein the predetermined range is determined according to the number of pixels included in the image data, and the predetermined range becomes wider as the number of pixels increases. 前記検出部は、前記第2の判断結果から高周波成分を除去して得られる第2の除去結果を作成し、前記第2の除去結果と前記第1の判断結果とに基づいて第1の除去判断結果を作成し、前記第1の判断結果から高周波成分を除去して得られる第1の除去結果を作成し、前記第1の除去結果と前記第2の判断結果とに基づいて第2の除去判断結果を作成し、前記第1の除去判断結果と前記第2の除去判断結果とに基づいて、前記注目画素を偽色画素であると判断する請求項1から5のいずれか1項に記載の偽色検出装置。   The detection unit creates a second removal result obtained by removing high-frequency components from the second determination result, and performs first removal based on the second removal result and the first determination result. A determination result is generated, a first removal result obtained by removing high frequency components from the first determination result is generated, and a second result is obtained based on the first removal result and the second determination result. The removal determination result is created, and the target pixel is determined to be a false color pixel based on the first removal determination result and the second removal determination result. The false color detection device described. 前記検出部は、前記第1の偽色領域に含まれる画素を前記第2の判断結果において増やして得られる第2の除去結果を作成し、前記第2の除去結果と前記第1の判断結果とに基づいて第1の除去判断結果を作成し、前記第2の偽色領域に含まれる画素を前記第1の判断結果において増やして得られる第1の除去結果を作成し、前記第1の除去結果と前記第2の判断結果とに基づいて第2の除去判断結果を作成し、前記第1の除去判断結果と前記第2の除去判断結果とに基づいて、前記注目画素を偽色画素であると判断する請求項1から5のいずれかに記載の偽色検出装置。   The detection unit creates a second removal result obtained by increasing the pixels included in the first false color region in the second determination result, and the second removal result and the first determination result Based on the above, a first removal determination result is created, a first removal result obtained by increasing the number of pixels included in the second false color region in the first determination result is created, and the first removal result is created. A second removal judgment result is created based on the removal result and the second judgment result, and the pixel of interest is a false color pixel based on the first removal judgment result and the second removal judgment result. The false color detection device according to claim 1, which determines that 前記検出部は、前記第1の判断結果において前記第1の偽色領域に含まれると判断されている注目画素の輝度と、前記第2の判断結果において前記第2の偽色領域に含まれると判断されている全ての画素の輝度との相加平均である第1の輝度を算出し、前記第2の判断結果において前記第2の偽色領域に含まれると判断されている注目画素の輝度と、前記第1の判断結果において前記第1の偽色領域に含まれると判断されている全ての画素の輝度との相加平均である第2の輝度を算出し、前記第1の輝度と前記第2の輝度との差が閾値よりも小さい場合に、前記注目画素が偽色を含むと判断する請求項1から5のいずれかに記載の偽色検出装置。   The detection unit includes the luminance of the pixel of interest determined to be included in the first false color region in the first determination result, and included in the second false color region in the second determination result. A first luminance that is an arithmetic mean of the luminances of all the pixels that are determined to be calculated, and the pixel of interest that is determined to be included in the second false color region in the second determination result is calculated. Calculating a second luminance that is an arithmetic average of the luminance and the luminance of all the pixels determined to be included in the first false color region in the first determination result; 6. The false color detection device according to claim 1, wherein when the difference between the second luminance and the second luminance is smaller than a threshold value, the target pixel is determined to include a false color. 前記検出部は、前記第1の判断結果において前記第1の偽色領域に含まれると判断されている注目画素の彩度と、前記第2の判断結果において前記第2の偽色領域に含まれると判断されている全ての画素の彩度との二乗平均平方根である第1の彩度を算出し、前記第2の判断結果において前記第2の偽色領域に含まれると判断されている注目画素の彩度と、前記第1の判断結果において前記第1の偽色領域に含まれると判断されている全ての画素の彩度との二乗平均平方根である第2の彩度を算出し、前記第1の彩度と前記第2の彩度との差が閾値よりも小さい場合に、前記注目画素が偽色を含むと判断する請求項1から5及び9のいずれかに記載の偽色検出装置。   The detection unit includes a saturation of a target pixel determined to be included in the first false color region in the first determination result, and is included in the second false color region in the second determination result. The first saturation, which is the root mean square with the saturation of all the pixels that are determined to be determined, is calculated, and the second determination result determines that the first saturation is included in the second false color region A second saturation that is a root mean square of the saturation of the pixel of interest and the saturation of all the pixels that are determined to be included in the first false color region in the first determination result is calculated. The false according to any one of claims 1 to 5 and 9, wherein when the difference between the first saturation and the second saturation is smaller than a threshold, it is determined that the target pixel includes a false color. Color detection device. 前記演算部は、前記画像データを作成した機器の特性に応じて前記回転角度を決定する請求項3に記載の偽色検出装置。   The false color detection device according to claim 3, wherein the calculation unit determines the rotation angle according to characteristics of a device that has created the image data. 前記画像データは、入射光の光路上に設けられるカラーフィルタを介して被写体像を撮像する撮像素子により作成され、前記演算部は、前記カラーフィルタの特性に応じて前記回転角度を決定する請求項12に記載の偽色検出装置。   The image data is created by an image sensor that captures a subject image via a color filter provided on an optical path of incident light, and the calculation unit determines the rotation angle according to characteristics of the color filter. 12. The false color detection device according to 12. 前記演算部は、前記画像データを作成するときに用いた画像処理に応じて前記回転角度を決定する請求項12に記載の偽色検出装置。   The false color detection apparatus according to claim 12, wherein the calculation unit determines the rotation angle according to image processing used when creating the image data. 前記第1の判断結果及び第2の判断結果から除去する高周波成分の範囲は、前記画像データが有する画素数に応じて決定され、前記画素数が多くなるにつれて前記範囲が広げられる請求項9に記載の偽色検出装置。   The range of the high-frequency component to be 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 is expanded as the number of pixels increases. The false color detection device described. 請求項3に記載の偽色検出装置と、
前記画像データを作成する撮像素子と、
前記撮像素子に入射する光の光路上に設けられるカラーフィルタとを備え、
前記演算部は、前記カラーフィルタの特性に応じて前記回転角度を決定する撮像装置。
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.
JP2013086043A 2013-04-16 2013-04-16 Imaging apparatus and method Active JP6331258B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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