JP2005260675A - Image processor and program - Google Patents

Image processor and program Download PDF

Info

Publication number
JP2005260675A
JP2005260675A JP2004070790A JP2004070790A JP2005260675A JP 2005260675 A JP2005260675 A JP 2005260675A JP 2004070790 A JP2004070790 A JP 2004070790A JP 2004070790 A JP2004070790 A JP 2004070790A JP 2005260675 A JP2005260675 A JP 2005260675A
Authority
JP
Japan
Prior art keywords
hue
pixel
interest
saturation
image data
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.)
Withdrawn
Application number
JP2004070790A
Other languages
Japanese (ja)
Inventor
Hideaki Furukawa
英明 古川
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.)
Olympus Corp
Original Assignee
Olympus Corp
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 Olympus Corp filed Critical Olympus Corp
Priority to JP2004070790A priority Critical patent/JP2005260675A/en
Publication of JP2005260675A publication Critical patent/JP2005260675A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor and program for adaptively varying a filter coefficient on the basis of a determination result by determining an edge part from luminance and hue in the case of obtaining RGB data from a Bayer's image. <P>SOLUTION: The image processor is provided with: a means for calculating an interpolation value with respect to RGB data of a target pixel from peripheral pixels in the case of obtaining the RGB data from the Bayer's image; a means for calculating the hue and saturation of the target pixel from the calculated data; a means for comparing hues between the target pixel and the peripheral pixels, determining that the target pixel is a false color when a difference between the both hues exceeds a prescribed value and replacing the hue of the target pixel with the peripheral dominant hue; a means for calculating a filter coefficient on the basis of the target pixel and the hue of the peripheral pixels; and a means for outputting the RGB data on the basis of the filter coefficient, thus the image processor adaptively varies the filter coefficient. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、主に、デジタルカメラ等の電子的撮像装置等に好適な画像処理装置およびプログラムに関する。   The present invention mainly relates to an image processing apparatus and a program suitable for an electronic imaging apparatus such as a digital camera.

デジタルカメラやデジタルスキャナーに用いられる、いわゆる単板式のCCDにおいては、出力されるベイヤ画像が1画素あたりに1色情報しか持たないため、周辺画素からの補間処理により、1画素あたりのRGBデータを得る必要がある。しかしながら、画像全体に対して、画一的な補間処理を行うと、画像のエッジ部分等に偽色が生じる等の問題が発生する。   In so-called single-plate CCDs used in digital cameras and digital scanners, the output Bayer image has only one color information per pixel, so RGB data per pixel is obtained by interpolation processing from surrounding pixels. Need to get. However, when uniform interpolation processing is performed on the entire image, problems such as generation of false colors at the edge portions of the image occur.

こうした問題に対して、周辺画素の輝度情報に基づいて、適応的に補間用フィルタのフィルタ係数を変更して画像のエッジ付近に発生する偽色を抑制する技術が提案されている(例えば、特許文献1参照。)。しかし、輝度情報のみに基づいて画像のエッジを判定する方法では、画像の全てのエッジを検出することができない。この原因は、輝度の定義に由来しており、例えば、明るい赤と暗い緑では輝度が同じ値をもつことがある。その場合、明るい赤と暗い緑の境界部はエッジとして認識されず、適応的なフィルタリングが行われないことになる。したがって、画像の全てのエッジを検出するためには、輝度だけでなく、着目画素の色相も考慮したエッジ判定を行わなければならない。また、着目画素のRGBデータから、乗除算等の複雑な処理を用いることなく、簡単な方法で色補正を実現する方法も提案されている(例えば、特許文献2参照。)。
特開2000−23174号公報 特開2001−61160号公報
In order to solve such a problem, a technique has been proposed for suppressing false colors generated near the edge of an image by adaptively changing the filter coefficient of an interpolation filter based on luminance information of surrounding pixels (for example, patents). Reference 1). However, the method of determining the edge of the image based only on the luminance information cannot detect all the edges of the image. This cause is derived from the definition of luminance. For example, the luminance may be the same between bright red and dark green. In this case, the boundary between bright red and dark green is not recognized as an edge, and adaptive filtering is not performed. Therefore, in order to detect all the edges of the image, it is necessary to perform edge determination in consideration of not only the luminance but also the hue of the pixel of interest. There has also been proposed a method for realizing color correction by a simple method from RGB data of a pixel of interest without using complicated processing such as multiplication and division (see, for example, Patent Document 2).
JP 2000-23174 A JP 2001-61160 A

しかし、特許文献1に記載された技術では、色相や彩度を求めるために比較的大きな回路が必要となる。特に、色相の演算には、atanの計算処理を要することから、回路負荷が大きく、実現性に乏しいという問題がある。また、特許文献2に記載された技術においては、各画素のRGBデータが既知であることが前提となっており、ベイヤ画像から色補正により1画素あたりのRGBデータを得ることは想定されていない。   However, the technique described in Patent Document 1 requires a relatively large circuit to obtain the hue and saturation. In particular, since hue calculation requires an atan calculation process, there is a problem that the circuit load is large and the feasibility is poor. In the technique described in Patent Document 2, it is assumed that RGB data of each pixel is known, and it is not assumed that RGB data per pixel is obtained from a Bayer image by color correction. .

そこで、本発明は、上述の問題点に鑑みてなされたものであり、ベイヤ画像からRGBデータを得る場合に、輝度と色相からエッジ部を判定し、判定結果に基づいて、適応的にフィルタ係数を可変する画像処理装置およびプログラムを提供することを目的とする。   Therefore, the present invention has been made in view of the above-described problems. When RGB data is obtained from a Bayer image, an edge portion is determined from luminance and hue, and an adaptive filter coefficient is determined based on the determination result. An object of the present invention is to provide an image processing apparatus and a program that can change the above.

本発明は、上述の課題を解決するために、以下の手段を提案している。
請求項1に係る発明は、単板式撮像素子から入力されるベイヤ画像を補間手段により同時化し、カラー画像として出力する画像処理装置であって、該補間手段は、着目画素のRGBカラー画像データに対応する仮の補間値を周辺画素のRGBカラー画像データから算出する仮補間手段と、該仮補間手段から出力されたRGBカラー画像データから該着目画素の色相および彩度を算出する色相・彩度算出手段と、該色相・彩度算出手段から出力された前記着目画素とその周辺画素との色相を比較して、該着目画素とその周辺画素との色相の差が所定値を超えたときに、該着目画素が偽色であると判断し、該着目画素の色相をその周辺の支配的な色相に置き換える偽色判定手段と、該偽色判定手段から出力された着目画素の色相とその周辺画素の色相とに基づいてフィルタ係数を算出するフィルタ係数算出手段と、該算出したフィルタ係数に基づいて、RGBカラー画像データを出力する出力手段を有することを特徴とする画像処理装置を提案している。
The present invention proposes the following means in order to solve the above-described problems.
The invention according to claim 1 is an image processing apparatus that synchronizes a Bayer image input from a single-plate image pickup device by an interpolation unit and outputs it as a color image, and the interpolation unit converts the RGB color image data of the pixel of interest. Temporary interpolation means for calculating the corresponding temporary interpolation value from the RGB color image data of the surrounding pixels, and hue / saturation for calculating the hue and saturation of the pixel of interest from the RGB color image data output from the temporary interpolation means Comparing the hue of the target pixel output from the calculation means and the hue / saturation calculation means with the surrounding pixels, and when the difference in hue between the target pixel and the surrounding pixels exceeds a predetermined value , A false color determination unit that determines that the target pixel is a false color and replaces the hue of the target pixel with a dominant hue around the target pixel, and a hue of the target pixel output from the false color determination unit and its surroundings Pixel A filter coefficient calculating means for calculating the filter coefficients based on the phase, based on the filter coefficients the calculated proposes an image processing apparatus characterized by comprising an output means for outputting the RGB color image data.

請求項4に係る発明は、単板式撮像素子から入力されるベイヤ画像を補間により同時化し、カラー画像として出力する画像処理装置に用いられるプログラムであって、着目画素のRGBカラー画像データに対応する仮の補間値を周辺画素のRGBカラー画像データから算出するステップと、該算出された着目画素のRGBカラー画像データから色相および彩度を算出するステップと、該算出された着目画素とその周辺画素との色相とを比較して、該着目画素とその周辺画素との色相の差が所定値を超えたときに、該着目画素が偽色であると判断するステップと、該偽色であると判断したときに、該着目画素の色相をその周辺の支配的な色相に置き換えるステップと、該置き換えられた着目画素の色相あるいは前記算出された着目画素の色相とその周辺画素の色相情報に基づいてフィルタ係数を算出するステップと、該算出したフィルタ係数に基づいて、RGBカラー画像データを出力するステップとを実行するプログラムを提案している。   The invention according to claim 4 is a program for use in an image processing apparatus that synchronizes a Bayer image input from a single-plate image sensor by interpolation and outputs it as a color image, and corresponds to RGB color image data of a pixel of interest. A step of calculating a provisional interpolation value from the RGB color image data of the surrounding pixels, a step of calculating hue and saturation from the RGB color image data of the calculated pixel of interest, the calculated pixel of interest and the surrounding pixels thereof And when the difference in hue between the target pixel and its surrounding pixels exceeds a predetermined value, the step of determining that the target pixel is a false color; and When the determination is made, the step of replacing the hue of the pixel of interest with a dominant hue around it, the hue of the pixel of interest replaced or the calculated hue of the pixel of interest Calculating a filter coefficient based on the color information of the surrounding pixels of, based on the filter coefficients the calculated proposes a program for executing the steps of outputting the RGB color image data.

これらの発明によれば、仮補間手段の作動により、補間位置の近傍画素を用いて簡易的な補間処理が実行される。色相・彩度算出手段は、仮補間処理を施されたRGB画像データから色相および彩度を算出する。算出された色相は、偽色判定手段の作動により、その周辺画素との色相と比較され、着目画素とその周辺画素との色相の差が所定値を超えたときに、着目画素が偽色であると判断し、着目画素の色相をその周辺の支配的な色相に置き換える。フィルタ係数算出手段は、着目画素の色相とその周辺画素の色相情報に基づいてフィルタ係数を算出し、出力手段の作動により、算出したフィルタ係数に基づいて、RGBカラー画像データを出力する。   According to these inventions, simple interpolation processing is executed using the neighboring pixels at the interpolation position by the operation of the temporary interpolation means. The hue / saturation calculation unit calculates the hue and saturation from the RGB image data subjected to the provisional interpolation process. The calculated hue is compared with the hue of the surrounding pixel by the operation of the false color determination means, and when the difference in hue between the pixel of interest and the surrounding pixel exceeds a predetermined value, the pixel of interest has a false color. It is judged that there is, and the hue of the pixel of interest is replaced with the dominant hue around it. The filter coefficient calculation means calculates the filter coefficient based on the hue of the pixel of interest and the hue information of the surrounding pixels, and outputs RGB color image data based on the calculated filter coefficient by the operation of the output means.

請求項2に係る発明は、請求項1に記載された画像処理装置について、前記色相・彩度算出手段は、前記着目画素のRGBカラー画像データを各々比較し、大きい順に、Max、Mid、Minとラベル付けを行い、前記着目画素のR、G及びBの各カラー画像データの大小関係と、該MaxとMinの差分値および該MidとMinとの差分値との大小関係とにより前記着目画素の色相を算出することを特徴とする画像処理装置を提案している。   According to a second aspect of the present invention, in the image processing apparatus according to the first aspect, the hue / saturation calculating unit compares the RGB color image data of the pixel of interest, and the order of Max, Mid, Min The pixel of interest is determined by the magnitude relationship between the R, G, and B color image data of the pixel of interest and the magnitude relationship of the difference value between Max and Min and the difference value between Mid and Min. Has proposed an image processing device characterized by calculating the hue of the image.

請求項5に係る発明は、請求項4に記載されたプログラムについて、前記色相および彩度を算出するステップは、前記着目画素のRGBカラー画像データを各々比較して、Max、Mid、Minとラベル付けを行うステップと、前記着目画素のR、G及びBの各カラー画像データの大小関係と、該MaxとMinの差分値および該MidとMinとの差分値との大小関係とにより前記着目画素の色相を算出するステップとから構成されることを特徴とするプログラムを提案している。   According to a fifth aspect of the present invention, in the program according to the fourth aspect, the step of calculating the hue and saturation compares the RGB color image data of the pixel of interest with each other, and labels Max, Mid, and Min. The pixel of interest by the step of adding, the magnitude relationship between the R, G, and B color image data of the pixel of interest, and the magnitude relationship of the difference value between Max and Min and the difference value between Mid and Min. A program characterized by comprising the step of calculating the hue of the image.

これらの発明によれば、色相・彩度算出手段は、着目画素のRGBカラー画像データの大きさを検出して、これをデータ値の大きい順番に、Max値、Mid値、Min値として出力する。出力されたデータは色空間座標上に展開され、着目画素が該当する色相領域と、Max値とMin値の差分値とMid値とMin値との差分値との大小関係により色相が算出される。   According to these inventions, the hue / saturation calculating means detects the size of the RGB color image data of the pixel of interest, and outputs this as the Max value, the Mid value, and the Min value in the order of the data values. . The output data is developed on the color space coordinates, and the hue is calculated based on the magnitude relationship between the hue area corresponding to the target pixel, the difference value between the Max value and the Min value, and the difference value between the Mid value and the Min value. .

請求項3に係る発明は、請求項1に記載された画像処理装置について、前記偽色判定手段は、前記色相・彩度算出手段により求められた前記着目画素の彩度と予め設定された彩度の閾値、および前記着目画素の色相とその周辺画素の色相との差の絶対値の和と予め設定された閾値とにより偽色の有無を判定することを特徴とする画像処理装置を提案している。   According to a third aspect of the present invention, in the image processing apparatus according to the first aspect, the false color determination means includes a saturation of the target pixel obtained by the hue / saturation calculation means and a preset saturation. Proposed an image processing apparatus that determines the presence or absence of a false color based on a threshold value of a degree, a sum of absolute values of a difference between a hue of the pixel of interest and a hue of surrounding pixels, and a preset threshold value ing.

請求項6に係る発明は、請求項4に記載されたプログラムについて、前記偽色を判定するステップは、前記色相および彩度を算出するステップにより求められた前記着目画素の彩度と予め設定された彩度の閾値とを比較するステップと、前記着目画素の色相とその周辺画素の色相との差の絶対値の和と予め設定された閾値との比較を行うステップと、これらの比較結果から偽色の有無を判定するステップとを有することを特徴とするプログラムを提案している。   According to a sixth aspect of the invention, in the program described in the fourth aspect, the step of determining the false color is preset with the saturation of the pixel of interest obtained by the step of calculating the hue and saturation. A step of comparing the saturation threshold value, a step of comparing the sum of absolute values of the difference between the hue of the pixel of interest and the hue of the surrounding pixel and a preset threshold value, and the comparison result And a program for determining the presence or absence of a false color.

これらの発明によれば、偽色判定手段は、色相・彩度算出手段により求められた彩度と予め設定された彩度の閾値、および着目画素の色相とその周辺画素の色相との差の絶対値の和と予め設定された色相の閾値とにより偽色の有無を判定する。   According to these inventions, the false color determination means includes the saturation obtained by the hue / saturation calculation means and a preset saturation threshold, and the difference between the hue of the pixel of interest and the hue of its surrounding pixels. The presence or absence of a false color is determined based on the sum of absolute values and a preset hue threshold.

本発明によれば、色空間座標を用いた簡易な色相算出方法により、輝度情報から検出されるエッジ部分のみならず、輝度情報と色相情報とにより検出されるエッジ部分を用いて、フィルタ係数を適応的に可変することにより、ベイヤ画像を3板化する際に生じる偽色の発生を簡易な回路構成で、効率的に低減できるという効果がある。   According to the present invention, the filter coefficient is calculated using not only the edge portion detected from the luminance information but also the edge portion detected from the luminance information and the hue information by a simple hue calculation method using the color space coordinates. By adaptively changing, there is an effect that generation of false colors generated when three Bayer images are made can be efficiently reduced with a simple circuit configuration.

以下、本発明の実施例に係る画像処理装置について図1から図16を参照して詳細に説明する。   Hereinafter, an image processing apparatus according to an embodiment of the present invention will be described in detail with reference to FIGS.

本実施例に係る画像処理装置の画像処理回路は、例えば、3×3画素周期のベイヤ画像を入力して、これに色補正を行う回路であり、図1に示すように、プリプロセス手段1と、仮補間手段2と、遅延手段3と、色相・彩度算出手段4と、偽色判定手段5と、輝度算出手段6と、フィルタ係数算出手段7と、補間手段8とから構成されている。   The image processing circuit of the image processing apparatus according to the present embodiment is, for example, a circuit that inputs a Bayer image having a period of 3 × 3 pixels and performs color correction on the Bayer image. As shown in FIG. A temporary interpolation unit 2, a delay unit 3, a hue / saturation calculation unit 4, a false color determination unit 5, a luminance calculation unit 6, a filter coefficient calculation unit 7, and an interpolation unit 8. Yes.

プリプロセス手段1は、入力されるベイヤ画像にノイズリダクション処理やホワイトバランス調整等の前処理を実行する。仮補間手段2は、着目画素の近傍に位置する周辺画素を用いて、簡易的な補間を実行する。具体的には、図4に示すように、着目画素が「R」である場合には、この画素のRGBカラー画像データは、Rカラー画像データについては、検出された値をそのまま使い、Gカラー画像データについては、着目画素が「R」の周辺に位置する「G」の画素から検出された値にそれぞれ0.25を乗じた値を加算した値に、Bカラー画像データについては、着目画素が「R」の周辺に位置する「B」の画素から検出された値にそれぞれ0.25を乗じた値を加算した値を仮補間値として算出する。   The preprocessing unit 1 performs preprocessing such as noise reduction processing and white balance adjustment on the input Bayer image. The temporary interpolation unit 2 performs simple interpolation using peripheral pixels located in the vicinity of the target pixel. Specifically, as shown in FIG. 4, when the target pixel is “R”, the RGB color image data of this pixel uses the detected value as it is for the R color image data, and the G color For the image data, the value obtained by multiplying the value detected by the pixel “G” where the pixel of interest is located around the “R” is multiplied by 0.25, and for the B color image data, the pixel of interest A value obtained by multiplying the value detected from the pixel “B” positioned around “R” by a value obtained by multiplying each value by 0.25 is calculated as a temporary interpolation value.

遅延手段3は、プリプロセス手段1によりプリプロセス処理されたベイヤ画像に対して、算出されたフィルタ係数により最終的な補間処理を行うために、補間手段6に入力するベイヤ画像に一定の遅延を与えて、同期をはかるものである。色相・彩度算出手段4は、仮補間された画素データから色相および彩度を算出する。なお、詳細については、後述する。   The delay means 3 applies a certain delay to the Bayer image input to the interpolation means 6 in order to perform final interpolation processing on the Bayer image preprocessed by the preprocessing means 1 using the calculated filter coefficients. To provide synchronization. The hue / saturation calculation unit 4 calculates the hue and saturation from the temporarily interpolated pixel data. Details will be described later.

偽色判定手段5は、色相・彩度算出手段4から入力される色相および彩度の情報をそれぞれ予め定められた閾値と比較することにより、偽色の有無を判断し、偽色である場合には、着目画素の周辺から支配的な色相を検出し、その情報をフィルタ係数算出手段8に出力する。なお、偽色でない場合には、着目画素の色相をそのまま出力する。   The false color determination means 5 determines the presence or absence of a false color by comparing the hue and saturation information input from the hue / saturation calculation means 4 with predetermined threshold values. First, a dominant hue is detected from around the pixel of interest, and the information is output to the filter coefficient calculation means 8. If it is not a false color, the hue of the pixel of interest is output as it is.

輝度算出手段6は、仮補間手段2により仮補間されたRGBカラー画像データを入力し、これらのデータから輝度情報を算出する。フィルタ係数算出手段7は、偽色判定手段5からの出力信号と、色相・彩度算出手段4からの色相情報および輝度算出手段6からの輝度情報を入力し、色補正を行うためのフィルタ係数を算出する。補間手段8は、遅延手段3を介して入力されるベイヤ画像にフィルタ係数算出手段7から出力されたフィルタ係数を乗じてRGBカラー画像を出力する。   The luminance calculation means 6 receives the RGB color image data temporarily interpolated by the temporary interpolation means 2 and calculates luminance information from these data. The filter coefficient calculation means 7 receives the output signal from the false color determination means 5, the hue information from the hue / saturation calculation means 4 and the luminance information from the luminance calculation means 6, and a filter coefficient for performing color correction. Is calculated. The interpolation unit 8 multiplies the Bayer image input via the delay unit 3 by the filter coefficient output from the filter coefficient calculation unit 7 and outputs an RGB color image.

次に、本実施例における色相・彩度算出手段について図2、図10から図13を用いて説明する。
色相・彩度算出手段4は、図2に示すように、大小判定手段41と、彩度算出手段42と、色相算出手段43とから構成されている。
ここで、各構成要素について説明する前に、図10から図12を用いて、前提となる背景技術について説明する。
Next, the hue / saturation calculation means in this embodiment will be described with reference to FIGS. 2 and 10 to 13.
As shown in FIG. 2, the hue / saturation calculation unit 4 includes a size determination unit 41, a saturation calculation unit 42, and a hue calculation unit 43.
Here, before describing each component, the background art as a premise will be described with reference to FIGS. 10 to 12.

図10に示すように、R、G、Bの原色を3軸とする色空間を考えると、再現できる色は、図中の正六角形の範囲になる。ここで、図中、Aのポイントは白に、Bのポイントは黒に相当する。この色空間を構成する座標軸を前述のAのポイントとBのポイントとが交わって見えるように回転すると、図11のようになる。   As shown in FIG. 10, considering a color space having three axes of R, G, and B primary colors, reproducible colors are in the range of regular hexagons in the figure. Here, in the figure, point A corresponds to white and point B corresponds to black. When the coordinate axes constituting this color space are rotated so that the points A and B mentioned above intersect, the result is as shown in FIG.

R、G、Bを3軸とする色空間は、色相、輝度、彩度を3軸とする空間に変換して考えることができるが、色相に関して言えば、「赤みを帯びている」、「青みを帯びている」等が判明すればよいため、再現すべき色が図11に示した色空間のどの平面に属するかという見方に置き換えて考えることもできる。例えば、図11中のCのポイントを着目画素とすると、その色は、赤が支配的で、次に緑が強く、青の成分がほとんどない色、すなわち、「赤みがかった黄色」であると判断できる。   A color space having three axes of R, G, and B can be considered by converting it to a space having three axes of hue, luminance, and saturation, but regarding hue, “reddish”, “ Since it is only necessary to find out that “it is bluish” or the like, it can be considered by replacing it with the view of which plane in the color space shown in FIG. 11 the color to be reproduced belongs to. For example, if the point C in FIG. 11 is the pixel of interest, the color is determined to be a color in which red is dominant, green is next strong, and there is almost no blue component, that is, “reddish yellow”. it can.

次に、図11の正六角形の頂点の座標をそれぞれ、(0、0、0)、(Rn、0、0)、(Rn、Bn、0)、(0、Bn、0)、(0、Bn、Gn)、(Rn、Bn、Gn)、(0、0、Gn)、(Rn、0、Gn)とすると、
(0、0、0)と(Rn、0、Gn)を結ぶ線分はR=G、(0、0、0)と(0、Bn、Gn)を結ぶ線分はG=B、(0、0、0)と(Rn、Bn、0)を結ぶ線分はR=Bとなり、これらの3つの線分とR、G、Bの3軸とのなす角は、それぞれ60度になる。
また、これらの線分に対して、R=2G、R=2B、G=2B、G=2R、B=2R、B=2Gの線分を引くと、360度の色空間を12の領域に分割できる。
Next, the coordinates of the vertices of the regular hexagon in FIG. 11 are respectively (0, 0, 0), (Rn, 0, 0), (Rn, Bn, 0), (0, Bn, 0), (0, Bn, Gn), (Rn, Bn, Gn), (0, 0, Gn), (Rn, 0, Gn)
The line segment connecting (0, 0, 0) and (Rn, 0, Gn) is R = G, and the line segment connecting (0, 0, 0) and (0, Bn, Gn) is G = B, (0 , 0, 0) and (Rn, Bn, 0) are R = B, and the angles formed by these three line segments and the three axes R, G, and B are 60 degrees.
In addition, when a line segment of R = 2G, R = 2B, G = 2B, G = 2R, B = 2R, and B = 2G is drawn with respect to these line segments, the 360-degree color space becomes 12 regions. Can be divided.

本実施例における色相・彩度算出手段4は、着目画素の偽色を判断するために色相および彩度を算出処理するものであり、ここで、偽色とは、例えば、周辺画素が「黄色みがかっている」ときに、着目画素が「青みがかっている」色であるとか、周辺画素に対して、色相が非常に大きく変化する現象をいうため、着目画素の色合いを厳密に求める必要はない。   The hue / saturation calculation means 4 in the present embodiment calculates the hue and saturation in order to determine the false color of the pixel of interest. Here, the false color is, for example, that the surrounding pixels are “yellow It is not necessary to strictly determine the hue of the pixel of interest because the pixel of interest is a “blueish” color when it is “bright” or because the hue changes significantly with respect to surrounding pixels. .

また、図11上の着目画素であるポイントCの座標を(R1、G1、B1)とすると、この座標は、(R1−B1、G1−B1、0)というように表すこともできるから、これを利用すれば、ポイントCが上記の12分割された色相のどの領域に属するか否かの境界条件の算出には、乗除算等の複雑な処理は不要であり、単に、着目画素の座標値と境界線との比較処理で済むため、処理負荷が大幅に軽減できる。   Further, if the coordinates of the point C as the pixel of interest in FIG. 11 are (R1, G1, B1), the coordinates can also be expressed as (R1-B1, G1-B1, 0). Is used, the calculation of the boundary condition as to whether the point C belongs to which region of the above-mentioned 12-divided hues does not require complicated processing such as multiplication and division. Therefore, the processing load can be greatly reduced.

次に、上記の処理をさらに簡略化するために、着目画素のRGBデータをそれぞれ、大きいもの順に、Max、Mid、Minのラベル付けを行う。例えば、図12に示すように、着目画素のRGBデータの大小関係が、Max=R、Mid=G、Min=Bであったとすると、上述のように、(Max、Mid、Min)は、
(Max、Mid、Min)=(Max−Min、Mid−Min、0)
のように変換することができる。
Next, in order to further simplify the above processing, Max, Mid, and Min are labeled in the descending order of the RGB data of the pixel of interest. For example, as shown in FIG. 12, if the magnitude relationship of the RGB data of the pixel of interest is Max = R, Mid = G, Min = B, as described above, (Max, Mid, Min) is
(Max, Mid, Min) = (Max-Min, Mid-Min, 0)
Can be converted as follows.

したがって、RGBカラー画像データの大小関係と上記変換座標とが明らかになれば、まず、RGBカラー画像データの大小関係から図13に示すように、着目画素が該当する色相が12分割された色相のどの領域なのかが特定でき、その処理をさらに簡略化することができる。なお、図13の領域とRGBデータの大小との関係を数1に示す。上記の例では、RGBカラー画像データの大小関係がR、G、Bの順番であるという情報と、着目画素の座標情報があれば、この座標とR軸および線分R=2G、R=Gの3つの境界を比較することにより、着目画素の該当領域を簡単に特定することができる。   Therefore, if the magnitude relation of the RGB color image data and the conversion coordinates are clarified, first, the hue corresponding to the target pixel is divided into twelve as shown in FIG. 13 from the magnitude relation of the RGB color image data. It is possible to identify which region, and the processing can be further simplified. The relationship between the area of FIG. 13 and the size of the RGB data is shown in Equation 1. In the above example, if there is information that the magnitude relationship of the RGB color image data is the order of R, G, B and the coordinate information of the pixel of interest, this coordinate, the R axis and the line segment R = 2G, R = G By comparing the three boundaries, it is possible to easily identify the corresponding region of the target pixel.

Figure 2005260675
Figure 2005260675

そのため、本実施例における大小判定手段41は、RGBカラー画像データをMax、Mid、Minとラベル付けして出力するとともに、RGBカラー画像データの大小関係の判定結果を数2のように、Tとして出力する。   Therefore, the size determination means 41 in the present embodiment labels and outputs the RGB color image data as Max, Mid, and Min, and sets the determination result of the size relationship of the RGB color image data as T as shown in Equation 2. Output.

Figure 2005260675
Figure 2005260675

彩度算出手段42は、大小判定手段41から入力されるMax、Mid、Minの値を用いて、色空間座標の原点からの距離を求めることにより、彩度を算出する。なお、Max、Mid、Minの値のうち、(Max−Min)値が距離に関して支配的であると考えられるため、この値から彩度を算出して処理の軽減を図ることもできる。色相算出手段43は、大小判定手段41から入力されるMax、Mid、Minの値およびTの値を用いて、着目画素が図13の0から11の領域のうち、どこに属するものなのかをフィルタ係数算出手段7に出力する。   The saturation calculation unit 42 calculates the saturation by obtaining the distance from the origin of the color space coordinates using the values of Max, Mid, and Min input from the magnitude determination unit 41. Of the Max, Mid, and Min values, the (Max-Min) value is considered to be dominant with respect to the distance, and the saturation can be calculated from this value to reduce the processing. The hue calculation unit 43 uses the Max, Mid, Min, and T values input from the size determination unit 41 to filter the pixel to which the pixel of interest belongs among the regions 0 to 11 in FIG. It outputs to the coefficient calculation means 7.

次に、図5および図6を用いて、偽色判定手段5について説明する。
本実施例における偽色判定手段5は、色相・彩度算出手段4で算出された色相Hと彩度Sとが入力され、着目画素における偽色の有無を判断する。具体的には、図5に示すように、色相・彩度算出手段4で算出された着目画素の色相をHc、その周辺画素の色相をHs0からHs7としたときに、数3から、着目画素の色相Hcとその周辺画素のそれぞれの色相との差の絶対値の総和を算出し、これを図6に示す閾値Th_Hと比較する。そして、閾値Th_Hより大きい場合には、偽色が発生しているとみなす。
Next, the false color determination means 5 will be described with reference to FIGS.
The false color determination means 5 in this embodiment receives the hue H and saturation S calculated by the hue / saturation calculation means 4 and determines the presence or absence of a false color in the pixel of interest. Specifically, as shown in FIG. 5, when the hue of the pixel of interest calculated by the hue / saturation calculating means 4 is Hc and the hue of the surrounding pixels is Hs0 to Hs7, The sum of the absolute values of the differences between the hue Hc and the hues of the surrounding pixels is calculated, and this is compared with the threshold Th_H shown in FIG. If it is larger than the threshold Th_H, it is considered that a false color has occurred.

Figure 2005260675
Figure 2005260675

さらに、彩度Sも閾値Th_Sと比較する。着目画素の彩度が小さい場合は、色味がほとんどないため、周辺と色が異なったとしても影響は小さい。ここでは、彩度に閾値Th_Sを設定しておき、閾値Th_Sよりも小さい場合には、偽色とはみなさない。   Further, the saturation S is also compared with the threshold Th_S. When the saturation of the pixel of interest is small, there is almost no color, so even if the surroundings and colors are different, the influence is small. Here, a threshold Th_S is set for the saturation, and if it is smaller than the threshold Th_S, it is not regarded as a false color.

したがって、ある色味以上の色であって、着目画素の色相が周辺画素の色相に比べて、ある値以上にかけ離れていると判断した場合(図6の斜線部分)には、周辺画素の中で、支配的な色相を着目画素の色相として出力する。ここで、出力されるHc´は、偽色があるかないかに関わらず、着目画素はこの色になるはずという目標の色相を示している。   Therefore, when it is determined that the color of the target pixel is higher than a certain color and the hue of the pixel of interest is more than a certain value compared to the hue of the peripheral pixel (shaded area in FIG. 6), Thus, the dominant hue is output as the hue of the pixel of interest. Here, the output Hc ′ indicates the target hue that the pixel of interest should be in this color regardless of whether or not there is a false color.

次に、図3、図7、図8、図9、図14、図15を用いて、フィルタ係数算出手段7について説明する。
本実施例におけるフィルタ係数算出手段7は、図3に示すように、色相重み係数算出手段101と、輝度重み係数算出手段102と、乗算器アレイ103とから構成されている。色相重み係数算出手段101は、偽色判定手段5から出力されるHc´と色相・彩度算出手段4から出力されるHとを入力し、色相についての重み係数を算出する。
Next, the filter coefficient calculation unit 7 will be described with reference to FIGS. 3, 7, 8, 9, 14, and 15.
As shown in FIG. 3, the filter coefficient calculation means 7 in the present embodiment includes a hue weight coefficient calculation means 101, a luminance weight coefficient calculation means 102, and a multiplier array 103. The hue weight coefficient calculation unit 101 inputs Hc ′ output from the false color determination unit 5 and H output from the hue / saturation calculation unit 4 and calculates a weight coefficient for the hue.

具体的には、まず、図14のようにHc´とHとを配列する。次に、着目画素のRデータについての重み係数を求める場合には、Hc´と着目画素に隣接するH(R1)からH(R4)までのデータとを逐一比較する。そして、Hc´との差が小さいデータには重みを大きく、差が大きいデータには重みを小さくして重み係数Kh0からKh7を求める。こうした処理をGカラー画像データおよびBカラー画像データに対しても同様に行う。   Specifically, first, Hc ′ and H are arranged as shown in FIG. Next, when obtaining the weighting coefficient for the R data of the pixel of interest, Hc ′ and the data from H (R1) to H (R4) adjacent to the pixel of interest are compared one by one. The weight coefficients Kh0 to Kh7 are obtained by increasing the weight for data having a small difference from Hc ′ and decreasing the weight for data having a large difference. Such processing is similarly performed on the G color image data and the B color image data.

図14に示すような3×3の色相情報を得るには、周辺5×5の画素情報が必要となる。本実施例のように、着目画素がベイヤ配列でR画素の場合、周辺5×5の画素情報は、図8(1)に示すようになっている。そこで、例えば、図14に示すHc´とH(R1)とが似た色相であった場合、H(R1)を作るために必要であったR画素は図8に示す9画素のRのうち、左上にある4画素のみであるため、これらの重みを大きくすることになる。   In order to obtain 3 × 3 hue information as shown in FIG. 14, peripheral 5 × 5 pixel information is required. As in the present embodiment, when the pixel of interest is an R pixel in a Bayer array, the pixel information of the surrounding 5 × 5 is as shown in FIG. Therefore, for example, when Hc ′ and H (R1) shown in FIG. 14 have similar hues, the R pixels necessary to make H (R1) are the R out of the nine pixels shown in FIG. Since there are only four pixels in the upper left, these weights are increased.

一方、図14に示すH(G2)がHc´と異なる色相であった場合、H(G2)を作るために必要であったR画素は、図8に示すR画素のうち、左列中央と、中心にある2画素であるため、これらの重みを小さくすることになる。なお、この場合、左列中央と中心の画素は、上記のいずれにも該当することになるが、この場合は、双方の効果が反映されて差し引きされた重み係数が設定されることになる。   On the other hand, when H (G2) shown in FIG. 14 has a hue different from Hc ′, the R pixel necessary for making H (G2) is the center of the left column of the R pixels shown in FIG. Since these are the two pixels at the center, these weights are reduced. In this case, the center pixel and the center pixel in the left column correspond to both of the above, but in this case, a weighting factor subtracted by reflecting both effects is set.

輝度重み係数算出手段102は、輝度算出手段6から輝度情報が入力される。例えば、図15に示すように、着目画素の輝度が高く、周辺に輝度の低い画素がある場合には、輝度の高い画素の重み係数を大きくして、重み係数Ky0からKy7を求める。   The luminance weight coefficient calculating unit 102 receives luminance information from the luminance calculating unit 6. For example, as shown in FIG. 15, when the luminance of the pixel of interest is high and there are pixels with low luminance in the vicinity, the weighting factor of the high luminance pixel is increased and the weighting factors Ky0 to Ky7 are obtained.

乗算器アレイ103は、色相重み係数算出手段101から出力されるKh0からKh7までの色相に関する重み係数と、輝度重み係数算出手段102から出力されるKy0からKy7までの色相に関する重み係数とを入力し、これらの値を乗ずることにより、図9に示すようなフィルタ係数K0からK7までの係数を補間手段に出力する。   The multiplier array 103 receives the weighting factors relating to the hues Kh0 to Kh7 output from the hue weighting factor calculating means 101 and the weighting factors relating to the hues Ky0 to Ky7 outputted from the luminance weighting factor calculating means 102. By multiplying these values, coefficients from filter coefficients K0 to K7 as shown in FIG. 9 are output to the interpolation means.

なお、2つの重み係数のフィルタ係数に対する寄与は、図7に示すように、輝度エッジについては、エッジに対して中心に重点をおき、非エッジに対しては、一様係数とする。また、色相エッジについては、エッジに対しては周辺の支配的な色相に重点をおき、非エッジについては、着目画素の色相に重点をおく。   As shown in FIG. 7, the contributions of the two weighting factors to the filter coefficients are centered on the edges for luminance edges and uniform coefficients for non-edges. As for the hue edge, emphasis is placed on the dominant dominant hue around the edge, and on the non-edge, emphasis is placed on the hue of the pixel of interest.

補間手段8は、フィルタ係数算出手段7から入力されるフィルタ係数K0からK7を遅延手段3から入力したベイヤ画像に乗算して、色補正されたRGBカラー画像を出力する。なお、本実施例は、奇数フィルタを用いた場合でも、偶数フィルタを用いた場合でも適用することができる。   The interpolation unit 8 multiplies the Bayer image input from the delay unit 3 by the filter coefficients K0 to K7 input from the filter coefficient calculation unit 7 and outputs a color-corrected RGB color image. The present embodiment can be applied to the case where the odd number filter is used or the case where the even number filter is used.

次に、図16を用いて、本実施例に係る画像処理装置における処理の手順について説明する。
プリプロセス1において前処理されたベイヤ画像は仮補間手段2において、着目画素の近傍画素を用いて簡易的な仮補間が実行される(ステップ101)。仮補間手段2から出力されたRGB信号は、色相・彩度算出手段4に入力される。入力されたRGB信号は、大小関係が判断され、12分割された色相空間のどの領域に該当するのかが検出されて、着目画素の色相が求められる。また、彩度は、入力されたRGB信号のうち、最大のものと最小のものとを用いて、近似的に算出される(ステップ102)。
Next, a processing procedure in the image processing apparatus according to the present embodiment will be described with reference to FIG.
The Bayer image preprocessed in the preprocess 1 is subjected to simple provisional interpolation by using the neighboring pixels of the pixel of interest in the provisional interpolation means 2 (step 101). The RGB signals output from the temporary interpolation unit 2 are input to the hue / saturation calculation unit 4. The input RGB signal is determined in magnitude relation, and it is detected which region of the hue space divided into 12 corresponds to the hue of the pixel of interest. The saturation is approximately calculated using the maximum and minimum of the input RGB signals (step 102).

色相・彩度算出手段4から出力された色相と彩度は、偽色判定手段5に入力され、着目画素の色相が周辺画素の色相と大きく異なるか否かが判断される(ステップ103)。そして、着目画素の色相が周辺画素の色相と大きく異なるときは、偽色と判断し、着目画素の色相を周辺の支配的な色相に置き換える(ステップ104)。   The hue and saturation output from the hue / saturation calculation unit 4 are input to the false color determination unit 5, and it is determined whether the hue of the pixel of interest is significantly different from the hues of the surrounding pixels (step 103). If the hue of the pixel of interest is significantly different from the hues of the surrounding pixels, it is determined as a false color, and the hue of the pixel of interest is replaced with the dominant hue of the surrounding (step 104).

次に、フィルタ係数算出手段7において、この着目画素の色相と周囲の色相とを比較して、この色相に似た色には重みを大きく、異なる色には重みを小さくして、重み係数を算出する(ステップ105)。算出された重み係数は、補間手段8に出力され、遅延手段3から入力されたベイヤ画像に対して乗算され、RGBカラー画像が出力される(ステップ106)。   Next, the filter coefficient calculation means 7 compares the hue of this pixel of interest with the surrounding hues, increases the weight for colors similar to this hue, decreases the weight for different colors, and sets the weight coefficient. Calculate (step 105). The calculated weighting coefficient is output to the interpolating means 8 and multiplied by the Bayer image input from the delay means 3 to output an RGB color image (step 106).

以上、本実施例によれば、輝度に基づくエッジのみならず、色相に基づくエッジをも考慮しつつ、簡易な演算処理により、単板画像を3板画像に変換する際に生じる偽色の発生を効果的に抑制することができる。   As described above, according to the present embodiment, generation of false colors generated when a single-plate image is converted into a three-plate image by a simple calculation process while considering not only an edge based on luminance but also an edge based on hue. Can be effectively suppressed.

以上、図面を参照して本発明の実施例について詳述してきたが、具体的な構成はこれらの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計変更等も含まれる。例えば、本実施例においては、色相の重み係数をHc´との色相比較において算出する例について説明したが、Hc´とHcとの比較を実行し、偽色の可能性に応じて、重み付き加算平均により、色相重み係数を算出してもよい。   The embodiments of the present invention have been described in detail with reference to the drawings. However, the specific configuration is not limited to these embodiments, and includes design changes and the like without departing from the scope of the present invention. . For example, in this embodiment, the example in which the hue weighting coefficient is calculated in the hue comparison with Hc ′ has been described. However, the comparison between Hc ′ and Hc is performed, and weighting is performed according to the possibility of false colors. The hue weight coefficient may be calculated by the averaging.

本発明に係る画像処理装置の構成図である。1 is a configuration diagram of an image processing apparatus according to the present invention. 色相・彩度算出手段の構成図である。It is a block diagram of a hue / saturation calculation means. フィルタ係数算出手段の構成図である。It is a block diagram of a filter coefficient calculation means. 仮補間処理の係数値を示す図である。It is a figure which shows the coefficient value of a temporary interpolation process. 着目画素と周辺画素の関係を示す図である。It is a figure which shows the relationship between a focused pixel and a surrounding pixel. 閾値と偽色領域との関係を示す図である。It is a figure which shows the relationship between a threshold value and a false color area | region. 輝度エッジと色相エッジのフィルタ係数に対する寄与を示す図である。It is a figure which shows the contribution with respect to the filter coefficient of a luminance edge and a hue edge. 着目画素を囲む5×5画素におけるR、G、Bの配列を示す図である。It is a figure which shows the arrangement | sequence of R, G, B in 5x5 pixel surrounding a focused pixel. 周辺画素の着目画素に対するフィルタ係数を示す図である。It is a figure which shows the filter coefficient with respect to the focused pixel of a surrounding pixel. RGBを3軸とする色空間を示す図である。It is a figure which shows the color space which makes RGB three axes. RGBを3軸とする色空間と12分割された領域を示す図である。It is a figure which shows the color space which makes RGB 3 axes, and the area | region divided into 12 parts. RGBの色空間をMax、Mid、Min軸に変換した色空間を示す図である。It is a figure which shows the color space which converted RGB color space into Max, Mid, and Min axis. 12分割された色空間の領域を示す図である。It is a figure which shows the area | region of the color space divided into 12 parts. 着目画素と周辺画素の色相の関係を示す図である。It is a figure which shows the relationship of the hue of a focused pixel and a surrounding pixel. 着目画素と周辺画素の輝度の関係を示す図である。It is a figure which shows the relationship between the focused pixel and the brightness | luminance of a surrounding pixel. 本実施例における処理フロー図である。It is a processing flow figure in a present Example.

符号の説明Explanation of symbols

1・・・プリプロセス手段、2・・・仮補間手段、3・・・遅延手段、4・・・色相・彩度算出手段、5・・・偽色判定手段、6・・・輝度算出手段、7・・・フィルタ係数算出手段、8・・・補間手段、41・・・大小判定手段、42・・・彩度算出手段、43・・・色相算出手段、101・・・色相重み係数算出手段、102・・・輝度重み係数算出手段、103・・・乗算器アレイ
DESCRIPTION OF SYMBOLS 1 ... Pre-processing means, 2 ... Temporary interpolation means, 3 ... Delay means, 4 ... Hue / saturation calculation means, 5 ... False color determination means, 6 ... Luminance calculation means 7 ... Filter coefficient calculation means, 8 ... Interpolation means, 41 ... Size determination means, 42 ... Saturation calculation means, 43 ... Hue calculation means, 101 ... Hue weight coefficient calculation Means 102: Luminance weight coefficient calculation means 103: Multiplier array

Claims (6)

単板式撮像素子から入力されるベイヤ画像を補間手段により同時化し、カラー画像として出力する画像処理装置であって、
該補間手段は、着目画素のRGBカラー画像データに対応する仮の補間値を周辺画素のRGBカラー画像データから算出する仮補間手段と、
該仮補間手段から出力されたRGBカラー画像データから該着目画素の色相および彩度を算出する色相・彩度算出手段と、
該色相・彩度算出手段から出力された前記着目画素とその周辺画素との色相を比較して、該着目画素とその周辺画素との色相の差が所定値を超えたときに、該着目画素が偽色であると判断し、該着目画素の色相をその周辺の支配的な色相に置き換える偽色判定手段と、
該偽色判定手段から出力された着目画素の色相とその周辺画素の色相とに基づいてフィルタ係数を算出するフィルタ係数算出手段と、
該算出したフィルタ係数に基づいて、RGBカラー画像データを出力する出力手段を有することを特徴とする画像処理装置。
An image processing device that synchronizes a Bayer image input from a single-plate image sensor by an interpolation unit and outputs a color image,
The interpolating means calculates a temporary interpolation value corresponding to the RGB color image data of the pixel of interest from the RGB color image data of the surrounding pixels;
Hue / saturation calculating means for calculating the hue and saturation of the pixel of interest from the RGB color image data output from the temporary interpolation means;
When the hue of the target pixel output from the hue / saturation calculation unit and its surrounding pixels are compared, and the hue difference between the target pixel and its peripheral pixels exceeds a predetermined value, the target pixel False color determination means for determining that the pixel is a false color and replacing the hue of the pixel of interest with a dominant hue around the pixel;
Filter coefficient calculation means for calculating a filter coefficient based on the hue of the pixel of interest output from the false color determination means and the hue of the surrounding pixels;
An image processing apparatus comprising output means for outputting RGB color image data based on the calculated filter coefficients.
前記色相・彩度算出手段は、前記着目画素のRGBカラー画像データを各々比較し、大きい順に、Max、Mid、Minとラベル付けを行い、前記着目画素のR、G及びBの各カラー画像データの大小関係と、該MaxとMinの差分値および該MidとMinとの差分値との大小関係とにより前記着目画素の色相を算出することを特徴とする請求項1に記載された画像処理装置。   The hue / saturation calculating unit compares the RGB color image data of the pixel of interest, and performs labeling with Max, Mid, and Min in descending order, and R, G, and B color image data of the pixel of interest. 2. The image processing apparatus according to claim 1, wherein the hue of the pixel of interest is calculated based on a magnitude relationship between the difference value between Max and Min and a magnitude relationship between the difference value between Mid and Min. . 前記偽色判定手段は、前記色相・彩度算出手段により求められた前記着目画素の彩度と予め設定された彩度の閾値、および前記着目画素の色相とその周辺画素の色相との差の絶対値の和と予め設定された閾値とにより偽色の有無を判定することを特徴とする請求項1に記載された画像処理装置。   The false color determination means includes the saturation of the pixel of interest obtained by the hue / saturation calculation means and a preset saturation threshold, and the difference between the hue of the pixel of interest and the hue of surrounding pixels. The image processing apparatus according to claim 1, wherein presence or absence of a false color is determined based on a sum of absolute values and a preset threshold value. 単板式撮像素子から入力されるベイヤ画像を補間により同時化し、カラー画像として出力する画像処理装置に用いられるプログラムであって、
着目画素のRGBカラー画像データに対応する仮の補間値を周辺画素のRGBカラー画像データから算出するステップと、
該算出された着目画素のRGBカラー画像データから色相および彩度を算出するステップと、
該算出された着目画素とその周辺画素との色相とを比較して、該着目画素とその周辺画素との色相の差が所定値を超えたときに、該着目画素が偽色であると判断するステップと、
該偽色であると判断したときに、該着目画素の色相をその周辺の支配的な色相に置き換えるステップと、
該置き換えられた着目画素の色相あるいは前記算出された着目画素の色相とその周辺画素の色相情報に基づいてフィルタ係数を算出するステップと、
該算出したフィルタ係数に基づいて、RGBカラー画像データを出力するステップとを実行するプログラム。
A program used in an image processing apparatus that synchronizes Bayer images input from a single-plate image sensor by interpolation and outputs them as color images,
Calculating a temporary interpolation value corresponding to the RGB color image data of the pixel of interest from the RGB color image data of the surrounding pixels;
Calculating hue and saturation from the calculated RGB color image data of the pixel of interest;
The calculated hue of the target pixel and its surrounding pixels are compared, and when the difference in hue between the target pixel and its peripheral pixels exceeds a predetermined value, it is determined that the target pixel is a false color And steps to
Replacing the hue of the pixel of interest with a dominant hue around it when it is determined that the false color; and
Calculating a filter coefficient based on the hue of the replaced target pixel or the calculated hue of the target pixel and the hue information of the surrounding pixels;
And a step of outputting RGB color image data based on the calculated filter coefficients.
前記色相および彩度を算出するステップは、
前記着目画素のRGBカラー画像データを各々比較して、Max、Mid、Minとラベル付けを行うステップと、
前記着目画素のR、G及びBの各カラー画像データの大小関係と、該MaxとMinの差分値および該MidとMinとの差分値との大小関係とにより前記着目画素の色相を算出するステップとから構成されることを特徴とする請求項4に記載されたプログラム。
The step of calculating the hue and saturation includes
Comparing the RGB color image data of the pixel of interest with each other and labeling with Max, Mid, and Min;
Calculating the hue of the pixel of interest based on the magnitude relationship between the R, G, and B color image data of the pixel of interest and the magnitude relationship of the difference value between Max and Min and the difference value between Mid and Min. The program according to claim 4, comprising:
前記偽色を判定するステップは、
前記色相および彩度を算出するステップにより求められた前記着目画素の彩度と予め設定された彩度の閾値とを比較するステップと、
前記着目画素の色相とその周辺画素の色相との差の絶対値の和と予め設定された閾値との比較を行うステップと、
これらの比較結果から偽色の有無を判定するステップとを有することを特徴とする請求項4に記載されたプログラム。


The step of determining the false color includes
Comparing the saturation of the pixel of interest determined by the step of calculating the hue and saturation with a preset saturation threshold;
Comparing the sum of the absolute values of the differences between the hue of the pixel of interest and the surrounding pixels and a preset threshold;
The program according to claim 4, further comprising a step of determining the presence or absence of a false color from these comparison results.


JP2004070790A 2004-03-12 2004-03-12 Image processor and program Withdrawn JP2005260675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004070790A JP2005260675A (en) 2004-03-12 2004-03-12 Image processor and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004070790A JP2005260675A (en) 2004-03-12 2004-03-12 Image processor and program

Publications (1)

Publication Number Publication Date
JP2005260675A true JP2005260675A (en) 2005-09-22

Family

ID=35085964

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004070790A Withdrawn JP2005260675A (en) 2004-03-12 2004-03-12 Image processor and program

Country Status (1)

Country Link
JP (1) JP2005260675A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007040170A1 (en) * 2005-10-04 2007-04-12 Matsushita Electric Industrial Co., Ltd. Vehicle mounted imaging apparatus
WO2007108164A1 (en) * 2006-03-23 2007-09-27 Niigata Seimitsu Co., Ltd. Image processing device
JP2008288947A (en) * 2007-05-18 2008-11-27 Casio Comput Co Ltd Image processing apparatus and program thereof
JP2009239608A (en) * 2008-03-27 2009-10-15 Mega Chips Corp Image processing apparatus and digital camera
JP2009290301A (en) * 2008-05-27 2009-12-10 Denso Corp Video signal processing apparatus
JP2011143100A (en) * 2010-01-15 2011-07-28 Olympus Corp Image processor, endoscope system, program, and image processing method
JP2014209689A (en) * 2013-04-16 2014-11-06 リコーイメージング株式会社 Imaging device and method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007040170A1 (en) * 2005-10-04 2007-04-12 Matsushita Electric Industrial Co., Ltd. Vehicle mounted imaging apparatus
US8022985B2 (en) 2005-10-04 2011-09-20 Panasonic Corporation Vehicle-mounted imaging device
WO2007108164A1 (en) * 2006-03-23 2007-09-27 Niigata Seimitsu Co., Ltd. Image processing device
JP2007257237A (en) * 2006-03-23 2007-10-04 Niigata Seimitsu Kk Image processor
JP4641957B2 (en) * 2006-03-23 2011-03-02 彰 吉田 Image processing apparatus and image processing program
JP2008288947A (en) * 2007-05-18 2008-11-27 Casio Comput Co Ltd Image processing apparatus and program thereof
JP2009239608A (en) * 2008-03-27 2009-10-15 Mega Chips Corp Image processing apparatus and digital camera
JP2009290301A (en) * 2008-05-27 2009-12-10 Denso Corp Video signal processing apparatus
JP2011143100A (en) * 2010-01-15 2011-07-28 Olympus Corp Image processor, endoscope system, program, and image processing method
JP2014209689A (en) * 2013-04-16 2014-11-06 リコーイメージング株式会社 Imaging device and method

Similar Documents

Publication Publication Date Title
JP5157753B2 (en) Image processing apparatus, image processing method, and image processing program
JP4709084B2 (en) Image processing apparatus and image processing method
US7668391B2 (en) Image signal processor and image signal processing method
US7697044B2 (en) Image processing apparatus and image processing method
JP2007110576A (en) Color correction device for subject image data and control method thereof
JP2008205691A (en) Image processor and image processing method, recording medium, and program
WO2012063885A1 (en) Image processing apparatus and control method of the same
WO2006134923A1 (en) Image processing device, computer program product, and image processing method
JP5041886B2 (en) Image processing apparatus, image processing program, and image processing method
JP2006324974A (en) Image processing apparatus
KR20070103229A (en) Method and apparatus for color interpolation
JP2012165204A (en) Signal processing apparatus, signal processing method, imaging apparatus, and imaging processing method
US8648937B2 (en) Image processing apparatus, image processing method, and camera module
JP2008258909A (en) Signal processing circuit
WO2017154293A1 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP2005260675A (en) Image processor and program
JP2005142832A (en) Outline correcting circuit and imaging unit
JP2012235465A (en) Apparatus and method for processing image in digital camera
JP4044826B2 (en) Semiconductor integrated circuit
JPH11220745A (en) Device and method for camera signal processing
JP4269367B2 (en) Camera signal processing apparatus and camera signal processing method
JP4269366B2 (en) Camera signal processing apparatus and camera signal processing method
JP4269369B2 (en) Camera signal processing apparatus and camera signal processing method
JP2009239396A (en) Image processor
JP2008123296A (en) Light source color estimation method, estimated light source color setting method, and light source color control method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070605