JP2014072846A - Image composition device and image composition method - Google Patents

Image composition device and image composition method Download PDF

Info

Publication number
JP2014072846A
JP2014072846A JP2012219562A JP2012219562A JP2014072846A JP 2014072846 A JP2014072846 A JP 2014072846A JP 2012219562 A JP2012219562 A JP 2012219562A JP 2012219562 A JP2012219562 A JP 2012219562A JP 2014072846 A JP2014072846 A JP 2014072846A
Authority
JP
Japan
Prior art keywords
pixel
image
target pixel
unit
value
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.)
Granted
Application number
JP2012219562A
Other languages
Japanese (ja)
Other versions
JP6048046B2 (en
Inventor
Yuji Watarai
祐司 渡会
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.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor 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 Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2012219562A priority Critical patent/JP6048046B2/en
Publication of JP2014072846A publication Critical patent/JP2014072846A/en
Application granted granted Critical
Publication of JP6048046B2 publication Critical patent/JP6048046B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storing Facsimile Image Data (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image composition device and an image composition method capable of suppressing an access frequency to a memory in which image data in image composition is stored.SOLUTION: An image processor 12a executes processing for compositing first and second Bayer signals of a Bayer format by an image composition part 22. A conversion processing part 71 executes processing for converting a pixel value of a second target pixel on the basis of the pixel value of peripheral pixels to be the same as a color corresponding to a first target pixel among peripheral pixels of the second target pixel in the case where colors corresponding to each of the first and second target pixels to be an object of composition processing of the first and second Bayer signals are different.

Description

本願に開示の技術は、画像入力装置にて入力される画像データに他の画像データを合成する画像合成装置及び画像合成方法に関するものである。   The technology disclosed in the present application relates to an image composition device and an image composition method for combining other image data with image data input by an image input device.

従来、デジタルカメラ等の撮像装置は、CCD(Charge Coupled Devices)イメージセンサなどの撮像素子によって取得した画像データ(動画を含む)を複数の処理部にて処理しメモリに格納する。撮像装置は、各処理部にて画像データを適宜処理する際に処理した画像データをメモリに一時的に格納する。   2. Description of the Related Art Conventionally, an imaging apparatus such as a digital camera processes image data (including moving images) acquired by an imaging element such as a CCD (Charge Coupled Device) image sensor by a plurality of processing units and stores the processed data in a memory. The imaging apparatus temporarily stores in the memory the image data processed when each processing unit appropriately processes the image data.

近年、このような撮像装置では、高画素化やフレームレートの向上等にともなってメモリのアクセス頻度が高くなり、メモリアクセスにおける帯域幅や消費電力が増加することからアクセス頻度が抑えられる構成が望まれている。   In recent years, such an imaging apparatus is expected to have a configuration in which the access frequency is suppressed because the memory access frequency increases as the number of pixels increases and the frame rate increases, and the bandwidth and power consumption in memory access increase. It is rare.

一方で、撮像装置は、例えば画像データを表示部に表示させる際にメニュー表示や各種の設定情報等の他の画像を重畳して表示させるオンスクリーンディスプレイ(OSD)と呼ばれる機能を有するものがある。また、このような画像の合成技術では、撮影画像に対してリアルタイムにコンピュータグラフィックス(CG)画像等の画像データを重畳して表示する拡張現実(AR:Augmented Reality)と呼ばれる技術が注目されている。   On the other hand, some imaging devices have a function called an on-screen display (OSD) that superimposes and displays other images such as menu display and various setting information when displaying image data on a display unit, for example. . In addition, in such an image synthesis technique, a technique called augmented reality (AR) that superimposes and displays image data such as a computer graphics (CG) image in real time on a captured image has attracted attention. Yes.

例えば、撮像装置として、撮像素子により取得したベイヤ形式の画像データ(以下、「ベイヤ信号」という)を、YCbCr形式の画像データ(以下、「YCbCr信号」という)に変換し、変換後のYCbCr信号に他の画像を合成するものがある(例えば、特許文献1など)。   For example, as an imaging device, Bayer-format image data (hereinafter referred to as “Bayer signal”) acquired by the imaging device is converted into YCbCr-format image data (hereinafter referred to as “YCbCr signal”), and the converted YCbCr signal Some of them synthesize other images (for example, Patent Document 1).

特開2009−100029号公報JP 2009-100029 A

上記したような画像合成の機能を有する撮像装置では、例えばベイヤ信号を他のデータ形式の画像データ(例えば、YCbCr信号)に変換する前処理としてベイヤ信号に対してデモザイキング処理(画素補間処理)を施す。このデモザイキング処理では、ベイヤ形式の1画素(例えばR(赤)画素)に対して他の2画素(G(緑)及びB(青)画素)の画素値を補間する処理が実行される。この結果、補間処理後の画像データは、1画素あたりのデータ量が増加する。従って、補間処理した画像データを用いた画像合成ではメモリのアクセス頻度が増加する。   In the imaging apparatus having the above-described image composition function, for example, demosaicing processing (pixel interpolation processing) is performed on the Bayer signal as preprocessing for converting the Bayer signal into image data of another data format (for example, YCbCr signal). Apply. In this demosaicing process, a process of interpolating the pixel values of the other two pixels (G (green) and B (blue) pixels) with respect to one Bayer-type pixel (for example, R (red) pixel) is executed. As a result, the amount of data per pixel increases in the image data after interpolation processing. Accordingly, the memory access frequency increases in the image composition using the interpolated image data.

本願に開示される技術は、上記の課題に鑑み提案されたものであって、画像合成における画像データが記憶されたメモリに対するアクセス頻度を抑えることが可能な画像合成装置及び画像合成方法を提供することを目的とする。   The technology disclosed in the present application has been proposed in view of the above problems, and provides an image composition device and an image composition method capable of suppressing the access frequency to a memory in which image data is stored in image composition. For the purpose.

本願に開示される技術に係る画像合成装置は、画像入力装置から入力される第1画像信号と、メモリに格納される第2画像信号とを合成する画素位置の情報を含む合成位置情報を指示する制御部と、前記合成位置情報に基づいて、前記第1画像信号の第1注目画素と前記第2画像信号の第2注目画素との間で、前記第1注目画素に対応する色と、前記第2画像信号の第2注目画素に対応する色とが異なる場合に、前記第2注目画素の周辺画素のうち前記第1注目画素に対応する色と同色となる前記周辺画素の画素値に基づいて前記第2注目画素の画素値を設定する変換処理部と、前記合成位置情報に基づいて、前記第1注目画素の画素値に前記変換処理部により設定された前記第2注目画素の画素値を合成し第3画像信号を生成する画像合成部と、を備える。   An image composition device according to a technique disclosed in the present application indicates composition position information including information on a pixel position for combining a first image signal input from an image input device and a second image signal stored in a memory. And a color corresponding to the first pixel of interest between the first pixel of interest of the first image signal and the second pixel of interest of the second image signal based on the combined position information, When the color corresponding to the second target pixel of the second image signal is different, the pixel value of the peripheral pixel having the same color as the color corresponding to the first target pixel among the peripheral pixels of the second target pixel is set. A conversion processing unit that sets a pixel value of the second target pixel based on the pixel value, and a pixel of the second target pixel that is set by the conversion processing unit to the pixel value of the first target pixel based on the combined position information Image composition to synthesize values and generate third image signal And, equipped with a.

また、本願に開示される技術に係る画像合成方法は、画像入力装置から入力される第1画像信号と、メモリに格納される第2画像信号とを合成する画素位置の情報を含む合成位置情報を指示し、前記合成位置情報に基づいて、前記第1画像信号の第1注目画素に合成すべき前記第2画像信号の第2注目画素に対して、前記第1注目画素に対応する色と、前記第2注目画素に対応する色とが異なる場合に、前記第2注目画素の周辺画素のうち前記第1注目画素に対応する色と同色となる前記周辺画素の画素値に基づいて前記第2注目画素の画素値を設定し、前記合成位置情報に基づいて、前記第1画像信号の第1注目画素に前記設定された第2注目画素を合成して第3画像信号を生成する。   In addition, the image composition method according to the technique disclosed in the present application includes composite position information including information on a pixel position for combining the first image signal input from the image input device and the second image signal stored in the memory. And a color corresponding to the first target pixel with respect to the second target pixel of the second image signal to be combined with the first target pixel of the first image signal based on the combination position information. , When the color corresponding to the second target pixel is different, the second pixel of interest based on the pixel value of the peripheral pixel having the same color as the color corresponding to the first target pixel among the peripheral pixels of the second target pixel. A pixel value of two target pixels is set, and based on the combination position information, the set second target pixel is combined with the first target pixel of the first image signal to generate a third image signal.

本願に開示される技術に係る画像合成装置及び画像合成方法によれば、画像合成における画像データが記憶されたメモリに対するアクセス頻度を抑えることができる。   According to the image synthesizing apparatus and the image synthesizing method according to the technique disclosed in the present application, it is possible to suppress the access frequency to the memory in which the image data in the image synthesis is stored.

第1実施形態の撮像装置を示すブロック図。1 is a block diagram illustrating an imaging apparatus according to a first embodiment. 第1実施形態の画像合成処理における画像データの状態を示すブロック図。The block diagram which shows the state of the image data in the image composition process of 1st Embodiment. 第1実施形態の第1及び第2ベイヤ信号を説明するための図。The figure for demonstrating the 1st and 2nd Bayer signal of 1st Embodiment. 第1実施形態の画像合成処理のフローチャート。The flowchart of the image composition process of 1st Embodiment. 第2実施形態の画像合成処理における画像データの状態を示すブロック図。The block diagram which shows the state of the image data in the image composition process of 2nd Embodiment. 第2実施形態の変換処理部のブロック図。The block diagram of the conversion process part of 2nd Embodiment. 第2実施形態の第1及び第2ベイヤ信号を説明するための図。The figure for demonstrating the 1st and 2nd Bayer signal of 2nd Embodiment. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第2注目画素の画素値の算出について説明するための図。The figure for demonstrating calculation of the pixel value of a 2nd attention pixel. 第3実施形態の画像合成処理における画像データの状態を示すブロック図。The block diagram which shows the state of the image data in the image composition process of 3rd Embodiment.

(第1実施形態)
図1を参照し、第1実施形態の撮像装置10の構成について説明する。
図1に示す撮像装置10は、例えばデジタルカメラであり、撮像部11、画像処理装置12、メモリ13、外部記憶媒体15、表示部16を有している。
(First embodiment)
With reference to FIG. 1, the structure of the imaging device 10 of 1st Embodiment is demonstrated.
An imaging device 10 illustrated in FIG. 1 is a digital camera, for example, and includes an imaging unit 11, an image processing device 12, a memory 13, an external storage medium 15, and a display unit 16.

撮像部11は、撮像素子11a及びA/D変換回路11bを有している。撮像素子11aは、例えばCCDイメージセンサであり、色フィルタ成分{赤(R)、緑(G)、青(B)}がベイヤ配列されたカラーフィルタを介して入射光を受光する。撮像素子11aは、カラーフィルタを介して受光した入射光を撮像信号に変換してA/D変換回路11bに出力する。A/D変換回路11bは、撮像素子11aから入力されるRGB形式の撮像信号を画像データ(ベイヤ信号)に変換して画像処理装置12に出力する。ベイヤ信号における各画素値のビット幅は、例えば12ビットである。   The imaging unit 11 includes an imaging element 11a and an A / D conversion circuit 11b. The image sensor 11a is, for example, a CCD image sensor, and receives incident light through a color filter in which color filter components {red (R), green (G), and blue (B)} are arranged in a Bayer array. The image sensor 11a converts incident light received through the color filter into an image signal and outputs the image signal to the A / D conversion circuit 11b. The A / D conversion circuit 11b converts an RGB format imaging signal input from the imaging element 11a into image data (Bayer signal) and outputs the image data to the image processing device 12. The bit width of each pixel value in the Bayer signal is 12 bits, for example.

画像処理装置12は、撮像部11から入力されるベイヤ信号に対して画像処理やデータ形式の変換処理を施す。画像処理装置12は、各処理の所定段階で画像データ(ベイヤ信号等)をメモリ13に一時的に格納する。従って、メモリ13は作業メモリとして機能する。メモリ13は、例えばSDRAM(Synchronous Dynamic Random Access Memory)である。   The image processing device 12 performs image processing and data format conversion processing on the Bayer signal input from the imaging unit 11. The image processing device 12 temporarily stores image data (Bayer signal or the like) in the memory 13 at a predetermined stage of each process. Therefore, the memory 13 functions as a working memory. The memory 13 is, for example, an SDRAM (Synchronous Dynamic Random Access Memory).

また、画像処理装置12は、メモリ13に格納した画像処理後の画像データを外部記憶媒体15に格納したり、表示部16に出力したりする。外部記憶媒体15は、例えばSDメモリカード(登録商標)である。表示部16は、例えば液晶ディスプレイ(LCD)である。   Further, the image processing apparatus 12 stores the image data after image processing stored in the memory 13 in the external storage medium 15 or outputs it to the display unit 16. The external storage medium 15 is an SD memory card (registered trademark), for example. The display unit 16 is, for example, a liquid crystal display (LCD).

次に、画像処理装置12の内部構成について説明する。
画像処理装置12は、プリプロセス処理部21、画像合成部22、画像処理部23、コーデック処理部24、中央処理装置(CPU)26、調停回路27、記憶媒体用インターフェース回路28、表示用インターフェース回路29を有し、これら各回路が共有バス31によって互いに接続されている。この共有バス31は、アドレスバス、コントロールバス及びデータバスを有している。
Next, the internal configuration of the image processing apparatus 12 will be described.
The image processing apparatus 12 includes a preprocess processing unit 21, an image composition unit 22, an image processing unit 23, a codec processing unit 24, a central processing unit (CPU) 26, an arbitration circuit 27, a storage medium interface circuit 28, and a display interface circuit. 29, and these circuits are connected to each other by a shared bus 31. The shared bus 31 has an address bus, a control bus, and a data bus.

プリプロセス処理部21は、撮像部11から入力される1フレームのベイヤ信号に対し、例えばホワイトバランス調整、ゲイン調整、欠陥信号の補正等の前処理を施す。プリプロセス処理部21は、処理後のベイヤ信号(以下、「第1ベイヤ信号」という)をメモリ13の所定の領域に格納する。   The preprocess processing unit 21 performs preprocessing such as white balance adjustment, gain adjustment, defect signal correction, and the like on one frame of the Bayer signal input from the imaging unit 11. The preprocess processing unit 21 stores the processed Bayer signal (hereinafter referred to as “first Bayer signal”) in a predetermined area of the memory 13.

画像合成部22は、メモリ13からプリプロセス処理部21により前処理された1フレームの第1ベイヤ信号を読み出し、第1ベイヤ信号に対して他のベイヤ信号(メニュー表示用の文字データやCG画像等)を重畳する処理を施す。本実施形態の撮像装置10は、撮像部11からプリプロセス処理部21を介して入力される第1ベイヤ信号に合成する画像データ(以下、「第2ベイヤ信号」という)がベイヤ形式でメモリ13に格納されている。第2ベイヤ信号は、例えば不揮発性の記憶媒体(例えばROM)に格納され(メニュー表示用の文字データなど)、外部記憶媒体15に格納されあるいはCPU26により演算され(CG画像など)、所定の処理段階でCPU26によりメモリ13に読み出される。画像合成部22は、合成したベイヤ信号(以下、「第3ベイヤ信号」という)をメモリ13に格納する。   The image synthesizing unit 22 reads the first Bayer signal of one frame preprocessed by the preprocess processing unit 21 from the memory 13 and outputs another Bayer signal (character data for menu display or CG image to the first Bayer signal). Etc.) is superimposed. In the imaging apparatus 10 of the present embodiment, image data to be combined with a first Bayer signal input from the imaging unit 11 via the preprocess processing unit 21 (hereinafter referred to as “second Bayer signal”) is stored in a memory 13 in a Bayer format. Stored in The second Bayer signal is stored in, for example, a non-volatile storage medium (for example, ROM) (character data for menu display, etc.), stored in the external storage medium 15 or calculated by the CPU 26 (CG image, etc.), and a predetermined process. In step, the data is read out to the memory 13 by the CPU 26. The image composition unit 22 stores the synthesized Bayer signal (hereinafter referred to as “third Bayer signal”) in the memory 13.

画像処理部23は、メモリ13から画像合成部22により合成処理された1フレームの第3ベイヤ信号を読み出し、第3ベイヤ信号にデモザイキング処理等を施し、YCbCr信号に変換する処理を実行する。画像処理部23は、変換後のYCbCr信号をメモリ13に格納する。   The image processing unit 23 reads out one frame of the third Bayer signal synthesized by the image synthesizing unit 22 from the memory 13, performs a demosaicing process or the like on the third Bayer signal, and executes a process of converting the signal into a YCbCr signal. The image processing unit 23 stores the converted YCbCr signal in the memory 13.

コーデック処理部24は、メモリ13から画像処理部23により変換されたYCbCr信号を読み出し、そのYCbCr信号を所定の方式(ここでは、JPEG方式)により符号化し、符号化後の画像データをメモリ13に格納する。   The codec processing unit 24 reads the YCbCr signal converted by the image processing unit 23 from the memory 13, encodes the YCbCr signal by a predetermined method (here, JPEG method), and stores the encoded image data in the memory 13. Store.

CPU26は、各回路の動作を統括制御する制御装置であり、各画像データの解析、解析結果に基づく必要な情報の各回路への設定及びデータの書き込み/読み出し制御等を実行する。また、CPU26は、画像合成部22に対し第1ベイヤ信号のどの部分に第2ベイヤ信号を合成するかを示すデータ(以下、「合成位置情報」という)CIを画像合成部22に対して出力する。画像合成部22は、合成位置情報CIに基づいて、第1及び第2ベイヤ信号の合成処理を実行する。   The CPU 26 is a control device that performs overall control of the operation of each circuit, and executes analysis of each image data, setting of necessary information based on the analysis result to each circuit, data writing / reading control, and the like. Further, the CPU 26 outputs data (hereinafter referred to as “compositing position information”) CI indicating to which part of the first Bayer signal the second Bayer signal is to be synthesized to the image synthesizing unit 22. To do. The image synthesis unit 22 performs a synthesis process of the first and second Bayer signals based on the synthesis position information CI.

各処理部(画像合成部22を含む)は、メモリ13にデータを書き込む又は読み出すために共有バス31の使用権を要求するための信号を調停回路27に出力する。調停回路27は、要求信号に応じて各処理部に対して調停回路27の使用権を設定する。   Each processing unit (including the image synthesis unit 22) outputs a signal for requesting the right to use the shared bus 31 to the arbitration circuit 27 in order to write or read data in the memory 13. The arbitration circuit 27 sets the right to use the arbitration circuit 27 for each processing unit in response to the request signal.

記憶媒体用インターフェース回路28は、外部記憶媒体15に対するデータ入出力を実行する。CPU26は、コーデック処理部24により変換されたJPEG方式の画像データをメモリ13から読み出し、記憶媒体用インターフェース回路28を介して外部記憶媒体15に格納する。表示用インターフェース回路29は、メモリ13から転送される画像データを、表示部16が対応し得る形式のデータに変換して該表示部16に出力する。   The storage medium interface circuit 28 executes data input / output with respect to the external storage medium 15. The CPU 26 reads out the JPEG image data converted by the codec processing unit 24 from the memory 13 and stores it in the external storage medium 15 via the storage medium interface circuit 28. The display interface circuit 29 converts the image data transferred from the memory 13 into data in a format that can be supported by the display unit 16 and outputs the data to the display unit 16.

次に、図2を用いて画像処理部23の構成について説明する。
図2に示すように、画像処理部23は、補間処理部41、ガンマ変換部42、輪郭強調部43、フォーマット変換部44を有する。
Next, the configuration of the image processing unit 23 will be described with reference to FIG.
As illustrated in FIG. 2, the image processing unit 23 includes an interpolation processing unit 41, a gamma conversion unit 42, an outline enhancement unit 43, and a format conversion unit 44.

補間処理部41は、画像合成部22により合成処理された第3ベイヤ信号に対しデモザイキング処理(画素補間処理)を施す。デモザイキング処理では、例えば、第3ベイヤ信号の各画素に対して周辺の他の色の画素(R画素であればG、B画素)の画素値を補間した画像データ(以下、「RGB信号」という)を生成する。なお、このRGB信号は、例えば1画素あたりのデータ幅が12ビットのベイヤ信号を補間処理すると、1画素あたりのデータ幅が36ビットとなる、即ち処理前の第3ベイヤ信号のデータ量に比べてデータ量が3倍となる。   The interpolation processing unit 41 performs demosaicing processing (pixel interpolation processing) on the third Bayer signal combined by the image combining unit 22. In the demosaicing process, for example, image data (hereinafter, “RGB signal”) obtained by interpolating pixel values of other peripheral pixels (G and B pixels in the case of R pixels) for each pixel of the third Bayer signal. Generated). The RGB signal has a data width of 36 bits per pixel when, for example, a Bayer signal having a data width of 12 bits per pixel is interpolated, that is, compared to the data amount of the third Bayer signal before processing. The data amount is tripled.

ガンマ変換部42は、表示部16等のデバイス特性(ガンマ特性)に合わせるための処理、所謂ガンマ補正を行う。輪郭強調部43は、画像全体の鮮明感を向上させるために空間フィルタを用いて輪郭(エッジ)強調やノイズ除去等の処理を行う。フォーマット変換部44は、RGB信号をYCbCr信号に変換する処理を実行する。   The gamma conversion unit 42 performs a process for matching device characteristics (gamma characteristics) of the display unit 16 or the like, that is, so-called gamma correction. The contour emphasizing unit 43 performs processing such as contour (edge) enhancement and noise removal using a spatial filter in order to improve the clearness of the entire image. The format conversion unit 44 executes processing for converting RGB signals into YCbCr signals.

次に、画像データの合成について図3を用いて説明する。
例えば、図3に示す第1ベイヤ信号51に第2ベイヤ信号52を合成する処理について説明する。説明の便宜上、第1ベイヤ信号51を、1フレームに縦12、横12の格子状の画素が配置された画像データを想定する。また、第2ベイヤ信号52を、縦6、横6の格子状の画素が配置された画像データ(例えばCG画像)を想定する。
Next, composition of image data will be described with reference to FIG.
For example, a process for combining the second Bayer signal 52 with the first Bayer signal 51 shown in FIG. 3 will be described. For convenience of explanation, it is assumed that the first Bayer signal 51 is image data in which 12 vertical and 12 horizontal pixels are arranged in one frame. Further, the second Bayer signal 52 is assumed to be image data (for example, CG image) in which 6 pixels in the vertical direction and 6 pixels in the horizontal direction are arranged.

なお、第1及び第2ベイヤ信号51,52の各画素に示す文字は、各画素に対応するカラーフィルタの色フィルタ成分{赤(R)、緑(G)、青(B)}を示す。また、第2ベイヤ信号52のハッチングで示される部分は有色である画素を示す。また、第2ベイヤ信号52のハッチングがない部分は無色(透明)である画素、即ち第1ベイヤ信号51に重畳した場合に第1ベイヤ信号51の画素値が合成した値となる画素を示している。   Note that the characters shown in each pixel of the first and second Bayer signals 51 and 52 indicate the color filter components {red (R), green (G), blue (B)} of the color filter corresponding to each pixel. A portion indicated by hatching in the second Bayer signal 52 indicates a colored pixel. In addition, the hatched portion of the second Bayer signal 52 indicates a pixel that is colorless (transparent), that is, a pixel in which the pixel value of the first Bayer signal 51 is a combined value when superimposed on the first Bayer signal 51. Yes.

画像合成部22は、第1ベイヤ信号51の各画素について順に合成処理を実行する。例えば、画像合成部22は、第1ベイヤ信号51の処理対象の画素(以下、「第1注目画素」という)62を、1ライン目の画素位置(1,1)から画素位置(1,2)の順に1画素ずつ(図3において右方向に)移動させながら合成する処理を実行する。また、画像合成部22は、同様の処理を1ラインから12ラインの順に各ラインで実行する。この際に、画像合成部22は、第1注目画素62の画素位置が合成する位置になると、第2ベイヤ信号52の処理対象の画素(第2注目画素)63の画素位置を同様に移動させながら第1及び第2注目画素62,63を合成する処理を実行する。   The image composition unit 22 sequentially performs composition processing on each pixel of the first Bayer signal 51. For example, the image composition unit 22 moves a pixel 62 (hereinafter referred to as “first target pixel”) 62 to be processed by the first Bayer signal 51 from the pixel position (1, 1) on the first line to the pixel position (1, 2). ) Is performed while moving one pixel at a time (in the right direction in FIG. 3) in order. In addition, the image composition unit 22 performs the same processing on each line in the order of 1 line to 12 lines. At this time, the image composition unit 22 similarly moves the pixel position of the processing target pixel (second attention pixel) 63 of the second Bayer signal 52 when the pixel position of the first attention pixel 62 becomes the position to be synthesized. The process of combining the first and second target pixels 62 and 63 is executed.

まず、図3に示す矢印61aの場合について説明する。矢印61aに示す場合では、第1注目画素62が画素位置(1,3)のR画素の場合に、第2注目画素63が画素位置(1,1)のR画素となる場合を示す。この場合の合成処理について図4に従って説明する。CPU26(図2参照)は、合成位置情報CIを画像合成部22に出力する(図4のステップ101)。この合成位置情報CIは、合成する画素の位置や合成される画像データの大きさ等の情報を含む。例えばCPU26は、合成が開始される位置(この場合、第1ベイヤ信号51の画素位置(1,3))及び第2ベイヤ信号52の画素数(6×6)に係る情報を合成位置情報CIとして画像合成部22に出力する。なお、合成位置情報CIの内容は、第1及び第2ベイヤ信号51,52の大きさ・画素値等に応じて適宜変更する。   First, the case of the arrow 61a shown in FIG. 3 will be described. The case indicated by the arrow 61a indicates a case where the second target pixel 63 is the R pixel at the pixel position (1, 1) when the first target pixel 62 is the R pixel at the pixel position (1, 3). The synthesis process in this case will be described with reference to FIG. The CPU 26 (see FIG. 2) outputs the combined position information CI to the image combining unit 22 (Step 101 in FIG. 4). The combined position information CI includes information such as the position of the pixel to be combined and the size of the image data to be combined. For example, the CPU 26 obtains information on the position at which the synthesis is started (in this case, the pixel position (1, 3) of the first Bayer signal 51) and the number of pixels (6 × 6) of the second Bayer signal 52, as the synthesis position information CI. To the image composition unit 22. Note that the content of the combined position information CI is changed as appropriate according to the size and pixel values of the first and second Bayer signals 51 and 52.

次いで、画像合成部22は、メモリ13から1フレームの第1ベイヤ信号51と、第2ベイヤ信号52とを読み出す(ステップ102)。なお、画像合成部22は、メモリ13から読み出した第1及び第2ベイヤ信号51,52を画像合成部22が有するバッファ(図示略)に一時的に格納する。   Next, the image composition unit 22 reads the first Bayer signal 51 and the second Bayer signal 52 of one frame from the memory 13 (Step 102). The image composition unit 22 temporarily stores the first and second Bayer signals 51 and 52 read from the memory 13 in a buffer (not shown) included in the image composition unit 22.

次いで、画像合成部22は、合成位置情報CIに基づいて、第1注目画素62が合成処理を行う画素位置であるか否かを判定する(ステップ103)。画像合成部22は、合成位置情報CIに基づいて、例えば第1ベイヤ信号51の1ライン目であれば画像合成を開始する画素位置(1,3)から第2ベイヤ信号52の横の画素数「6個」分(画素位置(1,8))までを合成位置として判定する。   Next, the image composition unit 22 determines whether or not the first target pixel 62 is a pixel position where the composition process is performed based on the composition position information CI (step 103). For example, if the first line of the first Bayer signal 51 is based on the combined position information CI, the image composition unit 22 counts the number of pixels next to the second Bayer signal 52 from the pixel position (1, 3) where image composition starts. Up to “six” (pixel positions (1, 8)) are determined as composite positions.

画像合成部22は、第1注目画素62が合成処理する画素位置でないと判定した場合には、第1ベイヤ信号51の第1注目画素62の画素値を処理結果(第3ベイヤ信号)の画素値として出力する(ステップ104)。画像合成部22は、第1注目画素62が合成する画素位置(この場合、画素位置(1,3))になるまで、第1注目画素62の位置を1画素ずつ移動させながらステップ104の処理を繰り返し実行する。   If the image synthesis unit 22 determines that the first target pixel 62 is not the pixel position to be synthesized, the pixel value of the first target pixel 62 in the first Bayer signal 51 is the pixel of the processing result (third Bayer signal). It outputs as a value (step 104). The image synthesizing unit 22 performs the process of step 104 while moving the position of the first target pixel 62 one by one until the pixel position where the first target pixel 62 is combined (in this case, the pixel position (1, 3)). Repeatedly.

次いで、第1注目画素62が画素位置(1,3)となると、画像合成部22は、第2ベイヤ信号52の第2注目画素63をバッファから読み出す(ステップ105)。
次いで、画像合成部22は、第2注目画素63が有色又は透明(無色)であるかを判定する(ステップ106)。画像合成部22は、例えば、特定の画素値(全てのビット値が「1」、又は全てのピット値が「0」等)を透明として判定する。また、例えば、第2ベイヤ信号52の各画素値に透明であるか否かを示すビット値(α値:有色であれば「1」、透明であれば「0」)を設定し、画像合成部22がこのビット値に基づいて判定してもよい。
Next, when the first target pixel 62 reaches the pixel position (1, 3), the image composition unit 22 reads the second target pixel 63 of the second Bayer signal 52 from the buffer (step 105).
Next, the image composition unit 22 determines whether the second target pixel 63 is colored or transparent (colorless) (step 106). For example, the image composition unit 22 determines that a specific pixel value (all bit values are “1” or all pit values are “0”, etc.) as transparent. In addition, for example, a bit value (α value: “1” if colored, “0” if transparent) is set for each pixel value of the second Bayer signal 52, and image synthesis is performed. The unit 22 may make a determination based on this bit value.

画像合成部22は、ステップ106において第2注目画素63の画素値が有色であると判定した場合には、第2注目画素63の画素値を第3ベイヤ信号として出力する(ステップ107)。また、画像合成部22は、第2注目画素63の画素値が透明であると判定した場合には、第1注目画素62の画素値を第3ベイヤ信号として出力する(ステップ108)。このようにして、画像合成部22は、第2ベイヤ信号52の第2注目画素63の画素値に応じて第3ベイヤ信号として出力する画素値を第1及び第2注目画素62,63のどちらかに切り替えながら出力する処理を実行する。   If the image composition unit 22 determines in step 106 that the pixel value of the second target pixel 63 is colored, the image composition unit 22 outputs the pixel value of the second target pixel 63 as a third Bayer signal (step 107). If the image composition unit 22 determines that the pixel value of the second target pixel 63 is transparent, the image composition unit 22 outputs the pixel value of the first target pixel 62 as a third Bayer signal (step 108). In this way, the image composition unit 22 outputs the pixel value to be output as the third Bayer signal according to the pixel value of the second target pixel 63 of the second Bayer signal 52, which of the first and second target pixels 62 and 63. Execute the process of outputting while switching between.

次いで、画像合成部22は、第2ベイヤ信号52に対する処理が終了したか否か、即ち第2注目画素63が第2ベイヤ信号52の画素位置(6,6)であるかを判定する(ステップ109)。画像合成部22は、合成位置情報CIに基づいて、例えば第2ベイヤ信号52の画素数(6×6=36個)とステップ106の処理回数とを比較して判定する。   Next, the image composition unit 22 determines whether or not the processing for the second Bayer signal 52 is finished, that is, whether or not the second target pixel 63 is the pixel position (6, 6) of the second Bayer signal 52 (step). 109). The image composition unit 22 determines, for example, by comparing the number of pixels (6 × 6 = 36) of the second Bayer signal 52 with the number of processes in step 106 based on the composite position information CI.

ステップ109において第2ベイヤ信号52に対する処理が終了していないと判定されると、ステップ103からの処理が繰り返し実行される。また、ステップ109において第2ベイヤ信号52に対する処理が終了したと判定されると、第1ベイヤ信号51の画素値が処理結果として1フレームの最後の画素(画素位置(12,12))まで出力される(ステップ110)。   If it is determined in step 109 that the processing for the second Bayer signal 52 has not ended, the processing from step 103 is repeatedly executed. When it is determined in step 109 that the processing for the second Bayer signal 52 has been completed, the pixel value of the first Bayer signal 51 is output as the processing result up to the last pixel (pixel position (12, 12)) of one frame. (Step 110).

例えば、図3に示す場合では、画像合成部22は、第1注目画素62が第1ベイヤ信号51の画素位置(2,5)の位置になるまでは第1ベイヤ信号51の画素値(画素位置(1,1)〜画素位置(2,4)に対応する画素値)が第3ベイヤ信号として出力される。また、例えば、第1注目画素62が画素位置(2,5)になると、画像合成部22は、第1注目画素62の画素値に置き換えて第2注目画素63画素値(画素位置(2,3)の画素値)を処理結果として出力する。   For example, in the case illustrated in FIG. 3, the image composition unit 22 causes the pixel value (pixel) of the first Bayer signal 51 until the first pixel of interest 62 reaches the pixel position (2, 5) of the first Bayer signal 51. (Pixel value corresponding to position (1,1) to pixel position (2,4)) is output as the third Bayer signal. Further, for example, when the first target pixel 62 reaches the pixel position (2, 5), the image composition unit 22 replaces the pixel value of the first target pixel 62 with the pixel value of the second target pixel 63 (pixel position (2, 2, 3) is output as a processing result.

画像合成部22は、メモリ13からフレーム単位で読み出される第1ベイヤ信号51に対し上記した処理を繰り返し実行し、処理結果の第3ベイヤ信号をメモリ13に格納する。メモリ13に格納された第3ベイヤ信号は、例えばCPU26により読み出され表示部16に表示される処理が実行される。   The image composition unit 22 repeatedly executes the above-described processing on the first Bayer signal 51 read from the memory 13 in units of frames, and stores the third Bayer signal as a processing result in the memory 13. The third Bayer signal stored in the memory 13 is read by, for example, the CPU 26 and displayed on the display unit 16.

なお、合成位置情報CIは、図3の矢印61b,61cで示すように、第1注目画素62の色(R,G,B)と第2注目画素63の色が一致する位置が設定できる。例えば、矢印61cは、第1ベイヤ信号51の画素位置(1,5)のR画素と、第2ベイヤ信号52の画素位置(1,1)のR画素とを重畳させる場合である。第1注目画素62と第2注目画素63の色が一致しない場合については第2実施形態で説明する。   Note that the position where the color (R, G, B) of the first target pixel 62 matches the color of the second target pixel 63 can be set in the composite position information CI, as indicated by arrows 61b and 61c in FIG. For example, the arrow 61c is a case where the R pixel at the pixel position (1, 5) of the first Bayer signal 51 and the R pixel at the pixel position (1, 1) of the second Bayer signal 52 are overlapped. A case where the colors of the first target pixel 62 and the second target pixel 63 do not match will be described in the second embodiment.

以上、記述したように、第1実施形態によれば、以下の効果を奏する。
(1)画像処理装置12は、撮像部11から入力される第1ベイヤ信号51に合成する第2ベイヤ信号52が、ベイヤ形式でメモリ13に格納されている。画像合成部22は、CPU26から入力される合成位置情報CIに基づいて第1ベイヤ信号51と第2ベイヤ信号52とを合成し第3ベイヤ信号として出力する。補間処理部41は、第3ベイヤ信号に対しデモザイキング処理を実行する。このような構成では、デモザイキング処理を施す前の第1及び第2ベイヤ信号51,52を用いて合成処理が実行できる。
As described above, according to the first embodiment, the following effects are obtained.
(1) In the image processing device 12, the second Bayer signal 52 to be combined with the first Bayer signal 51 input from the imaging unit 11 is stored in the memory 13 in the Bayer format. The image synthesis unit 22 synthesizes the first Bayer signal 51 and the second Bayer signal 52 based on the synthesis position information CI input from the CPU 26 and outputs it as a third Bayer signal. The interpolation processing unit 41 performs demosaicing processing on the third Bayer signal. In such a configuration, the synthesizing process can be executed using the first and second Bayer signals 51 and 52 before the demosaicing process.

ここで、第1及び第2ベイヤ信号51,52は、従来の画像合成に用いられるデモザイキング処理後の画像データ(YCbCr信号等)に比べて1画素あたりのデータ量が少ない。これにより、画像合成処理におけるメモリ13に対する1回のデータ転送量が低減できる。
また、従来のように、デモザイキング処理後の信号を合成処理に用いる構成では、例えば本実施形態の第1ベイヤ信号51に相当する信号をYCbCr信号に変換してメモリに格納する処理が必要となる。また、本実施形態の第1及び第2ベイヤ信号51,52に相当する信号(何れも、YCbCr信号等)を共にメモリから読み出す処理が必要となる。
Here, the first and second Bayer signals 51 and 52 have a smaller data amount per pixel than image data (YCbCr signal or the like) after demosaicing processing used for conventional image synthesis. Thereby, the amount of data transferred once to the memory 13 in the image composition process can be reduced.
Further, in the configuration in which the signal after the demosaicing process is used for the synthesis process as in the prior art, for example, a process corresponding to the first Bayer signal 51 of the present embodiment needs to be converted into a YCbCr signal and stored in the memory. Become. In addition, it is necessary to read out from the memory both signals corresponding to the first and second Bayer signals 51 and 52 of the present embodiment (both YCbCr signals and the like).

これに対し、本実施形態の画像合成部22は、合成処理におけるメモリ13に対するアクセス処理が第2ベイヤ信号52の読み出し処理のみで実行できる。これにより、画像合成処理におけるメモリ13とのデータ転送量を低減するとともに読み出し/書き込み回数を減らすことにより、メモリ13に対するアクセス頻度を抑えることができる。   On the other hand, the image composition unit 22 of the present embodiment can execute the access process for the memory 13 in the composition process only by the reading process of the second Bayer signal 52. As a result, the frequency of access to the memory 13 can be suppressed by reducing the amount of data transferred to and from the memory 13 in the image composition process and reducing the number of read / write operations.

(第2実施形態)
図5は、第2実施形態のブロック図である。第1実施形態では、第1ベイヤ信号51の第1注目画素62に対応する色(R,G,B)と第2ベイヤ信号52の第2注目画素63に対応する色とが一致する場合の合成処理について例示した。これに対し、第2実施形態では、画素の色が一致しない場合の合成処理について例示する。なお、第2実施形態において、上記第1実施形態と同じ構成については同じ符号を付して詳細な説明を省略する。
(Second Embodiment)
FIG. 5 is a block diagram of the second embodiment. In the first embodiment, the color (R, G, B) corresponding to the first target pixel 62 of the first Bayer signal 51 matches the color corresponding to the second target pixel 63 of the second Bayer signal 52. The synthesis process is illustrated. On the other hand, in the second embodiment, an example of the synthesis process when the colors of the pixels do not match is illustrated. Note that in the second embodiment, the same components as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.

図5に示すように、画像処理装置12aは変換処理部71を有する。変換処理部71は、共有バス31(図1参照)によって各回路と接続されている。変換処理部71は、画像合成部22に入力される第2ベイヤ信号52に対する前処理として、第2注目画素63を含む画像データを入力し第1注目画素62の色に応じて第2注目画素63の画素値を変換する処理を実行する。   As illustrated in FIG. 5, the image processing apparatus 12 a includes a conversion processing unit 71. The conversion processing unit 71 is connected to each circuit by the shared bus 31 (see FIG. 1). As a preprocessing for the second Bayer signal 52 input to the image composition unit 22, the conversion processing unit 71 inputs image data including the second target pixel 63 and outputs the second target pixel according to the color of the first target pixel 62. A process of converting 63 pixel values is executed.

図6に示すように、変換処理部71は、レジスタ部72と、制御処理部73と、バッファ部74と、画素値変換部75とを有している。レジスタ部72は、3つのレジスタR1〜R3を含む。   As illustrated in FIG. 6, the conversion processing unit 71 includes a register unit 72, a control processing unit 73, a buffer unit 74, and a pixel value conversion unit 75. The register unit 72 includes three registers R1 to R3.

レジスタR1は、メモリ13における第2ベイヤ信号52が格納されているアドレスを示す値が保存されている。レジスタR2は、第1及び第2ベイヤ信号51,52の画素のタイプを示す値が保存されている。ここでいう画素のタイプとは、例えば第1及び第2ベイヤ信号51,52の各々の画素位置(1,1)に対応する色(R,G,B)である。また、レジスタR2は、画素位置(1,1)に対応する色がG画素である場合には、R画素が配置されたラインのG画素か、B画素が配置されたラインのG画素かを示す値も含む(図7参照)。レジスタR3は、上述した合成位置情報CIを示す値が保存されている。   The register R1 stores a value indicating an address where the second Bayer signal 52 in the memory 13 is stored. The register R2 stores a value indicating the pixel type of the first and second Bayer signals 51 and 52. The pixel type here is, for example, a color (R, G, B) corresponding to each pixel position (1, 1) of the first and second Bayer signals 51, 52. In addition, when the color corresponding to the pixel position (1, 1) is a G pixel, the register R2 determines whether the G pixel in the line where the R pixel is arranged or the G pixel in the line where the B pixel is arranged. The value shown is also included (see FIG. 7). The register R3 stores a value indicating the above-described combined position information CI.

レジスタ部72は、各レジスタR1〜R3の値がCPU26により設定される。制御処理部73は、バッファ部74に対しメモリ13におけるレジスタR1のアドレスから第2ベイヤ信号52の所定の画素数分を読み出す制御を実行する。この所定画素数分のデータは、第2注目画素63を含むデータであり、例えば図8に示す縦3、横3の部分画像である。画素値変換部75は、制御処理部73の制御に基づいてバッファ部74に入力された部分画像を順次入力して画素値を変換する処理を実行する。   In the register unit 72, the values of the registers R1 to R3 are set by the CPU 26. The control processing unit 73 executes control to read out a predetermined number of pixels of the second Bayer signal 52 from the address of the register R1 in the memory 13 with respect to the buffer unit 74. The data for the predetermined number of pixels is data including the second pixel of interest 63, and is, for example, a partial image of 3 in the vertical direction and 3 in the horizontal direction shown in FIG. The pixel value conversion unit 75 executes a process of converting pixel values by sequentially inputting the partial images input to the buffer unit 74 based on the control of the control processing unit 73.

制御処理部73は、レジスタR2,R3の値を画素値変換部75に出力する。画素値変換部75は、レジスタR2,R3の値に基づいて第2注目画素63の画素値を変換する演算回路を選択する。画素値変換部75は、選択した演算回路に応じてバッファ部74から供給される部分画像の画素値を入力する。そして、画素値変換部75は、演算回路により算出された画素値を第2注目画素63の画素値として設定し画像合成部22に出力する処理を実行する。   The control processing unit 73 outputs the values of the registers R2 and R3 to the pixel value conversion unit 75. The pixel value conversion unit 75 selects an arithmetic circuit that converts the pixel value of the second pixel of interest 63 based on the values of the registers R2 and R3. The pixel value conversion unit 75 inputs the pixel value of the partial image supplied from the buffer unit 74 according to the selected arithmetic circuit. Then, the pixel value conversion unit 75 executes a process of setting the pixel value calculated by the arithmetic circuit as the pixel value of the second target pixel 63 and outputting it to the image composition unit 22.

ここで、第1及び第2ベイヤ信号51,52の合成処理における第1及び第2注目画素62,63の色の組み合わせは以下の4通りがある。
(a)R画素の第1注目画素62に、R画素の第2注目画素63を合成(図7の矢印64、第1実施形態)
(b)R画素の第1注目画素62に、B画素の第2注目画素63を合成(図7の矢印65a,65b、図8〜図11参照)
(c)R画素の第1注目画素62に、R画素が配置されたラインのG画素の第2注目画素63を合成(図7の矢印66a,66b、図12〜図15参照)
(d)R画素の第1注目画素62に、B画素が配置されたラインのG画素の第2注目画素63を合成(図16〜図19参照)
以下に、上記(b)〜(d)の順に説明する。なお、(a)の場合(色が一致する場合、図7における部分画素データ81)については、第1実施形態と同様の処理となるため説明を省略する。また、図8〜図19の各画素に示される文字は画素値を示す。また、図8〜図19の第1及び第2ベイヤ信号51,52の各々の中央画素は第1及び第2注目画素62,63を示している。
Here, there are the following four combinations of colors of the first and second target pixels 62 and 63 in the synthesis process of the first and second Bayer signals 51 and 52.
(A) The second target pixel 63 of the R pixel is combined with the first target pixel 62 of the R pixel (arrow 64 in FIG. 7, first embodiment).
(B) The second target pixel 63 of the B pixel is combined with the first target pixel 62 of the R pixel (see arrows 65a and 65b in FIG. 7 and FIGS. 8 to 11).
(C) The second target pixel 63 of the G pixel in the line in which the R pixel is arranged is combined with the first target pixel 62 of the R pixel (see arrows 66a and 66b in FIG. 7 and FIGS. 12 to 15).
(D) The second target pixel 63 of the G pixel on the line where the B pixel is arranged is combined with the first target pixel 62 of the R pixel (see FIGS. 16 to 19).
Below, it demonstrates in order of said (b)-(d). In the case of (a) (when the colors match, the partial pixel data 81 in FIG. 7) is the same process as in the first embodiment, and thus the description thereof is omitted. Moreover, the character shown by each pixel of FIGS. 8-19 shows a pixel value. Further, the central pixel of each of the first and second Bayer signals 51 and 52 in FIGS. 8 to 19 indicates the first and second target pixels 62 and 63.

(b)の場合について
画像処理装置12aは、(b)の場合には図7に示すように第2ベイヤ信号52を変換処理部71にて変換(矢印65a)し、変換後の第2ベイヤ信号52aを第1ベイヤ信号51の部分画素データ82に合成する処理(矢印65b)を実行する。
In the case of (b) In the case of (b), the image processing apparatus 12a converts the second Bayer signal 52 by the conversion processing unit 71 (arrow 65a) as shown in FIG. 7, and converts the second Bayer after the conversion. A process (arrow 65b) for combining the signal 52a with the partial pixel data 82 of the first Bayer signal 51 is executed.

詳述すると、第1及び第2ベイヤ信号51,52は、各画素に対応する色がベイヤ配列となっており規則的に配置されている。レジスタR2,R3の値には、第1及び第2ベイヤ信号51,52の画素のタイプ(画素位置(1,1)の色)と、合成位置情報CI(ベイヤ信号51,52を重畳する画素位置)に関する情報が含まれる。従って、画素値変換部75は、レジスタR2,R3の値に基づいて第1及び第2ベイヤ信号51,52がどのような色で重畳されるか、即ち上記(a)〜(b)のどの場合に当てはまるかを検出することができる。その結果、画素値変換部75は、(a)〜(b)の場合に応じた演算回路を択一的に選択し第2注目画素63の画素値を変換することが可能となる。   More specifically, the first and second Bayer signals 51 and 52 are regularly arranged with a color corresponding to each pixel in a Bayer array. The values of the registers R2 and R3 include the pixel type of the first and second Bayer signals 51 and 52 (the color of the pixel position (1, 1)) and the combined position information CI (the pixel on which the Bayer signals 51 and 52 are superimposed). Information on location). Accordingly, the pixel value conversion unit 75 determines in which color the first and second Bayer signals 51 and 52 are superimposed based on the values of the registers R2 and R3, that is, which of the above (a) to (b). It can be detected whether this is the case. As a result, the pixel value conversion unit 75 can alternatively select an arithmetic circuit corresponding to cases (a) to (b) and convert the pixel value of the second target pixel 63.

図8は、(b)の場合において第1注目画素62がR画素、第2注目画素63がB画素の場合を示している。第1注目画素62の画素値がR11、第2注目画素63の画素値がB11である。この場合、画素値変換部75は、第2注目画素63に設定する画素値r11を、第2注目画素63の周辺画素から算出する処理を実行する。画素値変換部75は、画素値r11を画像合成部22に出力し、画素値r11が画像合成部22により第1注目画素62(第1ベイヤ信号51)のR11に合成される。   FIG. 8 shows a case where the first target pixel 62 is an R pixel and the second target pixel 63 is a B pixel in the case of (b). The pixel value of the first target pixel 62 is R11, and the pixel value of the second target pixel 63 is B11. In this case, the pixel value conversion unit 75 executes a process of calculating the pixel value r11 set for the second target pixel 63 from the peripheral pixels of the second target pixel 63. The pixel value conversion unit 75 outputs the pixel value r11 to the image synthesis unit 22, and the pixel value r11 is synthesized by the image synthesis unit 22 into R11 of the first target pixel 62 (first Bayer signal 51).

例えば、画素値r11は、第2注目画素63の周辺画素の画素値(左上のR00,右上のR02,左下のR20,右下のR22)を用いて以下の演算式で表される。
r11=(R00+R02+R20+R22)/4
つまり、変換後の第2注目画素63の画素値に、第2注目画素63と隣り合う周辺画素のうち第1注目画素62の色と同色(ベイヤ配列上の同色)となる周辺画素の画素値の平均値を設定する。
For example, the pixel value r11 is expressed by the following arithmetic expression using pixel values of the peripheral pixels of the second target pixel 63 (upper left R00, upper right R02, lower left R20, lower right R22).
r11 = (R00 + R02 + R20 + R22) / 4
That is, the pixel value of the peripheral pixel having the same color (the same color on the Bayer array) as the color of the first target pixel 62 among the peripheral pixels adjacent to the second target pixel 63 to the pixel value of the second target pixel 63 after conversion. Set the average value.

同様に、図9に示す第1注目画素62がB画素(画素値B11)、第2注目画素63がR画素(画素値R11)の場合には、変換後の画素値b11は、以下の演算式で表される。
b11=(B00+B02+B20+B22)/4
なお、図10及び図11に示す第1注目画素62(画素値G11)と第2注目画素63(画素値G11)が同色の場合には、第2注目画素63の画素値G11がそのまま変換後の画素値として設定される。
Similarly, when the first target pixel 62 shown in FIG. 9 is a B pixel (pixel value B11) and the second target pixel 63 is an R pixel (pixel value R11), the converted pixel value b11 is calculated as follows: It is expressed by a formula.
b11 = (B00 + B02 + B20 + B22) / 4
When the first target pixel 62 (pixel value G11) and the second target pixel 63 (pixel value G11) shown in FIGS. 10 and 11 are the same color, the pixel value G11 of the second target pixel 63 is converted as it is. Is set as the pixel value.

ここで、画素値変換部75は、上記したように第2注目画素63の画素値を周辺画素の画素値から算出する。言い換えると、対応する周辺画素が有色である場合には、第2注目画素63に有色な値が設定される。これを踏まえ、本実施形態の第2ベイヤ信号52は、図7に示すように有色の画素の周りに透明の画素が設定されている。そして、この第2ベイヤ信号52に対して画素値の変換処理が施されることで、変換後の第2ベイヤ信号52aの有色の画素の範囲が変換前に比べて拡がっている。つまり、第2ベイヤ信号52に対し、変換後に有色となる画素の位置を加味して透明な画素を設定することにより、第2ベイヤ信号52の画素値の変換処理をより適切な範囲で実施することができる。   Here, the pixel value conversion unit 75 calculates the pixel value of the second target pixel 63 from the pixel values of the surrounding pixels as described above. In other words, when the corresponding peripheral pixel is colored, a colored value is set for the second target pixel 63. In view of this, in the second Bayer signal 52 of the present embodiment, transparent pixels are set around colored pixels as shown in FIG. Then, the pixel value conversion process is performed on the second Bayer signal 52, so that the range of colored pixels of the converted second Bayer signal 52a is expanded as compared with that before the conversion. In other words, the conversion process of the pixel value of the second Bayer signal 52 is performed in a more appropriate range by setting the transparent pixel in consideration of the position of the colored pixel after the conversion with respect to the second Bayer signal 52. be able to.

なお、画素値の変換処理については、対応する周辺画素が設定されていない場合には所定値を設定する。具体的には、例えば、第2ベイヤ信号52の画素位置(1,3)のR画素を第2注目画素63とした場合には、図9に示すような第2注目画素63の周囲の4つのB画素のうち2つ(B00,B02)に対応する画素がない。このような場合には、画素値B00,B02に所定値として透明な画素値(例えば全てのピット値が「0」)を設定する。また、例えば、第2注目画素63(この場合画素値R11)を間に挟んで対向位置の画素値を設定、(B00であればB22、B02であればB20)を設定してもよい。   Regarding the pixel value conversion process, a predetermined value is set when the corresponding peripheral pixel is not set. Specifically, for example, when the R pixel at the pixel position (1, 3) of the second Bayer signal 52 is set as the second target pixel 63, the four pixels around the second target pixel 63 as shown in FIG. There is no pixel corresponding to two (B00, B02) of the two B pixels. In such a case, transparent pixel values (for example, all pit values are “0”) are set as predetermined values for the pixel values B00 and B02. Further, for example, the pixel value at the opposite position may be set with the second target pixel 63 (in this case, the pixel value R11) interposed therebetween (B22 if B00, B20 if B02).

そして、画素値変換部75は、(b)の場合には上記した演算処理を施す演算回路を選択する処理を実行する。第1及び第2ベイヤ信号51,52は、画素の色が規則的に配列されており、画素値変換部75により第2注目画素63の画素値が選択された演算回路に順次入力されることで画素値が変換される。   Then, in the case of (b), the pixel value conversion unit 75 executes a process of selecting an arithmetic circuit that performs the above arithmetic process. The first and second Bayer signals 51 and 52 have pixel colors regularly arranged, and are sequentially input to the arithmetic circuit in which the pixel value of the second target pixel 63 is selected by the pixel value conversion unit 75. The pixel value is converted by.

例えば、図7に示すように、(b)の場合(矢印65a,65b)の場合には、第1ベイヤ信号51の合成位置の部分画素データ82は、1ライン目にB,G,B,・・・・の順に画素の色が配置されている。一方で、第2ベイヤ信号52は、1ライン目にR,G,R・・・・の順に画素の色が配置されている。従って、画素値変換部75は、1ライン目の変換処理を、図9及び図11に示す処理内容のそれぞれ対応した演算回路に第2注目画素63の画素値を交互に入力することで実行できる。   For example, as shown in FIG. 7, in the case of (b) (arrows 65a and 65b), the partial pixel data 82 at the synthesis position of the first Bayer signal 51 is B, G, B, ... The pixel colors are arranged in this order. On the other hand, in the second Bayer signal 52, pixel colors are arranged in the order of R, G, R,... On the first line. Therefore, the pixel value conversion unit 75 can execute the conversion process for the first line by alternately inputting the pixel value of the second pixel of interest 63 to the arithmetic circuits corresponding to the processing contents shown in FIGS. 9 and 11. .

また、例えば、部分画素データ82は、2ライン目にG,R,G,・・・・の順に画素の色が配置されている。一方で、第2ベイヤ信号52は、2ライン目にG,B,G・・・・の順に画素の色が配置されている。従って、画素値変換部75は、2ライン目の変換処理を、図8及び図10に示す処理内容のそれぞれ対応した演算回路に第2注目画素63の画素値を交互に入力することで実行できる。このようにして、画素値変換部75は、第2注目画素63の画素値に周辺画素から算出した平均値を設定し画像合成部22に出力する。画像合成部22は、画素値変換部75から入力される変換後の第2注目画素63を第1ベイヤ信号51の第1注目画素62に合成する(置き換える)。   Further, for example, in the partial pixel data 82, pixel colors are arranged in the order of G, R, G,... On the second line. On the other hand, in the second Bayer signal 52, pixel colors are arranged in the order of G, B, G,... On the second line. Therefore, the pixel value conversion unit 75 can execute the conversion process for the second line by alternately inputting the pixel value of the second pixel of interest 63 to the arithmetic circuit corresponding to each of the processing contents shown in FIGS. . In this way, the pixel value conversion unit 75 sets the average value calculated from the peripheral pixels as the pixel value of the second target pixel 63 and outputs the average value to the image composition unit 22. The image composition unit 22 synthesizes (replaces) the converted second target pixel 63 input from the pixel value conversion unit 75 with the first target pixel 62 of the first Bayer signal 51.

(c)の場合について
画像処理装置12aは、(c)の場合には図7に示すように第2ベイヤ信号52を変換処理部71にて変換(矢印66a)し、変換後の第2ベイヤ信号52bを第1ベイヤ信号51に合成する(矢印66b)処理を実行する。
In the case of (c) In the case of (c), the image processing apparatus 12a converts the second Bayer signal 52 by the conversion processing unit 71 (arrow 66a) as shown in FIG. A process of combining the signal 52b with the first Bayer signal 51 (arrow 66b) is executed.

図12は、(c)の場合において第1注目画素62がR画素、第2注目画素63がG画素(R画素が配置されたラインのG画素)の場合を示している。第2注目画素63に設定する画素値r11は、第2注目画素63の周辺画素の画素値(左のR10,右のR12)を用いて以下の演算式で表される。
r11=(R10+R12)/2
FIG. 12 shows a case where the first target pixel 62 is an R pixel and the second target pixel 63 is a G pixel (G pixel on the line where the R pixel is arranged) in the case of (c). The pixel value r11 set for the second target pixel 63 is expressed by the following arithmetic expression using the pixel values (left R10, right R12) of the peripheral pixels of the second target pixel 63.
r11 = (R10 + R12) / 2

同様に、図13に示す第1注目画素62がB画素(画素値B11)、第2注目画素63がG画素(画素値G11)の場合には、変換後の画素値b11が以下の演算式で表される。
b11=(B10+B12)/2
Similarly, when the first pixel of interest 62 shown in FIG. 13 is a B pixel (pixel value B11) and the second pixel of interest 63 is a G pixel (pixel value G11), the converted pixel value b11 is expressed by the following equation: It is represented by
b11 = (B10 + B12) / 2

同様に、図14に示す第1注目画素62がG画素(R画素が配置されたラインのG画素)、第2注目画素63がR画素(画素値R11)の場合には、変換後の画素値g11が以下の演算式で表される。
g11=(G01+G10+G12+G21)/4
なお、図15に示す第1注目画素62がBラインのG画素(画素値G11)、第2注目画素63がB画素(画素値B11)の場合は、図14の場合と同様であるため説明を省略する。
このようにして、画素値変換部75は、(c)の場合においても第2注目画素63の画素値に第1注目画素62の画素の色に応じた周辺画素の画素値の平均値を設定する。
Similarly, when the first target pixel 62 shown in FIG. 14 is a G pixel (G pixel on the line where the R pixel is arranged) and the second target pixel 63 is an R pixel (pixel value R11), the pixel after conversion The value g11 is expressed by the following arithmetic expression.
g11 = (G01 + G10 + G12 + G21) / 4
The case where the first pixel of interest 62 shown in FIG. 15 is the G pixel (pixel value G11) of the B line and the second pixel of interest 63 is the B pixel (pixel value B11) is the same as in FIG. Is omitted.
In this way, the pixel value conversion unit 75 sets the average value of the pixel values of the peripheral pixels corresponding to the color of the pixel of the first target pixel 62 as the pixel value of the second target pixel 63 even in the case of (c). To do.

(d)の場合について
図16は、(d)の場合において第1注目画素62がR画素、第2注目画素63がG画素(B画素が配置されたラインのG画素)の場合を示している。第2注目画素63に設定する画素値r11は、第2注目画素63の周辺画素の画素値(上のR01,下のR21)を用いて以下の演算式で表される。
r11=(R01+R21)/2
Case (d) FIG. 16 shows a case where the first pixel of interest 62 is an R pixel and the second pixel of interest 63 is a G pixel (G pixel on the line where the B pixel is arranged) in the case of (d). Yes. The pixel value r11 set for the second target pixel 63 is expressed by the following arithmetic expression using the pixel values of the peripheral pixels of the second target pixel 63 (upper R01, lower R21).
r11 = (R01 + R21) / 2

同様に、図17に示す第1注目画素62がB画素(画素値B11)、第2注目画素63がG画素(画素値G11)の場合には、変換後の画素値b11が以下の演算式で表される。
b11=(B01+B21)/2
Similarly, when the first target pixel 62 shown in FIG. 17 is a B pixel (pixel value B11) and the second target pixel 63 is a G pixel (pixel value G11), the converted pixel value b11 is expressed by the following equation. It is represented by
b11 = (B01 + B21) / 2

同様に、図18に示す第1注目画素62がG画素(R画素が配置されたラインのG画素)、第2注目画素63がB画素(画素値B11)の場合には、変換後の画素値g11が以下の演算式で表される。
g11=(G01+G10+G12+G21)/4
なお、図19に示す第1注目画素62がG画素(B画素が配置されたラインのG画素)、第2注目画素63がR画素(画素値R11)の場合は、図18の場合と同様であるため説明を省略する。
このようにして、画素値変換部75は、(d)の場合においても第2注目画素63の画素値に第1注目画素62の画素の色に応じた周辺画素の画素値の平均値を設定する。
Similarly, when the first target pixel 62 shown in FIG. 18 is a G pixel (G pixel on the line where the R pixel is arranged) and the second target pixel 63 is a B pixel (pixel value B11), the converted pixel The value g11 is expressed by the following arithmetic expression.
g11 = (G01 + G10 + G12 + G21) / 4
In addition, when the 1st attention pixel 62 shown in FIG. 19 is G pixel (G pixel of the line in which B pixel is arrange | positioned) and the 2nd attention pixel 63 is R pixel (pixel value R11), it is the same as that of the case of FIG. Therefore, the description is omitted.
In this way, the pixel value conversion unit 75 sets the average value of the pixel values of the peripheral pixels according to the color of the pixel of the first target pixel 62 as the pixel value of the second target pixel 63 even in the case of (d). To do.

以上、記述したように、第2実施形態によれば、以下の効果を奏する。
(1)画像処理装置12aの変換処理部71は、第1及び第2注目画素62,63の各々に対応するカラーフィルタの色が異なる場合に、第2注目画素63の周辺画素のうち第1注目画素62に対応する色と同色となる周辺画素の画素値に基づいて第2注目画素63の画素値を算出する処理を実行する。この結果、第1及び第2注目画素62,63の色が異なる場合の第1及び第2ベイヤ信号51,52の合成処理が可能となる。つまり、メモリ13に対するアクセス頻度を抑えることが可能なベイヤ形式の画像合成処理を、画素位置の制限を受けることなく処理できる。
As described above, according to the second embodiment, the following effects can be obtained.
(1) The conversion processing unit 71 of the image processing device 12a uses the first of the peripheral pixels of the second pixel of interest 63 when the colors of the color filters corresponding to the first and second pixels of interest 62 and 63 are different. A process of calculating the pixel value of the second target pixel 63 based on the pixel values of peripheral pixels having the same color as the color corresponding to the target pixel 62 is executed. As a result, it is possible to combine the first and second Bayer signals 51 and 52 when the colors of the first and second target pixels 62 and 63 are different. That is, Bayer-type image composition processing that can suppress the access frequency to the memory 13 can be processed without being limited by the pixel position.

(2)変換処理部71は、第2注目画素63と隣り合う画素を周辺画素として設定し、この周辺画素の画素値の平均値を第2注目画素63の画素値として設定する。これにより、第2注目画素63に近接する画素から画素値を算出することで、変換後の第2注目画素63の画素値が精度よく算出できる。   (2) The conversion processing unit 71 sets a pixel adjacent to the second target pixel 63 as a peripheral pixel, and sets an average value of pixel values of the peripheral pixel as a pixel value of the second target pixel 63. Thus, by calculating the pixel value from the pixels adjacent to the second target pixel 63, the pixel value of the second target pixel 63 after conversion can be calculated with high accuracy.

(3)レジスタ部72は、レジスタR1〜R3の値がCPU26により設定される。制御処理部73は、レジスタR1の値に基づいてメモリ13からバッファ部74に第2注目画素63を含む部分画像を出力する制御を行う。また、制御処理部73は、レジスタR1,R3の値を画素値変換部75に出力し、画素値変換部75がレジスタR1,R3の値に基づいてバッファ部74から部分画像を入力し第2注目画素63の画素値を変換する処理を実行する。このような構成では、CPU26による制御が容易な変換処理部71が構成できる。   (3) In the register unit 72, the values of the registers R1 to R3 are set by the CPU 26. The control processing unit 73 performs control to output a partial image including the second target pixel 63 from the memory 13 to the buffer unit 74 based on the value of the register R1. The control processing unit 73 outputs the values of the registers R1 and R3 to the pixel value conversion unit 75, and the pixel value conversion unit 75 inputs the partial image from the buffer unit 74 based on the values of the registers R1 and R3. Processing for converting the pixel value of the pixel of interest 63 is executed. In such a configuration, the conversion processing unit 71 that can be easily controlled by the CPU 26 can be configured.

(4)レジスタR2,R3の値には、第1及び第2ベイヤ信号51,52の画素のタイプと、合成位置情報CIに関する情報が含まれている。画素値変換部75は、レジスタR2,R3の値に基づいて第1及び第2ベイヤ信号51,52の重畳される態様を検出できる。その結果、画素値変換部75は、各場合((a)〜(d)の場合)に応じた演算回路を択一的に選択することが可能となり、画素値の変換処理を効率よく実行することが可能となる。   (4) The values of the registers R2 and R3 include information on the pixel types of the first and second Bayer signals 51 and 52 and the combined position information CI. The pixel value conversion unit 75 can detect the manner in which the first and second Bayer signals 51 and 52 are superimposed based on the values of the registers R2 and R3. As a result, the pixel value conversion unit 75 can alternatively select an arithmetic circuit corresponding to each case (in the case of (a) to (d)), and efficiently executes the pixel value conversion processing. It becomes possible.

(5)画素値変換部75は、第2注目画素63の変換後の画素値を隣り合う周辺画素のうち第1注目画素62と同色の周辺画素の画素値から算出する。これを踏まえ、第2ベイヤ信号52は、有色の画素の周りに透明の画素が設定されている(図7参照)。これにより、第2ベイヤ信号52の画素値の変換処理をより適切な範囲で実施することができる。   (5) The pixel value conversion unit 75 calculates the pixel value after the conversion of the second target pixel 63 from the pixel values of the peripheral pixels having the same color as the first target pixel 62 among the adjacent peripheral pixels. Based on this, in the second Bayer signal 52, transparent pixels are set around colored pixels (see FIG. 7). Thereby, the conversion process of the pixel value of the 2nd Bayer signal 52 can be implemented in a more suitable range.

(第3実施形態)
図20は、第3実施形態のブロック図である。第3実施形態は、第2実施形態の構成に逆ガンマ変換部77を付加した構成となっている。ここで、撮像部11が出力するデータは入射光の光量に比例した値となる。従って、第1ベイヤ信号51は線形的な値となる。一方で、メモリ13に格納される第2ベイヤ信号52を含む画像データは、ガンマ変換部42によりガンマ補正が施された非線形的なデータである場合が多い。
(Third embodiment)
FIG. 20 is a block diagram of the third embodiment. The third embodiment has a configuration in which an inverse gamma conversion unit 77 is added to the configuration of the second embodiment. Here, the data output from the imaging unit 11 is a value proportional to the amount of incident light. Accordingly, the first Bayer signal 51 has a linear value. On the other hand, the image data including the second Bayer signal 52 stored in the memory 13 is often non-linear data that has been subjected to gamma correction by the gamma conversion unit 42.

第3実施形態の画像処理装置12bでは、図20に示すように、メモリ13から変換処理部71に読み込まれる第2ベイヤ信号52に対し逆ガンマ補正を施す逆ガンマ変換部77が設けられている。逆ガンマ変換部77は、第2ベイヤ信号52に対してあらかじめ施されたガンマ補正を相殺する逆ガンマ補正を施す処理を実行する。   In the image processing apparatus 12b of the third embodiment, as shown in FIG. 20, an inverse gamma conversion unit 77 that performs inverse gamma correction on the second Bayer signal 52 read from the memory 13 into the conversion processing unit 71 is provided. . The inverse gamma conversion unit 77 executes a process of performing inverse gamma correction that cancels the gamma correction previously applied to the second Bayer signal 52.

以上、記述したように、第3実施形態によれば、以下の効果を奏する。
(1)逆ガンマ変換部77は、メモリ13から第2ベイヤ信号52を入力し逆ガンマ補正を施し変換処理部71に出力する処理を実行する。これにより、例えば、第3ベイヤ信号を表示部16に表示した場合に、第1ベイヤ信号51に相当する部分と第2ベイヤ信号52に相当する部分との間にデバイス特性によって生じる輝度の差等が低減できる。
As described above, according to the third embodiment, the following effects are obtained.
(1) The inverse gamma conversion unit 77 executes a process of inputting the second Bayer signal 52 from the memory 13, performing reverse gamma correction, and outputting the result to the conversion processing unit 71. Thereby, for example, when a third Bayer signal is displayed on the display unit 16, a difference in luminance caused by device characteristics between a portion corresponding to the first Bayer signal 51 and a portion corresponding to the second Bayer signal 52, etc. Can be reduced.

また、撮像部11は画像入力装置の一例として、画像処理装置12は画像合成装置の一例として、メモリ13はメモリの一例として、CPU26は制御部の一例として、第1ベイヤ信号51は第1画像信号の一例として、第2ベイヤ信号52は第2画像信号の一例として、第3ベイヤ信号は第3画像信号の一例として挙げられる。   The imaging unit 11 is an example of an image input device, the image processing device 12 is an example of an image composition device, the memory 13 is an example of a memory, the CPU 26 is an example of a control unit, and the first Bayer signal 51 is a first image. As an example of the signal, the second Bayer signal 52 is an example of the second image signal, and the third Bayer signal is an example of the third image signal.

尚、本願に開示される技術は前記各実施形態に限定されるものではなく、趣旨を逸脱しない範囲内での種々の改良、変更が可能であることは言うまでもない。
例えば、上記第2、第3実施形態では、変換処理部71は、第2注目画素63の画素値を対応する周辺画素の全ての画素値を使って求めた。これに対し、任意の画素値を用いて算出するようにしてもよい。
また、変換処理部71は、第2注目画素63と隣り合う画素を演算に用いたが、これに限定されず、近接する他の画素を用いてもよい。この場合、メモリ13からバッファ部74に入力する部分画像(第2注目画素63を中央とした画像)の画素数を適宜変更する。
Needless to say, the technology disclosed in the present application is not limited to the above-described embodiments, and various modifications and changes can be made without departing from the scope of the invention.
For example, in the second and third embodiments, the conversion processing unit 71 obtains the pixel value of the second target pixel 63 using all the pixel values of the corresponding peripheral pixels. On the other hand, you may make it calculate using arbitrary pixel values.
In addition, although the conversion processing unit 71 uses a pixel adjacent to the second pixel of interest 63 for the calculation, the conversion processing unit 71 is not limited to this, and other adjacent pixels may be used. In this case, the number of pixels of the partial image (image centered on the second target pixel 63) input from the memory 13 to the buffer unit 74 is appropriately changed.

また、上記各実施形態において、画像合成部22は、第1ベイヤ信号51に対し複数の第2ベイヤ信号(文字やメニュー表示やCG画像等)を合成する構成としてもよい。また、合成処理を複数回実行する構成としてもよい。   In each of the above embodiments, the image composition unit 22 may be configured to synthesize a plurality of second Bayer signals (characters, menu displays, CG images, etc.) with the first Bayer signal 51. Moreover, it is good also as a structure which performs a synthetic | combination process in multiple times.

また、上記各実施形態において、撮像素子11aを構成する複数の画素についてRGBのカラーフィルタを介したベイヤ配列とし、第1ベイヤ信号51をベイヤ形式のデータとして扱ったが、第1ベイヤ信号51は補間処理前のデータ(RAWデータ)であればよく、他の配列のデータであってもよい。例えば、ハニカム配列でもよい。またベイヤ配列についても、他の配列(ダブルベイヤ配列等)を用いてもよい。この場合、第2ベイヤ信号52のデータ形式についても第1ベイヤ信号51のデータ形式に応じて適宜変更する。   In each of the above embodiments, a plurality of pixels constituting the image sensor 11a are arranged in a Bayer array via RGB color filters, and the first Bayer signal 51 is handled as Bayer format data. Any data before the interpolation processing (RAW data) may be used, and data of another arrangement may be used. For example, a honeycomb arrangement may be used. Also, other arrangements (double Bayer arrangement etc.) may be used for the Bayer arrangement. In this case, the data format of the second Bayer signal 52 is appropriately changed according to the data format of the first Bayer signal 51.

また、上記第3実施形態の構成において変換処理部71を省略した構成としてもよい。言い換えると、第1実施形態の構成に逆ガンマ変換部77を付加した構成としてもよい。
また、画像合成部22は、A/D変換回路11bから出力されるベイヤ信号を第1ベイヤ信号として用いてもよい。この場合、プリプロセス処理部21を省略した構成とすることができる。
Moreover, it is good also as a structure which abbreviate | omitted the conversion process part 71 in the structure of the said 3rd Embodiment. In other words, the inverse gamma conversion unit 77 may be added to the configuration of the first embodiment.
Further, the image composition unit 22 may use the Bayer signal output from the A / D conversion circuit 11b as the first Bayer signal. In this case, the pre-process processing unit 21 can be omitted.

また、撮像部11を複数備えた構成としてもよい。この場合、各撮像部11に対応して画像処理装置12をそれぞれ備えた構成としてもよい。   Moreover, it is good also as a structure provided with two or more imaging parts 11. FIG. In this case, it is good also as a structure provided with the image processing apparatus 12 corresponding to each imaging part 11, respectively.

以下、本願に開示される技術の諸態様を付記としてまとめる。
(付記1)
画像入力装置から入力される第1画像信号と、メモリに格納される第2画像信号とを合成する画素位置の情報を含む合成位置情報を指示する制御部と、
前記合成位置情報に基づいて、前記第1画像信号の第1注目画素と前記第2画像信号の第2注目画素との間で、前記第1注目画素に対応する色と、前記第2画像信号の第2注目画素に対応する色とが異なる場合に、前記第2注目画素の周辺画素のうち前記第1注目画素に対応する色と同色となる前記周辺画素の画素値に基づいて前記第2注目画素の画素値を設定する変換処理部と、
前記合成位置情報に基づいて、前記第1注目画素の画素値に前記変換処理部により設定された前記第第2注目画素の画素値を合成し第3画像信号を生成する画像合成部と、
を備えたことを特徴とする画像合成装置。
(付記2)
前記変換処理部は、前記第2注目画素と隣り合う画素を前記周辺画素として設定し、前記周辺画素の画素値の平均値を算出して前記第2注目画素の画素値として設定する、
ことを特徴とする付記1に記載の画像合成装置。
(付記3)
前記変換処理部は、
前記制御部により値が設定されるレジスタ部と、
前記レジスタ部に設定された値に基づいて制御を行う制御処理部と、
前記制御処理部の制御に基づいて前記メモリから前記第2注目画素を含む前記第2画像信号の部分画像を入力するバッファ部と、
前記制御処理部から入力される前記レジスタ部に設定された値に基づいて前記バッファ部から前記部分画像を入力し前記部分画像の前記周辺画素から前記第2注目画素の画素値を算出して設定する画素値変換部と、
を備えたことを特徴とする付記1又は2に記載の画像合成装置。
(付記4)
前記レジスタ部は、前記第1及び第2画像信号の画素のタイプと前記合成位置情報とを含む値が前記制御部により設定され、
前記画素値変換部は、複数の演算回路を有し、前記レジスタ部に設定された前記第1及び第2画像信号の画素のタイプと前記合成位置情報とを含む値に基づいて前記第1及び第2画像信号の重畳される態様を検出し、検出結果に応じた演算回路を選択することを特徴とする付記1〜3のいずれか1つに記載の画像合成装置。
(付記5)
前記メモリから前記第2画像信号を入力し、前記第2画像信号に対して逆ガンマ補正を施して前記変換処理部に出力する逆ガンマ変換部を備えたことを特徴とする付記1〜4のいずれか1つに記載の画像合成装置。
(付記6)
画像入力装置から入力される第1画像信号と、メモリに格納される第2画像信号とを合成する画素位置の情報を含む合成位置情報を指示し、
前記合成位置情報に基づいて、前記第1画像信号の第1注目画素に合成すべき前記第2画像信号の第2注目画素に対して、前記第1注目画素に対応する色と、前記第2注目画素に対応する色とが異なる場合に、前記第2注目画素の周辺画素のうち前記第1注目画素に対応する色と同色となる前記周辺画素の画素値に基づいて前記第2注目画素の画素値を設定し、
前記合成位置情報に基づいて、前記第1画像信号の第1注目画素の画素値に前記設定された第2注目画素の画素値を合成して第3画像信号を生成する、
ことを特徴とする画像合成方法。
(付記7)
前記第2画像信号は、有色の画素値が設定された画素の周囲に、透明の画素値が設定された画素が設けられたことを特徴とする付記1〜付記5のいずれかに記載の画像合成装置。
(付記8)
画像入力装置から入力される第1画像信号と、メモリに格納される第2画像信号とを合成する画素位置の情報を含む合成位置情報を指示する制御部と、
前記合成位置情報に基づいて、前記第1画像信号の第1注目画素と前記第2画像信号の第2注目画素との間で、前記第1注目画素に対応する色と、前記第2画像信号の第2注目画素に対応する色とが異なる場合に、前記第2注目画素の周辺画素のうち前記第1注目画素に対応する色と同色となる前記周辺画素の画素値に基づいて前記第2注目画素の画素値を設定する変換処理部と、
前記合成位置情報に基づいて、前記第1注目画素の画素値に前記変換処理部により設定された前記第第2注目画素の画素値を合成し第3画像信号を生成する画像合成部と、
を備えたことを特徴とする画像合成回路。
Hereinafter, various aspects of the technology disclosed in the present application will be summarized as additional notes.
(Appendix 1)
A control unit for instructing combined position information including information on a pixel position for combining the first image signal input from the image input device and the second image signal stored in the memory;
Based on the combined position information, a color corresponding to the first target pixel between the first target pixel of the first image signal and the second target pixel of the second image signal, and the second image signal When the color corresponding to the second target pixel is different from the peripheral pixel of the second target pixel, the second target pixel is based on the pixel value of the peripheral pixel having the same color as the color corresponding to the first target pixel. A conversion processing unit for setting the pixel value of the target pixel;
An image combining unit that combines the pixel value of the second target pixel set by the conversion processing unit with the pixel value of the first target pixel based on the combined position information to generate a third image signal;
An image composition device comprising:
(Appendix 2)
The conversion processing unit sets a pixel adjacent to the second pixel of interest as the peripheral pixel, calculates an average value of pixel values of the peripheral pixels, and sets the pixel value of the second pixel of interest;
The image synthesizing device according to supplementary note 1, wherein:
(Appendix 3)
The conversion processing unit
A register unit whose value is set by the control unit;
A control processing unit that performs control based on a value set in the register unit;
A buffer unit for inputting a partial image of the second image signal including the second target pixel from the memory based on the control of the control processing unit;
Based on the value set in the register unit input from the control processing unit, the partial image is input from the buffer unit, and the pixel value of the second target pixel is calculated and set from the peripheral pixels of the partial image. A pixel value converter to
The image synthesizing device according to appendix 1 or 2, further comprising:
(Appendix 4)
In the register unit, a value including the pixel type of the first and second image signals and the combined position information is set by the control unit,
The pixel value conversion unit includes a plurality of arithmetic circuits, and the first and second image signals are based on values including pixel types of the first and second image signals set in the register unit and the combined position information. The image synthesizing device according to any one of appendices 1 to 3, wherein a mode in which the second image signal is superimposed is detected, and an arithmetic circuit corresponding to the detection result is selected.
(Appendix 5)
The supplementary notes 1 to 4 further comprising an inverse gamma conversion unit that inputs the second image signal from the memory, performs inverse gamma correction on the second image signal, and outputs the second image signal to the conversion processing unit. The image synthesis device according to any one of the above.
(Appendix 6)
Instructing combined position information including information on pixel positions for combining the first image signal input from the image input device and the second image signal stored in the memory;
Based on the combined position information, for the second target pixel of the second image signal to be combined with the first target pixel of the first image signal, the color corresponding to the first target pixel, and the second When the color corresponding to the target pixel is different from the peripheral pixels of the second target pixel, the second target pixel is determined based on the pixel value of the peripheral pixel that is the same color as the color corresponding to the first target pixel. Set the pixel value,
Based on the combined position information, a pixel value of the first target pixel of the first image signal is combined with a pixel value of the set second target pixel to generate a third image signal.
An image composition method characterized by the above.
(Appendix 7)
The image according to any one of appendix 1 to appendix 5, wherein the second image signal is provided with pixels set with transparent pixel values around pixels set with colored pixel values. Synthesizer.
(Appendix 8)
A control unit for instructing combined position information including information on a pixel position for combining the first image signal input from the image input device and the second image signal stored in the memory;
Based on the combined position information, a color corresponding to the first target pixel between the first target pixel of the first image signal and the second target pixel of the second image signal, and the second image signal When the color corresponding to the second target pixel is different from the peripheral pixel of the second target pixel, the second target pixel is based on the pixel value of the peripheral pixel having the same color as the color corresponding to the first target pixel. A conversion processing unit for setting the pixel value of the target pixel;
An image combining unit that combines the pixel value of the second target pixel set by the conversion processing unit with the pixel value of the first target pixel based on the combined position information to generate a third image signal;
An image synthesizing circuit comprising:

11 撮像部(画像入力装置)
12 画像処理装置(画像合成装置)
13 メモリ
22 画像合成部
23 画像処理部
41 補間処理部
26 CPU(制御部)
51 第1ベイヤ信号(第1画像信号)
52 第2ベイヤ信号(第2画像信号)
62 第1注目画素
63 第2注目画素
71 変換処理部
72 レジスタ部
73 制御処理部
74 バッファ部
75 画素値変換部
CI 合成位置情報
R1〜R3 レジスタ
11 Imaging unit (image input device)
12 Image processing device (image composition device)
13 Memory 22 Image composition unit 23 Image processing unit 41 Interpolation processing unit 26 CPU (control unit)
51 First Bayer signal (first image signal)
52 Second Bayer signal (second image signal)
62 First attention pixel 63 Second attention pixel 71 Conversion processing section 72 Register section 73 Control processing section 74 Buffer section 75 Pixel value conversion section CI Composite position information R1 to R3 registers

Claims (6)

画像入力装置から入力される第1画像信号と、メモリに格納される第2画像信号とを合成する画素位置の情報を含む合成位置情報を指示する制御部と、
前記合成位置情報に基づいて、前記第1画像信号の第1注目画素と前記第2画像信号の第2注目画素との間で、前記第1注目画素に対応する色と、前記第2画像信号の第2注目画素に対応する色とが異なる場合に、前記第2注目画素の周辺画素のうち前記第1注目画素に対応する色と同色となる前記周辺画素の画素値に基づいて前記第2注目画素の画素値を設定する変換処理部と、
前記合成位置情報に基づいて、前記第1注目画素の画素値に前記変換処理部により設定された前記第2注目画素の画素値を合成し第3画像信号を生成する画像合成部と、
を備えたことを特徴とする画像合成装置。
A control unit for instructing combined position information including information on a pixel position for combining the first image signal input from the image input device and the second image signal stored in the memory;
Based on the combined position information, a color corresponding to the first target pixel between the first target pixel of the first image signal and the second target pixel of the second image signal, and the second image signal When the color corresponding to the second target pixel is different from the peripheral pixel of the second target pixel, the second target pixel is based on the pixel value of the peripheral pixel having the same color as the color corresponding to the first target pixel. A conversion processing unit for setting the pixel value of the target pixel;
An image combining unit that generates a third image signal by combining the pixel value of the second target pixel set by the conversion processing unit with the pixel value of the first target pixel based on the combined position information;
An image composition device comprising:
前記変換処理部は、前記第2注目画素と隣り合う画素を前記周辺画素として設定し、前記周辺画素の画素値の平均値を算出して前記第2注目画素の画素値として設定する、
ことを特徴とする請求項1に記載の画像合成装置。
The conversion processing unit sets a pixel adjacent to the second pixel of interest as the peripheral pixel, calculates an average value of pixel values of the peripheral pixels, and sets the pixel value of the second pixel of interest;
The image synthesizing device according to claim 1.
前記変換処理部は、
前記制御部により値が設定されるレジスタ部と、
前記レジスタ部に設定された値に基づいて制御を行う制御処理部と、
前記制御処理部の制御に基づいて前記メモリから前記第2注目画素を含む前記第2画像信号の部分画像を入力するバッファ部と、
前記制御処理部から入力される前記レジスタ部に設定された値に基づいて前記バッファ部から前記部分画像を入力し前記部分画像の前記周辺画素から前記第2注目画素の画素値を算出して設定する画素値変換部と、
を備えたことを特徴とする請求項1又は2に記載の画像合成装置。
The conversion processing unit
A register unit whose value is set by the control unit;
A control processing unit that performs control based on a value set in the register unit;
A buffer unit for inputting a partial image of the second image signal including the second target pixel from the memory based on the control of the control processing unit;
Based on the value set in the register unit input from the control processing unit, the partial image is input from the buffer unit, and the pixel value of the second target pixel is calculated and set from the peripheral pixels of the partial image. A pixel value converter to
The image synthesizing device according to claim 1 or 2, further comprising:
前記レジスタ部は、前記第1及び第2画像信号の画素のタイプと前記合成位置情報とを含む値が前記制御部により設定され、
前記画素値変換部は、複数の演算回路を有し、前記レジスタ部に設定された前記第1及び第2画像信号の画素のタイプと前記合成位置情報とを含む値に基づいて前記第1及び第2画像信号の重畳される態様を検出し、前記検出結果に応じた演算回路を選択することを特徴とする請求項1〜3のいずれか1項に記載の画像合成装置。
In the register unit, a value including the pixel type of the first and second image signals and the combined position information is set by the control unit,
The pixel value conversion unit includes a plurality of arithmetic circuits, and the first and second image signals are based on values including pixel types of the first and second image signals set in the register unit and the combined position information. The image synthesizing apparatus according to claim 1, wherein a mode in which the second image signal is superimposed is detected, and an arithmetic circuit corresponding to the detection result is selected.
前記メモリから前記第2画像信号を入力し、前記第2画像信号に対して逆ガンマ補正を施して前記変換処理部に出力する逆ガンマ変換部を備えたことを特徴とする請求項1〜4のいずれか1項に記載の画像合成装置。   5. A reverse gamma conversion unit that inputs the second image signal from the memory, performs reverse gamma correction on the second image signal, and outputs the resultant signal to the conversion processing unit. The image composition device according to any one of the above. 画像入力装置から入力される第1画像信号と、メモリに格納される第2画像信号とを合成する画素位置の情報を含む合成位置情報を指示し、
前記合成位置情報に基づいて、前記第1画像信号の第1注目画素に合成すべき前記第2画像信号の第2注目画素に対して、前記第1注目画素に対応する色と、前記第2注目画素に対応する色とが異なる場合に、前記第2注目画素の周辺画素のうち前記第1注目画素に対応する色と同色となる前記周辺画素の画素値に基づいて前記第2注目画素の画素値を設定し、
前記合成位置情報に基づいて、前記第1画像信号の第1注目画素に前記設定された第2注目画素を合成して第3画像信号を生成する、
ことを特徴とする画像合成方法。
Instructing combined position information including information on pixel positions for combining the first image signal input from the image input device and the second image signal stored in the memory;
Based on the combined position information, for the second target pixel of the second image signal to be combined with the first target pixel of the first image signal, the color corresponding to the first target pixel, and the second When the color corresponding to the target pixel is different from the peripheral pixels of the second target pixel, the second target pixel is determined based on the pixel value of the peripheral pixel that is the same color as the color corresponding to the first target pixel. Set the pixel value,
Based on the combined position information, a third image signal is generated by combining the set second target pixel with the first target pixel of the first image signal.
An image composition method characterized by the above.
JP2012219562A 2012-10-01 2012-10-01 Image composition apparatus and image composition method Active JP6048046B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012219562A JP6048046B2 (en) 2012-10-01 2012-10-01 Image composition apparatus and image composition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012219562A JP6048046B2 (en) 2012-10-01 2012-10-01 Image composition apparatus and image composition method

Publications (2)

Publication Number Publication Date
JP2014072846A true JP2014072846A (en) 2014-04-21
JP6048046B2 JP6048046B2 (en) 2016-12-21

Family

ID=50747632

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012219562A Active JP6048046B2 (en) 2012-10-01 2012-10-01 Image composition apparatus and image composition method

Country Status (1)

Country Link
JP (1) JP6048046B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019239978A1 (en) * 2018-06-12 2019-12-19 マクセルシステムテック株式会社 Image processing device and image capture device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004048663A (en) * 2002-05-21 2004-02-12 Casio Comput Co Ltd Image pickup device, image composition method and image synthesis program
JP2006157568A (en) * 2004-11-30 2006-06-15 Konica Minolta Holdings Inc Imaging apparatus and program
JP2011199786A (en) * 2010-03-23 2011-10-06 Olympus Corp Apparatus, method and program for processing image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004048663A (en) * 2002-05-21 2004-02-12 Casio Comput Co Ltd Image pickup device, image composition method and image synthesis program
JP2006157568A (en) * 2004-11-30 2006-06-15 Konica Minolta Holdings Inc Imaging apparatus and program
JP2011199786A (en) * 2010-03-23 2011-10-06 Olympus Corp Apparatus, method and program for processing image

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019239978A1 (en) * 2018-06-12 2019-12-19 マクセルシステムテック株式会社 Image processing device and image capture device
JP2019216351A (en) * 2018-06-12 2019-12-19 マクセルシステムテック株式会社 Image processing device and imaging device
CN112262571A (en) * 2018-06-12 2021-01-22 麦克赛尔新领域株式会社 Image processing apparatus and imaging apparatus
CN112262571B (en) * 2018-06-12 2022-06-24 麦克赛尔新领域株式会社 Image processing apparatus and imaging apparatus

Also Published As

Publication number Publication date
JP6048046B2 (en) 2016-12-21

Similar Documents

Publication Publication Date Title
JP5962328B2 (en) Data transfer device, data transfer method, and semiconductor device
JP4971442B2 (en) Image processing apparatus and method for pixel data conversion
US8861846B2 (en) Image processing apparatus, image processing method, and program for performing superimposition on raw image or full color image
US20120050309A1 (en) Display control apparatus and display control method
JP5948508B2 (en) Video processor and method of operating video processor
JP4263190B2 (en) Video composition circuit
JP6948810B2 (en) Image processing system
US10713757B2 (en) Image processing apparatus, control method thereof, and storage medium
US8565542B2 (en) Data processing apparatus and data processing method
US8482438B2 (en) Data processing device and data processing method
JP6048046B2 (en) Image composition apparatus and image composition method
WO2017187508A1 (en) Display processing device and imaging device
JP4215014B2 (en) Image processing apparatus and image processing program
CN113242413B (en) Interpolation calculation method and system for anti-sawtooth RCCB filter array
JP2008116812A (en) Display apparatus, projector, and display method
US20130021371A1 (en) Image display apparatus and image display method
US8966145B2 (en) Data conversion apparatus and method
US11763417B2 (en) Semiconductor device and image processing system for processing regions of interest images
JP2017016511A (en) Distortion correction image processor and program
US20120144150A1 (en) Data processing apparatus
JP2005266792A (en) Memory efficient method and apparatus for displaying large overlaid camera image
JP2009260788A (en) Imaging unit
JP2006050584A (en) Image processing device
JP2018067893A (en) Image processing apparatus and image processing method
US10475158B2 (en) Image processing device

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20150605

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150701

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20151215

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20151217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160420

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160426

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160616

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161107

R150 Certificate of patent or registration of utility model

Ref document number: 6048046

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150