JPH10164371A - Image data processor and image data processing method - Google Patents

Image data processor and image data processing method

Info

Publication number
JPH10164371A
JPH10164371A JP8314708A JP31470896A JPH10164371A JP H10164371 A JPH10164371 A JP H10164371A JP 8314708 A JP8314708 A JP 8314708A JP 31470896 A JP31470896 A JP 31470896A JP H10164371 A JPH10164371 A JP H10164371A
Authority
JP
Japan
Prior art keywords
image data
image
data
processing
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8314708A
Other languages
Japanese (ja)
Inventor
Noriyuki Nobuyuki
宣之 沖須
Kunimitsu Sakakibara
邦光 榊原
Shinichi Fujii
真一 藤井
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP8314708A priority Critical patent/JPH10164371A/en
Publication of JPH10164371A publication Critical patent/JPH10164371A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To shorten processing time for performing contour correction without enlarging a circuit or complicating a software by performing a color separation processing after a contour is corrected. SOLUTION: When a shutter switch 10 is turned ON, a CPU 11 controls a photographing optical system part 12, forms images on a CCD 3 and converts images inputted to the CCD 3 into electric signals. Further, the CPU 11 forms image data by A/D converting the electric signals converted in the CCD 3 and tentatively stores the image data in a primary memory 14. Further, the CPU 11 reads the image data stored in the primary memory 14 and makes the read image data be contour-corrected in the contour correction part 15 of this image data processor 20, then color-separated in the color separation part 16 of the image data processor 20, picture-element-interpolated in the picture element interpolation part 17 of the image data processor 20 further and stored in a memory card 18.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像データに対し
て画像処理を行う画像データ処理装置及びその画像デー
タ処理方法に関し、特に画像データに対して画像輪郭の
補正を行う画像データ処理装置及びその画像データ処理
方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data processing apparatus for performing image processing on image data and an image data processing method thereof, and more particularly, to an image data processing apparatus for performing image contour correction on image data and its image processing apparatus. The present invention relates to an image data processing method.

【0002】[0002]

【従来の技術】従来、画像処理の流れとして、ラインセ
ンサで撮影されたベイヤー配列の撮影データは、A/D
変換された後、色分離処理が行われ、その後画素補間処
理が行われて、最後に輪郭補正処理が行われる。そこ
で、このような画像データの処理として、図11で示す
ような画像データの処理の流れを考えた。図11におい
て、最初にステップ#100で、画素の配置がベイヤー
配列となっているCCDによって撮影された画像がベイ
ヤー配列の撮影データとなり、該撮影データをA/D変
換して画像データを形成し、ステップ#101からステ
ップ#103で、R(赤),G(緑),B(青)の各色
ごとのデータ系列に上記画像データを分離する色分離処
理が行われる。
2. Description of the Related Art Conventionally, as a flow of image processing, data of a Bayer array photographed by a line sensor is A / D
After the conversion, a color separation process is performed, then a pixel interpolation process is performed, and finally, a contour correction process is performed. Thus, as such image data processing, a flow of image data processing as shown in FIG. 11 was considered. In FIG. 11, first, in step # 100, an image captured by a CCD having a pixel arrangement of a Bayer array becomes shooting data of a Bayer array, and the shooting data is A / D converted to form image data. In steps # 101 to # 103, a color separation process for separating the image data into a data sequence for each of R (red), G (green), and B (blue) is performed.

【0003】次に、ステップ#104で、Gのデータ系
列における各画素をそれぞれ画素値で示したGデータに
対して、メディアン法又は平均法等に従って画素補間を
行い、画素補間処理が行われたGデータが形成されGデ
ータの画素補間処理が終了する。
Next, in step # 104, pixel interpolation is performed on the G data indicating each pixel in the G data series by a pixel value according to the median method or the averaging method. The G data is formed, and the pixel interpolation processing of the G data ends.

【0004】次に、ステップ#105において、上記ス
テップ#102で得られたRのデータ系列における各画
素をそれぞれ画素値で示したRデータに対して、データ
の存在するRの各画素の画素値に、上記ステップ#10
4で得られたGデータにおける該Rの各画素に対応した
画素の画素値を、それぞれ減算して各色差データCrを
算出し、ステップ#106で各色差データCrからなる
Crデータを作成する。同様に、ステップ#107にお
いて、上記ステップ#103で得られたBのデータ系列
における各画素をそれぞれ画素値で示したBデータに対
して、データの存在するBの各画素の画素値に、上記ス
テップ#104で得られたGデータにおける該Bの各画
素に対応した画素の画素値を、それぞれ減算して各色差
データCbを算出し、ステップ#108で各色差データ
CbからなるCbデータを作成する。
Next, in step # 105, the pixel value of each R pixel in which data exists is compared with the R data in which each pixel in the R data series obtained in step # 102 is represented by a pixel value. Step # 10
The color difference data Cr is calculated by subtracting the pixel value of the pixel corresponding to each of the R pixels in the G data obtained in step 4 to generate Cr data composed of the color difference data Cr in step # 106. Similarly, in step # 107, for the B data in which each pixel in the B data series obtained in step # 103 is represented by a pixel value, The pixel values of the pixels corresponding to the respective B pixels in the G data obtained in step # 104 are respectively subtracted to calculate each color difference data Cb, and in step # 108, Cb data composed of each color difference data Cb is created. I do.

【0005】次に、ステップ#109において、上記ス
テップ#106で作成したCrデータに対してディジタ
ルフィルタQを用いて単純平均処理で画素補間を行い、
画素補間されたCrデータを得る。同様に、ステップ#
110において、上記ステップ#108で作成したCb
データに対してディジタルフィルタQを用いて単純平均
処理で画素補間を行い、画素補間されたCbデータを得
る。上記ステップ#109で得られたCrデータは、ス
テップ#111において、上記ステップ#104で得ら
れたGデータが加算され、ステップ#112でRデータ
に戻されてRデータの画素補間処理が終わる。同様に、
上記ステップ#110で得られたCbデータは、ステッ
プ#113において、上記ステップ#104で得られた
Gデータが加算され、ステップ#114でBデータに戻
されてBデータの画素補間処理が終わる。
[0005] Next, in step # 109, pixel interpolation is performed on the Cr data created in step # 106 by a simple averaging process using a digital filter Q.
Pixel-interpolated Cr data is obtained. Similarly, step #
At 110, the Cb created at the above step # 108
Pixel interpolation is performed on the data by simple averaging using a digital filter Q to obtain pixel-interpolated Cb data. In step # 111, the G data obtained in step # 104 is added to the Cr data obtained in step # 109, and the data is returned to R data in step # 112, thereby completing the pixel interpolation processing of the R data. Similarly,
In step # 113, the G data obtained in step # 104 is added to the Cb data obtained in step # 110, the data is returned to B data in step # 114, and the B data pixel interpolation process is completed.

【0006】次に、ステップ#115で、画素補間を行
ったGデータの高周波成分をラプラシアンフィルタを用
いて抽出した後、ステップ#116で、高周波成分の抽
出を行ったGデータに所定のゲイン、例えば0.3を掛
ける。次に、ステップ#117において、ステップ#1
16で得られたデータを、元のデータであるステップ#
104のGデータに加算し、ステップ#118で、輪郭
補正処理が行われたGデータが形成される。このよう
に、ステップ#115からステップ#118の輪郭補正
処理を行った後、各処理が終了したGデータが出力され
る。
Next, in step # 115, high-frequency components of the G data subjected to pixel interpolation are extracted using a Laplacian filter, and in step # 116, the G data from which the high-frequency components have been extracted have a predetermined gain, For example, multiply by 0.3. Next, in Step # 117, Step # 1
The data obtained in step 16 is replaced with the original data of step #
The data is added to the G data of 104, and in step # 118, G data subjected to the contour correction processing is formed. As described above, after performing the contour correction processing from step # 115 to step # 118, the G data after each processing is output.

【0007】次に、ステップ#119において、上記ス
テップ#116で得られたRデータは、ラプラシアンフ
ィルタを用いて高周波成分が抽出された後、ステップ#
120で高周波成分の抽出を行ったRデータに所定のゲ
イン、例えば0.3を掛ける。次に、ステップ#121
において、ステップ#120で得られたデータを、元の
データであるステップ#116のRデータに加算し、ス
テップ#122で、輪郭補正処理が行われたRデータが
形成される。このように、ステップ#119からステッ
プ#122の輪郭補正処理を行った後、各処理が終了し
たRデータが出力される。
Next, in step # 119, after the high frequency component is extracted from the R data obtained in step # 116 using a Laplacian filter,
At 120, a predetermined gain, for example, 0.3 is applied to the R data from which high frequency components have been extracted. Next, step # 121
In step # 120, the data obtained in step # 120 is added to the original data, that is, the R data in step # 116, and in step # 122, R data subjected to the contour correction processing is formed. As described above, after performing the contour correction processing from step # 119 to step # 122, the R data after each processing is output.

【0008】同様に、ステップ#123において、上記
ステップ#118で得られたBデータは、ラプラシアン
フィルタを用いて高周波成分が抽出された後、ステップ
#124で高周波成分の抽出を行ったBデータに所定の
ゲイン、例えば0.3を掛ける。次に、ステップ#12
5において、ステップ#124で得られたデータを、元
のデータであるステップ#118のBデータに加算し、
ステップ#126で、輪郭補正処理が行われたBデータ
が形成される。このように、ステップ#123からステ
ップ#126の輪郭補正処理を行った後、各処理が終了
したBデータが出力される。
Similarly, in step # 123, the B data obtained in step # 118 is converted into B data from which high frequency components have been extracted using a Laplacian filter and then extracted in step # 124. Multiply by a predetermined gain, for example, 0.3. Next, step # 12
In 5, the data obtained in step # 124 is added to the original data, that is, the B data in step # 118,
In step # 126, B data subjected to the contour correction processing is formed. As described above, after performing the contour correction processing from step # 123 to step # 126, the B data after each processing is output.

【0009】[0009]

【発明が解決しようとする課題】しかし、上記のような
方法では、輪郭補正処理を色分離処理及び画素補間処理
の後に行っていることから、R、G、Bの各画像データ
系列に対してそれぞれ輪郭補正処理を行うため、該処理
を行う回路の規模が大きくなるという問題、又は輪郭補
正処理を行う処理ソフトが複雑になるという問題があ
る。更に、画素補間処理を行って画素数が増加した画像
データに対して輪郭補正処理を行うため、輪郭補正処理
にかかる時間が長くなるという問題がある。そこで、画
素補間処理を行った後、R、G、Bの各画像データを1
個のデータ系列とすることにより、その後の輪郭補正処
理を1回で済ますことができるが、この場合において
も、輪郭補正処理に時間がかかるという上記後者の問題
を解決することはできない。
However, in the above-described method, since the contour correction processing is performed after the color separation processing and the pixel interpolation processing, each of the R, G, and B image data series is processed. Since each performs the contour correction processing, there is a problem that the scale of a circuit that performs the processing increases, or a problem that processing software that performs the contour correction processing becomes complicated. Furthermore, since the contour correction processing is performed on the image data in which the number of pixels is increased by performing the pixel interpolation processing, there is a problem that the time required for the contour correction processing becomes long. Therefore, after performing the pixel interpolation process, each of the R, G, and B image data is
By using a single data series, subsequent contour correction processing can be performed only once. However, even in this case, the latter problem that the contour correction processing takes a long time cannot be solved.

【0010】本発明は、上記のような問題を解決するた
めになされたものであり、画像データの輪郭補正処理を
行う回路が大きくなることなく、又は画像データの輪郭
補正処理を行うソフトが複雑になることなく、画像デー
タの輪郭補正を行う処理時間を短縮することができる画
像データ処理装置及びその画像データ処理方法を得るこ
とを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and does not increase the size of a circuit for performing contour correction processing of image data, or complicates software for performing contour correction processing of image data. It is an object of the present invention to provide an image data processing apparatus and an image data processing method capable of shortening the processing time for performing the contour correction of the image data without any problem.

【0011】[0011]

【課題を解決するための手段】本発明は、ラインセン
サ、例えばベイヤー配列の画素配置をなすラインセンサ
で得たデータをA/D変換して得られる画像データに対
して、画像処理を行う画像データ処理装置においてなさ
れたものである。このような画像データ処理装置におい
て、上記画像データにおける画像輪郭の補正を行う輪郭
補正手段と、該輪郭補正手段で画像輪郭の補正が行われ
た画像データの色分離を行う色分離手段とを備えたこと
を特徴する画像データ処理装置を提供するものである。
更に、上記色分離手段で色分離された各色の画像データ
に対してそれぞれ画素補間を行う画素補間手段を備えて
もよい。
According to the present invention, there is provided an image processing apparatus for performing image processing on image data obtained by A / D converting data obtained by a line sensor, for example, a line sensor having a Bayer array of pixel arrangements. This is performed in the data processing device. In such an image data processing apparatus, there is provided a contour correcting means for correcting an image contour in the image data, and a color separating means for performing color separation of the image data on which the image contour has been corrected by the contour correcting means. An image data processing device is provided.
Further, the image processing apparatus may further include pixel interpolation means for performing pixel interpolation on the image data of each color separated by the color separation means.

【0012】また、本発明は、ラインセンサ、例えばベ
イヤー配列の画素配置をなすラインセンサで得たデータ
をA/D変換して得られる画像データに対して、画像処
理を行う画像データ処理装置において、上記画像データ
における画像輪郭の補正を行う輪郭補正手段と、該輪郭
補正手段で輪郭補正された画像データに対して画素補間
を行う画素補間手段とを備えたことを特徴とする画像デ
ータ処理装置を提供するものである。
The present invention also relates to an image data processing apparatus for performing image processing on image data obtained by A / D conversion of data obtained by a line sensor, for example, a line sensor having a Bayer array of pixel arrangements. An image data processing apparatus comprising: a contour correcting means for correcting an image contour in the image data; and a pixel interpolating means for performing pixel interpolation on the image data contour-corrected by the contour correcting means. Is provided.

【0013】更に、本発明は、ラインセンサ、例えばベ
イヤー配列の画素配置をなすラインセンサで得たデータ
をA/D変換して得られる画像データに対して、画像処
理を行う画像データ装置において、上記画像データにお
ける画像輪郭の補正を行う輪郭補正手段と、該輪郭補正
手段で画像輪郭の補正が行われた画像データの色分離を
行う色分離手段と、該色分離手段で色分離された各色の
画像データに対して画素補間を行う画素補間手段とを備
えたことを特徴とする画像データ処理装置を提供するも
のである。
Further, the present invention provides an image data apparatus for performing image processing on image data obtained by A / D conversion of data obtained by a line sensor, for example, a line sensor having a Bayer array of pixel arrangements. Contour correcting means for correcting an image contour in the image data, color separating means for performing color separation of the image data on which the image contour has been corrected by the contour correcting means, and each color separated by the color separating means. And a pixel interpolating means for performing pixel interpolation on the image data.

【0014】一方、本発明は、ラインセンサ、例えばベ
イヤー配列の画素配置をなすラインセンサで得たデータ
をA/D変換して得られる画像データに対して、画像処
理を行う画像データ処理装置における画像データ処理方
法においてなされたものである。すなわち、このような
画像データ処理方法において、上記画像データの色分離
を行う前に、上記画像データにおける画像輪郭の補正を
行うことを特徴とする画像データ処理方法を提供するも
のである。具体的には、上記画像データにおける画像輪
郭の補正を行い、画像輪郭の補正を行った画像データの
色分離を行い、色分離を行って形成された各色の画像デ
ータに対してそれぞれ画素補間を行う。
On the other hand, the present invention relates to an image data processing apparatus for performing image processing on image data obtained by A / D conversion of data obtained by a line sensor, for example, a line sensor having a Bayer array of pixel arrangements. This is performed in the image data processing method. That is, in such an image data processing method, an image data processing method is provided in which an image contour of the image data is corrected before color separation of the image data. More specifically, the image data in the image data is corrected, the image data in which the image data is corrected is subjected to color separation, and pixel interpolation is performed on the image data of each color formed by performing the color separation. Do.

【0015】また、本発明は、ラインセンサ、例えばベ
イヤー配列の画素配置をなすラインセンサで得たデータ
をA/D変換して得られる画像データに対して、画像処
理を行う画像データ処理装置における画像データ処理方
法において、上記画像データに対する画素補間を行う前
に、上記画像データにおける画像輪郭の補正を行うこと
を特徴とする画像データ処理方法を提供するものであ
る。具体的には、上記画像データの色分離を行い、色分
離を行って形成された各色の画像データに対してそれぞ
れ画像輪郭の補正を行い、画像輪郭の補正を行った各色
の画像データに対してそれぞれ画素補間を行う。
According to the present invention, there is provided an image data processing apparatus for performing image processing on image data obtained by A / D conversion of data obtained by a line sensor, for example, a line sensor having a Bayer array pixel arrangement. An object of the present invention is to provide an image data processing method, wherein an image contour of the image data is corrected before performing pixel interpolation on the image data. Specifically, the color separation of the image data is performed, the image data of each color formed by performing the color separation is corrected for the image outline, and the image data of the color corrected for the image outline is corrected. To perform pixel interpolation.

【0016】[0016]

【発明の実施の形態】次に、図面に示す実施の形態に基
づいて、本発明を詳細に説明する。 実施の形態1.図1は、本発明の実施の形態1における
画像データ処理装置を使用するディジタルカメラの例を
示した斜視図であり、図2は、本発明の実施の形態1に
おける画像データ処理装置を示した概略のブロック図で
ある。図1において、ディジタルカメラ1は、シャッタ
ーボタン2を押すと、内蔵された撮影用のCCD3上
に、撮影用レンズ4によって画像が結ばれ、CCD3で
光の信号が電気信号に変換される。5は、ファインダー
用の窓であり、6は、CCD3で変換された電気信号に
所定の処理を行った画像データを記憶するメモリカード
を挿入して接続するカード挿入口であり、メモリカード
は、カード取り出しボタン7を押すことによって、カー
ド挿入口6から取り出される。上記CCD3は、画素の
配置がベイヤー配列となっている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described in detail based on an embodiment shown in the drawings. Embodiment 1 FIG. FIG. 1 is a perspective view showing an example of a digital camera using the image data processing device according to the first embodiment of the present invention, and FIG. 2 is a diagram showing the image data processing device according to the first embodiment of the present invention. It is a schematic block diagram. In FIG. 1, when a shutter button 2 is pressed, an image is formed on a built-in photographing CCD 3 by a photographing lens 4 and a light signal is converted into an electric signal by the CCD 3. Reference numeral 5 denotes a window for a finder, and reference numeral 6 denotes a card insertion slot for inserting and connecting a memory card for storing image data obtained by subjecting an electric signal converted by the CCD 3 to predetermined processing. The card is removed from the card insertion slot 6 by pressing the card removal button 7. The CCD 3 has a Bayer arrangement of pixels.

【0017】図2において、ディジタルカメラ1は、上
記CCD3と、上記シャッターボタン2が押されるとオ
ンするシャッタースイッチ10と、シャッタースイッチ
10がオンになるのを検出すると、撮影動作を開始する
ように各部を制御するCPU11と、上記撮影用レンズ
4、シャッター及び絞り装置等からなる撮影光学系部1
2と、CCD3で変換された電気信号のA/D変換を行
うA/D変換部13と、該A/D変換部13でA/D変
換された画像データを一時的に記憶する一次メモリ14
と、画像データの輪郭補正を行う輪郭補正部15と、画
像データの色分離を行う色分離部16と、画像データの
画素補間を行う画素補間部17と、所定の画像処理が行
われた画像データを記憶するメモリカード18とからな
る。ここで、上記輪郭補正部15、色分離部16及び画
素補間部17が画像データ処理装置20を形成する。
In FIG. 2, the digital camera 1 starts the photographing operation when the CCD 3, the shutter switch 10 which is turned on when the shutter button 2 is pressed, and when the shutter switch 10 is detected to be turned on. A CPU 11 for controlling each unit, and a photographing optical system unit 1 including the photographing lens 4, a shutter, an aperture device, and the like.
2, an A / D converter 13 for A / D conversion of the electric signal converted by the CCD 3, and a primary memory 14 for temporarily storing the image data A / D converted by the A / D converter 13.
A contour correcting unit 15 for performing contour correction of image data, a color separating unit 16 for performing color separation of image data, a pixel interpolating unit 17 for performing pixel interpolation of image data, and an image on which predetermined image processing has been performed. And a memory card 18 for storing data. Here, the contour correction unit 15, the color separation unit 16, and the pixel interpolation unit 17 form an image data processing device 20.

【0018】上記CPU11は、上記CCD3、シャッ
タースイッチ10、撮影光学系部12、A/D変換部1
3、一次メモリ14、画像データ処理装置20の輪郭補
正部15、画像データ処理装置20の色分離部16、画
像データ処理装置20の画素補間部17、及びメモリカ
ード18にそれぞれ接続されている。更に、CCD3と
A/D変換部13、A/D変換部13と一次メモリ1
4、一次メモリ14と輪郭補正部15、輪郭補正部15
と色分離部16、色分離部16と画素補間部17、画素
補間部17とメモリカード18がそれぞれ接続される。
なお、上記輪郭補正部15が輪郭補正手段をなし、上記
色分離部16が色分離手段をなし、上記画素補間部17
が画素補間手段をなす。
The CPU 11 includes the CCD 3, the shutter switch 10, the photographing optical system 12, the A / D converter 1, and the like.
3, the primary memory 14, the contour correction unit 15 of the image data processing device 20, the color separation unit 16 of the image data processing device 20, the pixel interpolation unit 17 of the image data processing device 20, and the memory card 18. Further, the CCD 3 and the A / D converter 13, the A / D converter 13 and the primary memory 1
4. Primary memory 14, contour corrector 15, contour corrector 15
And the color separation unit 16, the color separation unit 16 and the pixel interpolation unit 17, and the pixel interpolation unit 17 and the memory card 18, respectively.
Note that the contour correction unit 15 forms a contour correction unit, the color separation unit 16 forms a color separation unit, and the pixel interpolation unit 17
Form pixel interpolation means.

【0019】上記シャッターボタン2が押され、シャッ
タースイッチ10がオンになると、CPU11は、撮影
光学系部12を制御してCCD3上に画像が結ばれるよ
うにすると共に、CCD3に対して入力された画像を電
気信号に変換させる。更に、CPU11は、CCD3で
変換された電気信号をA/D変換部13でA/D変換さ
せて画像データを形成させ、該画像データを一次メモリ
14に一時的に記憶させる。更に、CPU11は、一次
メモリ14に記憶させた画像データを読み出し、該読み
出した画像データを、画像デ−タ処理装置20の輪郭補
正部15で輪郭補正させた後、画像データ処理装置20
の色分離部16で色分離させ、更に画像データ処理装置
20の画素補間部17で画素補間させて、メモリカード
18に記憶させる。
When the shutter button 2 is depressed and the shutter switch 10 is turned on, the CPU 11 controls the photographing optical system section 12 so that an image is formed on the CCD 3 and is input to the CCD 3. The image is converted into an electric signal. Further, the CPU 11 causes the A / D converter 13 to A / D convert the electric signal converted by the CCD 3 to form image data, and temporarily stores the image data in the primary memory 14. Further, the CPU 11 reads out the image data stored in the primary memory 14, and after the read-out image data is subjected to the contour correction by the contour correcting section 15 of the image data processing device 20, the image data processing device 20.
The color separation unit 16 performs color separation, and further performs pixel interpolation in the pixel interpolation unit 17 of the image data processing device 20, and stores the result in the memory card 18.

【0020】上記一次メモリ14は、CCD3における
画像の電気信号への変換及びA/D変換部13によるA
/D変換を行う速度と、画像データ処理装置20による
画像処理及びメモリカード18への記憶を行う速度との
差を吸収するためのバッファメモリであり、画像データ
処理装置20による画像処理及びメモリカード18への
記憶を行う速度が高速であれば必要ない。
The primary memory 14 converts the image of the CCD 3 into an electric signal and stores the A / D
A buffer memory for absorbing the difference between the speed at which the / D conversion is performed and the speed at which the image data is processed by the image data processing device 20 and the speed at which the data is stored in the memory card 18. This is not necessary if the speed of storing data in the memory 18 is high.

【0021】上記のような構成において、上記輪郭補正
部15、色分離部16及び画素補間部17における画像
データの処理について、もう少し詳細に説明する。図3
は、図2で示した画像データ処理装置20の輪郭補正部
15、色分離部16及び画素補間部17における画像デ
ータの処理の流れ例を示した図である。
In the above configuration, the processing of the image data in the contour correction section 15, the color separation section 16 and the pixel interpolation section 17 will be described in more detail. FIG.
3 is a diagram showing an example of a flow of processing of image data in the contour correction unit 15, the color separation unit 16, and the pixel interpolation unit 17 of the image data processing device 20 shown in FIG.

【0022】図3において、最初にステップ#1で、画
素の配置がベイヤー配列となっているCCD3によって
撮影された画像がベイヤー配列の撮影データとなり、上
記A/D変換部13は、該撮影データをA/D変換して
ベイヤー配列の画像データを形成し、該画像データは、
一次メモリ14に記憶され再び一次メモリ14から読み
出される。次に、輪郭補正部15は、ステップ#2にお
いて、上記ステップ#1で読み出された画像データの高
周波成分をラプラシアンフィルタを用いて抽出した後、
ステップ#3で、高周波成分の抽出を行った画像データ
に所定のゲイン、例えば0.3を掛ける。次に、輪郭補
正部15は、ステップ#4において、ステップ#3で得
られたデータを、元のデータであるステップ#1の画像
データに加算して高周波成分を強調する。このように、
輪郭補正部15は、ステップ#2からステップ#4の輪
郭補正処理を行う。
In FIG. 3, first, in step # 1, an image photographed by the CCD 3 in which the arrangement of pixels is in the Bayer array becomes photographing data in the Bayer array. Is subjected to A / D conversion to form Bayer array image data.
It is stored in the primary memory 14 and read out from the primary memory 14 again. Next, in step # 2, the contour correction unit 15 extracts a high-frequency component of the image data read in step # 1 using a Laplacian filter.
In step # 3, a predetermined gain, for example, 0.3 is applied to the image data from which the high frequency components have been extracted. Next, in step # 4, the contour correction unit 15 adds the data obtained in step # 3 to the original image data of step # 1 to emphasize high frequency components. in this way,
The contour correction unit 15 performs the contour correction processing from step # 2 to step # 4.

【0023】ここで、図4は、6×6のベイヤー配列の
画像データ例を示した図であり、図5は、上記輪郭補正
処理に使用されたラプラシアンフィルタの例を示した図
である。図4及び図5を用いて、上記輪郭補正部15に
よるラプラシアンフィルタを用いた輪郭補正処理例につ
いて説明する。図4において、G1〜G18はG(緑)の
各画素を、R1〜R9はR(赤)の各画素を、B1〜B9は
B(青)の各画素を示している。
Here, FIG. 4 is a diagram showing an example of image data of a 6 × 6 Bayer array, and FIG. 5 is a diagram showing an example of a Laplacian filter used in the above-described contour correction processing. An example of an outline correction process using a Laplacian filter by the outline correction unit 15 will be described with reference to FIGS. In FIG. 4, G1 to G18 represent G (green) pixels, R1 to R9 represent R (red) pixels, and B1 to B9 represent B (blue) pixels.

【0024】例えば、図5のラプラシアンフィルタによ
って図4の画素G8で抽出されるエッジ量EG8は、 EG8=G8×4−G2−G7−G9−G14 …………………(1) となる。なお、上記(1)式におけるG2,G7〜G9,
G14は、それぞれ各画素G2,G7〜G9,G14における
画素値を示している。
For example, the edge amount EG8 extracted at the pixel G8 of FIG. 4 by the Laplacian filter of FIG. 5 is as follows: EG8 = G8 × 4-G2-G7-G9-G14 (1) . Note that G2, G7 to G9,
G14 indicates the pixel value of each pixel G2, G7 to G9, G14.

【0025】同様に画素R5で抽出されるエッジ量ER
5、及び画素B5で抽出されるエッジ量EB5はそれぞ
れ、 ER5=R5×4−R2−R4−R6−R8 ……………………(2) EB5=B5×4−B2−B4−B6−B8 ……………………(3) となる。なお、上記(2)式におけるR2,R4〜R6,
R8は、それぞれ各画素R2,R4〜R6,R8における画
素値を示しており、上記(3)式におけるB2,B4〜B
6,B8は、それぞれ各画素B2,B4〜B6,B8における
画素値を示している。このように、輪郭補正部15によ
る輪郭補正処理がR、G、Bの各色別に行われる。
Similarly, the edge amount ER extracted at the pixel R5
5, and the edge amount EB5 extracted by the pixel B5 is ER5 = R5 × 4-R2-R4-R6-R8 (2) EB5 = B5 × 4-B2-B4-B6 −B8 ……………… (3) Note that R2, R4 to R6,
R8 indicates the pixel value of each pixel R2, R4 to R6, R8, and B2, B4 to B in the above equation (3).
Reference numerals 6 and B8 indicate pixel values of the pixels B2 and B4 to B6 and B8, respectively. As described above, the contour correction processing by the contour correction unit 15 is performed for each of the R, G, and B colors.

【0026】次に、図3に戻り、上記輪郭補正部15に
よる輪郭補正処理が行われた後、ステップ#5からステ
ップ#7で、色分離部16は、上記画像データをR
(赤),G(緑),B(青)の各色ごとのデータ系列に
分離する色分離処理を行う。上記色分離部16による色
分離処理が行われた後、画素補間部17は、ステップ#
8において、上記ステップ#5で色分離されて形成され
たGのデータ系列における各画素をそれぞれ画素値で示
したGデータに対して、メディアン法に従って画素補間
を行い、画素補間処理が行われたGデータが形成され
る。このように、画素補間処理が行われた後、各処理が
終了したGデータが出力される。
Next, returning to FIG. 3, after the contour correcting process is performed by the contour correcting unit 15, in steps # 5 to # 7, the color separating unit 16 converts the image data into R data.
A color separation process is performed to separate data sequences for each of the colors (red), G (green), and B (blue). After the color separation process is performed by the color separation unit 16, the pixel interpolation unit 17 proceeds to step #.
In step 8, pixel interpolation is performed on the G data indicating each pixel in the G data series formed by color separation in step # 5 by pixel values according to the median method, and pixel interpolation processing is performed. G data is formed. As described above, after the pixel interpolation processing is performed, the G data in which each processing is completed is output.

【0027】ここで、図6は、ステップ#5で色分離処
理が行われたGデータにおける一部の画素を示した図で
ある。図6を用いて、ステップ#5のGデータにおける
画素補間方法について、メディアン法を例にして説明す
る。
FIG. 6 is a diagram showing some pixels in the G data subjected to the color separation processing in step # 5. The pixel interpolation method for the G data in step # 5 will be described using the median method as an example with reference to FIG.

【0028】図6において、G1,G2,G3,G4は、も
ともと存在する画素を示しており、該各画素G1〜G4の
間の画素GXを補間する場合、該画素GXを、画素G1〜
G4のうちの中央2値の画素値の平均をとった値にす
る。すなわち、下記(4)式のようになる。 GX={G1+G2+G3+G4−MAX(G1,G2,G3,G4)−MIN(G1, G2,G3,G4)}/2 ……………………(4) だだし、上記(4)式において、G1〜G4及びGXは、
各画素G1〜G4及びGXにおける画素値を示し、MAX
(G1,G2,G3,G4)は、画素G1〜G4における各画
素値の中の最大値を示し、MIN(G1,G2,G3,G
4)は、画素G1〜G4における各画素値の中の最小値を
示している。なお、画素補間演算は、上記メディアン法
に限るものではなく、平均法等でもよい。
In FIG. 6, G1, G2, G3, and G4 indicate pixels that originally exist. When the pixel GX between the pixels G1 to G4 is interpolated, the pixel GX is replaced with the pixels G1 to G4.
A value obtained by averaging the pixel values of the central two values of G4 is used. That is, the following equation (4) is obtained. GX = {G1 + G2 + G3 + G4-MAX (G1, G2, G3, G4) -MIN (G1, G2, G3, G4)} / 2 (4) In the above equation (4), G1 to G4 and GX are
A pixel value at each of the pixels G1 to G4 and GX is indicated by MAX.
(G1, G2, G3, G4) indicates the maximum value among the pixel values in the pixels G1 to G4, and MIN (G1, G2, G3, G)
4) indicates the minimum value among the pixel values of the pixels G1 to G4. The pixel interpolation operation is not limited to the median method, but may be an average method or the like.

【0029】次に、図3に戻り、画素補間部17は、ス
テップ#9において、上記ステップ#6で得られたRの
データ系列における各画素をそれぞれ画素値で示したR
データに対して、データの存在するRの各画素の画素値
に、上記ステップ#8で得られたGデータにおける該R
の各画素に対応した画素の画素値を、それぞれ減算して
各色差データCrを算出し、ステップ#10で各色差デ
ータCrからなるCrデータを作成する。同様に、画素補
間部17は、ステップ#11において、上記ステップ#
7で得られたBのデータ系列における各画素をそれぞれ
画素値で示したBデータに対して、データの存在するB
の各画素の画素値に、上記ステップ#8で得られたGデ
ータにおける該Bの各画素に対応した画素の画素値を、
それぞれ減算して各色差データCbを算出し、ステップ
#12で、各色差データCbからなるCbデータを作成す
る。
Next, returning to FIG. 3, in step # 9, the pixel interpolating unit 17 sets each pixel in the R data series obtained in step # 6 above to R
With respect to the data, the pixel value of each pixel of R in which the data exists is replaced with the R value in the G data obtained in step # 8.
The respective pixel values of the pixels corresponding to the respective pixels are subtracted to calculate the respective color difference data Cr, and in step # 10, the Cr data including the respective color difference data Cr is created. Similarly, the pixel interpolating unit 17 determines in step # 11 that the above-mentioned step #
7, each pixel in the B data series obtained in step 7 is represented by a pixel value.
The pixel value of the pixel corresponding to each pixel of B in the G data obtained in step # 8 above is
Each color difference data Cb is calculated by subtraction, and in step # 12, Cb data composed of each color difference data Cb is created.

【0030】次に、画素補間部17は、ステップ#13
において、上記ステップ#10で作成したCrデータに
対して、ディジタルフィルタKを用いて単純平均処理で
画素補間を行い、画素補間されたCrデータを得る。同
様に、画素補間部17は、ステップ#14において、上
記ステップ#12で作成したCbデータに対して、ディ
ジタルフィルタKを用いて単純平均処理で画素補間を行
い、画素補間されたCbデータを得る。画素補間部17
は、ステップ#15において、上記ステップ#13で得
られたCrデータに、上記ステップ#8で得られたGデ
ータを加算し、ステップ#16で、CrデータをRデー
タに戻してRデータの画素補間処理が終わる。このよう
に、画素補間処理を行った後、各処理が終了したRデー
タが出力される。
Next, the pixel interpolating unit 17 determines in step # 13
In the above, pixel interpolation is performed on the Cr data created in step # 10 by a simple averaging process using a digital filter K to obtain pixel-interpolated Cr data. Similarly, in step # 14, the pixel interpolation unit 17 performs pixel interpolation on the Cb data created in step # 12 by a simple averaging process using the digital filter K to obtain pixel-interpolated Cb data. . Pixel interpolation unit 17
In step # 15, the G data obtained in step # 8 is added to the Cr data obtained in step # 13, and in step # 16, the Cr data is converted back to R data, and the pixel of the R data The interpolation process ends. As described above, after performing the pixel interpolation processing, the R data in which each processing is completed is output.

【0031】同様に、画素補間部17は、ステップ#1
7において、上記ステップ#14で得られたCbデータ
に、上記ステップ#8で得られたGデータを加算し、ス
テップ#18で、CbデータをBデータに戻してBデー
タの画素補間処理が終わる。このように、画素補間処理
を行った後、各処理が終了したBデータが出力される。
Similarly, the pixel interpolating unit 17 determines in step # 1
In step 7, the G data obtained in step # 8 is added to the Cb data obtained in step # 14, and in step # 18, the Cb data is returned to B data, and the pixel interpolation process of B data is completed. . As described above, after performing the pixel interpolation processing, the B data in which each processing is completed is output.

【0032】このように、本実施の形態1における画像
データ処理装置は、輪郭補正処理を色分離処理及び画素
補間処理の前に実行することから、輪郭補正処理を1回
で済ませることができるため、輪郭補正処理を行う回路
の規模を小さくすることができ、輪郭補正処理を行う処
理ソフトを簡略化することができる。更に、画素補間処
理を行う前の画像データに対して輪郭補正処理を行うた
め、輪郭補正を行う画素数が少なく、輪郭補正処理の処
理時間を短縮させることができる。
As described above, since the image data processing apparatus according to the first embodiment executes the outline correction processing before the color separation processing and the pixel interpolation processing, the outline correction processing can be performed only once. In addition, the scale of the circuit for performing the contour correction processing can be reduced, and the processing software for performing the contour correction processing can be simplified. Furthermore, since the contour correction processing is performed on the image data before the pixel interpolation processing is performed, the number of pixels for which the contour correction is performed is small, and the processing time of the contour correction processing can be reduced.

【0033】実施の形態2.上記実施の形態1において
は、輪郭補正処理を行った後、色分離処理を行って画素
補間処理を行うようにしたが、色分離処理を行った後、
輪郭補正処理を行って画素補間処理を行うようにしても
よく、このようにしたものを本発明の実施の形態2とす
る。
Embodiment 2 FIG. In the first embodiment, after performing the contour correction processing, the color separation processing is performed to perform the pixel interpolation processing. However, after performing the color separation processing,
A pixel interpolation process may be performed by performing a contour correction process, and such a process is referred to as a second embodiment of the present invention.

【0034】図7は、本発明の実施の形態2における画
像データ処理装置の例を示した概略のブロック図であ
る。なお図7において、上記図2と同じものは同じ符号
で示しており、ここではその説明を省略すると共に、図
2との相違点のみ説明する。図7における図2との相違
点は、一次メモリ14と色分離部16を、色分離部16
と輪郭補正部15を、更に輪郭補正部15と画素補間部
17をそれぞれ接続したことにあり、このことから、図
2の画像データ処理装置20を画像データ処理装置30
としたことにある。
FIG. 7 is a schematic block diagram showing an example of an image data processing device according to the second embodiment of the present invention. 7, the same components as those in FIG. 2 are denoted by the same reference numerals, and the description thereof will not be repeated here, and only the differences from FIG. 2 will be described. The difference between FIG. 7 and FIG. 2 is that the primary memory 14 and the color separation unit 16 are
2 is connected to the image data processing device 20 in FIG. 2 and the image data processing device 30 in FIG.
And that

【0035】図8は、図7で示した画像データ処理装置
30の輪郭補正部15、色分離部16及び画素補間部1
7における画像データの処理の流れ例を示した図であ
る。図8において、最初にステップ#30で、画素の配
置がベイヤー配列となっているCCD3によって撮影さ
れた画像がベイヤー配列の撮影データとなり、上記A/
D変換部13は、該撮影データをA/D変換してベイヤ
ー配列の画像データを形成し、該画像データは、一次メ
モリ14に記憶され再び一次メモリ14から読み出され
る。次に、色分離部16は、上記ステップ#30で読み
出された画像データを、ステップ#31からステップ#
33で、R,G,Bの各色ごとのデータ系列に上記画像
データを分離する。
FIG. 8 shows the outline correction unit 15, the color separation unit 16 and the pixel interpolation unit 1 of the image data processing device 30 shown in FIG.
7 is a diagram illustrating an example of a flow of processing of image data in FIG. In FIG. 8, first, in step # 30, an image photographed by the CCD 3 in which the arrangement of pixels is in the Bayer arrangement becomes photographing data in the Bayer arrangement.
The D conversion unit 13 performs A / D conversion of the photographing data to form Bayer array image data, and the image data is stored in the primary memory 14 and read out from the primary memory 14 again. Next, the color separation unit 16 converts the image data read in step # 30 into steps # 31 to #
At 33, the image data is separated into a data series for each of R, G, and B colors.

【0036】次に、輪郭補正部15は、ステップ#34
において、上記ステップ#31で得られたGデータの高
周波成分をラプラシアンフィルタを用いて抽出した後、
ステップ#35で、高周波成分の抽出を行ったGデータ
に所定のゲイン、例えば0.3を掛ける。次に、ステッ
プ#36において、ステップ#35で得られたデータ
を、元のデータであるステップ#31のGデータに加算
し、ステップ#37で、輪郭補正処理が終了したGデー
タを得る。
Next, the contour correcting section 15 executes step # 34.
In, after extracting the high frequency component of the G data obtained in step # 31 using a Laplacian filter,
In step # 35, a predetermined gain, for example, 0.3 is applied to the G data from which the high frequency component has been extracted. Next, in step # 36, the data obtained in step # 35 is added to the original data, that is, the G data in step # 31, and in step # 37, G data for which contour correction processing has been completed is obtained.

【0037】同様にして、輪郭補正部15は、ステップ
#38において、上記ステップ#32で得られたRデー
タの高周波成分をラプラシアンフィルタを用いて抽出し
た後、ステップ#39で、高周波成分の抽出を行ったR
データに所定のゲイン、例えば0.3を掛ける。次に、
ステップ#40において、ステップ#39で得られたデ
ータを、元のデータであるステップ#32のRデータに
加算し、ステップ#41で、輪郭補正処理が終了したR
データを得る。更に、ステップ#42において、上記ス
テップ#33で得られたBデータの高周波成分をラプラ
シアンフィルタを用いて抽出した後、ステップ#43
で、高周波成分の抽出を行ったBデータに所定のゲイ
ン、例えば0.3を掛ける。次に、ステップ#44にお
いて、ステップ#43で得られたデータを、元のデータ
であるステップ#33のBデータに加算し、ステップ#
45で、輪郭補正処理が終了したBデータを得る。
Similarly, in step # 38, the contour corrector 15 extracts the high frequency component of the R data obtained in step # 32 using a Laplacian filter, and then in step # 39, extracts the high frequency component. R that performed
The data is multiplied by a predetermined gain, for example, 0.3. next,
In step # 40, the data obtained in step # 39 is added to the original data, ie, the R data in step # 32, and in step # 41, the R data for which the contour correction processing has been completed.
Get the data. Further, in step # 42, after extracting the high frequency component of the B data obtained in step # 33 using a Laplacian filter, the process proceeds to step # 43.
Then, a predetermined gain, for example, 0.3 is applied to the B data from which the high-frequency component has been extracted. Next, in step # 44, the data obtained in step # 43 is added to the original data, that is, the B data in step # 33,
At 45, B data for which the contour correction processing has been completed is obtained.

【0038】次に、画素補間部17は、ステップ#46
において、上記ステップ#37で得られたGデータを上
記メディアン法に従って画素補間を行い、画素補間処理
が行われたGデータが形成される。なお、画素補間処理
は、上記メディアン法に限るものではなく、平均法等で
もよい。このように、画素補間処理が行われた後、各処
理が終了したGデータが出力される。
Next, the pixel interpolating unit 17 executes step # 46.
In the above, the G data obtained in step # 37 is subjected to pixel interpolation according to the median method, and G data subjected to pixel interpolation processing is formed. The pixel interpolation process is not limited to the median method, but may be an averaging method or the like. As described above, after the pixel interpolation processing is performed, the G data in which each processing is completed is output.

【0039】更に、画素補間部17は、ステップ#47
において、上記ステップ#41で得られたRデータに対
して、データの存在するRの各画素の画素値に、上記ス
テップ#46で得られたGデータにおける該Rの各画素
に対応した画素の画素値を、それぞれ減算して各色差デ
ータCrを算出し、ステップ#48で各色差データCrか
らなるCrデータを作成する。同様に、画素補間部17
は、ステップ#49において、上記ステップ#45で得
られたBデータに対して、データの存在するBの各画素
の画素値に、上記ステップ#46で得られたGデータに
おける該Bの各画素に対応した画素の画素値を、それぞ
れ減算して各色差データCbを算出し、ステップ#50
で、各色差データCbからなるCbデータを作成する。
Further, the pixel interpolating unit 17 determines in step # 47
In the R data obtained in step # 41, the pixel value of each pixel of R in which data exists is replaced by the pixel value of the pixel corresponding to each pixel of R in the G data obtained in step # 46. The pixel values are respectively subtracted to calculate each color difference data Cr, and in step # 48, Cr data composed of each color difference data Cr is created. Similarly, the pixel interpolation unit 17
In step # 49, the B data obtained in step # 45 is replaced by the pixel value of each B pixel in which the data exists, and the pixel value of each B pixel in the G data obtained in step # 46. Are subtracted from each other to calculate the respective color difference data Cb.
Then, Cb data composed of each color difference data Cb is created.

【0040】次に、画素補間部17は、ステップ#51
において、上記ステップ#48で作成したCrデータに
対してディジタルフィルタKを用いて単純平均処理で画
素補間を行い、画素補間されたCrデータを得る。同様
に、画素補間部17は、ステップ#52において、上記
ステップ#50で作成したCbデータに対してディジタ
ルフィルタKを用いて単純平均処理で画素補間を行い、
画素補間されたCbデータを得る。上記画素補間部17
は、ステップ#53において、上記ステップ#51で得
られたCrデータに、上記ステップ#46で得られたG
データを加算し、ステップ#54で、CrデータをRデ
ータに戻してRデータの画素補間処理が終わる。このよ
うに、画素補間処理を行った後、各処理が終了したRデ
ータが出力される。
Next, the pixel interpolating unit 17 executes step # 51.
, Pixel interpolation is performed on the Cr data created in step # 48 by a simple averaging process using a digital filter K to obtain pixel-interpolated Cr data. Similarly, in step # 52, the pixel interpolation unit 17 performs pixel interpolation on the Cb data created in step # 50 by a simple averaging process using the digital filter K.
Obtain pixel-interpolated Cb data. The pixel interpolator 17
In step # 53, the Gr data obtained in step # 46 is added to the Cr data obtained in step # 51.
The data is added, and in step # 54, the Cr data is returned to the R data, and the pixel interpolation processing of the R data is completed. As described above, after performing the pixel interpolation processing, the R data in which each processing is completed is output.

【0041】同様に、画素補間部17は、ステップ#5
5において、上記ステップ#52で得られたCbデータ
に、上記ステップ#46で得られたGデータを加算し、
ステップ#56で、CbデータをBデータに戻してBデ
ータの画素補間処理が終わる。このように、画素補間処
理を行った後、各処理が終了したBデータが出力され
る。
Similarly, the pixel interpolating unit 17 determines in step # 5
In 5, the G data obtained in step # 46 is added to the Cb data obtained in step # 52,
In step # 56, the Cb data is returned to the B data, and the pixel interpolation processing of the B data is completed. As described above, after performing the pixel interpolation processing, the B data in which each processing is completed is output.

【0042】このように、本実施の形態2における画像
データ処理装置は、色分離処理を行った後、輪郭補正処
理を行って画素補間処理を行うようにしたことから、画
素補間処理を行う前の画像データに対して輪郭補正処理
を行うため、輪郭補正を行う画素数が少なく、輪郭補正
処理の処理時間を短縮させることができる。
As described above, the image data processing apparatus according to the second embodiment performs the color separation processing, performs the contour correction processing, and performs the pixel interpolation processing. Since the outline correction processing is performed on the image data of the above, the number of pixels for which the outline correction is performed is small, and the processing time of the outline correction processing can be reduced.

【0043】なお、上記実施の形態1及び実施の形態2
においては、輪郭補正処理を画素補間処理を行う前に実
行するものであり、従来のように輪郭補正処理を画素補
間処理を行った後に実行する場合と比較して、メディア
ン法による画素補間処理では、原理的には全く同等の画
像は得られないが、その差は小さいので問題はない。ま
た、上記メディアン法の代わりに、単純平均による画素
補間処理を行うことによって、従来と全く同等の画像を
得ることができる。
It should be noted that the first and second embodiments are described above.
In the method, the contour correction process is performed before the pixel interpolation process is performed.In comparison with the conventional case where the contour correction process is performed after the pixel interpolation process is performed, the pixel interpolation process by the median method is performed. Although, in principle, an identical image cannot be obtained, there is no problem because the difference is small. Further, by performing pixel interpolation processing by simple averaging instead of the above-mentioned median method, it is possible to obtain an image completely equivalent to the conventional one.

【0044】更に、上記実施の形態1及び実施の形態2
においては、輪郭補正処理を行う際に、ラプラシアンフ
ィルタを用いて、輪郭強調処理を行ったが、本発明はこ
れに限定するものではなく、例えば図9で示すようなデ
ィジタルフィルタを使用した平均化処理でもよく、ディ
ジタルフィルタのサイズも、5×5のものに限定するも
のではなく、図10で示すような9×9のものでもよ
い。このように、ベイヤー配列の画像に対して、色別に
処理が行われるようにすればよい。
Further, the first and second embodiments are described.
In the above, the contour enhancement processing was performed using a Laplacian filter when performing the contour correction processing. However, the present invention is not limited to this. For example, averaging using a digital filter as shown in FIG. Processing may be performed, and the size of the digital filter is not limited to 5 × 5, but may be 9 × 9 as shown in FIG. In this manner, the processing may be performed on the Bayer array image for each color.

【0045】[0045]

【発明の効果】上記の説明から明らかなように、本発明
の画像データ処理装置によれば、ラインセンサ、例えば
ベイヤー配列の画素配置をなすラインセンサで得たデー
タをA/D変換して得られる画像データに対して、画像
輪郭の補正を行う輪郭補正手段と、該輪郭補正手段で画
像輪郭の補正が行われた画像データの色分離を行う色分
離手段とを備え、具体的には、更に、色分離手段で色分
離された各色の画像データに対してそれぞれ画素補間を
行う画素補間手段を備えてもよい。このことから、従来
とほぼ同等の画像を得ることができると共に、輪郭補正
処理を1回で済ませることができるため、輪郭補正処理
を行う回路の規模を小さくすることができ、輪郭補正処
理を行う処理ソフトを簡略化することができる。更に、
画素補間処理を行う前の画像データに対して輪郭補正処
理を行うため、輪郭補正を行う画素数が少なく、輪郭補
正処理の処理時間を短縮させることができる。
As is apparent from the above description, according to the image data processing apparatus of the present invention, data obtained by a line sensor, for example, a line sensor having a Bayer array of pixel arrangement, is obtained by A / D conversion. For the image data to be provided, there is provided a contour correcting means for correcting the image contour, and a color separating means for performing color separation of the image data on which the image contour has been corrected by the contour correcting means. Further, the image processing apparatus may further include a pixel interpolation unit that performs pixel interpolation on the image data of each color separated by the color separation unit. From this, it is possible to obtain an image almost equivalent to the conventional one and to perform the contour correction processing only once, so that the scale of the circuit for performing the contour correction processing can be reduced, and the contour correction processing is performed. Processing software can be simplified. Furthermore,
Since the outline correction processing is performed on the image data before the pixel interpolation processing is performed, the number of pixels for performing the outline correction is small, and the processing time of the outline correction processing can be reduced.

【0046】また、本発明の画像データ処理装置によれ
ば、ラインセンサ、例えばベイヤー配列の画素配置をな
すラインセンサで得たデータをA/D変換して得られる
画像データに対して、画像輪郭の補正を行う輪郭補正手
段と、該輪郭補正手段で画像輪郭の補正が行われた画像
データに対して画素補間を行う画素補間手段とを備え
た。また、ベイヤー配列の画素配置をなすラインセンサ
で得たデータをA/D変換して得られた画像データに対
して画像輪郭の補正を行う輪郭補正手段と、該輪郭補正
手段で画像輪郭の補正が行われた画像データの色分離を
行う色分離手段と、該色分離手段で色分離された各色の
画像データに対してそれぞれ画素補間を行う画素補間手
段を備えるようにしてもよい。このことから、従来とほ
ぼ同等の画像を得ることができると共に、画素補間処理
を行う前の画像データに対して輪郭補正処理を行うた
め、輪郭補正を行う画素数が少なく、輪郭補正処理の処
理時間を短縮させることができる。
According to the image data processing apparatus of the present invention, image data obtained by A / D conversion of data obtained by a line sensor, for example, a line sensor having a Bayer array of pixel arrangements, is subjected to image contour processing. And pixel interpolating means for performing pixel interpolation on the image data on which the image contour has been corrected by the contour correcting means. A contour correcting means for correcting an image contour of image data obtained by A / D conversion of data obtained by a line sensor having a Bayer array pixel arrangement; and correcting the image contour by the contour correcting means. May be provided with color separation means for performing color separation of the image data on which the color separation has been performed, and pixel interpolation means for respectively performing pixel interpolation on the image data of each color separated by the color separation means. From this, it is possible to obtain an image almost equivalent to the conventional one, and to perform the contour correction processing on the image data before performing the pixel interpolation processing, so that the number of pixels for which the contour correction is performed is small, and the processing of the contour correction processing is performed. Time can be shortened.

【0047】一方、本発明の画像データ処理方法によれ
ば、ラインセンサ、例えばベイヤー配列の画素配置をな
すラインセンサで得たデータをA/D変換して得られる
画像データに対して、色分離を行う前に、画像輪郭の補
正を行うようにし、具体的には、上記画像データにおけ
る画像輪郭の補正を行い、画像輪郭の補正を行った画像
データの色分離を行い、色分離を行って形成された各色
の画像データに対してそれぞれ画素補間を行う。このこ
とから、従来とほぼ同等の画像を得ることができると共
に、輪郭補正処理を1回で済ませることができるため、
輪郭補正処理を行う回路の規模を小さくすることがで
き、輪郭補正処理を行う処理ソフトを簡略化することが
できる。更に、画素補間処理を行う前の画像データに対
して輪郭補正処理を行うため、輪郭補正を行う画素数が
少なく、輪郭補正処理の処理時間を短縮させることがで
きる。
On the other hand, according to the image data processing method of the present invention, color separation is performed on image data obtained by A / D conversion of data obtained by a line sensor, for example, a line sensor having a Bayer array pixel arrangement. Before performing the above, the image outline is corrected, and more specifically, the image outline is corrected in the image data, the color separation of the image data on which the image outline is corrected is performed, and the color separation is performed. Pixel interpolation is performed on the formed image data of each color. From this, it is possible to obtain an image almost equivalent to the conventional one and to perform the outline correction processing only once,
The scale of the circuit for performing the contour correction processing can be reduced, and the processing software for performing the contour correction processing can be simplified. Furthermore, since the contour correction processing is performed on the image data before the pixel interpolation processing is performed, the number of pixels for which the contour correction is performed is small, and the processing time of the contour correction processing can be reduced.

【0048】また、本発明の画像データ処理方法によれ
ば、ラインセンサ、例えばベイヤー配列の画素配置をな
すラインセンサで得たデータをA/D変換して得られる
画像データに対して、画素補間を行う前に、上記画像デ
ータにおける画像輪郭の補正を行うようにし、具体的に
は、上記画像データの色分離を行い、色分離を行って形
成された各色の画像データに対してそれぞれ画像輪郭の
補正を行い、画像輪郭の補正を行った各色の画像データ
に対してそれぞれ画素補間を行う。このことから、従来
とほぼ同等の画像を得ることができると共に、画素補間
処理を行う前の画像データに対して輪郭補正処理を行う
ため、輪郭補正を行う画素数が少なく、輪郭補正処理の
処理時間を短縮させることができる。
According to the image data processing method of the present invention, pixel interpolation is performed on image data obtained by A / D conversion of data obtained by a line sensor, for example, a line sensor having a Bayer array pixel arrangement. Before performing the above, the image contour of the image data is corrected. Specifically, the image data is subjected to color separation, and the image data of each color formed by performing the color separation are respectively subjected to image contour correction. , And pixel interpolation is performed on the image data of each color for which the image contour has been corrected. From this, it is possible to obtain an image almost equivalent to the conventional one, and to perform the contour correction processing on the image data before performing the pixel interpolation processing, so that the number of pixels for which the contour correction is performed is small, and the processing of the contour correction processing is performed. Time can be shortened.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の実施の形態1における画像データ処
理装置を使用するディジタルカメラの例を示した斜視図
である。
FIG. 1 is a perspective view showing an example of a digital camera using an image data processing device according to Embodiment 1 of the present invention.

【図2】 本発明の実施の形態1における画像データ処
理装置を示した概略のブロック図である。
FIG. 2 is a schematic block diagram illustrating an image data processing device according to the first embodiment of the present invention.

【図3】 図2で示した画像データ処理装置20におけ
る画像データの処理の流れ例を示した図である。
FIG. 3 is a diagram showing an example of a flow of processing of image data in the image data processing device 20 shown in FIG. 2;

【図4】 6×6のベイヤー配列の画像データ例を示し
た図である。
FIG. 4 is a diagram showing an example of image data of a 6 × 6 Bayer array.

【図5】 ラプラシアンフィルタの例を示した図であ
る。
FIG. 5 is a diagram illustrating an example of a Laplacian filter.

【図6】 Gデータにおける一部の画素を示した図であ
る。
FIG. 6 is a diagram showing some pixels in G data.

【図7】 本発明の実施の形態2における画像データ処
理装置を示した概略のブロック図である。
FIG. 7 is a schematic block diagram illustrating an image data processing device according to a second embodiment of the present invention.

【図8】 図7で示した画像データ処理装置30におけ
る画像データの処理の流れ例を示した図である。
8 is a diagram showing an example of a flow of processing of image data in the image data processing device 30 shown in FIG.

【図9】 ディジタルフィルタの例を示した図である。FIG. 9 is a diagram illustrating an example of a digital filter.

【図10】 ディジタルフィルタの他の例を示した図で
ある。
FIG. 10 is a diagram showing another example of the digital filter.

【図11】 従来の処理方法に基づいて考えた画像デー
タの処理の流れを示した図である。
FIG. 11 is a diagram showing a flow of processing of image data considered based on a conventional processing method.

【符号の説明】[Explanation of symbols]

1 ディジタルカメラ 2 シャッターボタン 3 CCD 4 撮影用レンズ 10 シャッタースイッチ 11 CPU 12 撮影光学系部 13 A/D変換部 15 輪郭補正部 16 色分離部 17 画素補間部 18 メモリカード 20,30 画像データ処理装置 Reference Signs List 1 digital camera 2 shutter button 3 CCD 4 shooting lens 10 shutter switch 11 CPU 12 shooting optical system unit 13 A / D conversion unit 15 contour correction unit 16 color separation unit 17 pixel interpolation unit 18 memory card 20, 30 image data processing device

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI H04N 9/64 H04N 1/40 D 9/68 103 1/46 Z ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 6 Identification symbol FI H04N 9/64 H04N 1/40 D 9/68 103 1/46 Z

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 ラインセンサで得たデータをA/D変換
して得られる画像データに対して、画像処理を行う画像
データ処理装置において、 上記画像データにおける画像輪郭の補正を行う輪郭補正
手段と、 該輪郭補正手段で画像輪郭の補正が行われた画像データ
の色分離を行う色分離手段とを備えたことを特徴とする
画像データ処理装置。
1. An image data processing apparatus for performing image processing on image data obtained by A / D conversion of data obtained by a line sensor, comprising: an outline correction means for correcting an image outline of the image data. An image data processing apparatus comprising: a color separation unit configured to perform color separation of image data whose image outline has been corrected by the outline correction unit.
【請求項2】 請求項1に記載の画像データ処理装置に
して、更に、上記色分離手段で色分離された各色の画像
データに対してそれぞれ画素補間を行う画素補間手段を
備えたことを特徴とする画像データ処理装置。
2. The image data processing apparatus according to claim 1, further comprising a pixel interpolation unit for performing pixel interpolation on the image data of each color separated by the color separation unit. Image data processing apparatus.
【請求項3】 ラインセンサで得たデータをA/D変換
して得られる画像データに対して、画像処理を行う画像
データ処理装置において、 上記画像データにおける画像輪郭の補正を行う輪郭補正
手段と、 該輪郭補正手段で輪郭補正された画像データに対して画
素補間を行う画素補間手段とを備えたことを特徴とする
画像データ処理装置。
3. An image data processing device for performing image processing on image data obtained by A / D conversion of data obtained by a line sensor, comprising: an outline correction means for correcting an image outline in the image data. An image data processing apparatus comprising: a pixel interpolation unit that performs pixel interpolation on the image data whose outline has been corrected by the outline correction unit.
【請求項4】 ラインセンサで得たデータをA/D変換
して得られる画像データに対して、画像処理を行う画像
データ処理装置において、 上記画像データにおける画像輪郭の補正を行う輪郭補正
手段と、 該輪郭補正手段で画像輪郭の補正が行われた画像データ
の色分離を行う色分離手段と、 該色分離手段で色分離された各色の画像データに対して
それぞれ画素補間を行う画素補間手段とを備えたことを
特徴とする画像データ処理装置。
4. An image data processing device for performing image processing on image data obtained by A / D conversion of data obtained by a line sensor, comprising: an outline correction means for correcting an image outline in the image data. A color separating unit for performing color separation of image data whose image contour has been corrected by the contour correcting unit; and a pixel interpolating unit for performing pixel interpolation on image data of each color separated by the color separating unit. An image data processing device comprising:
【請求項5】 請求項1から請求項4のいずれかに記載
の画像データ処理装置にして、上記ラインセンサは、ベ
イヤー配列の画素配置をなすことを特徴とする画像デー
タ処理装置。
5. The image data processing apparatus according to claim 1, wherein said line sensor has a Bayer arrangement of pixels.
【請求項6】 ラインセンサで得たデータをA/D変換
して得られる画像データに対して、画像処理を行う画像
データ処理装置における画像データ処理方法において、 上記画像データの色分離を行う前に、上記画像データに
おける画像輪郭の補正を行うことを特徴とする画像デー
タ処理方法。
6. An image data processing method in an image data processing apparatus for performing image processing on image data obtained by A / D conversion of data obtained by a line sensor, wherein the color separation of the image data is performed. And correcting an image contour in the image data.
【請求項7】 請求項6に記載の画像データ処理方法に
して、 上記画像データにおける画像輪郭の補正を行い、 画像輪郭の補正を行った画像データの色分離を行い、 色分離を行って形成された各色の画像データに対してそ
れぞれ画素補間を行うことを特徴とする画像データ処理
方法。
7. The image data processing method according to claim 6, wherein the image data in the image data is corrected, the color data of the corrected image data is separated, and the color data is formed. An image data processing method, wherein pixel interpolation is performed for each of the image data of the respective colors.
【請求項8】 ラインセンサで得たデータをA/D変換
して得られる画像データに対して、画像処理を行う画像
データ処理装置における画像データ処理方法において、 上記画像データに対する画素補間を行う前に、上記画像
データにおける画像輪郭の補正を行うことを特徴とする
画像データ処理方法。
8. An image data processing method in an image data processing device for performing image processing on image data obtained by A / D conversion of data obtained by a line sensor, the method comprising: performing pixel interpolation on the image data; And correcting an image contour in the image data.
【請求項9】 請求項8に記載の画像データ処理方法に
して、 上記画像データの色分離を行い、 色分離を行って形成された各色の画像データに対してそ
れぞれ画像輪郭の補正を行い、 画像輪郭の補正を行った各色の画像データに対してそれ
ぞれ画素補間を行うことを特徴とする画像データ処理方
法。
9. The image data processing method according to claim 8, wherein the image data is color-separated, and the image data of each color formed by performing the color separation is corrected for an image outline. An image data processing method, wherein pixel interpolation is performed on image data of each color whose image contour has been corrected.
【請求項10】 請求項6から請求項9のいずれかに記
載の画像データ処理方法にして、上記ラインセンサは、
ベイヤー配列の画素配置をなすことを特徴とする画像デ
ータ処理方法。
10. The image data processing method according to claim 6, wherein the line sensor comprises:
An image data processing method, wherein pixels are arranged in a Bayer array.
JP8314708A 1996-11-26 1996-11-26 Image data processor and image data processing method Pending JPH10164371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8314708A JPH10164371A (en) 1996-11-26 1996-11-26 Image data processor and image data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8314708A JPH10164371A (en) 1996-11-26 1996-11-26 Image data processor and image data processing method

Publications (1)

Publication Number Publication Date
JPH10164371A true JPH10164371A (en) 1998-06-19

Family

ID=18056608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8314708A Pending JPH10164371A (en) 1996-11-26 1996-11-26 Image data processor and image data processing method

Country Status (1)

Country Link
JP (1) JPH10164371A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6958772B1 (en) 1999-01-20 2005-10-25 Canon Kabushiki Kaisha Image sensing apparatus and image processing method therefor
JP2006262167A (en) * 2005-03-17 2006-09-28 Uniden Corp Pixel interpolation method
US7116819B2 (en) 2000-08-25 2006-10-03 Sharp Kabushiki Kaisha Image processing apparatus
JP2009303139A (en) * 2008-06-17 2009-12-24 Toshiba Corp Solid-state imaging apparatus
JP2012044617A (en) * 2010-08-23 2012-03-01 Toshiba Corp Image processing device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6958772B1 (en) 1999-01-20 2005-10-25 Canon Kabushiki Kaisha Image sensing apparatus and image processing method therefor
US7542076B2 (en) 1999-01-20 2009-06-02 Canon Kabushiki Kaisha Image sensing apparatus having a color interpolation unit and image processing method therefor
US7929026B2 (en) 1999-01-20 2011-04-19 Canon Kabushiki Kaisha Image sensing apparatus and image processing method thereof using color conversion and pseudo color removing
US7116819B2 (en) 2000-08-25 2006-10-03 Sharp Kabushiki Kaisha Image processing apparatus
JP2006262167A (en) * 2005-03-17 2006-09-28 Uniden Corp Pixel interpolation method
JP4580791B2 (en) * 2005-03-17 2010-11-17 ユニデン株式会社 Pixel interpolation method
JP2009303139A (en) * 2008-06-17 2009-12-24 Toshiba Corp Solid-state imaging apparatus
JP2012044617A (en) * 2010-08-23 2012-03-01 Toshiba Corp Image processing device
CN102377911A (en) * 2010-08-23 2012-03-14 株式会社东芝 Image processing apparatus, image processing method, and camera module
US8559747B2 (en) 2010-08-23 2013-10-15 Kabushiki Kaisha Toshiba Image processing apparatus, image processing method, and camera module
CN102377911B (en) * 2010-08-23 2014-09-03 株式会社东芝 Image processing apparatus, image processing method, and camera module
TWI456974B (en) * 2010-08-23 2014-10-11 Toshiba Kk Image processing apparatus, image processing method, and camera module

Similar Documents

Publication Publication Date Title
US7253836B1 (en) Digital camera, storage medium for image signal processing, carrier wave and electronic camera
JP3503372B2 (en) Pixel interpolation device and pixel interpolation method
US8804010B2 (en) Image processing apparatus, imaging apparatus, image processing method and storage medium storing image processing program
US8223226B2 (en) Image processing apparatus and storage medium storing image processing program
JP2000236473A (en) Image processing circuit for image input device
WO2007058126A1 (en) Image processing system and image processing program
US20070253732A1 (en) Imaging Device Having Function for Correcting Image Shake of Acquired Image
WO2007043325A1 (en) Image processing system and image processing program
WO2008150017A1 (en) Signal processing method and signal processing device
JP2002216136A (en) Distance calculating method and imaging system
KR101003605B1 (en) Pixel interpolation circuit, pixel interpolation method, and recording medium
US8009935B2 (en) Pixel interpolation circuit, pixel interpolation method, and recording medium
JPH10164371A (en) Image data processor and image data processing method
JP2007129524A (en) Image processor, image processing method, and program thereof
JP2000217123A (en) Image pickup device and image processing method for image pickup device
JP3951993B2 (en) IMAGING DEVICE AND COLOR DATA MEASURING METHOD USED FOR THIS IMAGING DEVICE
JPH07123421A (en) Image pickup device
JP2002209228A (en) Image processing unit
JPH05276386A (en) Contour emphasizing circuit
JP2002247410A (en) Image processing unit, image processing method and recording medium
JP2004247872A (en) Digital imaging apparatus
JP4449692B2 (en) Electronic camera
JP2000253411A (en) Image pickup device and method for processing image for the image pickup device
JP3791044B2 (en) Video signal processing circuit and video camera having the same
JP3846305B2 (en) Imaging apparatus and method, recording medium, and program