JP4333544B2 - Image processing method, image processing apparatus, semiconductor device, electronic device, image processing program, and computer-readable recording medium - Google Patents

Image processing method, image processing apparatus, semiconductor device, electronic device, image processing program, and computer-readable recording medium Download PDF

Info

Publication number
JP4333544B2
JP4333544B2 JP2004292364A JP2004292364A JP4333544B2 JP 4333544 B2 JP4333544 B2 JP 4333544B2 JP 2004292364 A JP2004292364 A JP 2004292364A JP 2004292364 A JP2004292364 A JP 2004292364A JP 4333544 B2 JP4333544 B2 JP 4333544B2
Authority
JP
Japan
Prior art keywords
pixel
value
color
luminance signal
conversion
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.)
Expired - Fee Related
Application number
JP2004292364A
Other languages
Japanese (ja)
Other versions
JP2005260908A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2004292364A priority Critical patent/JP4333544B2/en
Priority to US11/056,352 priority patent/US7801355B2/en
Publication of JP2005260908A publication Critical patent/JP2005260908A/en
Application granted granted Critical
Publication of JP4333544B2 publication Critical patent/JP4333544B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4015Image demosaicing, e.g. colour filter arrays [CFA] or Bayer patterns
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/843Demosaicing, e.g. interpolating colour pixel values
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/10Circuitry of solid-state image sensors [SSIS]; Control thereof for transforming different wavelengths into image signals
    • H04N25/11Arrangement of colour filter arrays [CFA]; Filter mosaics
    • H04N25/13Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements
    • H04N25/134Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements based on three different wavelength filter elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/10Circuitry of solid-state image sensors [SSIS]; Control thereof for transforming different wavelengths into image signals
    • H04N25/11Arrangement of colour filter arrays [CFA]; Filter mosaics
    • H04N25/13Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements
    • H04N25/135Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements based on four or more different wavelength filter elements
    • H04N25/136Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements based on four or more different wavelength filter elements using complementary colours
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2209/00Details of colour television systems
    • H04N2209/04Picture signal generators
    • H04N2209/041Picture signal generators using solid-state devices
    • H04N2209/042Picture signal generators using solid-state devices having a single pick-up sensor
    • H04N2209/045Picture signal generators using solid-state devices having a single pick-up sensor using mosaic colour filter
    • H04N2209/046Colour interpolation to calculate the missing colour values

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Color Television Image Signal Generators (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)

Description

本発明は、CCDやCMOSなどのカラー撮像センサを備えたデジタルカメラなどに用いられる画像処理装置などに係り、特に色補間処理によって発生する偽色の排除処理を目的とした画像処理方法、及び画像処理装置、半導体装置、電子機器、画像処理プログラム、並びにコンピュータ読み取り可能な記録媒体に関するものである。   The present invention relates to an image processing apparatus used for a digital camera equipped with a color imaging sensor such as a CCD or a CMOS, and more particularly to an image processing method and an image processing method for eliminating false colors generated by color interpolation processing. The present invention relates to a processing device, a semiconductor device, an electronic device, an image processing program, and a computer-readable recording medium.

一般に、デジタルビデオカメラやデジタルスチルカメラなどのデジタルカメラには、CCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)などの撮像センサを3個使用した3板式と1個だけしか使用しない単板式とに大別される。
この3板式のデジタルカメラは、入射光をダイクロイックミラーなどで赤(R)、緑(G)、青(B)の三原色に色分解し、色分解した光情報を3個の撮像センサによってそれぞれR、G、Bのデジタル画像に変換するものであり、光学系の構造は複雑になるものの高画質の画像を得ることができることから、主に業務用のデジタルビデオカメラや高級デジタルスチルカメラなどに利用されている。
Generally, a digital camera such as a digital video camera or a digital still camera has a three-plate type using three image sensors such as a charge coupled device (CCD) and a complementary metal oxide semiconductor (CMOS) and a single-plate type using only one. It is roughly divided into
In this three-plate digital camera, incident light is separated into three primary colors of red (R), green (G), and blue (B) using a dichroic mirror, and the light information obtained by the color separation is separated by three imaging sensors. , G, and B digital images, which can be used for digital video cameras and high-end digital still cameras, etc., because high-quality images can be obtained although the structure of the optical system is complicated. Has been.

これに対し、単板式のデジタルカメラは、1個の撮像センサ上にR、G、B各色をブロック状に並べた色フィルタを装着し、各画素について対応する色フィルタを透過してきた光情報をそれぞれデジタル化するようにしたものであり、3板式のそれに比べると画質はやや劣るものの、小型・軽量、低消費電力、低価格であるため、主に民生用のデジタルビデオカメラやデジタルスチルカメラとして極めて多く利用されている。   In contrast, a single-plate digital camera has a color filter in which R, G, and B colors are arranged in a block on a single image sensor, and optical information transmitted through the corresponding color filter for each pixel is received. Each is digitalized, and although the image quality is slightly inferior to that of the three-panel type, it is small, light, low power consumption, and low in price, so it is mainly used as a consumer digital video camera and digital still camera. Very often used.

ちなみに、最近では民生用カラービデオカメラでも3板式のものを採用したものが製品化されてきている。また、撮像センサを2個用いる2板式もあり、この2板式は上記2つの方式の中間的な特徴を持つ方式であるが、現在ではあまり用いられていない。
そして、このような単板式のデジタルカメラにあっては、その構造上、欠落している色成分を予測補間するといった色補間処理が必要となってくるが、この色補間処理は、後に詳述するように注目画素周囲の画素値から推測によりその画素にない色のデータを生成するものであることから、画像のエッジ部などの画素値に急激な変化がある部分では、正確な値を算出できないことが多い。この結果、このように正確な値が算出できていないエッジ部には、本来と異なる色のバランスを持つ画素が発生してこれが偽色となって出現したり、画像がぼやけたりなどの画質を低下させる要因の1つとなっている。
Incidentally, recently, a consumer color video camera adopting a three-panel type has been commercialized. There is also a two-plate type that uses two image sensors, and this two-plate type is a method having an intermediate characteristic between the two methods described above, but it is not widely used at present.
Such a single-panel digital camera requires color interpolation processing such as predictive interpolation of missing color components because of its structure. This color interpolation processing will be described in detail later. In this way, data that does not exist in that pixel is generated by guessing from the pixel values around the pixel of interest, so accurate values are calculated when there are sudden changes in pixel values such as the edge of the image. There are many things that cannot be done. As a result, in the edge portion where an accurate value cannot be calculated in this way, a pixel having a color balance different from the original is generated and appears as a false color, or the image quality is blurred. This is one of the factors that cause a decrease.

そのため、従来では、例えば以下の特許文献1などに示すように、簡易的な色補間処理によって得られたRGBデータをさらに輝度成分Yと色差成分Cと変換してから、それぞれの成分に高域強調や低域強調フィルタ処理を施すことによって画像特性の改善を図るようにしている。
一方、以下の特許文献2や3などに示すように、広い領域の画素データを用いて適応的に色補間を行うことで、偽色の発生や画像のぼやけといった画質低下を回避することを可能とした色補間方法も提案されている。
特開2003−244711号公報 特開2002−10280号公報 特開2001−231052号公報
Therefore, conventionally, as shown in, for example, Patent Document 1 below, RGB data obtained by a simple color interpolation process is further converted into a luminance component Y and a color difference component C, and then a high frequency band is applied to each component. Image characteristics are improved by performing enhancement or low-frequency enhancement filter processing.
On the other hand, as shown in Patent Documents 2 and 3 below, it is possible to avoid image quality degradation such as generation of false colors and image blurring by adaptively performing color interpolation using pixel data in a wide area. A color interpolation method has also been proposed.
JP 2003-244711 A JP 2002-10280 A JP 2001-231052 A

ところで、前記従来技術のうち、特許文献1の方法は、色補間処理によって得られたRGBデータをさらに輝度成分Yと色差成分Cと変換するための変換式が固定されたものであることから、簡易的な色補間を施す際の処理単位(例えば、2×2画素単位や3×3画素単位)内である特定の色の値が大きいと、その値が大きい色の解像度に支配されてしまい、全体の解像度が低下してしまったようにみえることがある。 Meanwhile, among the prior art, the method of Patent Document 1, since the conversion formula for converting the RGB data obtained by the color interpolation processing further into a luminance component Y and color difference component C is one that was fixed If the value of a specific color within a processing unit (for example, 2 × 2 pixel unit or 3 × 3 pixel unit) when performing simple color interpolation is large, the value is governed by the resolution of the large color. It may appear that the overall resolution has been reduced.

例えば、R画素及びB画素がそれぞれ1つずつで、残りが2つの画素がG画素からなる2×2画素の単位で色補間処理を行う場合、1つしか存在しないR画素(あるいはB画素)の値が極端に大きくとなると、そのR画素(あるいはB画素)の影響を強く受けた色補間処理が行われて実質的にR画素の解像度で画像が生成されたようになる。その結果、解像度が本来のセンサ解像度の半分のセンサを用いて得られたような低い解像度の画像となってしまうことが考えられる。   For example, when color interpolation processing is performed in units of 2 × 2 pixels, each of which has one R pixel and one B pixel, and the remaining two pixels are G pixels, only one R pixel (or B pixel) exists When the value of becomes extremely large, color interpolation processing that is strongly influenced by the R pixel (or B pixel) is performed, and an image is generated substantially at the resolution of R pixel. As a result, it is conceivable that the image has a low resolution as obtained by using a sensor whose resolution is half of the original sensor resolution.

一方、前記特許文献2は、広い領域の画素データを用いて色補間処理を行うことから、多数のラインメモリなどが必要となったり、処理途中にて複雑な計算を用いる必要が出てくるため、全体として処理負荷が増大するといったおそれがある。また、RGBモザイク配列において、Gについては画素間の相関を利用して補間を行い、RとBについてはGデータの相関を利用して補間に利用する画素を決定するようになっているため、処理の切り換えポイントが画像のエッジ部などで頻繁に発生すると、滑らかなエッジが再現できないといった問題が発生するおそれがある。   On the other hand, in Patent Document 2, since color interpolation processing is performed using pixel data in a wide area, a large number of line memories or the like are required, or complicated calculations need to be used during the processing. As a whole, the processing load may increase. Further, in the RGB mosaic arrangement, interpolation is performed using correlation between pixels for G, and pixels used for interpolation are determined using correlation of G data for R and B. If processing switching points frequently occur at the edge of an image or the like, there may be a problem that smooth edges cannot be reproduced.

また、両技術共に、特定色を正確に算出してから他の色を算出することを前提としているため、その算出処理が別途必要となり、これも処理負荷を増大させる要因になり得ると考えられる。
そこで、本発明はこのような課題を有効に解決するために案出されたものであり、その目的は、画像処理負荷が少なく、かつ解像度の低下を回避できると共に滑らかで自然なエッジを確実に再現することができる新規な画像処理方法、及び画像処理装置、半導体装置、電子機器、画像処理プログラム、並びにコンピュータ読み取り可能な記録媒体を提供するものである。
In addition, since both technologies are based on the premise that a specific color is accurately calculated and then another color is calculated, the calculation process is separately required, and this may also increase the processing load. .
Therefore, the present invention has been devised to effectively solve such problems, and its purpose is to reduce the image processing load, avoid a decrease in resolution, and ensure a smooth and natural edge. A novel image processing method that can be reproduced, an image processing apparatus, a semiconductor device, an electronic device, an image processing program, and a computer-readable recording medium are provided.

〔発明1〕上記課題を解決するために本発明1の画像処理方法は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める工程と、当該色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換してそれぞれの信号に所定のフィルタリング処理を施す工程と、を有し、前記変換式を前記色データの各色の大きさに基づいて変化させるようにしたことを特徴とするものである。
[Invention 1] In order to solve the above problems, an image processing method of the present invention 1 comprises:
A process of obtaining color data for each pixel by performing color interpolation processing on pixel data of one color per pixel output from a single-plate color imaging sensor, and a luminance signal Y using the color data using a predetermined conversion formula And converting the color difference signal C to a predetermined filtering process on each signal, and changing the conversion formula based on the size of each color of the color data. To do.

すなわち、前述したように、単板式カラー撮像センサが出力する画素データに対する色補間処理によって得られた色データを、さらに輝度成分Yと色差成分Cと変換するための変換式は、固定されたものであることから、簡易的な色補間を施す際の処理単位内で1画素しかない、例えば「R」や「B」の値が大きすぎると、その色の解像度に支配されてしまい、全体の解像度が低下してしまったようにみえることがある。   That is, as described above, the conversion formula for converting the color data obtained by the color interpolation processing on the pixel data output from the single-plate color imaging sensor into the luminance component Y and the color difference component C is fixed. Therefore, if there is only one pixel in the processing unit when performing simple color interpolation, for example, if the value of “R” or “B” is too large, the resolution of the color will dominate, It may appear that the resolution has been reduced.

そこで、本発明は、色補間処理後の色データを輝度成分Yと色差成分Cと変換するための変換式を前記色データの各色の大きさに基づいて能動的に変化させるようにしたものである。
これによって、ある特定の色の値が大きい場合には、その影響を少なくするように(YC)変換式を変化させることができるため、その色の解像度に支配されてしまうようなことがなくなって解像度の低下を回避できる。
Therefore, the present invention actively changes the conversion formula for converting the color data after the color interpolation processing into the luminance component Y and the color difference component C based on the size of each color of the color data. is there.
As a result, when the value of a specific color is large, the (YC) conversion equation can be changed so as to reduce the influence, so that it is not controlled by the resolution of the color. A reduction in resolution can be avoided.

また、色補間処理自体には手を加えることなく、従来の簡易的な色補間処理をそのまま利用することができるため、滑らかで自然なエッジを確実に再現できると共に、画像処理負荷の増大を招くこともない。
なお、本発明でいう、「色データ」とは、1画素ごとに「R(赤)」、「G(緑)」、「B(青)」フィルタを配置した3色フィルタ(一般的に原色フィルタと呼ばれている)で得られる色データの他に、1画素ごとに「C(シアン)」、「M(マゼンタ)」、「Y(イエロ)」、「G(グリーン)」のフィルタを配置した4色フィルタ(一般的に補色フィルタと呼ばれている)で得られる色データをも含むものであり、また、原色フィルタに青紫のような色フィルタを加えたようなあらゆる色フィルタで得られる色データを対象としている(特に明示しない限り、以下の「画像処理方法」、「画像処理装置」、「画像処理プログラム」、「電子機器」、「画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体」においても同じである)。
Further, since the conventional simple color interpolation process can be used as it is without modifying the color interpolation process itself, a smooth and natural edge can be reliably reproduced, and the image processing load is increased. There is nothing.
In the present invention, “color data” refers to a three-color filter (generally a primary color) in which “R (red)”, “G (green)”, and “B (blue)” filters are arranged for each pixel. In addition to the color data obtained by the filter (referred to as “filter”), filters of “C (cyan)”, “M (magenta)”, “Y (yellow)”, and “G (green)” are provided for each pixel. It includes color data obtained with the arranged four color filters (generally called complementary color filters), and can be obtained with any color filter such as a primary color filter plus a color filter such as bluish purple. (Unless otherwise specified, the following “image processing method”, “image processing apparatus”, “image processing program”, “electronic device”, “computer-readable record recording the image processing program”) The same applies to `` medium '' In is).

また、本発明でいう「Y」とは、輝度のようなものであるが輝度そのものを指すものではなく、色補間で得られたデータに対して解像度を決定する支配的なパラメータを指すものである。一般的には、これらは輝度信号であるが、本発明では色空間の輝度信号を正確に算出するのではなく、空間的な位置情報を優先した信号を輝度と呼ぶものとする(以下の「画像処理方法」、「画像処理装置」、「画像処理プログラム」、「電子機器」、「画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体」においても同じである)。   Further, “Y” in the present invention refers to a dominant parameter that determines the resolution with respect to data obtained by color interpolation, but does not indicate the luminance itself but the luminance itself. is there. In general, these are luminance signals. However, in the present invention, a luminance signal in color space is not accurately calculated, but a signal giving priority to spatial position information is referred to as luminance (hereinafter referred to as “luminance”). The same applies to “image processing method”, “image processing apparatus”, “image processing program”, “electronic device”, and “computer-readable recording medium on which an image processing program is recorded”.

〔発明2〕発明2の画像処理方法は、
発明1に記載の画像処理方法において、前記変換式に使用する係数に、用意された所定の数値を用いることを特徴とするものである。
すなわち、(YC)変換式に使用する係数に自由な係数を用いると、ハードウェア化した場合に乗算器を合成する必要があり、ハードウェア資源をいたずらに浪費することがある。そのため、本発明のように変換式に使用する係数に予め用意された所定の数値、例えば、「0.125」、「0.25」、「0.5」、「0.725」、「1.0」などの2^n(n整数)とそれに類する係数に限定して用いれば、ハードウェア資源を大幅に節約することができる。また、ソフトウェアで考えた場合には、乗算処理よりも高速な演算を実現することが可能となる。なお、後述する実施の形態で用いている係数は、その限定の元で生成してあり、また、その条件下での実験で十分な効果を得ている。
[Invention 2] The image processing method of Invention 2 comprises:
In the image processing method according to the first aspect of the present invention, a predetermined numerical value prepared is used as a coefficient used in the conversion formula.
That is, if a free coefficient is used as a coefficient used in the (YC) conversion formula, it is necessary to synthesize multipliers when hardware is used, and hardware resources may be wasted. Therefore, predetermined numerical values prepared in advance for the coefficients used in the conversion formula as in the present invention, for example, “0.125”, “0.25”, “0.5”, “0.725”, “1” If it is limited to 2 ^ n (n integer) such as ".0" and similar coefficients, hardware resources can be greatly saved. Further, when considered in software, it is possible to realize a calculation faster than the multiplication process. Note that the coefficients used in the embodiments to be described later are generated based on the limitation, and sufficient effects are obtained by experiments under the conditions.

〔発明3〕発明3の画像処理方法は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める工程と、当該色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換してそれぞれの信号に所定のフィルタリング処理を施す工程と、各画素ごとに前記色補間処理で求められた色データのなかから最大値を検出する工程と、当該最大値と特定色の値との大きさの比を求める工程と、その比に基づいて前記変換式を決定する工程と、を有することを特徴とするものである。
[Invention 3] The image processing method of Invention 3 comprises:
A process of obtaining color data for each pixel by performing color interpolation processing on pixel data of one color per pixel output from a single-plate color imaging sensor, and a luminance signal Y using the color data using a predetermined conversion formula And converting the color difference signal C to a predetermined filtering process for each signal, detecting a maximum value from the color data obtained by the color interpolation process for each pixel, and the maximum value And a step of determining a ratio of the magnitudes of the specific colors and a step of determining the conversion formula based on the ratio.

すなわち、前述したように従来のYC変換処理で用いる変換式は、各係数の数値などが固定されたものであることから、例えば「R」や「B」の値が大きすぎると、その色の解像度に支配されてしまい、全体の解像度が低下してしまったようにみえることがある。
そのため、本発明は色データの各色のなかから最大値を有する色を検出し、その色に輝度データが支配されないように当該最大値と他の色の値との大きさの比を求め、その比に基づいて前記変換式を決定するようにしたものである。
That is, as described above, the conversion formula used in the conventional YC conversion processing is such that the numerical value of each coefficient is fixed. For example, if the value of “R” or “B” is too large, It may seem that the overall resolution has been reduced by being governed by the resolution.
Therefore, the present invention detects the color having the maximum value from each color of the color data, determines the ratio of the size of the maximum value and the value of the other color so that the luminance data is not controlled by the color, The conversion formula is determined based on the ratio.

これによって、発明1と同様に、ある特定の色の値が大きい場合には、生成される輝度データへのその色の寄与率を下げてその影響を少なくするように変換式を決定することができるため、その色の解像度に支配されるのを防止して解像度の低下を回避することが可能となる。
また、色補間処理自体には手を加えることなく、従来の簡易的な色補間処理をそのまま利用することができるため、滑らかで自然なエッジを確実に再現できると共に、画像処理
負荷の増大を招くこともない。
Thus, as in the first aspect, when the value of a specific color is large, the conversion equation can be determined so as to reduce the contribution ratio of the color to the generated luminance data and reduce the influence thereof. Therefore, it is possible to prevent the resolution from being deteriorated by preventing the color from being controlled by the resolution.
Further, since the conventional simple color interpolation process can be used as it is without modifying the color interpolation process itself, a smooth and natural edge can be reliably reproduced, and the image processing load is increased. There is nothing.

〔発明4〕発明4の画像処理方法は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又は前記R画素及びB画素のうちいずれか1つの画素を中心としてその周囲に前記いずれか1つの画素とは異なる色の画素が存在する3×3画素単位、あるいは前記R画素とB画素がそれぞれ2つ存在する3×3画素単位として、
色補間処理を施して各画素ごとにRGBの色データを算出する固定と、当該色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換してそれぞれの信号に所定のフィルタリング処理を施す工程と、を有し、前記変換式のうち、輝度信号Yは、R×K1+G×K2+B×K1(但し、K1+K2+K1=1.0)にて算出すると共に、前記色差信号C(Cb、Cr)は、前記RとYとの差分、及び前記BとYの差分にてそれぞれ算出し、かつ、前記K1及びK2の値を前記色補間処理で算出された色データのRGB各色の大きさに基づいて変化させるようにしたことを特徴とするものである。
[Invention 4] The image processing method of Invention 4 comprises:
There is only one R pixel provided with a red filter and one B pixel provided with a blue filter for each pixel data of one color output from a single-plate color imaging sensor. A pixel unit, or a 3 × 3 pixel unit in which a pixel having a color different from any one pixel exists around one of the R pixel and the B pixel, or the R pixel and the B pixel. As a 3 × 3 pixel unit with two pixels,
Fixing to calculate RGB color data for each pixel by performing color interpolation processing, converting the color data into a luminance signal Y and a color difference signal C using a predetermined conversion formula, and performing predetermined filtering on each signal In the conversion formula, the luminance signal Y is calculated by R × K1 + G × K2 + B × K1 (where K1 + K2 + K1 = 1.0), and the color difference signal C (Cb, Cr) is calculated based on the difference between R and Y, and the difference between B and Y, and the values of K1 and K2 are the sizes of the RGB colors of the color data calculated by the color interpolation process. It is characterized in that it is changed based on the above.

これによって、発明1及び2と同様に、解像度の低下や画像処理負荷の増大を回避できると共に、2×2画素単位あるいは3×3画素単位で、「K1」あるいは「K2」のいずれか一方のみのパラメータを操作するだけで変換式を決定することができるため、変動する適切な変換式を容易に決定することができる。
なお、後述するように単板式のカラー撮像センサの色フィルタは、モザイク配列の配色となっており、殆どが2×2画素単位の繰り返しで構成されている。そして、RGB3色の場合は2×2画素のなかにGが千鳥状に配置されており、また、これに青紫を加えた場合やCMYG4色の場合は2×2画素のなかにそれぞれ異なった色が1つずつ配置されているのが一般的である。
As a result, as in the first and second aspects, a decrease in resolution and an increase in image processing load can be avoided, and only “K1” or “K2” can be obtained in units of 2 × 2 pixels or 3 × 3 pixels. Since the conversion formula can be determined simply by manipulating these parameters, it is possible to easily determine an appropriate conversion formula that varies.
As will be described later, the color filters of the single-plate color imaging sensor have a mosaic arrangement of colors, and most of the color filters are configured in units of 2 × 2 pixels. In the case of RGB 3 colors, G is arranged in a staggered manner in 2 × 2 pixels, and in the case of adding bluish purple to this, or in the case of 4 colors of CMYG, different colors in 2 × 2 pixels. Is generally arranged one by one.

〔発明5〕発明5の画像処理方法は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める工程と、当該色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換してそれぞれの信号に所定のフィルタリング処理を施す工程とを有し、前記変換式は少なくとも2種類以上有し、当該複数の変換式のなかから、前記色データの各色の大きさに基づいて前記変換式を選択して用いるようにしたことを特徴とするものである。
[Invention 5] The image processing method of Invention 5 comprises:
A process of obtaining color data for each pixel by performing color interpolation processing on pixel data of one color per pixel output from a single-plate color image sensor, and luminance signal Y using the color data using a predetermined conversion formula And converting the color difference signal C to a predetermined filtering process on each signal, and having at least two types of conversion formulas, and each color of the color data is selected from the plurality of conversion formulas. The conversion formula is selected and used based on the size of.

すなわち、前記1〜4の発明は、従来固定的であった変換式を色データに基づいて最適に変化させるようにしたものであるのに対し、本発明は、予め前記変換式を少なくとも2種類以上用意しておき、当該複数の変換式のなかから、前記色データの各色の大きさに基づいて最適な変換式を切り換えて用いるようにしたものである。
これによって前記発明1と同様な効果を得ることができると共に、1画素ごとに1つの変換式を変化させる方法に比べてより高速にYC変換処理を実現することができる。
That is, in the inventions 1 to 4, the conversion formula that has been fixed in the past is optimally changed based on the color data, whereas the present invention provides at least two types of the conversion formula in advance. As described above, an optimum conversion formula is switched and used based on the size of each color of the color data from among the plurality of conversion formulas.
As a result, the same effect as in the first aspect can be obtained, and the YC conversion process can be realized at a higher speed than the method of changing one conversion equation for each pixel.

〔発明6〕発明6の画像処理方法は、
請求項5に記載の画像処理方法において、前記色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又は前記R画素及びB画素のうちいずれか1つの画素を中心としてその周囲に前記いずれか1つの画素とは異なる色の画素が存在する3×3画素単位、あるいは前記R画素とB画素がそれぞれ2つ存在する3×3画素単位として実施するものであって、前記R画素又はB画素のうちいずれか一方の値と他の色の値の大きさに応じて前記変換式を切り換えるようにすることを特徴とするものである。
これによって、2×2画素単位、又は3×3画素単位で実施されるような、いわゆる簡易的な色補間処理によって特に生じやすい解像度の低下を効果的に回避することができる。
[Invention 6] The image processing method of Invention 6 comprises:
6. The image processing method according to claim 5, wherein the color interpolation processing includes, for each pixel of the single-plate color imaging sensor, an R pixel provided with a red filter and a B pixel provided with a blue filter. A 2 × 2 pixel unit that exists only one each, or a pixel of a color different from any one of the pixels centered on one of the R and B pixels 3 × It is implemented as a 3 pixel unit, or a 3 × 3 pixel unit in which there are two R pixels and two B pixels, and the value of either one of the R pixel or the B pixel and the value of another color The conversion formula is switched according to the size.
As a result, it is possible to effectively avoid a decrease in resolution that is particularly likely to occur by so-called simple color interpolation processing, which is performed in units of 2 × 2 pixels or 3 × 3 pixels.

〔発明7〕本発明7の画像処理方法は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める工程と、当該色データを2種類以上の変換式を用いてそれぞれ独立に輝度信号Yと色差信号Cとに変換してからそれぞれの輝度信号Y同士と色差信号C同士を所定の係数を用いて合成し、合成後の輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施す工程とを、有することを特徴とするものである。
[Invention 7] The image processing method of the invention 7 comprises:
A process of obtaining color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color image sensor, and using the two or more types of conversion formulas. The luminance signal Y and the color difference signal C are converted into the luminance signal Y and the color difference signal C independently, and then the luminance signals Y and the color difference signals C are combined using a predetermined coefficient. And a step of performing a predetermined filtering process.

すなわち、前記1〜6の発明は原則として1つの色データに対して1つの変換式を用いてYC変換するのに対し、本発明は、1つの色データを2種類以上の変換式を用いてそれぞれ独立に輝度信号Yと色差信号CとにYC変換してからそれぞれの輝度信号Y同士と色差信号C同士を所定の係数を用いて合成し、合成後の輝度信号Yと色差信号Cに対してフィルタリング処理を施すようにしたものである。
これによって、前記発明1と同様な効果を得ることができると共に、発明4と同様にいずれか1つの変換式を代えるだけで多種類の変換式を決定することができるため、変動する適切な変換式を容易に決定することができる。
That is, in principle, the inventions 1 to 6 perform YC conversion using one conversion formula for one color data, whereas the present invention uses two or more conversion formulas for one color data. The luminance signal Y and the color difference signal C are YC-converted independently, and then the luminance signals Y and the color difference signals C are synthesized using a predetermined coefficient, and the synthesized luminance signal Y and the color difference signal C are combined. Filtering processing.
As a result, it is possible to obtain the same effect as in the first aspect of the invention, and in the same way as in the fourth aspect of the invention, it is possible to determine many types of conversion formulas by simply changing any one conversion formula. The formula can be easily determined.

〔発明8〕発明8の画像処理方法は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める工程と、当該色データを2種類以上の変換式を用いてそれぞれ独立に輝度信号Yと色差信号Cとに変換してそれぞれの信号に所定のフィルタリング処理を施し、フィルタリング処理後の輝度信号Yと色差信号Cを再度色データに逆変換処理して逆変換後の各色データを所定の係数を用いて合成する工程と、を有することを特徴とするものである。
[Invention 8] The image processing method of Invention 8 comprises:
A process of obtaining color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color image sensor, and using the two or more types of conversion formulas. The luminance signal Y and the color difference signal C are independently converted to each other, and predetermined filtering processing is performed on each signal. The luminance signal Y and the color difference signal C after the filtering processing are again converted back into color data, and then subjected to the reverse conversion. And a step of synthesizing each color data using a predetermined coefficient.

すなわち、前記発明6は、1つの色データを2種類以上の変換式を用いてそれぞれ独立に輝度信号Yと色差信号CとにYC変換してからそれぞれの輝度信号Y同士と色差信号C同士を所定の係数を用いて合成して合成後の輝度信号Yと色差信号Cに対してフィルタリング処理を施すようにしたのに対し、本発明は、1つの色データを2種類以上の変換式を用いてそれぞれ独立に輝度信号Yと色差信号CとにYC変換した後、そのままそれぞれの信号に所定のフィルタリング処理を施し、フィルタリング処理後の輝度信号Yと色差信号Cを再度色データに逆変換処理して逆変換後の各色データを所定の係数を用いて合成するようにものである。
これによって、前記発明1と同様な効果を得ることができると共に、その合成比を変えるだけで、多数の変換式を用意しなくとも多数の様々なパターンの処理結果を得ることができる。
That is, the sixth aspect of the present invention performs YC conversion of one color data into a luminance signal Y and a color difference signal C independently using two or more types of conversion formulas, and then converts the luminance signals Y and the color difference signals C to each other. In contrast to the synthesis using a predetermined coefficient and filtering processing on the synthesized luminance signal Y and color difference signal C, the present invention uses two or more conversion formulas for one color data. After the YC conversion into the luminance signal Y and the color difference signal C independently of each other, the respective signals are subjected to a predetermined filtering process, and the luminance signal Y and the color difference signal C after the filtering process are again converted back into color data. Thus, the color data after the inverse transformation is synthesized using a predetermined coefficient.
As a result, the same effects as those of the first aspect can be obtained, and processing results of a large number of various patterns can be obtained without preparing a large number of conversion formulas only by changing the synthesis ratio.

〔発明9〕発明9の画像処理方法は、
発明7又は8に記載の画像処理方法において、前記色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又は前記R画素及びB画素のうちいずれか1つの画素を中心としてその周囲に前記いずれか1つの画素とは異なる色の画素が存在する3×3画素単位、あるいは前記R画素とB画素がそれぞれ2つ存在する3×3画素単位で実施するものであることを特徴とするものである。
これによって、2×2画素単位、又は3×3画素単位で実施されるような、いわゆる簡易的な色補間処理によって特に生じやすい解像度の低下を、少ない変換式でも効果的に回避することができる。
[Invention 9] The image processing method of Invention 9 comprises:
In the image processing method according to the seventh or eighth aspect, the color interpolation processing includes an R pixel provided with a red filter and a B pixel provided with a blue filter for each pixel of the single-plate color imaging sensor. 2 × 2 pixel unit in which only one pixel exists, or there is a pixel of a color different from any one of the pixels centered on one of the R pixel and the B pixel 3 The present invention is characterized in that the present invention is carried out in units of × 3 pixels or in units of 3 × 3 pixels each having two R pixels and B pixels.
This makes it possible to effectively avoid a decrease in resolution that is particularly likely to occur by so-called simple color interpolation processing, which is performed in units of 2 × 2 pixels or 3 × 3 pixels, even with a small number of conversion formulas. .

〔発明10〕発明10の画像処理装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める色補間処理部と、当該色補間処理部で求められた前記色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、を備え、前記YC変換部は、前記変換式を前記色データの各色の大きさに基づいて変化させるようになっていることを特徴とするものである。
[Invention 10] An image processing apparatus according to Invention 10 comprises:
A color interpolation processing unit that obtains color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color obtained by the color interpolation processing unit A YC conversion unit that converts data into a luminance signal Y and a color difference signal C using a predetermined conversion formula, and a predetermined filtering process is performed on the luminance signal Y and the color difference signal C converted by the YC conversion unit, respectively. And a filtering unit, wherein the YC conversion unit changes the conversion formula based on the size of each color of the color data.

これによって、発明1と同様に、ある特定の色の値が大きい場合には、その影響を少なくするように変換式を変化させることができるため、その色の解像度に支配されてしまうようなことがなくなって解像度の低下を回避できる。
また、色補間処理自体には手を加えることなく、従来の簡易的な色補間処理をそのまま利用することができるため、滑らかで自然なエッジを確実に再現できると共に、画像処理負荷の増大を招くこともない。
As a result, as in the first aspect, when the value of a specific color is large, the conversion formula can be changed so as to reduce the influence thereof, so that it is governed by the resolution of the color. The loss of resolution can be avoided.
Further, since the conventional simple color interpolation process can be used as it is without modifying the color interpolation process itself, a smooth and natural edge can be reliably reproduced, and the image processing load is increased. There is nothing.

〔発明11〕発明11の画像処理装置は、
発明10に記載の画像処理装置において、前記YC変換部は、前記変換式に使用する係数に、用意された所定の数値を用いるようになっていることを特徴とするものである。
これによって、発明2と同様にハードウェア資源を大幅に節約することができ、また、ソフトウェアで考えた場合には、乗算処理よりも高速な演算を実現することが可能となる。
[Invention 11] An image processing apparatus according to Invention 11 comprises:
In the image processing apparatus according to the tenth aspect of the invention, the YC conversion unit uses a predetermined numerical value prepared for a coefficient used in the conversion formula.
As a result, the hardware resources can be greatly saved as in the case of the second aspect, and it is possible to realize an operation faster than the multiplication process when considered in software.

〔発明12〕発明12の画像処理装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める色補間処理部と、当該色補間処理部で求められた前記色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、を備え、
前記YC変換部は、前記色補間処理で算出された色データの各色のなかから最大値を有する色を検出し、当該最大値と他の色の値との大きさの比を求め、その比に基づいて前記変換式を決定するようになっていることを特徴とするものである。
これによって、発明1と同様に、解像度の低下を回避できると共に、色補間処理自体には何ら手を加えることなく、従来の簡易的な色補間処理をそのまま利用することができるため、滑らかで自然なエッジを確実に再現できると共に、画像処理負荷の増大を招くこともない。
[Invention 12] An image processing apparatus according to Invention 12 comprises:
A color interpolation processing unit that obtains color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color obtained by the color interpolation processing unit A YC converter that converts the data into a luminance signal Y and a color difference signal C using a predetermined conversion formula, and a predetermined filtering process is performed on the luminance signal Y and the color difference signal C converted by the YC converter. A filtering unit,
The YC converter detects a color having a maximum value from each color of the color data calculated by the color interpolation process, obtains a ratio of the size of the maximum value and the value of the other color, and the ratio The conversion formula is determined based on the above.
As in the first aspect, this makes it possible to avoid a decrease in resolution and to use the conventional simple color interpolation process as it is without modifying the color interpolation process itself. Edge can be reliably reproduced, and the image processing load is not increased.

〔発明12〕発明12の画像処理装置は、
画像処理装置単板式のカラー撮像センサが出力する1画素1色の画素データに対して、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又はR画素及びB画素のうちいずれか1つの画素を中心としてその周囲に他の色の画素が存在する3×3画素単位、あるいは前記R画素とB画素がそれぞれ2つ存在する3×3画素単位で色補間処理を施して各画素ごとにRGBデータを算出する色補間処理部と、当該色補間処理部で算出された前記RGBデータを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すようにしたフィルタリング部と、を備え、前記YC変換部は、前記変換式のうち、輝度信号Yは、R×K1+G×K2+B×K1(但し、K1+K2+K1=1.0)に基づいて算出すると共に、前記色差信号C(Cb、Cr)は、前記RとYとの差分、及び前記BとYの差分にそれぞれ基づいて算出し、かつ、前記K1及びK2の値を前記色補間処理で算出されたRGBデータの各色の大きさに基づいて変化させるようになっていることを特徴とするものである。
これによって、発明1と同様に、解像度の低下や画像処理負荷の増大を回避できると共に、2×2画素単位あるいは3×3画素単位で、K1あるいはK2のいずれか一方のみのパラメータを操作するだけで変換式を決定することができるため、変動する適切な変換式を容易に決定することができる。
[Invention 12] An image processing apparatus according to Invention 12 comprises:
Only one R pixel provided with a red filter and one B pixel provided with a blue filter exist for each pixel data of one color output from a single-chip color imaging sensor of an image processing apparatus. A 2 × 2 pixel unit, or a 3 × 3 pixel unit in which one of the R pixel and the B pixel is centered around another pixel, or two R pixels and two B pixels. A color interpolation processing unit that performs color interpolation processing in units of existing 3 × 3 pixels and calculates RGB data for each pixel, and brightness of the RGB data calculated by the color interpolation processing unit using a predetermined conversion formula A YC conversion unit that converts the signal Y and the color difference signal C, and a filtering unit that performs predetermined filtering processing on the luminance signal Y and the color difference signal C converted by the YC conversion unit, respectively. The YC conversion unit calculates the luminance signal Y based on R × K1 + G × K2 + B × K1 (where K1 + K2 + K1 = 1.0) and the color difference signal C (Cb, Cr) among the conversion equations. , Based on the difference between R and Y, and the difference between B and Y, and the values of K1 and K2 based on the size of each color of RGB data calculated by the color interpolation process. It is characterized by being changed.
As a result, similarly to the first aspect, it is possible to avoid a decrease in resolution and an increase in image processing load and to operate only one of the parameters K1 or K2 in units of 2 × 2 pixels or 3 × 3 pixels. Since the conversion formula can be determined by the above, an appropriate changing conversion formula can be easily determined.

〔発明13〕発明13の画像処理装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める色補間処理部と、当該色補間処理部で算出された前記色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、を備え、
前記YC変換部は、前記変換式を2種類以上備え、前記色データごとの各色の大きさに基づいて前記変換式を切り換えるようになっていることを特徴とするものである。
これによって前記発明1と同様な効果を得ることができると共に、1画素ごとに1つの変換式を変化させる方法に比べてより高速にYC変換処理を実現することができる。
[Invention 13] An image processing apparatus according to Invention 13 comprises:
A color interpolation processing unit that obtains color data for each pixel by performing color interpolation processing on pixel data for each pixel output from a single-plate color imaging sensor, and the color calculated by the color interpolation processing unit A YC converter that converts the data into a luminance signal Y and a color difference signal C using a predetermined conversion formula, and a predetermined filtering process is performed on the luminance signal Y and the color difference signal C converted by the YC converter. A filtering unit,
The YC conversion unit includes two or more types of conversion formulas, and switches the conversion formulas based on the size of each color for each color data.
As a result, the same effect as in the first aspect can be obtained, and the YC conversion process can be realized at a higher speed than the method of changing one conversion equation for each pixel.

〔発明14〕発明14の画像処理装置は、
発明13に記載の画像処理装置において、前記色補間処理部における色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又は前記R画素及びB画素のうちいずれか1つを中心としてその周囲に他の色の画素が存在する3×3画素単位、あるいはR画素とB画素がそれぞれ2つ存在する3×3画素単位で実施するものであって、前記R画素又はB画素のうちいずれか一方の値の大きさに応じて前記変換式を切り換えるようになっていることを特徴とするものである。
これによって、2×2画素単位、又は3×3画素単位で実施されるような、いわゆる簡易的な色補間処理によって特に生じやすい解像度の低下を効果的に回避することができる。
[Invention 14] An image processing apparatus according to Invention 14 comprises:
In the image processing device according to a thirteenth aspect of the present invention, the color interpolation processing in the color interpolation processing unit includes an R pixel provided with a red filter and a blue filter for each pixel of the single-plate color imaging sensor. A 2 × 2 pixel unit in which only one B pixel exists, or a 3 × 3 pixel unit in which any one of the R pixel and the B pixel is present around the other pixel. Alternatively, the conversion is performed in units of 3 × 3 pixels in which there are two R pixels and two B pixels, and the conversion formula is switched according to the value of one of the R pixels and the B pixels. It is characterized by being.
As a result, it is possible to effectively avoid a decrease in resolution that is particularly likely to occur by so-called simple color interpolation processing, which is performed in units of 2 × 2 pixels or 3 × 3 pixels.

〔発明15〕発明15の画像処理装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを算出する色補間処理部と、当該色補間処理部で算出された前記色データを2種類以上の変換式を用いてそれぞれ独立に輝度信号Yと色差信号Cとに変換してからそれぞれの輝度信号Y同士と色差信号C同士を所定の係数を用いて合成するYC変換部と、当該YC変換部で合成した後の輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、を備えたことを特徴とするものである。
これによって、前記発明1と同様な効果を得ることができると共に、発明4と同様にいずれか1つの変換式を代えるだけで多種類の変換式を決定することができるため、変動する適切な変換式を容易に決定することができる。
[Invention 15] An image processing apparatus according to Invention 15 comprises:
A color interpolation processing unit that calculates color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color interpolation processing unit calculates the color data YC conversion in which color data is converted into a luminance signal Y and a color difference signal C independently using two or more types of conversion formulas, and then the luminance signals Y and the color difference signals C are combined using a predetermined coefficient. And a filtering unit that performs a predetermined filtering process on the luminance signal Y and the color difference signal C after being combined by the YC conversion unit.
As a result, it is possible to obtain the same effect as in the first aspect of the invention, and in the same way as in the fourth aspect of the invention, it is possible to determine many types of conversion formulas by simply changing any one conversion formula. The formula can be easily determined.

〔発明16〕発明16の画像処理装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを算出する色補間処理部と、当該色補間処理部で算出された前記色データをそれぞれ異なる変換式を用いて独自にそれぞれ輝度信号Yと色差信号Cとに変換するYC変換部と、当該各YC変換部でそれぞれ変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、当該フィルタリング部でフィルタリング後の輝度信号Yと色差信号Cを独自にそれぞれ色データに逆変換する逆変換部と、当該逆変換部で変換された各色データを所定の係数を用いて合成するデータ合成部と、を備えたことを特徴とするものである。
これによって、前記発明1と同様な効果を得ることができると共に、その混合比を代えるだけで、多数の変換式を用意しなくとも多数の様々なパターンの処理結果を得ることができる。
[Invention 16] An image processing apparatus according to Invention 16 comprises:
A color interpolation processing unit that calculates color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color interpolation processing unit calculates the color data A YC conversion unit that independently converts color data into a luminance signal Y and a color difference signal C using different conversion formulas, and a luminance signal Y and a color difference signal C respectively converted by the YC conversion unit. A filtering unit that performs a predetermined filtering process, an inverse conversion unit that independently converts the luminance signal Y and the color difference signal C after filtering by the filtering unit into color data, and each color data converted by the inverse conversion unit. And a data synthesizing unit for synthesizing using a predetermined coefficient.
As a result, the same effect as in the first aspect can be obtained, and the processing results of a large number of various patterns can be obtained without preparing a large number of conversion formulas only by changing the mixing ratio.

〔発明17〕発明17の画像処理装置は、
発明15又は16に記載の画像処理装置において、前記色補間処理部における色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又はR画素及びB画素のうちいずれか1つを中心としてその周囲に他の色の画素が存在する3×3画素単位、あるいはR画素とB画素がそれぞれ2つ存在する3×3画素単位で実施するようになっていることを特徴とするものである。
これによって、2×2画素単位、又は3×3画素単位で実施されるような、いわゆる簡易的な色補間処理によって特に生じやすい解像度の低下を、少ない変換式でも効果的に回避することができる。
[Invention 17] An image processing apparatus according to Invention 17 comprises:
In the image processing device according to the fifteenth or sixteenth aspect of the present invention, the color interpolation processing in the color interpolation processing unit includes an R pixel provided with a red filter and a blue filter for each pixel of the single-plate color imaging sensor. A 2 × 2 pixel unit in which only one B pixel is provided, or a 3 × 3 pixel unit in which one of the R pixel and the B pixel is the center and another color pixel is present around it. Alternatively, the present invention is characterized in that it is implemented in units of 3 × 3 pixels in which there are two R pixels and two B pixels.
This makes it possible to effectively avoid a decrease in resolution that is particularly likely to occur by so-called simple color interpolation processing, which is performed in units of 2 × 2 pixels or 3 × 3 pixels, even with a small number of conversion formulas. .

〔発明18〕発明18の半導体装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める色補間処理部と、当該色補間処理部で求められた前記色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、を備え、前記YC変換部は、前記変換式を前記色データの各色の大きさに基づいて変化させるようになっていることを特徴とするものである。
これによって、発明1や10などと同様な効果が得られると共に、ASIC(Application Specific Integrated Circuit)などの1チップ素子の形態で提供することができるため、小型のデジタルビデオカメラやデジタルスチルカメラなどに容易に搭載して活用することができる。
[Invention 18] A semiconductor device according to Invention 18 comprises:
A color interpolation processing unit that obtains color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color obtained by the color interpolation processing unit A YC conversion unit that converts data into a luminance signal Y and a color difference signal C using a predetermined conversion formula, and a predetermined filtering process is performed on the luminance signal Y and the color difference signal C converted by the YC conversion unit, respectively. And a filtering unit, wherein the YC conversion unit changes the conversion formula based on the size of each color of the color data.
As a result, the same effects as those of Inventions 1 and 10 can be obtained, and it can be provided in the form of a one-chip device such as ASIC (Application Specific Integrated Circuit). It can be easily installed and used.

〔発明19〕発明19の半導体装置は、
発明18に記載の半導体装置において、前記YC変換部は、前記変換式に使用する係数に、用意された所定の数値を用いるようになっていることを特徴とするものである。
これによって、発明2や11などと同様な効果が得られると共に、発明18と同様に、ASICなどの1チップ素子の形態で提供することができるため、小型のデジタルビデオカメラやデジタルスチルカメラなどに容易に搭載して活用することができる。
[Invention 19] A semiconductor device according to Invention 19 comprises:
The semiconductor device according to an eighteenth aspect of the invention is characterized in that the YC conversion unit uses a predetermined numerical value prepared for a coefficient used in the conversion formula.
As a result, the same effects as those of Inventions 2 and 11 can be obtained, and, similarly to Invention 18, it can be provided in the form of a one-chip device such as an ASIC. It can be easily installed and used.

〔発明20〕発明20の半導体装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める色補間処理部と、当該色補間処理部で求められた前記色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、を備えた半導体装置であって、
前記YC変換部は、前記色補間処理で算出された色データの各色のなかから最大値を有する色を検出し、当該最大値と他の色の値との大きさの比を求め、その比に基づいて前記変換式を決定するようになっていることを特徴とするものである。
これによって、発明1や12などと同様な効果が得られると共に、発明18と同様に、ASICなどの1チップ素子の形態で提供することができるため、小型のデジタルビデオカメラやデジタルスチルカメラなどに容易に搭載して活用することができる。
[Invention 20] A semiconductor device of Invention 20 comprises:
A color interpolation processing unit that obtains color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color obtained by the color interpolation processing unit A YC conversion unit that converts data into a luminance signal Y and a color difference signal C using a predetermined conversion formula, and a predetermined filtering process is performed on the luminance signal Y and the color difference signal C converted by the YC conversion unit, respectively. A semiconductor device comprising a filtering unit,
The YC converter detects a color having a maximum value from each color of the color data calculated by the color interpolation process, obtains a ratio of the size of the maximum value and the value of the other color, and the ratio The conversion formula is determined based on the above.
As a result, the same effects as those of the inventions 1 and 12 can be obtained, and similarly to the invention 18, since it can be provided in the form of a one-chip device such as an ASIC, it can be applied to a small digital video camera or a digital still camera. It can be easily installed and used.

〔発明21〕発明21の半導体装置は、
画像処理装置単板式のカラー撮像センサが出力する1画素1色の画素データに対して、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又はR画素及びB画素のうちいずれか1つを中心としてその周囲に他の色の画素が存在する3×3画素単位、あるいは前記R画素とB画素がそれぞれ2つ存在する3×3画素単位で色補間処理を施して各画素ごとにRGBデータを算出する色補間処理部と、当該色補間処理部で算出された前記RGBデータを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すようにしたフィルタリング部と、を備えた半導体装置であって、前記YC変換部は、前記変換式のうち、輝度信号Yは、R×K1+G×K2+B×K1(但し、K1+K2+K1=1.0)に基づいて算出すると共に、前記色差信号C(Cb、Cr)は、前記RとYとの差分、及び前記BとYの差分にそれぞれ基づいて算出し、かつ、前記K1及びK2の値を前記色補間処理で算出されたRGBデータの各色の大きさに基づいて変化させるようになっていることを特徴とするものである。
これによって、発明1や13などと同様な効果が得られると共に、発明18と同様に、ASICなどの1チップ素子の形態で提供することができるため、小型のデジタルビデオカメラやデジタルスチルカメラなどに容易に搭載して活用することができる。
[Invention 21] The semiconductor device of Invention 21 comprises:
Only one R pixel provided with a red filter and one B pixel provided with a blue filter exist for each pixel data of one color output from a single-chip color imaging sensor of an image processing apparatus. A 2 × 2 pixel unit, or a 3 × 3 pixel unit in which one of the R pixel and the B pixel is centered around another pixel, or two R pixels and two B pixels. A color interpolation processing unit that performs color interpolation processing in units of 3 × 3 pixels to calculate RGB data for each pixel, and a luminance signal using the RGB data calculated by the color interpolation processing unit using a predetermined conversion formula A YC conversion unit that converts Y into a color difference signal C, and a filtering unit that performs a predetermined filtering process on the luminance signal Y and the color difference signal C converted by the YC conversion unit, respectively. Guidance The YC conversion unit calculates the luminance signal Y based on R × K1 + G × K2 + B × K1 (where K1 + K2 + K1 = 1.0) in the conversion formula and the color difference signal C ( Cb, Cr) are calculated based on the difference between R and Y and the difference between B and Y, and the values of K1 and K2 are calculated for each color of the RGB data calculated by the color interpolation process. It is characterized by being changed based on the size.
As a result, the same effects as those of the inventions 1 and 13 can be obtained, and, similarly to the invention 18, it can be provided in the form of a one-chip device such as an ASIC. It can be easily installed and used.

〔発明22〕発明22の半導体装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める色補間処理部と、当該色補間処理部で算出された前記色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、を備えた半導体装置であって、
前記YC変換部は、前記変換式を2種類以上備え、前記色データごとの各色の大きさに基づいて前記変換式を切り換えるようになっていることを特徴とするものである。
これによって前記発明1や14などと同様な効果が得られると共に、発明18と同様に、ASICなどの1チップ素子の形態で提供することができるため、小型のデジタルビデオカメラやデジタルスチルカメラなどに容易に搭載して活用することができる。
[Invention 22] A semiconductor device according to Invention 22 comprises:
A color interpolation processing unit that obtains color data for each pixel by performing color interpolation processing on pixel data for each pixel output from a single-plate color imaging sensor, and the color calculated by the color interpolation processing unit A YC converter that converts the data into a luminance signal Y and a color difference signal C using a predetermined conversion formula, and a predetermined filtering process is performed on the luminance signal Y and the color difference signal C converted by the YC converter. A semiconductor device comprising a filtering unit,
The YC conversion unit includes two or more types of conversion formulas, and switches the conversion formulas based on the size of each color for each color data.
As a result, the same effects as those of the inventions 1 and 14 can be obtained, and similarly to the invention 18, since it can be provided in the form of a one-chip device such as an ASIC, it can be applied to a small digital video camera, a digital still camera, or the like. It can be easily installed and used.

〔発明23〕発明14の半導体装置は、
発明22に記載の半導体装置において、前記色補間処理部における色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又は前記R画素及びB画素のうちいずれか1つを中心としてその周囲に他の色の画素が存在する3×3画素単位、あるいはR画素とB画素がそれぞれ2つ存在する3×3画素単位で実施するものであって、前記R画素又はB画素のうちいずれか一方の値の大きさに応じて前記変換式を切り換えるようになっていることを特徴とするものである。
これによって、発明15などと同様な効果が得られると共に、発明18と同様に、ASICなどの1チップ素子の形態で提供することができるため、小型のデジタルビデオカメラやデジタルスチルカメラなどに容易に搭載して活用することができる。
[Invention 23] A semiconductor device according to Invention 14 comprises:
In the semiconductor device according to a twenty-second aspect, in the color interpolation processing in the color interpolation processing unit, an R pixel provided with a red filter and a blue filter are provided for each pixel of the single-plate color imaging sensor. A 2 × 2 pixel unit in which only one B pixel exists, or a 3 × 3 pixel unit in which any one of the R pixel and the B pixel is present around the other pixel, or This is implemented in units of 3 × 3 pixels in which there are two R pixels and two B pixels, and the conversion equation is switched according to the value of one of the R pixels and the B pixels. It is characterized by becoming.
As a result, the same effect as that of the invention 15 can be obtained, and it can be provided in the form of a one-chip device such as an ASIC as in the case of the invention 18, so that it can be easily applied to a small digital video camera or a digital still camera. It can be installed and used.

〔発明23〕発明23の半導体装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを算出する色補間処理部と、当該色補間処理部で算出された前記色データを2種類以上の変換式を用いてそれぞれ独立に輝度信号Yと色差信号Cとに変換してからそれぞれの輝度信号Y同士と色差信号C同士を所定の係数を用いて合成するYC変換部と、当該YC変換部で合成した後の輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、を備えたことを特徴とするものである。
これによって、前記発明1や15などと同様な効果が得られると共に、発明18と同様に、ASICなどの1チップ素子の形態で提供することができるため、小型のデジタルビデオカメラやデジタルスチルカメラなどに容易に搭載して活用することができる。
[Invention 23] A semiconductor device of Invention 23 comprises:
A color interpolation processing unit that calculates color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color interpolation processing unit calculates the color data YC conversion in which color data is converted into a luminance signal Y and a color difference signal C independently using two or more types of conversion formulas, and then the luminance signals Y and the color difference signals C are combined using a predetermined coefficient. And a filtering unit that performs a predetermined filtering process on the luminance signal Y and the color difference signal C after being combined by the YC conversion unit.
As a result, the same effects as those of the first and fifteenth aspects of the present invention can be obtained, and, similarly to the eighteenth aspect, since it can be provided in the form of a one-chip element such as an ASIC, a small digital video camera, a digital still camera, It can be easily installed and used.

〔発明24〕発明24の半導体装置は、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを算出する色補間処理部と、当該色補間処理部で算出された前記色データをそれぞれ異なる変換式を用いて独自にそれぞれ輝度信号Yと色差信号Cとに変換するYC変換部と、当該各YC変換部でそれぞれ変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、当該フィルタリング部でフィルタリング後の輝度信号Yと色差信号Cを独自にそれぞれ色データに逆変換する逆変換部と、当該逆変換部で変換された各色データを所定の係数を用いて合成するデータ合成部と、を備えたことを特徴とするものである。
これによって、前記発明1や16などと同様な効果が得られると共に、発明18と同様に、ASICなどの1チップ素子の形態で提供することができるため、小型のデジタルビデオカメラやデジタルスチルカメラなどに容易に搭載して活用することができる。
[Invention 24] A semiconductor device according to Invention 24 comprises:
A color interpolation processing unit that calculates color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color interpolation processing unit calculates the color data A YC conversion unit that independently converts color data into a luminance signal Y and a color difference signal C using different conversion formulas, and a luminance signal Y and a color difference signal C respectively converted by the YC conversion unit. A filtering unit that performs a predetermined filtering process, an inverse conversion unit that independently converts the luminance signal Y and the color difference signal C after filtering by the filtering unit into color data, and each color data converted by the inverse conversion unit. And a data synthesizing unit for synthesizing using a predetermined coefficient.
As a result, the same effects as those of the inventions 1 and 16 can be obtained, and similarly to the invention 18, since it can be provided in the form of a one-chip element such as an ASIC, a small digital video camera, a digital still camera, etc. Can be easily installed and used.

〔発明25〕発明25の半導体装置は、
発明23又は24に記載の半導体装置において、前記色補間処理部における色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又はR画素及びB画素のうちいずれか1つを中心としてその周囲に他の色の画素が存在する3×3画素単位、あるいはR画素とB画素がそれぞれ2つ存在する3×3画素単位で実施するようになっていることを特徴とするものである。
これによって、発明17などと同様な効果が得られると共に、発明18と同様に、ASICなどの1チップ素子の形態で提供することができるため、小型のデジタルビデオカメラやデジタルスチルカメラなどに容易に搭載して活用することができる。
[Invention 25] A semiconductor device according to Invention 25 comprises:
In the semiconductor device according to the invention 23 or 24, the color interpolation processing in the color interpolation processing unit is provided with an R pixel provided with a red filter and a blue filter for each pixel of the single-plate color imaging sensor. A 2 × 2 pixel unit in which only one B pixel is present, or a 3 × 3 pixel unit in which any one of the R pixel and the B pixel is present around the other pixel, Alternatively, the present invention is characterized by being implemented in units of 3 × 3 pixels in which there are two R pixels and two B pixels.
As a result, the same effect as that of the invention 17 can be obtained, and it can be provided in the form of a one-chip device such as an ASIC as in the case of the invention 18, so that it can be easily applied to a small digital video camera or a digital still camera. It can be installed and used.

〔発明26〕発明26の電子機器は、
前記発明10〜17のいずれかに記載の画像処理装置を備えたことを特徴とするものである。
これによって、画像処理速度が速く、かつ解像度の低下がない高画質な画像を表示できる電子機器を提供することができる。
ここで、本発明でいう「電子機器」とは、デジタル画像を扱うことができるものであれば特に限定されるものでなく、デジタルカメラ、デジタルスチルカメラ、デジタルムービーカメラ、携帯電話に装備されたカメラ、Webカメラ、監視カメラ、ネットワークカメラなどが含まれる。
[Invention 26] The electronic equipment of Invention 26 is
The image processing apparatus according to any one of the inventions 10 to 17 is provided.
Accordingly, it is possible to provide an electronic device that can display a high-quality image with high image processing speed and no reduction in resolution.
Here, the “electronic device” in the present invention is not particularly limited as long as it can handle digital images, and is equipped in a digital camera, a digital still camera, a digital movie camera, and a mobile phone. A camera, a web camera, a surveillance camera, a network camera, and the like are included.

〔発明27〕発明27の電子機器は、
前記発明18〜25のいずれかに記載の半導体装置を備えたことを特徴とするものである。
これによって、画像処理速度が速く、かつ解像度の低下がない高画質な画像を表示できる電子機器を提供することができる。
[Invention 27] The electronic device of Invention 27 comprises:
The semiconductor device according to any one of the inventions 18 to 25 is provided.
Accordingly, it is possible to provide an electronic device that can display a high-quality image with high image processing speed and no reduction in resolution.

〔発明28〕発明28の画像処理プログラムは、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める色補間手段と、当該色補間手段で算出された前記色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換手段と、当該YC変換手段で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング手段と、をコンピュータに実現させる画像処理プログラムであって、
前記YC変換手段は、前記変換式を前記色データの各色の大きさに基づいて変化させるようになっていることを特徴とするものである。
[Invention 28] The image processing program of Invention 28 comprises:
A color interpolation unit that obtains color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color data calculated by the color interpolation unit YC conversion means for converting the luminance signal Y and the color difference signal C using a predetermined conversion formula, and filtering means for performing predetermined filtering processing on the luminance signal Y and the color difference signal C converted by the YC conversion means, respectively. And an image processing program for causing a computer to realize
The YC conversion means is characterized in that the conversion formula is changed based on the size of each color of the color data.

これによって、発明1と同様に、解像度の低下を回避できると共に、滑らかで自然なエッジを確実に再現でき、画像処理負荷の増大を招くこともない。
また、専用のコンピュータシステムのみならず、パソコン(PC)などの汎用のコンピュータシステムを用いてソフトウェア上で実現することができるため、専用のハードウェアを用意して実現する場合に比べて、経済的かつ容易にその機能を実現することができる。また、プログラムの書き換えだけで容易にその機能の改変を行うこともできる。
As a result, similarly to the first aspect, a reduction in resolution can be avoided, a smooth and natural edge can be reliably reproduced, and an increase in image processing load is not caused.
Moreover, since it can be realized in software using not only a dedicated computer system but also a general-purpose computer system such as a personal computer (PC), it is more economical than when dedicated hardware is prepared. And the function can be easily realized. In addition, the function can be easily modified only by rewriting the program.

〔発明29〕発明29の画像処理プログラムは、
発明28に記載の画像処理プログラムにおいて、前記YC変換部は、前記変換式に使用する係数に、用意された所定の数値を用いるようになっていることを特徴とするものである。
これによって、発明2と同様にハードウェア資源を大幅に節約することができ、また、ソフトウェアで考えた場合には、乗算処理よりも高速な演算を実現することが可能となる。
[Invention 29] An image processing program according to Invention 29 comprises:
In the image processing program according to the twenty-eighth aspect of the invention, the YC conversion unit uses a predetermined numerical value prepared for a coefficient used in the conversion formula.
As a result, the hardware resources can be greatly saved as in the case of the second aspect, and it is possible to realize an operation faster than the multiplication process when considered in software.

〔発明30〕発明30の画像処理プログラムは、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを算出する色補間処理部と、当該色補間処理部で算出された前記色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、をコンピュータに実現させる画像処理プログラムであって、前記YC変換部は、前記色補間処理で算出された色データの各色のなかから最大値を有する色を検出し、当該最大値と他の色の値との大きさの比を求め、その比に基づいて前記変換式を決定するようになっていることを特徴とするものである。
これによって、発明3などと同様な効果が得られるばかりでなく、発明19と同様に、専用のコンピュータシステムのみならず、パソコン(PC)などの汎用のコンピュータシステムを用いてソフトウェア上で実現することができるため、専用のハードウェアを用意して実現する場合に比べて、経済的かつ容易にその機能を実現することができる。また、プログラムの書き換えだけで容易にその機能の改変を行うこともできる。
[Invention 30] An image processing program according to Invention 30 comprises:
A color interpolation processing unit that calculates color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color interpolation processing unit calculates the color data A YC conversion unit that converts color data into a luminance signal Y and a color difference signal C using a predetermined conversion formula, and a predetermined filtering process is performed on the luminance signal Y and the color difference signal C converted by the YC conversion unit, respectively. An image processing program for causing a computer to implement the filtering unit, wherein the YC conversion unit detects a color having a maximum value from each color of the color data calculated by the color interpolation process, and the maximum value A ratio of the size of the color and the value of the other color is obtained, and the conversion formula is determined based on the ratio.
As a result, not only the same effects as in the invention 3 can be obtained, but also in the software using a general-purpose computer system such as a personal computer (PC) as well as a dedicated computer system as in the invention 19. Therefore, the function can be realized economically and easily as compared with the case where dedicated hardware is prepared and realized. In addition, the function can be easily modified only by rewriting the program.

〔発明31〕発明31の画像処理プログラムは、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又はR画素及びB画素のうちいずれか1つを中心としてその周囲に他の色の画素が存在する3×3画素単位、あるいは前記R画素とB画素がそれぞれ2つ存在する3×3画素単位で色補間処理を施して各画素ごとにRGBデータを算出する色補間処理部と、当該色補間処理部で算出された前記RGBデータを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換部と、当該YC変換部で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すようにしたフィルタリング部と、をコンピュータに実現させる画像処理プログラムであって、
前記YC変換部は、前記変換式のうち、輝度信号Yは、R×K1+G×K2+B×K1(但し、K1+K2+K1=1.0)に基づいて算出すると共に、前記色差信号C(Cb、Cr)は、前記RとYとの差分、及び前記BとYの差分にそれぞれ基づいて算出し、かつ、前記K1及びK2の値を前記色補間処理で算出されたRGBデータの各色の大きさに基づいて変化させるようになっていることを特徴とするものである。
[Invention 31] An image processing program according to Invention 31 comprises:
There is only one R pixel provided with a red filter and one B pixel provided with a blue filter for each pixel data of one color output from a single-plate color imaging sensor. A pixel unit, or a 3 × 3 pixel unit in which one of the R pixel and the B pixel is the center and other color pixels exist around it, or a 3 × 3 pixel in which there are two R pixels and two B pixels. A color interpolation processing unit that performs color interpolation processing in units of three pixels and calculates RGB data for each pixel, and the RGB data calculated by the color interpolation processing unit is converted into a luminance signal Y and a color difference using a predetermined conversion formula A computer realizes a YC conversion unit that converts the signal C into a signal C, and a filtering unit that performs predetermined filtering processing on the luminance signal Y and the color difference signal C converted by the YC conversion unit, respectively. An image processing program,
The YC conversion unit calculates the luminance signal Y based on R × K1 + G × K2 + B × K1 (where K1 + K2 + K1 = 1.0) and the color difference signal C (Cb, Cr) among the conversion equations. , Based on the difference between R and Y and the difference between B and Y, and the values of K1 and K2 based on the size of each color of RGB data calculated by the color interpolation process It is characterized by being changed.

これによって、発明4などと同様な効果が得られると共に、発明20などと同様に、専用のハードウェアを用意して実現する場合に比べて、経済的かつ容易にその機能を実現することができる。また、プログラムの書き換えだけで容易にその機能の改変を行うこともできる。   As a result, the same effects as those of the invention 4 can be obtained, and the functions can be realized economically and easily as compared to the case where the dedicated hardware is prepared and realized as in the invention 20 and the like. . In addition, the function can be easily modified only by rewriting the program.

〔発明32〕発明32の画像処理プログラムは、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを算出する色補間手段と、当該色補間手段で算出された前記色データを所定の変換式を用いて輝度信号Yと色差信号Cとに変換するYC変換手段と、当該YC変換手段で変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング手段と、を少なくともコンピュータに実現させる画像処理プログラムであって、前記YC変換手段は、前記変換式を2種類以上備え、前記色データごとの各色の大きさに基づいて前記変換式を切り換えて用いるようになっていることを特徴とするものである。
これによって、発明5などと同様な効果が得られると共に、発明20などと同様に、専用のハードウェアを用意して実現する場合に比べて、経済的かつ容易にその機能を実現することができる。また、プログラムの書き換えだけで容易にその機能の改変を行うこともできる。
[Invention 32] An image processing program according to Invention 32 comprises:
A color interpolation unit that calculates color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color data calculated by the color interpolation unit YC conversion means for converting the luminance signal Y and the color difference signal C into a luminance signal Y and a color difference signal C using a predetermined conversion formula, and filtering for applying a predetermined filtering process to the luminance signal Y and the color difference signal C converted by the YC conversion means, respectively. The YC conversion means includes at least two types of the conversion formulas, and switches and uses the conversion formulas based on the size of each color for each color data. It is characterized by the above.
As a result, the same effect as that of the invention 5 can be obtained, and the function can be realized economically and easily compared to the case where the dedicated hardware is prepared and realized as in the invention 20 and the like. . In addition, the function can be easily modified only by rewriting the program.

〔発明33〕発明33の画像処理プログラムは、
発明32に記載の画像処理プログラムにおいて、前記色補間処理部における色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又はR画素及びB画素のうちいずれか1つを中心としてその周囲に他の色の画素が存在する3×3画素単位、あるいはR画素とB画素がそれぞれ2つ存在する3×3画素単位で実施するものであって、前記R画素又はB画素のうちいずれか一方の値の大きさに応じて前記変換式を切り換えるようになっていることを特徴とするものである。
これによって、発明6などと同様な効果が得られると共に、発明20などと同様に、専用のハードウェアを用意して実現する場合に比べて、経済的かつ容易にその機能を実現することができる。また、プログラムの書き換えだけで容易にその機能の改変を行うこともできる。
[Invention 33] An image processing program according to Invention 33 comprises:
In the image processing program according to a thirty-second aspect of the present invention, the color interpolation processing in the color interpolation processing unit includes an R pixel provided with a red filter and a blue filter for each pixel of the single-plate color imaging sensor. A 2 × 2 pixel unit in which only one B pixel exists, or a 3 × 3 pixel unit in which any one of the R pixel and the B pixel is present around the other pixel, or This is implemented in a 3 × 3 pixel unit in which there are two R pixels and two B pixels, and the conversion formula is switched according to the value of one of the R pixel and the B pixel. It is characterized by becoming.
As a result, the same effect as that of the invention 6 can be obtained, and the function can be realized economically and easily compared to the case where the dedicated hardware is prepared and realized as in the invention 20 and the like. . In addition, the function can be easily modified only by rewriting the program.

〔発明34〕発明34の画像処理プログラムは、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める色補間処理部と、当該色補間処理部で求められた前記色データを2種類以上の変換式を用いてそれぞれ独立に輝度信号Yと色差信号Cとに変換してからそれぞれの輝度信号Y同士と色差信号C同士を所定の係数を用いて合成するYC変換部と、当該YC変換部で合成した後の輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング部と、を備えたことを特徴とするものである。
これによって、発明7などと同様な効果が得られると共に、発明19などと同様に、専用のハードウェアを用意して実現する場合に比べて、経済的かつ容易にその機能を実現することができる。また、プログラムの書き換えだけで容易にその機能の改変を行うこともできる。
[Invention 34] The image processing program of the invention 34 comprises:
A color interpolation processing unit that obtains color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color obtained by the color interpolation processing unit A YC conversion unit that converts data into a luminance signal Y and a color difference signal C independently using two or more types of conversion formulas, and then combines the luminance signals Y and the color difference signals C using a predetermined coefficient. And a filtering unit that performs a predetermined filtering process on the luminance signal Y and the color difference signal C combined by the YC conversion unit.
As a result, the same effect as in the invention 7 can be obtained, and the function can be realized economically and easily as compared with the case where the dedicated hardware is prepared and realized as in the invention 19 and the like. . In addition, the function can be easily modified only by rewriting the program.

〔発明35〕発明35の画像処理プログラムは、
単板式のカラー撮像センサが出力する1画素1色の画素データに対して色補間処理を施して各画素ごとに色データを求める色補間手段と、当該色補間手段で求められた前記色データをそれぞれ異なる変換式を用いて独自にそれぞれ輝度信号Yと色差信号Cとに変換するYC変換手段と、当該各YC変換手段でそれぞれ変換された輝度信号Yと色差信号Cに対してそれぞれ所定のフィルタリング処理を施すフィルタリング手段と、当該フィルタリング部でフィルタリング後の輝度信号Yと色差信号Cを独自にそれぞれ色データに逆変換する逆変換手段と、当該逆変換手段で変換された各色データを所定の係数を用いて合成するデータ合成手段と、をコンピュータで実現させることを特徴とするものである。
これによって、発明8などと同様な効果が得られると共に、発明20などと同様に、専用のハードウェアを用意して実現する場合に比べて、経済的かつ容易にその機能を実現することができる。また、プログラムの書き換えだけで容易にその機能の改変を行うこともできる。
[Invention 35] The image processing program of Invention 35 comprises:
A color interpolation unit that obtains color data for each pixel by performing color interpolation processing on pixel data of one pixel and one color output from a single-plate color imaging sensor, and the color data obtained by the color interpolation unit. YC conversion means for independently converting the luminance signal Y and the color difference signal C using different conversion equations, respectively, and predetermined filtering for the luminance signal Y and the color difference signal C respectively converted by the YC conversion means. Filtering means for performing processing, inverse converting means for independently converting the luminance signal Y and the color difference signal C filtered by the filtering section into color data, respectively, and converting each color data converted by the inverse converting means to a predetermined coefficient And a data synthesizing means for synthesizing using a computer.
As a result, the same effect as in the invention 8 can be obtained, and the function can be realized economically and easily as compared with the case where the dedicated hardware is prepared and realized as in the invention 20 and the like. . In addition, the function can be easily modified only by rewriting the program.

〔発明36〕発明36の画像処理プログラムは、
発明34又は35に記載の画像処理プログラムにおいて、前記色補間処理部における色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤のフィルタが設けられたR画素及び青のフィルタが設けられたB画素がそれぞれ1つずつのみ存在する2×2画素単位、又はR画素及びB画素のうちいずれか1つの画素を中心としてその周囲に他の色の画素が存在する3×3画素単位、あるいはR画素とB画素がそれぞれ2つ存在する3×3画素単位で実施するようになっていることを特徴とするものである。
これによって、発明9などと同様な効果が得られると共に、発明20などと同様に、専用のハードウェアを用意して実現する場合に比べて、経済的かつ容易にその機能を実現することができる。また、プログラムの書き換えだけで容易にその機能の改変を行うこともできる。
[Invention 36] The image processing program of the invention 36 comprises:
In the image processing program according to the thirty-fourth or thirty-fifth aspect, the color interpolation processing in the color interpolation processing unit includes an R pixel provided with a red filter and a blue filter for each pixel of the single-plate color imaging sensor. A 2 × 2 pixel unit in which only one B pixel is provided, or 3 × 3 pixels in which there is a pixel of another color around one of the R pixel and the B pixel. The present invention is characterized by being implemented in units or 3 × 3 pixel units in which there are two R pixels and two B pixels.
As a result, the same effects as those of the invention 9 and the like can be obtained, and the functions can be realized economically and easily as compared with the case of preparing the dedicated hardware as in the invention 20 and the like. . In addition, the function can be easily modified only by rewriting the program.

〔発明37〕発明37のコンピュータ読み取り可能な記録媒体は、
前記発明28〜36のいずれかに記載の画像処理プログラムを記録したことを特徴とするものである。
これにより、前記発明28〜36のいずれかに記載の画像処理プログラムをCD−ROMやDVD−ROM、FDなどの記録媒体を介して容易に授受することが可能となる。
〔発明38〕発明38の画像処理方法は、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する工程と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から、前記R値と前記B値と前記G値のうち値が大きい色に対応する前記K1または前記K2の値が他の前記K1と前記K2の値より小さく設定されている第1の変換式を選択し、前記第1の変換式に基づき輝度信号Yを算出し、前記R値と前記輝度信号Yとの差分と前記B値と前記輝度信号Yとの差分に基づき色差信号Cを算出するYC変換処理工程と、
前記輝度信号Yを高域強調フィルタに、前記色差信号Cを低域強調フィルタにかけるフィルタリング処理を施す工程と、を有する、ことを特徴とする。
〔発明39〕発明39の画像処理方法は、
発明38において、前記複数の変換式が前記K1と前記K2と前記K3との組み合わせにより設定されていることを特徴とする。
〔発明40〕発明40の画像処理方法は、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する工程と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換処理工程と、
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成する合成処理工程と、
前記第3の輝度信号Yを高域強調フィルタに、前記第3の色差信号Cを低域強調フィルタにかけるフィルタリング処理を施す工程と、を有する、ことを特徴とする。
〔発明41〕発明41の画像処理方法は、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する工程と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換処理工程と、
前記第1の輝度信号Yおよび前記第2の輝度信号Yを高域強調フィルタに、前記第1の色差信号Cおよび前記第2の色差信号Cを低域強調フィルタにかけるフィルタリング処理を施す工程と、
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成する合成処理工程と、を有する、ことを特徴とする。
〔発明42〕発明42の画像処理方法は、
発明37ないし41において、前記色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤色に対応するR画素及び青色に対応するB画素がそれぞれ1つずつのみ存在する2×2画素単位、又は赤色に対応するR画素及び青色に対応するB画素のうちいずれか1つの画素を中心としてその周囲に前記いずれか1つの画素とは異なる色の画素が存在する3×3画素単位、あるいは赤色に対応するR画素と青色に対応するB画素がそれぞれ2つ存在する3×3画素単位で実施するものであることを特徴とする。
〔発明43〕発明43の画像処理装置は、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から、前記R値と前記B値と前記G値のうち値が大きい色に対応する前記K1または前記K2の値が他の前記K1と前記K2の値より小さく設定されている第1の変換式を選択し、前記第1の変換式に基づき輝度信号Yを算出し、前記R値と前記輝度信号Yとの差分と前記B値と前記輝度信号Yとの差分に基づき色差信号Cを算出するYC変換部と、
前記輝度信号Yを高域強調フィルタに、前記色差信号Cを低域強調フィルタにかけるフィルタリング処理を施すフィルタリング部と、を有する、ことを特徴とする。
〔発明44〕発明44の画像処理装置は、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換部と、
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成部と、
前記第3の輝度信号Yを高域強調フィルタに、前記第3の色差信号Cを低域強調フィルタにかけるフィルタリング部と、を有する、ことを特徴とする。
〔発明45〕発明45の画像処理装置は、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換部と、
前記第1の輝度信号Yおよび前記第2の輝度信号Yを高域強調フィルタに、前記第1の色差信号Cおよび前記第2の色差信号Cを低域強調フィルタにかけるフィルタリング部と、
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成部と、を有する、ことを特徴とする。
〔発明46〕発明46の半導体装置は、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から、前記R値と前記B値と前記G値のうち値が大きい色に対応する前記K1または前記K2の値が他の前記K1と前記K2の値より小さく設定されている第1の変換式を選択し、前記第1の変換式に基づき輝度信号Yを算出し、前記R値と前記輝度信号Yとの差分と前記B値と前記輝度信号Yとの差分に基づき色差信号Cを算出するYC変換部と、
前記輝度信号Yを高域強調フィルタに、前記色差信号Cを低域強調フィルタにかけるフィルタリング処理を施すフィルタリング部と、を有する、ことを特徴とする。
〔発明47〕発明47の半導体装置は、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換部と、
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成部と、
前記第3の輝度信号Yを高域強調フィルタに、前記第3の色差信号Cを低域強調フィルタにかけるフィルタリング部と、を有する、ことを特徴とする。
〔発明48〕発明48の半導体装置は、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換部と、
前記第1の輝度信号Yおよび前記第2の輝度信号Yを高域強調フィルタに、前記第1の色差信号Cおよび前記第2の色差信号Cを低域強調フィルタにかけるフィルタリング部と、
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成部と、を有する、ことを特徴とする。
〔発明49〕発明49の電子機器は、
発明43ないし45の画像処理装置を備えたことを特徴とする。
〔発明50〕発明50の電子機器は、
前記請求項46ないし48の半導体装置を備えたことを特徴とする。
〔発明51〕発明51の画像処理プログラムは、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間手段と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から、前記R値と前記B値と前記G値のうち値が大きい色に対応する前記K1または前記K2の値が他の前記K1と前記K2の値より小さく設定されている第1の変換式を選択し、前記第1の変換式に基づき輝度信号Yを算出し、前記R値と前記輝度信号Yとの差分と前記B値と前記輝度信号Yとの差分に基づき色差信号Cを算出するYC変換手段と、
前記輝度信号Yを高域強調フィルタに、前記色差信号Cを低域強調フィルタにかけるフィルタリング処理を施すフィルタリング手段と、を有する、ことを特徴とする。
〔発明52〕発明52の画像処理プログラムは、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間手段と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換手段と、
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成手段と、
前記第3の輝度信号Yを高域強調フィルタに、前記第3の色差信号Cを低域強調フィルタにかけるフィルタリング手段と、を有する、ことを特徴とする。
〔発明53〕発明53の画像処理プログラムは、
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間手段と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換手段と、
前記第1の輝度信号Yおよび前記第2の輝度信号Yを高域強調フィルタに、前記第1の色差信号Cおよび前記第2の色差信号Cを低域強調フィルタにかけるフィルタリング手段と、
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成手段と、を有する、ことを特徴とする。
〔発明54〕発明54のコンピュータ読み取り可能な記録媒体は、
前記請求項51〜53の画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体である。
[Invention 37] A computer-readable recording medium according to Invention 37,
The image processing program according to any one of the inventions 28 to 36 is recorded.
As a result, the image processing program according to any of the inventions 28 to 36 can be easily transferred via a recording medium such as a CD-ROM, DVD-ROM, or FD.
[Invention 38] The image processing method of Invention 38 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Applying color interpolation processing to the B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × Among the plurality of conversion formulas having K1 + G × K2 + B × K1 (wherein the R value is R, the G value is G, the B value is B, and K1 + K2 + K1 = 1.0), the R value and Selecting a first conversion formula in which the value of K1 or K2 corresponding to a color having a large value among the B value and the G value is set smaller than the other K1 and K2 values; YC conversion processing step of calculating a luminance signal Y based on a conversion equation of 1 and calculating a color difference signal C based on a difference between the R value and the luminance signal Y and a difference between the B value and the luminance signal Y;
Performing a filtering process of applying the luminance signal Y to a high frequency enhancement filter and applying the color difference signal C to a low frequency enhancement filter.
[Invention 39] The image processing method of Invention 39 comprises:
A thirty-eighth aspect of the invention is characterized in that the plurality of conversion equations are set by a combination of the K1, the K2, and the K3.
[Invention 40] The image processing method of Invention 40 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Applying color interpolation processing to the B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. YC conversion processing step of calculating the second color difference signal C based on the difference between the difference between the B value and the second luminance signal Y ,
The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. A synthesizing process for generating a third color difference signal C based on
Performing a filtering process of applying the third luminance signal Y to a high frequency enhancement filter and applying the third color difference signal C to a low frequency enhancement filter.
[Invention 41] The image processing method of Invention 41 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Applying color interpolation processing to the B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. YC conversion processing step of calculating the second color difference signal C based on the difference between the difference between the B value and the second luminance signal Y ,
Applying a filtering process in which the first luminance signal Y and the second luminance signal Y are applied to a high frequency enhancement filter, and the first color difference signal C and the second color difference signal C are applied to a low frequency enhancement filter; ,
The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. And a synthesis process step of generating a third color difference signal C based on the above.
[Invention 42] The image processing method of Invention 42 comprises:
In the invention 37 to 41, the color interpolation processing is performed by 2 × 2 pixels in which only one R pixel corresponding to red and one B pixel corresponding to blue exist for each pixel of the single-plate color imaging sensor. Unit, or a 3 × 3 pixel unit in which a pixel of a color different from any one of the pixels is present around one of the R pixel corresponding to red and the B pixel corresponding to blue, Alternatively, the present invention is performed in units of 3 × 3 pixels in which there are two R pixels corresponding to red and two B pixels corresponding to blue.
[Invention 43] The image processing apparatus of Invention 43 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × Among the plurality of conversion equations having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0), Selecting a first conversion formula in which the value of K1 or K2 corresponding to a color having a large value among the B value and the G value is set smaller than the other K1 and K2 values; A YC converter that calculates a luminance signal Y based on a conversion equation of 1 and calculates a color difference signal C based on a difference between the R value and the luminance signal Y and a difference between the B value and the luminance signal Y;
A filtering unit that performs a filtering process that applies the luminance signal Y to a high-frequency emphasis filter and the color-difference signal C to a low-frequency emphasis filter.
[Invention 44] The image processing apparatus of the invention 44 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0). And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. A YC converter that calculates a second color difference signal C based on a difference between the difference between the B value and the second luminance signal Y;
The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. A data synthesizing unit that generates a third color difference signal C based on
And a filtering unit that applies the third luminance signal Y to a high-frequency emphasis filter and the third color difference signal C to a low-frequency emphasis filter.
[Invention 45] An image processing apparatus according to Invention 45 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0). And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. A YC converter that calculates a second color difference signal C based on a difference between the difference between the B value and the second luminance signal Y;
A filtering unit that applies the first luminance signal Y and the second luminance signal Y to a high frequency enhancement filter, and applies the first color difference signal C and the second color difference signal C to a low frequency enhancement filter;
The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. And a data synthesizing unit that generates a third color difference signal C based on the above.
[Invention 46] The semiconductor device of Invention 46 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × Among the plurality of conversion equations having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0), Selecting a first conversion formula in which the value of K1 or K2 corresponding to a color having a large value among the B value and the G value is set smaller than the other K1 and K2 values; A YC converter that calculates a luminance signal Y based on a conversion equation of 1 and calculates a color difference signal C based on a difference between the R value and the luminance signal Y and a difference between the B value and the luminance signal Y;
A filtering unit that performs a filtering process that applies the luminance signal Y to a high-frequency emphasis filter and the color-difference signal C to a low-frequency emphasis filter.
[Invention 47] A semiconductor device according to Invention 47 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. A YC converter that calculates a second color difference signal C based on a difference between the difference between the B value and the second luminance signal Y;
The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. A data synthesizing unit that generates a third color difference signal C based on
And a filtering unit that applies the third luminance signal Y to a high-frequency emphasis filter and the third color difference signal C to a low-frequency emphasis filter.
[Invention 48] The semiconductor device of Invention 48 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. A YC converter that calculates a second color difference signal C based on a difference between the difference between the B value and the second luminance signal Y;
A filtering unit that applies the first luminance signal Y and the second luminance signal Y to a high frequency enhancement filter, and applies the first color difference signal C and the second color difference signal C to a low frequency enhancement filter;
The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. And a data synthesizing unit that generates a third color difference signal C based on the above.
[Invention 49] The electronic device of the invention 49 comprises:
The image processing apparatus according to the invention 43 to 45 is provided.
[Invention 50] An electronic device according to Invention 50 comprises:
A semiconductor device according to any one of claims 46 to 48 is provided.
[Invention 51] The image processing program of the invention 51 includes:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Color interpolation means for performing color interpolation processing on B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × Among the plurality of conversion equations having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0), Selecting a first conversion formula in which the value of K1 or K2 corresponding to a color having a large value among the B value and the G value is set smaller than the other K1 and K2 values; YC conversion means for calculating a luminance signal Y based on a conversion equation of 1 and calculating a color difference signal C based on a difference between the R value and the luminance signal Y and a difference between the B value and the luminance signal Y;
And filtering means for performing a filtering process in which the luminance signal Y is applied to a high frequency enhancement filter and the color difference signal C is applied to a low frequency enhancement filter.
[Invention 52] The image processing program of the invention 52 comprises:
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Color interpolation means for performing color interpolation processing on B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0). And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. YC conversion means for calculating the second color difference signal C based on the difference between the difference between the B value and the second luminance signal Y;
The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. Data combining means for generating a third color difference signal C by combining based on
Filtering means for applying the third luminance signal Y to a high frequency enhancement filter and applying the third color difference signal C to a low frequency enhancement filter.
[Invention 53] The image processing program of Invention 53 is
Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Color interpolation means for performing color interpolation processing on B pixel data to generate B pixel color data corresponding to the B pixel;
Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0). And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. YC conversion means for calculating the second color difference signal C based on the difference between the difference between the B value and the second luminance signal Y;
Filtering means for applying the first luminance signal Y and the second luminance signal Y to a high frequency enhancement filter, and applying the first color difference signal C and the second color difference signal C to a low frequency enhancement filter;
The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. And a data synthesizing means for generating a third color difference signal C based on the above.
[Invention 54] The computer-readable recording medium of Invention 54 comprises:
A computer-readable recording medium on which the image processing program according to any one of claims 51 to 53 is recorded.

以下、本発明を実施するための最良の形態を添付図面を参照しながら詳述する。
図1は、本発明に係る画像処理装置100の実施の1形態を示したものである。
図示するように、この画像処理装置100は、任意の被写体を捉えるためのカメラレンズ(以下、単に「レンズ」と称す)10と、このレンズ10を介して通過してきた画像を取り込むための単板式のカラー撮像センサ20と、このカラー撮像センサ20で取り込まれた画像に対して簡易的な色補間処理を実施する色補間処理部30と、この色補間処理部30で色補間処理された後の色(RGB)データを輝度成分(Y)と色差成分(CbCr)との分離するYC変換部40と、このYC変換部40で分離された輝度成分(Y)と色差成分(CbCr)に対して所定のフィルタリング処理を施すフィルタリング部50と、このフィルタリング部50でフィルタリング処理されたYC信号を元の色(RGB)信号に変換処理する逆変換部60と、この逆変換部60で色信号に戻された後の画像データをホワイトバランス処理やγ補正処理などの所定の画像処理を経てから視覚的に出力する画像出力部70とから主に構成されている。
Hereinafter, the best mode for carrying out the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 shows an embodiment of an image processing apparatus 100 according to the present invention.
As illustrated, the image processing apparatus 100 includes a camera lens (hereinafter simply referred to as “lens”) 10 for capturing an arbitrary subject, and a single plate type for capturing an image that has passed through the lens 10. The color imaging sensor 20, a color interpolation processing unit 30 for performing simple color interpolation processing on the image captured by the color imaging sensor 20, and the color interpolation processing unit 30 after color interpolation processing is performed. A YC conversion unit 40 that separates color (RGB) data into a luminance component (Y) and a color difference component (CbCr), and a luminance component (Y) and a color difference component (CbCr) separated by the YC conversion unit 40 A filtering unit 50 that performs a predetermined filtering process, and an inverse conversion unit 60 that converts the YC signal filtered by the filtering unit 50 into an original color (RGB) signal; An image output unit 70 that visually outputs the image data that has been returned to the color signal by the inverse conversion unit 60 after undergoing predetermined image processing such as white balance processing and γ correction processing is mainly configured. .

また、フィルタリング部50は、輝度成分Yに対して前記色補間処理部30で失われる画像のエッジなどの輪郭情報を補償あるいは強調して画像の鮮明化を図るための輪郭強調部52と、色差成分Cに対して前記色補間処理に伴って生じた偽色を排除する偽色処理部54とから構成されている。
そして、この画像処理装置100を構成するレンズ10、カラー撮像センサ20、色補間処理部30、YC変換部40、フィルタリング部50、逆変換部60、画像出力部70などは、いずれも基本的には従来と同様のものをそのまま適用可能となっており、そのうち特にYC変換部40の部分が本発明の特徴部分を構成するようになっている。
Further, the filtering unit 50 compensates or enhances the edge information such as the edge of the image lost in the color interpolation processing unit 30 with respect to the luminance component Y, and the edge enhancement unit 52 for sharpening the image, The component C includes a false color processing unit 54 that eliminates the false color generated in the color interpolation process.
The lens 10, the color imaging sensor 20, the color interpolation processing unit 30, the YC conversion unit 40, the filtering unit 50, the inverse conversion unit 60, and the image output unit 70 that constitute the image processing apparatus 100 are basically all. The same as the conventional one can be applied as it is, and in particular, the portion of the YC conversion unit 40 constitutes the characteristic portion of the present invention.

すなわち、このYC変換部40は、後に詳述するが、複数のYC変換式を備え、色補間処理部30から送られる各画素の色データごとに最適なYC変換式を選択して色補間処理後の色データを輝度成分(Y)と色差成分(CbCr)と分離する機能を提供するようになっている。
また、この画像処理装置100を構成する色補間処理部30、YC変換部40、フィルタリング部50、逆変換部60などにおける各処理機能は、具体的には中央演算処理装置や主記憶装置などからなるハードウェアと、各処理用に製作された専用のソフトウェア(処理プログラム)とからなるコンピュータシステムによって実現されるようにすることもできる。
That is, the YC conversion unit 40 includes a plurality of YC conversion formulas, which will be described in detail later, and selects an optimum YC conversion formula for each color data of each pixel sent from the color interpolation processing unit 30 to perform color interpolation processing. A function of separating subsequent color data into a luminance component (Y) and a color difference component (CbCr) is provided.
Further, each processing function in the color interpolation processing unit 30, the YC conversion unit 40, the filtering unit 50, the inverse conversion unit 60, and the like constituting the image processing apparatus 100 is specifically from a central processing unit, a main storage device, or the like. It can also be realized by a computer system comprising hardware and dedicated software (processing program) produced for each processing.

すなわち、この画像処理装置100を実現するためのコンピュータシステムは、例えば図2に示すように、各種制御や演算処理を担う中央演算処理装置であるCPU(Central Processing Unit)90と、主記憶装置(Main Strage)に用いられるRAM(Random Access Memory)91と、読み出し専用の記憶装置であるROM(Read Only Memory)92と、ハードディスクドライブ装置(HDD)や半導体メモリなどの補助記憶装置(Secondary Storage)93、及びモニタ(LCD(液晶ディスプレイ)やCRT(陰極線管))などからなる出力装置94や、入力装置95(すなわち、本発明にあってはカラー撮像センサ20)と、これらの入出力インターフェース(I/F)96などとの間を、PCI(Peripheral Component Interconnect)バスやISA(Industrial Standard Architecture;アイサ)バスなどからなるプロセッサバス、メモリバス、システムバス、入出力バスなどの各種内外バス97によってバス接続したものである。   That is, a computer system for realizing the image processing apparatus 100 includes, as shown in FIG. 2, for example, a central processing unit (CPU) 90 that is a central processing unit responsible for various controls and arithmetic processing, and a main storage device ( A RAM (Random Access Memory) 91 used for Main Storage, a ROM (Read Only Memory) 92 that is a read-only storage device, and an auxiliary storage device (Secondary Storage) 93 such as a hard disk drive device (HDD) or a semiconductor memory. And an output device 94 such as a monitor (LCD (liquid crystal display) or CRT (cathode ray tube)), an input device 95 (that is, the color image sensor 20 in the present invention), and their input / output interfaces. Interface (I / F) 96, etc., various internal and external such as processor bus, memory bus, system bus, input / output bus such as PCI (Peripheral Component Interconnect) bus and ISA (Industrial Standard Architecture) bus The bus 97 is connected by a bus.

そして、例えば、CD−ROMやDVD−ROM、フレキシブルディスクなどの記録媒体、あるいは通信ネットワーク(LAN、WAN、インターネットなど)Nを介して供給される各種制御用プログラムやデータなどを補助記憶装置93などにインストールすると共にそのプログラムやデータを必要に応じて主記憶装置91にロードし、その主記憶装置91にロードされたプログラムに従ってCPU90が各種リソースを駆使して所定の制御及び演算処理を行い、その処理結果(処理データ)をバス97を介して出力装置94に出力して表示すると共に、そのデータを必要に応じて補助記憶装置93によって形成されるデータベースに適宜記憶、保存(更新)処理するようにしたものである。   For example, the auxiliary storage device 93 stores various control programs and data supplied via a recording medium such as a CD-ROM, DVD-ROM, and flexible disk, or a communication network (LAN, WAN, Internet, etc.) N. And the program and data are loaded into the main storage device 91 as necessary, and the CPU 90 performs various controls and arithmetic processes using various resources according to the program loaded into the main storage device 91. The processing result (processing data) is output to the output device 94 via the bus 97 and displayed, and the data is appropriately stored and saved (updated) in a database formed by the auxiliary storage device 93 as necessary. It is a thing.

また、このカラー撮像センサ20は、従来と同様にCCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)などの撮像センサをそのまま適用したものであり、また、単板式のものについて特に顕著な効果が得られるというものであって、単板式のみならず2板式でも適用可能である。   The color image sensor 20 is an image sensor such as a CCD (Charge Coupled Device) or CMOS (Complementary Metal Oxide Semiconductor) as it is applied to the color image sensor 20 as in the prior art. And can be applied not only to a single plate type but also to a two plate type.

また、画像出力部70は、直接的には処理前後の画像を視覚的に表示するものであり、CRTやLCDなどのソフトコピー装置の他、レーザープリンタやインクジェットプリンタなどのハードコピー装置に加え、いわゆるグラフィックアクセラレータやビデオカードなどと称される画像出力専用の回路(基板)なども含まれる。
なお、このカラー撮像センサ20を用いた画像処理装置では、他にカラー撮像センサ20などをコントロールするためのブロック(例えば露出制御など)や、色を処理するためのブロック(例えば、オートホワイトバランス)などが必要になることがあるが、本発明にはそれらのブロックは関与するところが少なく、従来の技術などを用いれば構成することができるので、本実施の形態では割愛する。
The image output unit 70 directly displays images before and after processing, in addition to soft copy devices such as CRT and LCD, in addition to hard copy devices such as laser printers and inkjet printers, Also included are circuits (substrates) dedicated to image output, so-called graphic accelerators and video cards.
In the image processing apparatus using the color image sensor 20, other blocks for controlling the color image sensor 20 (for example, exposure control) and blocks for processing colors (for example, auto white balance). However, these blocks are not involved in the present invention and can be configured by using conventional techniques and the like, and are therefore omitted in this embodiment.

また、これら各部10,20,30,40,50,60,70は、携帯用デジタルカメラやハンディビデオカメラなどのように1つのケーシング内に一体的に収容されていても良く、また、各部のうち一部、例えば液晶モニタなどからなる画像出力部70だけが物理的に独立した形態であっても良い。
次に、このような構成をした本発明の画像処理装置100による画像処理方法の一例について説明する。
Each of these parts 10, 20, 30, 40, 50, 60, 70 may be integrally accommodated in one casing like a portable digital camera or a handy video camera. Of these, only a part of the image output unit 70 such as a liquid crystal monitor may be physically independent.
Next, an example of an image processing method by the image processing apparatus 100 of the present invention having such a configuration will be described.

先ず、単板式のカラー撮像センサ20で取り込まれた画像データは、センサ固有のノイズ除去処理や明るさを調整するゲイン調整処理などを経てA/D変換された後、図3に示すように、色補間処理部30に送られ、この色補間処理部30によってすべての画素に対して簡易的な色補間処理が施されて(ステップS101)からYC変換部40に送られる。   First, the image data captured by the single-plate color imaging sensor 20 is subjected to A / D conversion through sensor-specific noise removal processing, gain adjustment processing for adjusting brightness, and the like, and as shown in FIG. This is sent to the color interpolation processing unit 30, and simple color interpolation processing is performed on all the pixels by the color interpolation processing unit 30 (step S <b> 101) and then sent to the YC conversion unit 40.

ここで、この色補間処理部30で行われる簡易的な色補間処理の例について、図4〜図7などを用いて簡単に説明する。
この色補間処理部30における色補間処理とは、単板式のCCDなどのカラー撮像センサ20などによって撮像された画像データの場合に、各画素ごとに欠落している色情報を近傍の同色画素から予測補間し、1画素にRGBなどの各原色信号を復元する処理のことである。
例えば、単板式のCCD上に装着される赤、緑、青の各色をブロック状に並べたカラーフィルタの配列が、図4に示すようにB(青:Blue)及びR(赤:Red)がそれぞれ1つずつで、G(緑:Green)が2つのフィルムからなる基本パターンが縦横に配置されている場合であって、色補間処理の対象となる注目画素が図中中央に位置している「R1」と仮定すると、この注目画素「R1」に相当する画素には「赤」に関する色情報しか存在しない。
Here, an example of simple color interpolation processing performed by the color interpolation processing unit 30 will be briefly described with reference to FIGS.
The color interpolation processing in the color interpolation processing unit 30 is the case where image data is captured by a color imaging sensor 20 such as a single-plate CCD, and the color information that is missing for each pixel is detected from neighboring pixels of the same color. This is a process of performing predictive interpolation and restoring each primary color signal such as RGB to one pixel.
For example, a color filter array in which red, green, and blue colors mounted on a single-plate CCD are arranged in a block form is shown in FIG. 4 where B (blue: Blue) and R (red: Red) are In each case, a basic pattern consisting of two films of G (green) is arranged vertically and horizontally, and the target pixel for color interpolation processing is located in the center of the figure. Assuming “R1”, only the color information relating to “red” exists in the pixel corresponding to the target pixel “R1”.

そのため、図5(a)に示すように、注目画素「R1」についての「赤」に関する色情報はそのまま採用することになるが、「緑」に関する色情報(Gip)については同図(b)に示すように、その注目画素「R1」を囲む周囲近傍の「緑」に関する画素の色情報の平均値、すなわち、注目画素「R1」の上下左右に位置する4つの「緑」に関する画素「G1」、「G4」、「G2」、「G3」の画素値を求め、その画素値の平均値((G1+G4+G2+G3)×0.25)がその注目画素「R1」の「緑」に関する色情報(Gip)として予測補間されることになる。   Therefore, as shown in FIG. 5A, the color information related to “red” for the target pixel “R1” is adopted as it is, but the color information (Gip) related to “green” is used as shown in FIG. As shown, the average value of the color information of the pixels related to “green” in the vicinity of the periphery surrounding the target pixel “R1”, that is, the pixels “G1” related to the four “green” positioned above, below, left and right of the target pixel “R1” ”,“ G4 ”,“ G2 ”,“ G3 ”are obtained, and the average value of the pixel values ((G1 + G4 + G2 + G3) × 0.25) is the color information (Gip) regarding“ green ”of the pixel of interest“ R1 ”. ) Is predicted and interpolated.

また、同じくその注目画素「R1」についての「青」に関する色情報(Bip)は同図(c)に示すように、注目画素「R1」を囲む周囲近傍の「青」に関する画素の色情報の平均値、すなわち、注目画素「R1」の斜め上下左右に位置する4つの「青」に関する画素「B1」、「B4」、「B2」、「B3」の画素値を求め、その画素値の平均値((B1+B4+B2+B3)×0.25)が同じくその注目画素「R1」の「青」に関する色情報(Bip)として予測補間されることになる。   Similarly, the color information (Bip) related to “blue” for the target pixel “R1” is the color information of the pixel related to “blue” in the vicinity surrounding the target pixel “R1” as shown in FIG. The average value, that is, the pixel values of the pixels “B1”, “B4”, “B2”, and “B3” regarding the four “blue” located diagonally up, down, left and right of the target pixel “R1” are obtained, and the average of the pixel values The value ((B1 + B4 + B2 + B3) × 0.25) is also predicted and interpolated as color information (Bip) regarding “blue” of the target pixel “R1”.

そして、このような色補間処理をすべての画素に対してシーケンシャル的に、あるいは複数の領域に分割して同時並行的に行うことで、各画素ごとに欠落している色成分を予測補間して画像本来の色を再現するようにしている。
なお、このように3×3画素単位で色補間処理するパターンでは、前記のように1つの「R(R1)」画素を中心とするパターンの他に、図6(A)に示すように、1つの「B(B1)」を中心とするパターンと、同図(B)に示すように、「G(G4)」を中心とするパターンの3つのパターンが考えられる。そして、図6(B)のパターンでは、「G」は、その注目画素の重みを大きくした5つの「G」の重みつき平均値が、また、「R」は、その注目画素の上下に位置する2つの画素(R2,R4)の平均値が、また、「B」は、その注目画素の左右に位置する2つの画素(B1、B2)の平均値がそれぞれその注目画素のR値及びB値として採用されることになる。
Then, such color interpolation processing is performed sequentially for all the pixels or divided into a plurality of regions and performed in parallel, thereby predicting and interpolating missing color components for each pixel. The original color of the image is reproduced.
In the pattern in which color interpolation processing is performed in units of 3 × 3 pixels as described above, in addition to the pattern centered on one “R (R1)” pixel as described above, as shown in FIG. There are three patterns, one pattern centered on “B (B1)” and the other pattern centered on “G (G4)” as shown in FIG. In the pattern of FIG. 6B, “G” is a weighted average value of five “G” s obtained by increasing the weight of the target pixel, and “R” is positioned above and below the target pixel. The average value of the two pixels (R2, R4) is “B”, and “B” is the average value of the two pixels (B1, B2) located on the left and right of the target pixel. It will be adopted as a value.

また、このような簡易的な色補間処理としては、前記のように3×3画素単位で実施する他に、図7に示すように2×2画素単位で実施する方法も一般的に用いられている。このような2×2画素単位で実施する場合は、各画素間の格子部分に色補間処理対象となる注目画素が存在するものと仮定し、その注目画素の「R値」及び「B値」については、その2×2パターン内に1つずつある「R(R1)」及び「B(B1)」をそのまま利用し、「G値」については、そのパターン内に2つずつある「G(G1、(G3))」の平均値を利用するようにしている。   As such simple color interpolation processing, in addition to the 3 × 3 pixel unit as described above, a method of 2 × 2 pixel unit as shown in FIG. 7 is generally used. ing. In the case of carrying out in such a 2 × 2 pixel unit, it is assumed that a pixel of interest to be subjected to color interpolation processing exists in a lattice portion between each pixel, and the “R value” and “B value” of the pixel of interest For “G”, “R (R1)” and “B (B1)” one by one in the 2 × 2 pattern are used as they are, and for “G value”, two “G ( The average value of “G1, (G3))” is used.

そして、このように色補間処理部30における色補間処理は、その周囲の画素値を利用して推測によりその(注目)画素にない色のデータを生成するようになっていることから、画像のエッジ部などの画素値に急激な変化がある部分では、正確な値を算出することができずに本来と異なる色のバランスを持つ画素が発生しやすくなる。
このため、これを排除するために色補間処理によって生成された色データに対してその後のフィルタリング処理が必要となってくる。
In this way, the color interpolation processing in the color interpolation processing unit 30 generates color data that does not exist in the (attention) pixel by estimation using the surrounding pixel values. In a portion where the pixel value is abruptly changed, such as an edge portion, an accurate value cannot be calculated, and a pixel having a different color balance is likely to occur.
For this reason, subsequent filtering processing is necessary for the color data generated by the color interpolation processing in order to eliminate this.

すなわち、図3のフローに示すように、色補間処理が施された色データは、その後、YC変換部40に送られ、ここで輝度信号(Y)と色差信号(C)とに変換処理される(ステップS103)。
このYC変換部40における色(RGB)データから輝度信号(Y)と色差信号(C)への変換処理は、その色データの値によって複数用意されたYC変換式のいずれかを選択して利用することになる。
That is, as shown in the flow of FIG. 3, the color data that has been subjected to the color interpolation process is then sent to the YC conversion unit 40, where it is converted into a luminance signal (Y) and a color difference signal (C). (Step S103).
The YC conversion unit 40 converts the color (RGB) data into the luminance signal (Y) and the color difference signal (C) by selecting one of YC conversion formulas prepared according to the value of the color data. Will do.

例えば、色補間処理部30で得られた色データがRGB値である場合、先ず、「G」の値に対して「R」と「B」の値がどれほど大きい値になるかを判定し、以下のようにt1<t2<t3…といった複数の閾値を決めるパラメータを設定してそれぞれに異なった複数のYC変換式A、B、C…を作成し、これをYC変換部40に保存する。
R、B < G×t1 → 変換式A
G×t1≦ R、B < G×t2 → 変換式B
G×t2≦ R、B < G×t3 → 変換式C
G×t3≦ …
図8は、このYC変換式として5つのYC変換式A〜Eの一例を示したものであり、図9は、その閾値条件と使用する変換式との関係を示したものである。
For example, when the color data obtained by the color interpolation processing unit 30 is an RGB value, first, it is determined how large the values of “R” and “B” are relative to the value of “G”. A plurality of parameters for determining a plurality of threshold values such as t1 <t2 <t3... Are set as follows, and a plurality of different YC conversion formulas A, B, C... Are created and stored in the YC conversion unit 40.
R, B <G × t1 → Conversion formula A
G × t1 ≦ R, B <G × t2 → Conversion formula B
G × t2 ≦ R, B <G × t3 → Conversion formula C
G × t3 ≦
FIG. 8 shows an example of five YC conversion formulas A to E as the YC conversion formula, and FIG. 9 shows the relationship between the threshold condition and the conversion formula to be used.

図8に示す5つのYC変換式A〜Eの場合では、輝度信号Yは、R×K1+G×K2+B×K1(但し、K1+K2+K1=1.0)に基づいて算出されると共に、色差信号C(Cb、Cr)は、前記「R」と「Y」との差分、及び前記「B」と「Y」の差分にそれぞれ基づいて算出されている。
例えば、図8のYC変換式Aでは、係数「K1」が「0.25」、係数「K2」が「0.5」となっており、全輝度信号Yに対する「G」の値は、「0.5」、「R」及び「B」の値はそれぞれ「0.25」ずつとなっている。また、色差信号「Cb」は、「R」と「Y」との差分である「−0.25、−0.5、0.75」、色差信号「Cr」は、「B」と「Y」の差分である「0.75、−0.5、−0.25」となっている。
In the case of the five YC conversion equations A to E shown in FIG. 8, the luminance signal Y is calculated based on R × K1 + G × K2 + B × K1 (where K1 + K2 + K1 = 1.0) and the color difference signal C (Cb , Cr) are calculated based on the difference between “R” and “Y” and the difference between “B” and “Y”, respectively.
For example, in the YC conversion formula A of FIG. 8, the coefficient “K1” is “0.25”, the coefficient “K2” is “0.5”, and the value of “G” for the total luminance signal Y is “ The values of “0.5”, “R”, and “B” are “0.25” respectively. The color difference signal “Cb” is “−0.25, −0.5, 0.75” which is the difference between “R” and “Y”, and the color difference signal “Cr” is “B” and “Y”. "0.75, -0.5, -0.25".

図9(1)は、4つの閾値「t1(1.125)」、「t2(1.375)」、「t3(1.625)」、「t4(1.875)」を用いて色補間処理部30で得られた色データを5つのパターンに振り分け、それぞれのパターンに対して前記5つのYC変換式A〜Eを割り当てる例を示したものである。
従って、この図9(1)のテーブルによれば、色補間処理部30で得られたRGB値を解析した結果、「R」又は「B」の値が、「G」×1.125よりも小さい場合は、YC変換式Aが選択され、「G」×1.125以上で、かつ「G」×1.375よりも小さい場合はYC変換式Bが選択される。さらに、「R」又は「B」の値が、「G」×1.375以上で、かつ「G」×1.625よりも小さい場合YC変換式Cが選択されることになる。すなわち、「R」又は「B」の値が大きくなるに従って、「G」の値も大きくなる変換式が選択されて、「R」又は「B」の値による影響が低減されるようになっている。
In FIG. 9A, color interpolation is performed using four threshold values “t1 (1.125)”, “t2 (1.375)”, “t3 (1.625)”, and “t4 (1.875)”. In this example, the color data obtained by the processing unit 30 is distributed into five patterns, and the five YC conversion formulas A to E are assigned to the respective patterns.
Therefore, according to the table of FIG. 9A, as a result of analyzing the RGB value obtained by the color interpolation processing unit 30, the value of “R” or “B” is more than “G” × 1.125. When it is smaller, YC conversion formula A is selected, and when it is “G” × 1.125 or more and smaller than “G” × 1.375, YC conversion formula B is selected. Further, when the value of “R” or “B” is “G” × 1.375 or more and smaller than “G” × 1.625, the YC conversion formula C is selected. That is, as the value of “R” or “B” increases, a conversion formula that increases the value of “G” is selected, and the influence of the value of “R” or “B” is reduced. Yes.

また、同図(2)、(3)は、それぞれ2つ及び1つの閾値を用いて色データを3つ及び2つのパターンに振り分け、それぞれのパターンに対して前記5つのYC変換式A〜Eのうち適当なYC変換式を割り当てる例を示したものである。
このように本発明の特徴部分であるYC変換処理は、予め複数のYC変換式を用意しておき、そのYC変換式のなかから色データの値に応じて適当なYC変換式を選択するようにしたものであり、これによって簡易的な色補間を施す際の処理単位内で1画素しかない、「R」や「B」の値が大きすぎるような場合でも、その色の解像度に支配されることなく、全体の解像度の低下を未然に回避することができる。
In FIGS. 2 (2) and (3), color data is divided into three and two patterns using two and one threshold, respectively, and the five YC conversion formulas A to E are assigned to each pattern. This shows an example of assigning an appropriate YC conversion formula.
As described above, in the YC conversion process which is a characteristic part of the present invention, a plurality of YC conversion expressions are prepared in advance, and an appropriate YC conversion expression is selected from the YC conversion expressions according to the value of the color data. Therefore, even if there is only one pixel in the processing unit when performing simple color interpolation, even if the value of “R” or “B” is too large, it is governed by the resolution of the color. Without lowering the overall resolution.

また、色補間処理部30における色補間処理自体には何ら手を加えることなく、従来の簡易的な色補間処理をそのまま利用することができるため、滑らかで自然なエッジを確実に再現できると共に、画像処理負荷の増大を招くこともない。
なお、本実施の形態でいう、「色データ」とは、1画素ごとに「R(赤)」、「G(緑)」、「B(青)」フィルタを配置した3色フィルタ(一般的に原色フィルタと呼ばれている)で得られる色データの他に、1画素ごとに「C(シアン)」、「M(マゼンタ)」、「Y(イエロ)」、「G(グリーン)」のフィルタを配置した4色フィルタ(一般的に補色フィルタと呼ばれている)で得られる色データをも含むものであり、また、原色フィルタに青紫のような色フィルタを加えたようなあらゆる色フィルタで得られる色データも含むものである。また、使用するYC変換式の数(種類)は、特に限定するものでないが一般に多いほどより適したYC変換処理を達成することが可能であるが、その分適したYC変換式を選択するなどのハードウェア、ソフトウェア的な処理負荷が増大し、反対に少ないと期待した画質向上がみられない。従って、実際に発明者が行った実験によるサンプル画像の検証だけでも2種類の切り換えでは、従来方式よりも画質的に劣化する部分が発生することから、少なくとも3種類の切り換えは必須であり、望ましくは、5種類以上のYC変換式を用意して適宜切り換えて用いることが好ましい。
Further, since the conventional simple color interpolation process can be used as it is without any modification in the color interpolation process itself in the color interpolation processing unit 30, a smooth and natural edge can be reliably reproduced, There is no increase in image processing load.
The “color data” in the present embodiment is a three-color filter (generally, in which “R (red)”, “G (green)”, and “B (blue)” filters are arranged for each pixel. In addition to the color data obtained by the “primary color filter”, “C (cyan)”, “M (magenta)”, “Y (yellow)”, “G (green)” for each pixel. Any color filter that includes color data obtained by a four-color filter (generally referred to as a complementary color filter) in which filters are arranged, and a color filter such as bluish purple added to the primary color filter The color data obtained in the above is also included. Further, the number (type) of YC conversion formulas to be used is not particularly limited, but generally more YC conversion processing can be achieved as the number is larger. However, a suitable YC conversion formula is selected accordingly. The hardware and software processing load increases, and on the contrary, the improvement in image quality expected to be small is not seen. Accordingly, even if only two types of switching are performed only by verifying the sample image based on an experiment actually conducted by the inventor, a portion that deteriorates in image quality is generated as compared with the conventional method. Therefore, at least three types of switching are essential and desirable. It is preferable to prepare five or more types of YC conversion formulas and switch them appropriately.

そして、このようにしてYC変換部40で最適なYC変換式が選択されたならば、そのYC変換式によって色データを輝度信号(Y)と色差信号(C)とに分離し、分離された輝度信号(Y)と色差信号(C)のうち、輝度信号(Y)は、フィルタリング部50の輪郭強調部52に送られ、この輪郭強調部52によって、例えば、ハイパスフィルタ(HPF:High Pass Filter:高域強調フィルタ)がかけられて、色補間処理に伴ってなまった輝度画像のエッジ部が鮮鋭化(シャープにする)されて輪郭が補償・強調される。すなわち、前記のような色補間処理には、欠落して色情報の予測補間効果と共に低い空間周波数成分が強調されるLPF効果が生じるため、画像のエッジ部がなまり、高い空間周波数成分が減少する。そのため、この輪郭強調部52によってなまった画像の高い空間周波数成分をここでは、HPFで強調することによって輝度画像の鮮鋭化を図るようにしている。   Then, when the optimum YC conversion formula is selected by the YC conversion section 40 in this way, the color data is separated into the luminance signal (Y) and the color difference signal (C) by the YC conversion formula, and separated. Of the luminance signal (Y) and the color difference signal (C), the luminance signal (Y) is sent to the contour emphasizing unit 52 of the filtering unit 50, and the contour emphasizing unit 52 performs, for example, a high pass filter (HPF: High Pass Filter). : High-frequency emphasis filter) is applied to sharpen (sharpen) the edge portion of the luminance image that has been lost due to the color interpolation process, and the contour is compensated / enhanced. That is, in the color interpolation process as described above, an LPF effect in which a low spatial frequency component is emphasized together with a predictive interpolation effect of color information is generated, so that the edge portion of the image is dulled and the high spatial frequency component is reduced. . For this reason, the high spatial frequency component of the image distorted by the contour emphasizing unit 52 is enhanced here by HPF, thereby sharpening the luminance image.

一方、色差信号(C)は、同じくフィルタリング部50の偽色処理部54へ送られ、ここでローパスフィルタ(LPF:Low Pass Filter:低域強調フィルタ)などを用いて色補間処理に伴って発生した偽色を排除するための処理が実施される(ステップS107)。
そして、このようにしてそれぞれ所定のフィルタリング処理が実施された輝度信号(Y)と色差信号(C)は、逆変換部60へ送られて元の色(RGB)データに変換された後、ホワイトバランス処理などの汎用の画像処理を経てから、画像出力部70に送られてもLCDモニタなどに表示されたり、プリントアウトされて鑑賞などに供されることになる。
On the other hand, the color difference signal (C) is also sent to the false color processing unit 54 of the filtering unit 50, and is generated along with the color interpolation processing using a low pass filter (LPF: Low Pass Filter). A process for eliminating the false color is performed (step S107).
Then, the luminance signal (Y) and the color difference signal (C), each of which has been subjected to the predetermined filtering process in this way, are sent to the inverse conversion unit 60 and converted into the original color (RGB) data, and then the white signal Even after being sent to the image output unit 70 after performing general-purpose image processing such as balance processing, it is displayed on an LCD monitor or the like, or printed out for viewing.

次に、図10〜図14は、本発明に係る画像処理装置100の他の実施の形態を示したものである。
図示するように、本実施の形態は、前述したYC変換部40、フィルタリング部50、逆変換部60を複数系統(図では2系統)用意し、それぞれの系統で色補間処理後の色データを独立して並列処理し、それぞれの系統で得られた各色データをその後流側に新設されたデータ合成部80で所定の割合に応じて合成するようにしたものである。
10 to 14 show another embodiment of the image processing apparatus 100 according to the present invention.
As shown in the figure, the present embodiment prepares a plurality of systems (two systems in the figure) of the YC conversion unit 40, the filtering unit 50, and the inverse conversion unit 60 described above, and the color data after the color interpolation processing in each system. Independently parallel processing is performed, and each color data obtained in each system is synthesized according to a predetermined ratio by a data synthesis unit 80 newly provided on the downstream side.

すなわち、前記実施の形態のよる方法は、異なったYC変換式によって変換されたYCデータを1つの同じプレーン上の画像とみなしてフィルタリング処理を行うようにしたものであるため、閾値の僅かな違いによりYC変換式が変化するとYCの値は全く異なるものとなる場合が考えられる。例えば、(R、G、B)=(100,200,150)を図8に示したYC変換式Aを用いてYC変換すると、
(Y、Cb、Cr)=(162.5、−12.5、−62.5)となるが、YC変換式Eを用いてYC変換すると、
(Y、Cb、Cr)=(200、−50、−100)となり、その結果が大きく異なる場合がある。
That is, in the method according to the above embodiment, the filtering process is performed by regarding the YC data converted by different YC conversion expressions as an image on the same plane, and therefore, there is a slight difference in threshold value. If the YC conversion formula changes due to the above, the value of YC may be completely different. For example, when (R, G, B) = (100, 200, 150) is YC converted using the YC conversion formula A shown in FIG.
(Y, Cb, Cr) = (162.5, −12.5, −62.5). When YC conversion is performed using the YC conversion equation E,
(Y, Cb, Cr) = (200, −50, −100), and the result may vary greatly.

従って、これらは異なるプレーンと考えることができるため、本実施の形態では、各YC変換式ごとにプレーンを用意してそれぞれにフィルタリング処理を施して色データを作成し、画素ごとに適切なYC変換式で作成された色データを選択し、選択された色データを合成することが適当であるが、それぞれに対して独立にプレーンを用意すると、並列して計算すべき処理が非常に多数になってしまう。例えば、図8に示したような5つのYC変換式を用いる場合を考えると、「YC変換→フィルタリング→逆変換」といった処理の流れが5系統(5パス)必要となる。   Therefore, since these can be considered as different planes, in this embodiment, a plane is prepared for each YC conversion formula, and filtering processing is performed on each plane to create color data, and an appropriate YC conversion is performed for each pixel. It is appropriate to select the color data created by the formula and synthesize the selected color data. However, if a plane is prepared independently for each, the number of processes to be calculated in parallel becomes very large. End up. For example, considering the case where five YC conversion formulas as shown in FIG. 8 are used, a processing flow of “YC conversion → filtering → inverse conversion” requires five systems (5 paths).

しかし、実際には5つの変換式すべてのパスを用意する必要はない。例えば、図8に示す変換式Cは、変換式AとEの変換式を1:1の割合で合成したものと同一である(実施には、フィルタリング処理などの影響により微妙な結果の差は生ずるものの同等と考えることができる)。
従って、例えば、図8に示したYC変換式A、Eといった2つのYC変換式を用い、それぞれ2つの変換式による処理は全く独立にそれぞれ算出し、色補間処理後の各色データの比に応じてデータ合成部80で合成するようにすれば、前記実施の形態と同様な結果が得られると共に、その合成比を変えるだけで、多数のYC変換式を用意しなくとも多数の様々なパターンの処理結果を得ることができる。
However, in practice, it is not necessary to prepare paths for all five conversion expressions. For example, the conversion formula C shown in FIG. 8 is the same as the one in which the conversion formulas of the conversion formulas A and E are synthesized at a ratio of 1: 1. Can be considered equivalent to what happens).
Therefore, for example, two YC conversion formulas such as YC conversion formulas A and E shown in FIG. 8 are used, and the processing based on the two conversion formulas is calculated independently of each other, depending on the ratio of each color data after the color interpolation processing. If the data synthesizer 80 synthesizes, the same result as in the above embodiment can be obtained, and a large number of various patterns can be obtained without preparing a large number of YC conversion formulas by simply changing the synthesis ratio. Processing results can be obtained.

ここで、2つの色データの合成割合は、図11(1)〜(3)のテーブルに示すように、それぞれ4つ、2つ、1つの閾値を用いた5通り、3通り、2通りなどが考えられる。例えば、図11(1)のテーブルでは、「R」又は「B」の値が、「G」×1.125よりも小さい場合は、YC変換式Aで変換された値のみを用い、「G」×1.125以上、「G」×1.375未満の場合は、YC変換式Aを用いて変換された値を「0.75」の割合で、YC変換式Eを用いて変換された値を「0.25」の割合で併用することで最適な色データを得ることが可能となる。   Here, as shown in the tables of FIGS. 11 (1) to (3), the composition ratio of the two color data is five, three, two, etc. using four, two, one threshold value, respectively. Can be considered. For example, in the table of FIG. 11A, when the value of “R” or “B” is smaller than “G” × 1.125, only the value converted by the YC conversion formula A is used. ”× 1.125 or more and less than“ G ”× 1.375, the value converted using the YC conversion formula A was converted using the YC conversion formula E at a ratio of“ 0.75 ”. Optimal color data can be obtained by using the values together at a ratio of “0.25”.

ここで、各YC変換式による変換結果の合成率の選択肢を図11(3)のように2つだけにすると、閾値の不適切さによるエッジの適切な再現性が低下する傾向がみられることから、閾値設定の余裕の観点からも各YC変換式による変換結果の合成率の選択肢は多い方がより適切な色データ(画像)を得ることができる。特に、本実施の形態では合成率の選択肢を多少増やしてもハードウェア的、ソフトウェア的に煩雑さは殆ど変わらないと考えられるため、実際の検証結果からも合成率の選択肢は、5段階程度が望ましいと考えられる。   Here, if there are only two choices of the composition ratio of the conversion results by each YC conversion formula as shown in FIG. 11 (3), there is a tendency that appropriate reproducibility of edges due to inadequate thresholds is reduced. Accordingly, more appropriate color data (image) can be obtained when there are more choices of the composition rate of the conversion result by each YC conversion formula from the viewpoint of the margin of the threshold setting. In particular, in the present embodiment, it is considered that the complexity in terms of hardware and software hardly changes even if the synthesis rate options are slightly increased. Therefore, from the actual verification results, there are about 5 synthesis rate options. It is considered desirable.

なお、図12は、本実施の形態で用いた5つのYC変換式A〜Eに対応する逆変換式(YC→RGB)の一例を示したものである。
また、本実施の形態では、画素値としてすべて「輝度」に関する値を用いて記述したが、「輝度」に代わって「濃度」に関する値を用いても同様の処理が可能である。
但し、「輝度」は、光量に比例し、値が大きくなるほど明るくなる(例えば、輝度が2倍になると光量も2倍となる)が、「濃度」は値が大きくなるほど暗くなるという性質がある。すなわち、「濃度」は、10を底とする対数で光の伝送を定義するようになっており、濃度が2倍になると、光量は1/10倍となる。
FIG. 12 shows an example of inverse conversion formulas (YC → RGB) corresponding to the five YC conversion formulas A to E used in the present embodiment.
In the present embodiment, the pixel values are all described using values related to “luminance”, but the same processing can be performed using values related to “density” instead of “luminance”.
However, “brightness” is proportional to the amount of light and becomes brighter as the value increases (for example, when the luminance is doubled, the amount of light is also doubled), but “density” is darker as the value increases. . That is, “density” defines light transmission in a logarithm with a base of 10. When the density is doubled, the amount of light is 1/10 times.

従って、前記画素値として「輝度」に代わって「濃度」に関する値を使用する場合は、切り換え条件を変更するか、あるいは、濃度を輝度に変換するといった処理が必要となってくる。
また、前記実施の形態では、YC変換式の係数として予め用意された所定の係数を用いたり、また、YC変換式自体を予め用意された、いくつかのYC変換式のなかから選択するようにしているが、処理ごとに、最適な係数あるいはYC変換式を作成してこれを使用するようにしても良い。例えば、図13に示すようにR/G、B/Gの比のうち、いずれか大きい値を示す方を選択し、その値に基づいて各係数K1〜K9を決定することができる。ここで、図13の横軸は算出される比の値、縦軸はそれぞれの比の値において使用すべき各係数K1〜K9の値を示している。
Therefore, when a value related to “density” is used instead of “luminance” as the pixel value, a process of changing the switching condition or converting the density into luminance is required.
In the embodiment, a predetermined coefficient prepared in advance is used as a coefficient of the YC conversion expression, or the YC conversion expression itself is selected from several YC conversion expressions prepared in advance. However, for each process, an optimum coefficient or YC conversion formula may be created and used. For example, as shown in FIG. 13, it is possible to select one of the ratios of R / G and B / G that shows a larger value and determine the coefficients K1 to K9 based on the value. Here, the horizontal axis of FIG. 13 indicates the value of the calculated ratio, and the vertical axis indicates the value of each coefficient K1 to K9 to be used in each ratio value.

また、前述したように、各画素ごとに前記色補間処理で求められた色データのなかから最大値を検出し、当該最大値と特定色の値との大きさの比を求め、その比に基づいて前記変換式を決定するに際し、その比に基づいて変換式を選択する他のバリエーションとしては、以下に示すものが考えられる。
すなわち、前記実施の形態では、Yの算出において、RとBに係る係数が同一になるように制御している(K1=K3)が、GとR、Bの比の大きさを比較して独立に制御することも可能となる。このバリエーションでは、特定の色(G)と特定色以外の色(R、B)との比に基づいて特定色外の色それぞれの比を独立に求めて変換式を制御するという処理となる。
Further, as described above, the maximum value is detected from the color data obtained by the color interpolation processing for each pixel, the ratio of the maximum value and the value of the specific color is obtained, and the ratio is calculated. The following can be considered as other variations for selecting the conversion formula based on the ratio when the conversion formula is determined based on the above formula.
That is, in the above embodiment, in the calculation of Y, the coefficients related to R and B are controlled to be the same (K1 = K3), but the ratios of G, R, and B are compared. Independent control is also possible. In this variation, the conversion formula is controlled by independently obtaining the ratio of each color outside the specific color based on the ratio between the specific color (G) and the color other than the specific color (R, B).

係数の変化のさせ方について、図13などに示すようなYC変換式をベースに考えると、Cb=B−Y、Cr=R−Yにて定義して算出されるようになっているので、Yの変換式だけを決定すれば、CbとCrは計算により求まるので省略する。
そこで、Y=K1・R+K2・G+K3・B(Y=0.25R+0.5G+0.25Bを基本)としてK1〜K3を定義する。
When considering how to change the coefficient based on the YC conversion formula as shown in FIG. 13 and the like, it is calculated by defining Cb = BY and Cr = RY. If only the conversion formula for Y is determined, Cb and Cr can be obtained by calculation and will be omitted.
Therefore, K1 to K3 are defined as Y = K1, R + K2, G + K3, B (based on Y = 0.25R + 0.5G + 0.25B).

R/Gの比の範囲より、図14の図表に従って基本式からK1はαだけ減算し、K2はαだけ加算する。また、B/Gの比の範囲より、図15の図表に従って基本式からK1はβだけ減算し、K2はβだけ加算する。
従って、各R/GとB/Gのそれぞれの比によって、
K1=K1−α、K2=K1+α+β、K3=K2−β
に従って変換式を生成でき、作成した変換式を用いてYCbCr変換を実施できる。
なお、逆変換式は、ガウス消去法などの手法を用いて算出することができるので省略する。
From the R / G ratio range, K1 is subtracted by α and K2 is added by α from the basic equation according to the chart of FIG. Also, from the range of the ratio of B / G, K1 is subtracted by β and K2 is added by β from the basic equation according to the chart of FIG.
Therefore, depending on the ratio of each R / G and B / G,
K1 = K1-α, K2 = K1 + α + β, K3 = K2-β
Thus, a conversion formula can be generated, and YCbCr conversion can be performed using the created conversion formula.
Note that the inverse transformation formula can be calculated using a technique such as a Gaussian elimination method, and is therefore omitted.

また、本発明に係る画像処理プログラムは、ハードディスクドライブ装置(HDD)や不揮発性半導体記録媒体以外に、適宜交換・流通可能な記録媒体、例えば、FD、HD、MDなどの磁気記憶型記録媒体、図16に示すように、CD−ROM、DVD−ROMなどの光学的読取方式記録媒体R、MOなどの磁気・光学的記録媒体などのコンピュータ読み取り可能な記録媒体に記録可能であり、これらの記録媒体を利用すれば、所望するユーザなどに対して本発明の画像処理プログラムを容易に提供することができる。   In addition to the hard disk drive (HDD) and the non-volatile semiconductor recording medium, the image processing program according to the present invention can be exchanged and distributed as appropriate, for example, a magnetic storage type recording medium such as FD, HD, MD, As shown in FIG. 16, recording is possible on a computer-readable recording medium such as an optical reading recording medium R such as CD-ROM or DVD-ROM, or a magnetic / optical recording medium such as MO. If the medium is used, the image processing program of the present invention can be easily provided to a desired user or the like.

また、本実施の形態では単板式の撮像センサを用い、1画素1色の画像データの場合について説明したが、本発明の画像処理方法法は、いわゆる2板式の撮像センサで得られる1画素二色の画像データについても適用可能である。   In this embodiment, a single-plate image sensor is used and image data of one color per pixel is described. However, the image processing method according to the present invention is a two-pixel image sensor obtained by a so-called two-plate image sensor. The present invention can also be applied to color image data.

本発明に係る画像処理装置の実施の1形態を示すブロック図である。1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention. 画像処理装置を実現するハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions which implement | achieve an image processing apparatus. 色補間処理から画像出力までの流れを示すフローチャート図である。It is a flowchart figure which shows the flow from a color interpolation process to an image output. カラーフィルタの配列パターンの一例を示す図である。It is a figure which shows an example of the arrangement pattern of a color filter. 3×3画素単位の色補間処理の一例を示す説明図である。It is explanatory drawing which shows an example of the color interpolation process of a 3x3 pixel unit. カラーフィルタの色補間処理パターンを示す図である。It is a figure which shows the color interpolation process pattern of a color filter. 2×2画素単位の色補間処理一例を示す図である。It is a figure which shows an example of the color interpolation process of a 2x2 pixel unit. YC変換式の例を示す図である。It is a figure which shows the example of a YC conversion type | formula. 色データの閾値条件と使用するYC変換式との対応関係の例を示す図である。It is a figure which shows the example of the correspondence of the threshold value condition of color data, and the YC conversion formula to be used. 本発明に係る画像処理装置の他の実施の形態を示すブロック図である。It is a block diagram which shows other embodiment of the image processing apparatus which concerns on this invention. 色データの閾値条件と変換式合成の重みとの対応関係を示す図である。It is a figure which shows the correspondence of the threshold value condition of color data, and the weight of conversion type | mold synthetic | combination. 本実施の形態で用いたYC変換式に対応する逆変換式の一例を示す図である。It is a figure which shows an example of the inverse transformation type corresponding to the YC conversion type used by this Embodiment. 変換式で用いられる係数とその比との関係を示すグラフ図である。It is a graph which shows the relationship between the coefficient used with a conversion type | formula, and its ratio. R/Gの比に基づく係数αに関する図表である。It is a chart regarding the coefficient α based on the ratio of R / G. B/Gの比に基づく係数βに関する図表である。It is a chart regarding the coefficient β based on the ratio of B / G. 本発明に係る画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体の一例を示す概念図である。1 is a conceptual diagram illustrating an example of a computer-readable recording medium on which an image processing program according to the present invention is recorded.

符号の説明Explanation of symbols

10…カメラレンズ、20…カラー撮像センサ、30…色補間処理部、40…YC変換
部、50…フィルタリング部、52…輪郭強調部、54…偽色処理部、60…逆変換部、70…画像出力部、80…データ合成部、90…CPU、91…RAM、92…ROM、93…補助記憶装置、94…出力装置、95…入力装置(カラー撮像センサ)、96…入出力インターフェース、97…バス、100…画像処理装置、R…コンピュータ読み取り可能な記録媒体。
DESCRIPTION OF SYMBOLS 10 ... Camera lens, 20 ... Color imaging sensor, 30 ... Color interpolation process part, 40 ... YC conversion part, 50 ... Filtering part, 52 ... Outline emphasis part, 54 ... False color process part, 60 ... Inverse conversion part, 70 ... Image output unit 80 ... Data composition unit 90 ... CPU 91 ... RAM 92 ... ROM 93 ... Auxiliary storage device 94 ... Output device 95 ... Input device (color imaging sensor) 96 ... Input / output interface 97 ... bus, 100 ... image processing apparatus, R ... computer-readable recording medium.

Claims (17)

赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する工程と、
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から、前記R値と前記B値と前記G値のうち値が大きい色に対応する前記K1または前記K2の値が他の前記K1と前記K2の値より小さく設定されている第1の変換式を選択し、前記第1の変換式に基づき輝度信号Yを算出し、前記R値と前記輝度信号Yとの差分と前記B値と前記輝度信号Yとの差分に基づき色差信号Cを算出するYC変換処理工程と、
前記輝度信号Yを高域強調フィルタに、前記色差信号Cを低域強調フィルタにかけるフィルタリング処理を施す工程と、を有する、ことを特徴とする画像処理方法。
Output from the color image sensor of single-plate type and a G pixel corresponding to the B pixels and green corresponding to the R pixel and blue corresponding to red, performing a color interpolation process to the R pixel data corresponding to the R pixel wherein generating the R pixel color data corresponding to R picture element, wherein performing a color interpolation process to the R pixel data corresponding to the G pixel to generate a G pixel color data corresponding to the R pixel, corresponding to the B pixel Performing color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel ;
Among the R value, G value, and B value included in the R pixel color data , a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × Among the plurality of conversion equations having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0), Selecting a first conversion formula in which the value of K1 or K2 corresponding to a color having a large value among the B value and the G value is set smaller than the other K1 and K2 values; YC conversion processing step of calculating a luminance signal Y based on a conversion equation of 1 and calculating a color difference signal C based on a difference between the R value and the luminance signal Y and a difference between the B value and the luminance signal Y ;
Image processing method comprising the luminance signal Y to the high-frequency enhancement filter, which have a, a step of performing a filtering process of applying the color-difference signal C in the low-frequency emphasis filter, it.
請求項1に記載の画像処理方法において、
前記複数の変換式が前記K1と前記K2と前記K3との組み合わせにより設定されていることを特徴とする画像処理方法。
The image processing method according to claim 1,
The image processing method, wherein the plurality of conversion formulas are set by a combination of the K1, the K2, and the K3 .
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する工程と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Applying color interpolation processing to the B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換処理工程と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. YC conversion processing step of calculating the second color difference signal C based on the difference between the difference between the B value and the second luminance signal Y ,
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成する合成処理工程と、  The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. A synthesizing process for generating a third color difference signal C based on
前記第3の輝度信号Yを高域強調フィルタに、前記第3の色差信号Cを低域強調フィルタにかけるフィルタリング処理を施す工程と、を有する、ことを特徴とする画像処理方法。  And a filtering process for applying the third luminance signal Y to a high frequency enhancement filter and applying the third color difference signal C to a low frequency enhancement filter.
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する工程と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Applying color interpolation processing to the B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換処理工程と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. YC conversion processing step of calculating the second color difference signal C based on the difference between the difference between the B value and the second luminance signal Y ,
前記第1の輝度信号Yおよび前記第2の輝度信号Yを高域強調フィルタに、前記第1の色差信号Cおよび前記第2の色差信号Cを低域強調フィルタにかけるフィルタリング処理を施す工程と、  Applying a filtering process in which the first luminance signal Y and the second luminance signal Y are applied to a high frequency enhancement filter, and the first color difference signal C and the second color difference signal C are applied to a low frequency enhancement filter; ,
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成する合成処理工程と、を有する、ことを特徴とする画像処理方法。  The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. And a synthesis processing step of generating a third color difference signal C based on the image processing method.
請求項1ないし4のいずれか一項に記載の画像処理方法において、 In the image processing method according to any one of claims 1 to 4,
前記色補間処理は、前記単板式のカラー撮像センサの各画素ごとに、赤色に対応するR画素及び青色に対応するB画素がそれぞれ1つずつのみ存在する2×2画素単位、又は赤色に対応するR画素及び青色に対応するB画素のうちいずれか1つの画素を中心としてその周囲に前記いずれか1つの画素とは異なる色の画素が存在する3×3画素単位、あるいは赤色に対応するR画素と青色に対応するB画素がそれぞれ2つ存在する3×3画素単位で実施するものであることを特徴とする画像処理方法。  The color interpolation processing corresponds to a 2 × 2 pixel unit in which only one R pixel corresponding to red and one B pixel corresponding to blue exist for each pixel of the single-plate color imaging sensor, or red. The R pixel corresponding to the red color and the R pixel corresponding to the red color, or the R pixel corresponding to the red color, or the red pixel corresponding to the red color. An image processing method, which is performed in units of 3 × 3 pixels in which two B pixels corresponding to pixels and blue exist.
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から、前記R値と前記B値と前記G値のうち値が大きい色に対応する前記K1または前記K2の値が他の前記K1と前記K2の値より小さく設定されている第1の変換式を選択し、前記第1の変換式に基づき輝度信号Yを算出し、前記R値と前記輝度信号Yとの差分と前記B値と前記輝度信号Yとの差分に基づき色差信号Cを算出するYC変換部と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × Among the plurality of conversion equations having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0), Selecting a first conversion formula in which the value of K1 or K2 corresponding to a color having a large value among the B value and the G value is set smaller than the other K1 and K2 values; A YC converter that calculates a luminance signal Y based on a conversion equation of 1 and calculates a color difference signal C based on a difference between the R value and the luminance signal Y and a difference between the B value and the luminance signal Y;
前記輝度信号Yを高域強調フィルタに、前記色差信号Cを低域強調フィルタにかけるフィルタリング処理を施すフィルタリング部と、を有する、ことを特徴とする画像処理装置。  An image processing apparatus comprising: a filtering unit that performs a filtering process that applies the luminance signal Y to a high frequency enhancement filter and the color difference signal C to a low frequency enhancement filter.
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換部と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. A YC converter that calculates a second color difference signal C based on a difference between the difference between the B value and the second luminance signal Y;
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成部と、  The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. A data synthesizing unit that generates a third color difference signal C based on
前記第3の輝度信号Yを高域強調フィルタに、前記第3の色差信号Cを低域強調フィルタにかけるフィルタリング部と、を有する、ことを特徴とする画像処理装置。  An image processing apparatus comprising: a filtering unit that applies the third luminance signal Y to a high frequency enhancement filter and applies the third color difference signal C to a low frequency enhancement filter.
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換部と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0). And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. A YC converter that calculates a second color difference signal C based on a difference between the difference between the B value and the second luminance signal Y;
前記第1の輝度信号Yおよび前記第2の輝度信号Yを高域強調フィルタに、前記第1の色差信号Cおよび前記第2の色差信号Cを低域強調フィルタにかけるフィルタリング部と、  A filtering unit that applies the first luminance signal Y and the second luminance signal Y to a high frequency enhancement filter, and applies the first color difference signal C and the second color difference signal C to a low frequency enhancement filter;
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成部と、を有する、ことを特徴とする画像処理装置。  The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. And a data synthesis unit that generates a third color difference signal C based on the image processing apparatus.
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から、前記R値と前記B値と前記G値のうち値が大きい色に対応する前記K1または前記K2の値が他の前記K1と前記K2の値より小さく設定されている第1の変換式を選択し、前記第1の変換式に基づき輝度信号Yを算出し、前記R値と前記輝度信号Yとの差分と前記B値と前記輝度信号Yとの差分に基づき色差信号Cを算出するYC変換部と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × Among the plurality of conversion equations having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0), Selecting a first conversion formula in which the value of K1 or K2 corresponding to a color having a large value among the B value and the G value is set smaller than the other K1 and K2 values; A YC converter that calculates a luminance signal Y based on a conversion equation of 1 and calculates a color difference signal C based on a difference between the R value and the luminance signal Y and a difference between the B value and the luminance signal Y;
前記輝度信号Yを高域強調フィルタに、前記色差信号Cを低域強調フィルタにかけるフィルタリング処理を施すフィルタリング部と、を有する、ことを特徴とする半導体装置。  And a filtering unit that performs a filtering process of applying the luminance signal Y to a high-frequency emphasis filter and applying the color difference signal C to a low-frequency emphasis filter.
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換部と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. A YC converter that calculates a second color difference signal C based on a difference between the difference between the B value and the second luminance signal Y;
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成部と、  The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. A data synthesizing unit that generates a third color difference signal C based on
前記第3の輝度信号Yを高域強調フィルタに、前記第3の色差信号Cを低域強調フィルタにかけるフィルタリング部と、を有する、ことを特徴とする半導体装置。  And a filtering unit that applies the third luminance signal Y to a high frequency enhancement filter and applies the third color difference signal C to a low frequency enhancement filter.
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間処理部と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel A color interpolation processing unit that performs color interpolation processing on the B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換部と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0). And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. A YC converter that calculates a second color difference signal C based on a difference between the difference between the B value and the second luminance signal Y;
前記第1の輝度信号Yおよび前記第2の輝度信号Yを高域強調フィルタに、前記第1の色差信号Cおよび前記第2の色差信号Cを低域強調フィルタにかけるフィルタリング部と、  A filtering unit that applies the first luminance signal Y and the second luminance signal Y to a high frequency enhancement filter, and applies the first color difference signal C and the second color difference signal C to a low frequency enhancement filter;
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成部と、を有する、ことを特徴とする半導体装置。  The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. And a data synthesizing unit that generates a third color difference signal C by synthesizing based on the semiconductor device.
前記請求項6ないし8のいずれか1項に記載の画像処理装置を備えたことを特徴とする電子機器。 An electronic apparatus comprising the image processing apparatus according to any one of claims 6 to 8 . 前記請求項9ないし11のいずれか1項に記載の半導体装置を備えたことを特徴とする電子機器。 An electronic apparatus comprising the semiconductor device according to claim 9 . 赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間手段と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Color interpolation means for performing color interpolation processing on B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から、前記R値と前記B値と前記G値のうち値が大きい色に対応する前記K1または前記K2の値が他の前記K1と前記K2の値より小さく設定されている第1の変換式を選択し、前記第1の変換式に基づき輝度信号Yを算出し、前記R値と前記輝度信号Yとの差分と前記B値と前記輝度信号Yとの差分に基づき色差信号Cを算出するYC変換手段と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × Among the plurality of conversion equations having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0), Selecting a first conversion formula in which the value of K1 or K2 corresponding to a color having a large value among the B value and the G value is set smaller than the other K1 and K2 values; YC conversion means for calculating a luminance signal Y based on a conversion equation of 1 and calculating a color difference signal C based on a difference between the R value and the luminance signal Y and a difference between the B value and the luminance signal Y;
前記輝度信号Yを高域強調フィルタに、前記色差信号Cを低域強調フィルタにかけるフィルタリング処理を施すフィルタリング手段と、を有する、ことを特徴とする画像処理プログラム。  An image processing program comprising: filtering means for performing a filtering process in which the luminance signal Y is applied to a high frequency enhancement filter and the color difference signal C is applied to a low frequency enhancement filter.
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間手段と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Color interpolation means for performing color interpolation processing on B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換手段と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. YC conversion means for calculating the second color difference signal C based on the difference between the difference between the B value and the second luminance signal Y;
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成手段と、  The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. Data combining means for generating a third color difference signal C by combining based on
前記第3の輝度信号Yを高域強調フィルタに、前記第3の色差信号Cを低域強調フィルタにかけるフィルタリング手段と、を有する、ことを特徴とする画像処理プログラム。  An image processing program comprising: filtering means for applying the third luminance signal Y to a high frequency enhancement filter and applying the third color difference signal C to a low frequency enhancement filter.
赤色に対応するR画素と青色に対応するB画素と緑色に対応するG画素とを有する単板式のカラー撮像センサから出力される、前記R画素に対応するR画素データに色補間処理を施して前記R画素に対応するR画素色データを生成し、前記G画素に対応するR画素データに色補間処理を施して前記R画素に対応するG画素色データを生成し、前記B画素に対応するB画素データに色補間処理を施して前記B画素に対応するB画素色データを生成する色補間手段と、Color interpolation processing is performed on R pixel data corresponding to the R pixel output from a single-plate color imaging sensor having an R pixel corresponding to red, a B pixel corresponding to blue, and a G pixel corresponding to green. R pixel color data corresponding to the R pixel is generated, G pixel color data corresponding to the R pixel is generated by performing color interpolation processing on the R pixel data corresponding to the G pixel, and corresponding to the B pixel Color interpolation means for performing color interpolation processing on B pixel data to generate B pixel color data corresponding to the B pixel;
前記R画素色データに含まれるR値とG値とB値のうち、前記G値に対する前記R値と前記B値との大きさに基づき閾値条件を判定し、前記閾値条件に基づき式R×K1+G×K2+B×K1(ただし、前記R値をR、前記G値をG、前記B値をBとし、K1+K2+K1=1.0とする。)を有する複数の変換式の中から第1の変換式と第2の変換式とを選択し、前記第1の変換式に基づき第1の輝度信号Yを算出し、前記R値と前記第1の輝度信号Yとの差分と前記B値と前記第1の輝度信号Yとの差分に基づき第1の色差信号Cを算出し、前記第2の変換式に基づき第2の輝度信号Yを算出し、前記R値と前記第2の輝度信号Yとの差分と前記B値と前記第2の輝度信号Yとの差分に基づき第2の色差信号Cを算出するYC変換手段と、  Among the R value, G value, and B value included in the R pixel color data, a threshold condition is determined based on the magnitude of the R value and the B value with respect to the G value, and an expression R × A first conversion formula among a plurality of conversion formulas having K1 + G × K2 + B × K1 (where R value is R, G value is G, B value is B, and K1 + K2 + K1 = 1.0) And a second conversion equation, a first luminance signal Y is calculated based on the first conversion equation, a difference between the R value and the first luminance signal Y, the B value, and the first A first color difference signal C is calculated based on a difference from the first luminance signal Y, a second luminance signal Y is calculated based on the second conversion formula, and the R value and the second luminance signal Y are calculated. YC conversion means for calculating the second color difference signal C based on the difference between the difference between the B value and the second luminance signal Y;
前記第1の輝度信号Yおよび前記第2の輝度信号Yを高域強調フィルタに、前記第1の色差信号Cおよび前記第2の色差信号Cを低域強調フィルタにかけるフィルタリング手段と、  Filtering means for applying the first luminance signal Y and the second luminance signal Y to a high frequency enhancement filter, and applying the first color difference signal C and the second color difference signal C to a low frequency enhancement filter;
前記第1の輝度信号Yと前記第2の輝度信号Yとをテーブルに基づき合成し第3の輝度信号Yを生成し、前記第1の色差信号Cと前記第2の色差信号Cとをテーブルに基づき合成し第3の色差信号Cを生成するデータ合成手段と、を有する、ことを特徴とする画像処理プログラム。  The first luminance signal Y and the second luminance signal Y are combined based on a table to generate a third luminance signal Y, and the first color difference signal C and the second color difference signal C are represented in a table. An image processing program, comprising: a data synthesizing unit that synthesizes the second color difference signal C based on the first color difference signal C.
前記請求項14〜16のいずれか1項に記載の画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体。 The computer-readable recording medium which recorded the image processing program of any one of the said Claims 14-16 .
JP2004292364A 2004-02-13 2004-10-05 Image processing method, image processing apparatus, semiconductor device, electronic device, image processing program, and computer-readable recording medium Expired - Fee Related JP4333544B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2004292364A JP4333544B2 (en) 2004-02-13 2004-10-05 Image processing method, image processing apparatus, semiconductor device, electronic device, image processing program, and computer-readable recording medium
US11/056,352 US7801355B2 (en) 2004-02-13 2005-02-11 Image processing method, image processing device, semiconductor device, electronic apparatus, image processing program, and computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004036799 2004-02-13
JP2004292364A JP4333544B2 (en) 2004-02-13 2004-10-05 Image processing method, image processing apparatus, semiconductor device, electronic device, image processing program, and computer-readable recording medium

Publications (2)

Publication Number Publication Date
JP2005260908A JP2005260908A (en) 2005-09-22
JP4333544B2 true JP4333544B2 (en) 2009-09-16

Family

ID=34889324

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004292364A Expired - Fee Related JP4333544B2 (en) 2004-02-13 2004-10-05 Image processing method, image processing apparatus, semiconductor device, electronic device, image processing program, and computer-readable recording medium

Country Status (2)

Country Link
US (1) US7801355B2 (en)
JP (1) JP4333544B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI352315B (en) * 2008-01-21 2011-11-11 Univ Nat Taiwan Method and system for image enhancement under low
JP5078147B2 (en) * 2008-03-04 2012-11-21 株式会社リコー Image processing apparatus and image pickup apparatus
US7995840B2 (en) 2008-03-28 2011-08-09 Seiko Epson Corporation Image processing apparatus, image processing method, and program for attaining image processing
JP5614550B2 (en) * 2009-08-19 2014-10-29 日本電気株式会社 Image processing method, image processing apparatus, and program
JP2015088810A (en) * 2013-10-29 2015-05-07 耕太郎 滝上 Image processing method using color difference signal
WO2017149932A1 (en) * 2016-03-03 2017-09-08 ソニー株式会社 Medical image processing device, system, method, and program
CN106791477B (en) * 2016-11-29 2019-07-19 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, imaging device and manufacturing method
CN108833118B (en) * 2018-07-25 2021-12-10 合肥学院 Safety access method and system applying rational interpolation containing parameter Thiele type
US20210304426A1 (en) * 2020-12-23 2021-09-30 Intel Corporation Writing/drawing-to-digital asset extractor

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5140413A (en) * 1986-11-14 1992-08-18 Canon Kabushiki Kaisha Image processing apparatus including processing means for moving image and performing conversion
JP2000232655A (en) 1999-02-12 2000-08-22 Fuji Photo Film Co Ltd Method and device for image processing and recording medium
JP4032579B2 (en) 1999-10-14 2008-01-16 セイコーエプソン株式会社 Single plate solid-state image sensor color interpolation method and recording medium recording single-chip solid-state image sensor color interpolation processing program
JP4006908B2 (en) 1999-11-26 2007-11-14 セイコーエプソン株式会社 Single plate solid-state image sensor color interpolation method and recording medium recording single-chip solid-state image sensor color interpolation processing program
US7330209B2 (en) * 1999-12-20 2008-02-12 Texas Instruments Incorporated Digital still camera system and complementary-color-filtered array interpolation method
JP2001231052A (en) 2000-02-17 2001-08-24 Matsushita Electric Ind Co Ltd Method for processing output signal from solid-state image pickup element and camera using it
JP2001258040A (en) 2000-03-10 2001-09-21 Seiko Epson Corp Color interpolation method for single board solid-state image pickup element, and recording medium recording color interpolation processing program for single board solid-state image pickup element
JP2002010280A (en) 2000-06-27 2002-01-11 Fujitsu Ltd Pixel interpolating method, pixel interpolating device and color imaging apparatus
JP2003244711A (en) 2002-02-15 2003-08-29 Seiko Epson Corp Color signal processing method for single board imaging apparatus, single board imaging apparatus, and color signal processing program
US7729563B2 (en) * 2002-08-28 2010-06-01 Fujifilm Corporation Method and device for video image processing, calculating the similarity between video frames, and acquiring a synthesized frame by synthesizing a plurality of contiguous sampled frames
FI115942B (en) * 2002-10-14 2005-08-15 Nokia Corp Procedure for interpolating and sharpening images

Also Published As

Publication number Publication date
JP2005260908A (en) 2005-09-22
US7801355B2 (en) 2010-09-21
US20050190200A1 (en) 2005-09-01

Similar Documents

Publication Publication Date Title
JP5677040B2 (en) Image processing apparatus and control method thereof
US7502505B2 (en) High-quality gradient-corrected linear interpolation for demosaicing of color images
JP5045421B2 (en) Imaging apparatus, color noise reduction method, and color noise reduction program
JP4861667B2 (en) Image processing apparatus and image processing method
JP5243833B2 (en) Image signal processing circuit, image display device, and image signal processing method
US20100141809A1 (en) Image processing apparatus, image pickup apparatus, storage medium for storing image processing program, and image processing method
US7801355B2 (en) Image processing method, image processing device, semiconductor device, electronic apparatus, image processing program, and computer-readable storage medium
US8625893B2 (en) Image processing device and image processing method
WO2005112470A1 (en) Image processing device and image processing program
JP2005167974A (en) Image processing method and image processor, image processing program, and semiconductor device
US7489822B2 (en) Image processing apparatus and method for detecting a direction of an edge in the vicinity of a pixel of interest and generating all color signals for each pixel by interpolation using color signals of a pixel of interest and its neighbor pixels, and a recording medium having a program recorded thereon for causing the apparatus to perform the method
TWI387352B (en) Pixel interpolation circuit, pixel interpolation method, and recording medium
JP3458080B2 (en) Color imaging device
US20080111893A1 (en) Image processing apparatus, imaging apparatus, and computer readable medium
JP2006114006A (en) Gradation conversion apparatus, program, electronic camera, and method therefor
JP4708180B2 (en) Image processing device
JP4122082B2 (en) Signal processing apparatus and processing method thereof
JP2005051393A (en) Imaging apparatus
JP4385890B2 (en) Image processing method, frequency component compensation unit, image processing apparatus including the frequency component compensation unit, and image processing program
JP4139587B2 (en) Interpolation apparatus and method for captured image in single-plate color digital camera
JP3946913B2 (en) Signal generation method and apparatus, and recording medium
JP4139672B2 (en) Interpolation apparatus and interpolation method of captured image by single-plate color digital camera
JP6857102B2 (en) Image processing equipment, image processing methods, and programs
JP4887582B2 (en) Image processing device
JP4323051B2 (en) Color imaging device and imaging apparatus using the color imaging device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060726

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080327

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080722

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080922

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081118

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090210

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090413

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: 20090602

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090615

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4333544

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130703

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees