JP4882954B2 - Imaging apparatus, information synthesis apparatus, and program - Google Patents
Imaging apparatus, information synthesis apparatus, and program Download PDFInfo
- Publication number
- JP4882954B2 JP4882954B2 JP2007266727A JP2007266727A JP4882954B2 JP 4882954 B2 JP4882954 B2 JP 4882954B2 JP 2007266727 A JP2007266727 A JP 2007266727A JP 2007266727 A JP2007266727 A JP 2007266727A JP 4882954 B2 JP4882954 B2 JP 4882954B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- data
- image
- unit
- image processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Processing (AREA)
- Color Television Image Signal Generators (AREA)
- Storing Facsimile Image Data (AREA)
- Editing Of Facsimile Originals (AREA)
- Studio Devices (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Input (AREA)
Description
本発明は、画像上に情報を合成する撮像装置、情報合成装置及びプログラムに関する。 The present invention relates to an imaging device, an information synthesis device, and a program for synthesizing information on an image.
はじめに、以下文中ではベイヤー配列の画像データをベイヤーデータ、YUVフォーマットの画像データをYUVデータ、JPEG(Joint Photographic Experts Group)フォーマットの画像データをJPEGデータと称するものとする。 In the following, Bayer array image data is referred to as Bayer data, YUV format image data is referred to as YUV data, and JPEG (Joint Photographic Experts Group) format image data is referred to as JPEG data.
従来、メモリの一部をリングバッファとして使用し、例えばベイヤーデータをYUVデータに変換する際に合わせて拡大/縮小を行なう画像処理の技術が存在する。(例えば、特許文献1)
一般にデジタルカメラに搭載された画像処理システムでは、撮影により撮像素子から得られたベイヤーデータをYUVデータに変換した後、さらに記録に適したJPEGデータに変換してデータ量を圧縮してから記録媒体となるメモリカードに記録するものとしていた。
Conventionally, there is an image processing technique that uses a part of a memory as a ring buffer and performs enlargement / reduction in accordance with, for example, conversion of Bayer data into YUV data. (For example, Patent Document 1)
In general, in an image processing system mounted on a digital camera, after converting Bayer data obtained from an image sensor by photographing into YUV data, the data is further converted into JPEG data suitable for recording, and the data amount is compressed, and then a recording medium It was supposed to be recorded on a memory card.
記録する画像中に例えば日付情報等の文字画像を重畳して記録させたい場合、従来はベイヤーデータの段階で文字画像を合成した上でリングバッファへデータを転送するものとしていた。 For example, when it is desired to superimpose a character image such as date information on the image to be recorded, the character image is synthesized at the Bayer data stage and then transferred to the ring buffer.
しかしながら、ベイヤーデータの段階で文字画像を重畳すると、YUVデータへの変換時に、データを縮小する場合には細線が消失し、あるいはデータを拡大する場合には一部の線が太くなってしまうなど、文字画像部分が縮小/拡大に伴って変形し、正しい文字画像が得られなくなるという不具合がある。
上記のような不具合を避けるため、文字画像の合成を行なう際にはメモリをリングバッファとして使用するのを一時的に取り止め、1フレーム分の縮小/拡大後のYUVデータをメモリ上に展開した状態でソフトウェア的に文字画像を重畳(部分的に上書き)した後、そのYUVデータをJPEGデータに変換するという手法を採ることも考えられる。 In order to avoid the above problems, the use of the memory as a ring buffer is temporarily stopped when combining character images, and the YUV data after reduction / enlargement for one frame is developed on the memory. Then, after superimposing (partially overwriting) a character image in software, it is conceivable to adopt a method of converting the YUV data into JPEG data.
しかしながら、そうした場合、上記の画像劣化はないものの、メモリの使用領域が大幅に増えると共に、画像データの変換により多くの時間を要するという他の不具合が発生し、現実的ではない。 However, in such a case, although there is no image deterioration as described above, the use area of the memory is greatly increased, and another problem that a lot of time is required for conversion of the image data occurs, which is not realistic.
本発明は上記のような実情に鑑みてなされたもので、その目的とするところは、画像処理を行なうメモリの使用領域をむやみに広げることなく、画像データ中への情報の合成を高品質に実行することが可能な撮像装置、情報合成装置及びプログラムを提供することにある。 The present invention has been made in view of the above circumstances, and the object of the present invention is to synthesize information into image data with high quality without unnecessarily expanding the use area of a memory for performing image processing. It is an object to provide an imaging apparatus, an information synthesis apparatus, and a program that can be executed.
請求項1記載の発明は、被写体を撮影して全体画像データを取得する撮影手段と、記全体画像データを記憶する第1の記憶手段と、上記第1の記憶手段から所定の領域分割単位で転送されてくる画像データに対して第1の画像処理を施して部分画像データを得る第1の画像処理手段と、上記第1の画像処理手段で得た部分画像データを保持する第2の記憶手段と、上記第2の記憶手段が保持する部分画像データ中の所定箇所に情報データを合成する合成手段と、上記第2の記憶手段から転送されてくる上記部分画像データに対して第2の画像処理を施す第2の画像処理手段と、上記第1の記憶手段から上記第2の画像処理手段に至る部分画像データの転送動作を制御する転送制御手段と、上記合成手段が上記情報データの合成を行う際に、上記転送制御手段による部分画像データの転送動作を一時停止する停止制御手段とを備えることを特徴とする。 According to the first aspect of the present invention, a photographing means for photographing the subject to acquire the whole image data, a first storage means for storing the whole image data, and a predetermined area division unit from the first storage means. First image processing means for obtaining partial image data by subjecting the transferred image data to first image processing, and a second storage for holding partial image data obtained by the first image processing means Means for synthesizing information data at a predetermined location in the partial image data held by the second storage means, and a second for the partial image data transferred from the second storage means. A second image processing unit that performs image processing; a transfer control unit that controls a transfer operation of partial image data from the first storage unit to the second image processing unit; and When performing synthesis Characterized in that it comprises a stop control means for stopping temporarily the transfer operation of the partial image data by the transfer control means.
請求項2記載の発明は、上記請求項1記載の発明において、上記第2の画像処理手段で得た部分画像データを保持する第3の記憶手段を備え、上記転送制御手段は、上記第1の記憶手段から上記第3の記憶手段に至る部分画像データの転送動作を制御することを特徴とする。 According to a second aspect of the invention, there is provided the third aspect of the invention according to the first aspect, further comprising third storage means for holding partial image data obtained by the second image processing means, wherein the transfer control means is the first control means. The transfer operation of the partial image data from the storage means to the third storage means is controlled.
請求項3記載の発明は、上記請求項1記載の発明において、上記第1の画像処理手段は、上記第1の記憶手段から所定の領域分割単位で転送されてくる画像データに対して拡大又は縮小の処理を含む第1の画像処理を施して部分画像データを得ることを特徴とする。 According to a third aspect of the invention, in the first aspect of the invention, the first image processing means expands or reduces the image data transferred from the first storage means in a predetermined area division unit. Partial image data is obtained by performing first image processing including reduction processing.
請求項4記載の発明は、上記請求項1記載の発明において、上記第1の画像処理手段は、上記第1の記憶手段から所定の領域分割単位で転送されてくる画像データに対して画像の色変換処理を含む第1の画像処理を施して部分画像データを得ることを特徴とする。 According to a fourth aspect of the present invention, in the first aspect of the invention, the first image processing unit is configured to store an image of image data transferred from the first storage unit in a predetermined area division unit. Partial image data is obtained by performing first image processing including color conversion processing.
請求項5記載の発明は、上記請求項1記載の発明において、上記第2の画像処理手段は、上記第2の記憶手段から転送されてくる上記部分画像データに対して圧縮処理を含む第2の画像処理を施すことを特徴とする。 According to a fifth aspect of the present invention, in the first aspect of the invention, the second image processing means includes a second processing that includes compression processing for the partial image data transferred from the second storage means. The image processing is performed.
請求項6記載の発明は、上記請求項1記載の発明において、上記領域分割単位は、上記全体画像データを所定ライン数単位で分割したものであることを特徴とする。 According to a sixth aspect of the invention, in the first aspect of the invention, the area division unit is obtained by dividing the entire image data by a predetermined number of lines.
請求項7記載の発明は、上記請求項1記載の発明において、上記転送制御手段は、上記領域分割単位で転送動作を調整することを特徴とする。 According to a seventh aspect of the invention, in the first aspect of the invention, the transfer control means adjusts a transfer operation in units of the area division.
請求項8記載の発明は、上記請求項1記載の発明において、上記合成手段は、上記合成を、部分画像データ毎に行うことを特徴とする。
The invention according to
請求項9記載の発明は、上記請求項1記載の発明において、上記合成手段で合成する画像データ中に合成する情報データの位置と大きさとを判別する判別手段をさらに具備し、上記停止制御手段は、上記判別手段での判別結果に応じて上記部分画像データの転送動作を停止制御することを特徴とする。 According to a ninth aspect of the present invention, in the first aspect of the present invention, the stop control means further comprises a determination means for determining the position and size of the information data to be synthesized in the image data synthesized by the synthesis means. Is characterized in that the transfer operation of the partial image data is controlled to stop according to the determination result of the determination means.
請求項10記載の発明は、上記請求項1記載の発明において、上記合成手段は、上記合成を、所定数の部分画像データ分まとめて行うことを特徴とする。 According to a tenth aspect of the present invention, in the first aspect of the invention, the synthesizing unit performs the synthesizing for a predetermined number of partial image data.
請求項11記載の発明は、上記請求項1記載の発明において、上記停止制御手段は、上記第1の画像処理手段が第1の画像処理を施して部分画像データを得る前に、上記部分画像データの転送動作を停止制御するタイミングを決定しておくことを特徴とする。 According to an eleventh aspect of the present invention, in the first aspect of the present invention, the stop control means may be configured such that the first image processing means performs the first image processing before obtaining the partial image data. The timing for stopping the data transfer operation is determined.
請求項12記載の発明は、上記請求項1記載の発明において、上記部分画像データは、前記情報データを合成すべき部分画像データであるか否かを判断する判断手段をさらに具備し、上記停止制御手段は、上記判断手段での判断結果に応じて上記部分画像データの転送動作を停止制御することを特徴とする。
The invention according to
請求項13記載の発明は、全体画像データを記憶する第1の記憶手段と、第2の記憶手段とを備える画像処理装置に搭載される情報合成装置であって、上記第1の記憶手段から所定の領域分割単位で転送されてくる画像データに対して第1の画像処理を施して部分画像データを得て、この部分画像データは上記第2の記憶手段への転送されるように構成される第1の画像処理手段と、上記第2の記憶手段が保持する部分画像データ中の所定箇所に情報データを合成する合成手段と、上記第2の記憶手段から転送されてくる上記部分画像データに対して第2の画像処理を施す第2の画像処理手段と、上記第1の記憶手段から上記第2の画像処理手段に至る部分画像データの転送動作を制御する転送制御手段と、上記合成手段が上記情報データの合成を行う際に、上記転送制御手段による部分画像データの転送動作を一時停止する停止制御手段とを備えることを特徴とする。 A thirteenth aspect of the present invention is an information synthesizing device mounted on an image processing apparatus comprising a first storage means for storing the entire image data and a second storage means, from the first storage means. The first image processing is performed on the image data transferred in a predetermined area division unit to obtain partial image data, and the partial image data is transferred to the second storage means. First image processing means, composition means for synthesizing information data at a predetermined location in the partial image data held by the second storage means, and the partial image data transferred from the second storage means Second image processing means for performing second image processing on the image, transfer control means for controlling the transfer operation of partial image data from the first storage means to the second image processing means, and the composition Means of the information data When performing deposition, characterized by comprising a stop control means for temporarily stopping the transfer operation of the partial image data by the transfer control means.
請求項14記載の発明は、全体画像データを記憶する第1の記憶手段と、第2の記憶手段とを備える画像処理装置に搭載される情報合成装置であって、上記第1の記憶手段から所定の領域分割単位で転送されてくる画像データに対して第1の画像処理を施して部分画像データを得て、この部分画像データは上記第2の記憶手段への転送されるように構成される第1の画像処理手段と、上記第2の記憶手段が保持する部分画像データ中の所定箇所に情報データを合成する合成手段と、上記第2の記憶手段から転送されてくる上記部分画像データに対して第2の画像処理を施す第2の画像処理手段とを備えることを特徴とする情報合成装置に、上記第1の記憶手段から上記第2の画像処理手段に至る部分画像データの転送動作を制御する転送制御手段と、上記合成手段が上記情報データの合成を行う際に、上記転送制御手段による部分画像データの転送動作を一時停止する停止制御手段とを実現させることを特徴とする。 A fourteenth aspect of the present invention is an information synthesizing device mounted on an image processing apparatus comprising a first storage means for storing whole image data and a second storage means, from the first storage means. The first image processing is performed on the image data transferred in a predetermined area division unit to obtain partial image data, and the partial image data is transferred to the second storage means. First image processing means, composition means for synthesizing information data at a predetermined location in the partial image data held by the second storage means, and the partial image data transferred from the second storage means Transfer of partial image data from the first storage means to the second image processing means to an information synthesizing apparatus comprising a second image processing means for performing second image processing on Transfer control to control operation And the step, when the combining means performs a synthesis of the information data, characterized in that to realize a stop control means for temporarily stopping the transfer operation of the partial image data by the transfer control means.
本発明によれば、画像処理を行なうメモリの使用領域をむやみに広げることなく、画像データ中への情報の合成を高品質に実行することが可能となる。 According to the present invention, it is possible to synthesize information in image data with high quality without unnecessarily widening a use area of a memory for performing image processing.
以下本発明をデジタルカメラに適用した場合の一実施形態について図面を参照して説明する。
(構成)
図1は本実施形態全体の主要な回路構成を示すものである。1はカメラ全体の動作制御を司るシステムコントローラとしてのCPUである。このCPU1に対して、コントロールバスCB及びデータバスDBを介して画像処理IC2が接続される。
An embodiment in which the present invention is applied to a digital camera will be described below with reference to the drawings.
(Constitution)
FIG. 1 shows a main circuit configuration of the entire embodiment.
この画像処理IC2は、後述する画像の撮影から記録に至る画像データに関する処理全般を行なう。この画像処理IC2は、メインメモリであるRAM3、及びプログラムデータや固定データを記憶したROM5と上記データバスDBを介して接続される。
The image processing IC 2 performs all processes related to image data from image capturing to recording, which will be described later. The
さらに画像処理IC2は、CCD(Charge Coupled Device:電荷結合素子)4、上記ROM5、LCD(Liquid Crystal Display:液晶ディスプレイ)6、及びキー入力部7、メモリカードインターフェイス8と直接接続される。
Further, the
CCD4はこのカメラの撮像素子であり、原色系ベイヤー配列のカラーフィルタを有するものとする。LCD6は、カメラの背面側に設けられた、バックライト付きのカラー液晶表示パネルであり、モニタ画像や再生画像等を表示する。
The
キー入力部7は、電源キーやシャッタキー、モードキー、カーソルキー、セットキー等からなり、ユーザの操作に応じたキー操作信号を画像処理IC2へ出力する。
The key input unit 7 includes a power key, a shutter key, a mode key, a cursor key, a set key, and the like, and outputs a key operation signal corresponding to a user operation to the
メモリカードインターフェイス8は、このカメラの記録媒体であり、撮影時にはこのカメラに着脱自在に装着されるメモリカード(図示せず)への画像データ等の書込み、再生時には同メモリカードからの画像データに読出しを行なう。
上記各回路に対して電源部9から必要な電力が供給される。
The
Necessary power is supplied from the
図2は、上記画像処理IC2内のより詳細な機能回路構成を示すブロック図である。
同図中、11はDMA(Direct Memory Access)コントローラ(図では「DMAC」と称す)である。
FIG. 2 is a block diagram showing a more detailed functional circuit configuration in the
In the figure,
このDMAコントローラ11は、CCD4からCCD制御部13を介して画像データを取込んで上記RAM3に書込み、あるいは上記RAM3に書込まれた画像データを読出して、各種の処理後に再度RAM3に書込むなどの際のデータの入出力制御を行なう。
メモリ制御部12は、このDMAコントローラ11の制御の下に上記RAM3、ROM5、及びメモリカードインターフェイス8との間でのデータの送受を行なう。
The
The
さらにこのDMAコントローラ11に対して、画像データ転送部17、JPEG変換部16、画像合成部18、及びLCD制御部19が接続される。
画像データ転送部17は、画像処理部14と画素数変換部15、上記JPEG変換部16、及び画像データ転送部17でのデータの転送制御を行なう。
Further, an image
The image
画像処理部14は、ベイヤーデータをYUVデータに変換して画素数変換部15へ出力する。画素数変換部15は、YUVデータの拡大処理または縮小処理を行ない、処理後のデータを画像データ転送部17へ出力する。
The
JPEG変換部16は、YUVデータを所定のデータ圧縮処理によりJPEGデータに変換し、DMAコントローラ11へ出力する。画像合成部18は、画像データ中に文字画像等を合成し、合成結果をDMAコントローラ11へ出力する。
The
LCD制御部19は、上記LCD6を制御して撮影時のモニタ画像他、画像の表示制御を行なう。キー入力制御部20は、上記キー入力部7から入力されたキー操作信号を受け付け、対応するキーコード情報を上記CPU1へ出力する。
The
以下、指定された画像データの記録サイズが小さく、RAM3の容量に余裕がある場合の撮影時の大まかな画像処理の流れについて説明する。
撮影が指示されてCCD制御部13がCCD4から画像データ(ベイヤーデータ)を取込み、RAM3に記憶させる。このRAM3に記憶されたベイヤーデータをDMAコントローラ11が読出し、画像データ転送部17を介して画像処理部14でYUVデータに変換して画素数変換部15へ出力する。
A rough flow of image processing at the time of shooting when the recording size of designated image data is small and the capacity of the
When the photographing is instructed, the
画素数変換部15は、画像処理部14からのYUVデータを所望の画素数サイズに変換して画像データ転送部17へ出力するもので、画像データ転送部17がこのYUVデータをRAM3へ記憶させる。
The pixel
次に、JPEG変換部16がRAM3からYUVデータを読出してJPEGデータに変換し、再度RAM3に記憶させる。
Next, the
文字画像等の画像合成が必要な際には、YUVデータの段階で画像合成部18が必要な画像構成処理を行なった後に、JPEG変換部16がそれをJPEGデータに変換する。
When image synthesis of a character image or the like is necessary, after the
(第1の動作例)
以下、CCD4を用いた撮影により、図3(A)に示す横64ピクセル×縦48ピクセル(ライン)のベイヤーデータを得、これを図3(B)に示すように縦横共に2倍して横128ピクセル×縦96ピクセル(ライン)のYUVデータに変換及び拡大した後に、同サイズのJPEGデータに変換してメモリカードインターフェイス8より図示しないメモリカードに記録させる場合の第1の動作について説明する。
(First operation example)
Hereinafter, Bayer data of 64 pixels wide × 48 pixels vertical (line) shown in FIG. 3A is obtained by photographing using the
この場合、必要により図3(B)に示す画像中、ピクセルによる左上端点を原点座標(0,0)として座標(80,72)の位置を基準とし、任意の矩形領域、例えば横48ピクセル×縦16ピクセル(ライン)の大きさの文字画像データCIを合成するものとし、合成後のYUVデータをJPEGデータに変換する。 In this case, if necessary, in the image shown in FIG. 3B, the upper left end point of the pixel is the origin coordinate (0, 0) and the position of the coordinates (80, 72) is used as a reference, and an arbitrary rectangular area, for example, horizontal 48 pixels × It is assumed that character image data CI having a size of 16 pixels (lines) in length is synthesized, and the synthesized YUV data is converted into JPEG data.
上記文字画像データCIとしては、図示するような「2007.4.1」のようなデート(日付)情報でもよいし、さらには時刻、シャッタ速度や絞り(F)値などの撮影データ、その他の文字画像データでもよく、さらには記号やシンボル等の文字以外の各種画像情報を考えることもできる。 The character image data CI may be date (date) information such as “2007.4.1” as shown in the figure, and further, photographing data such as time, shutter speed and aperture (F) value, and the like. Character image data may be used, and various image information other than characters such as symbols and symbols can be considered.
後述するリングバッファ動作においては、JPEG変換処理が基本的に16ライン単位でデータ処理を行なうため、これを1領域分割単位として「1ベルト」と称するものとする。 In the ring buffer operation described later, since the JPEG conversion process basically performs data processing in units of 16 lines, this is referred to as “one belt” as one area division unit.
したがって、縦横共に2倍に拡大する前のベイヤーデータでは、対応するように8ラインを1ベルトとして読出し、リングバッファに転送するものとする。 Therefore, in the Bayer data before being doubled both vertically and horizontally, 8 lines are read as 1 belt so as to correspond, and transferred to the ring buffer.
図4は、画像撮影時に画像データ転送部17が後述する画像処理を実行するのに先立って実行しておく、各パラメータの事前設定処理を行なうためのフローチャートであり、その制御動作はCPU1の制御の下に画像処理IC2内で主としてDMAC11が行なう。
FIG. 4 is a flowchart for performing a presetting process for each parameter, which is executed before the image
その当初には、CCD制御部13がDMAC11化に取込んだ、画像サイズ((横)64(ピクセル),(縦)48(ピクセル))(以下座標データ形式で(64,48)のように表記)のベイヤーデータをRAM3のアドレス「0x000000000」に保存する(ステップS101)。
At the beginning, the image size ((horizontal) 64 (pixels), (vertical) 48 (pixels)) (hereinafter referred to as (64, 48) in the coordinate data format) taken into the
次いで、DMAC11が画像処理部14にベイヤーデータからYUVデータへの変換処理設定を行なう(ステップS102)。加えて、DMAC11が画素数変換部15に「2」倍での拡大処理を行なうよう設定する(ステップS103)。
Next, the
さらに、入力画像サイズ(64,48)と出力画像サイズ(128,96)から、ベルト数「6」、ベルトライン数「16」を決定する(ステップS104)。 Further, the number of belts “6” and the number of belt lines “16” are determined from the input image size (64, 48) and the output image size (128, 96) (step S104).
以上決定した内容を含め、画像データ転送部17に
入力画像アドレス「0x000000000」、
入力画像サイズ(64,48)、
出力画像アドレス「0x100000000」、
出力画像サイズ(128,96)、
ベルト数「6」、
入力ベルトライン数「8」、及び
出力ベルトライン数「16」
を設定する(ステップS105)。
The image
Input image address “0x000000000000”,
Input image size (64, 48),
Output image address “0x100000000”,
Output image size (128,96),
Number of belts “6”,
Number of input belt lines “8”, and
Number of output belt lines “16”
Is set (step S105).
併せてJPEG変換部16にも、
入力画像アドレス「0x100000000」、
出力画像アドレス「0x200000000」、
画像サイズ(128,96)、
ベルト数「6」、及び
ベルトライン数「16」
を設定する(ステップS106)。
At the same time, the
Input image address “0x100000000”,
Output image address “0x200000000”,
Image size (128,96),
Number of belts “6”, and
Number of beltlines "16"
Is set (step S106).
さらに、合成する文字画像データの基準座標(80,72)と合成サイズ(48,16)から、合成位置に対応する停止ベルトの位置「5,6」を決定する(ステップS107)。 Further, the position “5, 6” of the stop belt corresponding to the synthesis position is determined from the reference coordinates (80, 72) and the synthesis size (48, 16) of the character image data to be synthesized (step S107).
この決定結果に従い、画像合成部18に合成データの設定として
文字画像の合成位置の座標(80,72)、
合成サイズ(48,16)、及び
停止ベルト数「2」
を設定する(ステップS108)。
次いで、画像データ転送部17にも停止ベルトの位置「5,6」を設定する(ステップS109)。
According to this determination result, the
Coordinates (80, 72) of the character image composition position;
Composite size (48, 16), and
Number of stop belts “2”
Is set (step S108).
Next, the position “5, 6” of the stop belt is also set in the image data transfer unit 17 (step S109).
以上で、画像処理部14、画素数変換部15、画像合成部18、JPEG変換部16、及び画像データ転送部17への必要な事前設定が完了したものとして、上記各回路の動作を開始する設定を行ない(ステップS110)、以上でこの図4の処理を終了すると共に、撮影に伴う画像の記録までの本動作に移行する。
As described above, the operations of the above circuits are started on the assumption that necessary presetting has been completed for the
図5は、画像データ転送部17、JPEG変換部16、及び画像合成部18で並列して実行される処理内容を示すものである。まず、ベルト位置「1」の1ベルト(8ライン)分のベイヤーデータを、より細かいデータ単位でRAM3のベイヤーデータ領域から、画像処理部14に転送して上記設定した通り16ラインのYUVデータに変換させた後に、画素数変換部15に転送して上記設定した通り「2」倍の倍率で画素数を拡大する処理を実行させて、RAM3のリングバッファ領域へ転送するように制御する(ステップS201)。
FIG. 5 shows the processing contents executed in parallel by the image
この後、画像データ転送部17では現在画像処理部14、画素数変換部15で処理させた画像データが予め設定した停止ベルトのものであるか否かを判断する(ステップS202)。
Thereafter, the image
ここでベルト位置「1」が設定した停止ベルトではないと判断すると、そのままJPEG変換部16に転送終了ライン位置「1」と処理終了信号とを発行した後(ステップS205)、現在転送した画像データのベルト位置がベイヤーデータの最終ベルトではないことを確認した上で(ステップS206)、上記ステップS201からの処理に戻る。
If it is determined that the belt position “1” is not the set stop belt, the transfer end line position “1” and the processing end signal are issued to the
JPEG変換部16では、画像データ転送部17から転送終了ライン位置と処理終了信号とを受信するのを待機している(ステップS301)。
しかして、画像データ転送部17から処理終了信号を受信すると上記ステップS301でこれを判断し、リングバッファに保持されるベルト位置「1」の16ライン分のYUVデータをより細かいデータ単位でJPEG変換部16へ転送してJPEGデータに変換し、変換後のJPEGデータをRAM3のJPEGデータ領域内の該当領域に書込む(ステップS302)。
The
When the processing end signal is received from the image
その後、JPEG変換部16は変換を終えたデータが最終ベルトではないことを確認した上で(ステップS303)、上記ステップS301からの処理に戻り、画像データ転送部17から処理終了信号を受信して次のベルト分のデータの処理を行なうのを待機する。
Thereafter, after confirming that the converted data is not the final belt (step S303), the
こうして画像データ転送部17、画像処理部14、画素数変換部15、及びJPEG変換部16での処理を繰返し実行することにより、合成すべき文字画像データがないベルト位置ではRAM3のリングバッファを用いて1ベルト分ずつ処理が実行されていく。
Thus, by repeatedly executing the processing in the image
図7は、RAM3内部のデータ領域区分例(リングバッファを使用する場合と使用しない場合)を示すものである。 FIG. 7 shows an example of data area division in the RAM 3 (when the ring buffer is used and when it is not used).
図7(A)では、ベイヤーデータ格納領域、YUVデータ格納領域、JPEGデータ格納領域、表示データ格納領域を設けている。ベイヤーデータ→YUVデータ→JPEGデータへの変換は、上記した1領域分割単位である「1ベルト」毎に順次行い、3つの領域を同時に利用していた。つまり、上述したすべての領域は、1画像分のデータを格納する領域としていた。 In FIG. 7A, a Bayer data storage area, a YUV data storage area, a JPEG data storage area, and a display data storage area are provided. Conversion from Bayer data → YUV data → JPEG data was sequentially performed for each “1 belt”, which is one area division unit, and three areas were used simultaneously. That is, all the areas described above are areas for storing data for one image.
これに対して、図7(B)では、YUVデータ格納領域の代わりに、リングバッファ領域を設けている。上記と同様にして1領域分割単位である「1ベルト」毎に順次データ変換を行なうとした場合に、YUV領域は、通常概略的には前記領域分割単位毎にデータが通り過ぎるだけなのでYUVデータ領域を用意しても、使用していない領域が多かった。つまりこれをリングバッファ領域に代替することで、同様の処理を、より少ない領域で処理することが可能となり、全体として、RAM3の容量をより効果的に利用することができていることを示している。
In contrast, in FIG. 7B, a ring buffer area is provided instead of the YUV data storage area. In the same manner as described above, when data conversion is sequentially performed for each "1 belt" which is a unit of area division, the YUV area is generally YUV data area because data generally passes only for each area division unit. Even if prepared, there were many unused areas. In other words, by replacing this with a ring buffer area, it is possible to perform the same process in a smaller area, and as a whole, the capacity of the
上記では、YUVデータ→JPEGデータへの変換の処理を開示したが、この処理の流れは、YUVデータ→表示データへの変換においても同様である。 In the above description, the process of conversion from YUV data to JPEG data has been disclosed, but the process flow is the same in the conversion from YUV data to display data.
ここで言う表示データとは、サムネイル画像のことである。 The display data referred to here is a thumbnail image.
因みに、ベイヤーデータ領域に画像データを入力する際と、JPEGデータ領域から画像を出力する際と、表示データ領域から画像を出力する際は、1領域分割単位である「1ベルト」毎に処理するのではなく、1画像毎にデータ処理を行なっている。 Incidentally, when inputting image data into the Bayer data area, when outputting an image from the JPEG data area, and when outputting an image from the display data area, processing is performed for each "1 belt" that is a unit of area division. Instead, data processing is performed for each image.
下記により詳細に説明する。 This will be described in more detail below.
図6は、合成すべき文字画像データがない場合のベイヤーデータからYUVデータ、JPEGデータに拡大される撮影画像を例示するものである。なお、同図中では、理解を容易にするために画像データに実線の矩形フレームを付加して説明しているが、実際のデータ変換においてはそのような実線の矩形フレームは存在しない。 FIG. 6 exemplifies a captured image that is enlarged from Bayer data to YUV data and JPEG data when there is no character image data to be synthesized. In the figure, for the sake of easy understanding, a solid rectangular frame is added to the image data. However, in actual data conversion, such a solid rectangular frame does not exist.
図6(A)は、参考までにRAM3でリングバッファを使用せずに画像全体をベイヤーデータからYUVデータに変換し、さらにYUVデータからJPEGデータに変換した場合の変換後の画像を例示するものである。
FIG. 6A illustrates the converted image when the entire image is converted from Bayer data to YUV data without using a ring buffer in the
このようにRAM3にリングバッファを設けないで処理する場合、図7(A)に示すようにRAM3では画像に撮影に際して、撮影により得たベイヤーデータ、YUVデータ、JPEGデータ、及びLCD6で表示するための表示データの領域が必要となり、RAM3の記憶容量としてより大きなものが必要となる。
When processing is performed without providing a ring buffer in the
一方で、図6(B)は図7(B)に示す如くRAM3に2ベルト分の容量のリングバッファを設けた場合のリングバッファでの画像データの処理順序を例示するものである。同リングバッファでは、拡大後のYUVデータを同図(B−1)〜(B−5)に示すように1ベルト分ずつ処理してJPEGデータに変換していくため、全6ベルト分の処理を終えた時点で1フレーム分のJPEGデータを取得することができる。
On the other hand, FIG. 6B illustrates the processing order of image data in the ring buffer when a ring buffer having a capacity of two belts is provided in the
したがって、図7(B)に示した如く1フレーム分のYUVデータと2ベルト分のリングバッファの容量の差分だけRAM3をより記憶容量の小さなもので構成可能となる。
Therefore, as shown in FIG. 7B, the
次に、文字画像の合成を行なう場合の上記図5での処理について説明する。
図9(A)に示すベイヤーデータからリングバッファ上でYUVデータに変換し、さらに上記図3(B)で示した5,6ベルトの位置に日付の文字画像データを合成することで図9(B)に示すような画像を得、これをJPEGデータに変換するものとする。
Next, the processing in FIG. 5 in the case of combining character images will be described.
The Bayer data shown in FIG. 9A is converted into YUV data on the ring buffer, and the date character image data is synthesized at the positions of the 5 and 6 belts shown in FIG. An image as shown in B) is obtained and converted into JPEG data.
図10(1)〜(3)に示すように4ベルト目までをYUVデータに変換し、さらにJPEGデータに変換するまでの処理については上記図6の場合と同様である。 As shown in FIGS. 10 (1) to (3), the processes up to the fourth belt are converted to YUV data and further converted to JPEG data are the same as in the case of FIG.
その後、画像データ転送部17でステップS301により5ベルト目のベイヤーデータをリングバッファに転送すると、続くステップS302でこのベルトのベイヤーデータが停止ベルトとして設定されていることを判断する。
Thereafter, when the image
これを判断した画像データ転送部17は、画像合成部18に対して処理停止信号を発行した後(ステップS203)、その画像合成部18から画像合成処理の終了信号が送られてきたか否かを繰返し判断することで(ステップS204)、当該信号が送られてくるのを待機する。
Having determined this, the image
しかるに画像合成部18では、その当初に画像データ転送部17から処理停止信号が送られてきたか否かを繰返し判断することで(ステップS401)、当該信号が送られてくるのを待機しており、送られてきたと判断した時点で、上記RAM3のリングバッファ領域より1ベルト分(ここでは5ベルト目)のYUVデータをより細かいデータ単位でこの画像合成部18へデータ転送して,このYUVデータに対して対応する文字画像データの合成処理を実行して合成画像(YUVデータ)を生成して、再度RAM3のリングバッファ領域へ合成画像データを転送する(ステップS402)。
However, the
なお、ここでリングバッファ領域から画像合成部18へ転送するデータは、合成処理を行なう部分のみのデータであってよい。これにより、処理速度をさらに向上することが可能となる。
Here, the data transferred from the ring buffer area to the
合成処理終了後、画像合成部18は画像データ転送部17に対して画像合成処理の終了信号を発行し(ステップS403)、その後に当該ベルト位置が最終ベルトではないことを確認すると(ステップS404)、再び上記ステップS401からの処理に戻って、次に画像合成処理を待機する。
After completion of the composition processing, the
画像合成部18から画像合成処理の終了信号の発行を受けた画像データ転送部17では、ステップS204でこれを判断すると、あらためてJPEG変換部16に転送終了ライン位置「5」と処理終了信号とを発行した後(ステップS205)、現在転送した画像データのベルト位置がベイヤーデータの最終ベルトではないことを確認した上で(ステップS206)、上記ステップS201からの処理に戻る。
The image
JPEG変換部16では、画像データ転送部17から転送終了ライン位置と処理終了信号を受信すると上記ステップS301でこれを判断し、リングバッファに保持される画像合成後のベルト位置「5」の16ライン分のYUVデータをJPEGデータに変換してデータ圧縮し、変換後のJPEGデータをRAM3の該当領域に書込む(ステップS302)。
When the
その後、JPEG変換部16は変換を終えたデータが最終ベルトではないことを確認した上で(ステップS303)、上記ステップS301からの処理に戻り、画像データ転送部17から処理終了信号を受信して次のベルト分のデータの処理を行なうのを待機する。
Thereafter, after confirming that the converted data is not the final belt (step S303), the
上記工程においてリングバッファでは、図10(4)に示すように5ベルト目の拡大したYUVデータが画素数変換部15により書込まれた後、このベルトが停止ベルトであることが画像データ転送部17により判断されて画像合成部18により文字画像の画像合成処理が実行されることで図10(5)に示すような保持内容となる。
In the ring buffer, in the ring buffer, as shown in FIG. 10 (4), after the enlarged YUV data of the fifth belt is written by the pixel
この画像合成後のYUVデータからJPEG変換部16によりJPEGデータが生成されてRAM3内に上記図7(B)で示したJPEGデータの一部として保持される。
JPEG data is generated from the YUV data after the image synthesis by the
その後、画像データ転送部17でステップS301により6ベルト目のベイヤーデータをリングバッファに転送すると、続くステップS302でこのベルトのベイヤーデータが停止ベルトとして設定されていることを判断する。
Thereafter, when the image
これを判断した画像データ転送部17は、画像合成部18に対して処理停止信号を発行した後(ステップS203)、その画像合成部18から画像合成処理の終了信号が送られてきたか否かを繰返し判断することで(ステップS204)、当該信号が送られてくるのを待機する。
Having determined this, the image
画像合成部18では、画像データ転送部17から処理停止信号が送られてくるのを待機しており(ステップS401)、送られてきたと判断した時点で、1ベルト分(ここでは6ベルト目)のYUVデータに対して対応する文字画像データの合成処理を実行する(ステップS402)。
The
合成処理終了後、画像合成部18は画像データ転送部17に対して画像合成処理の終了信号を発行し(ステップS403)、その後に当該ベルト位置が最終ベルトであると判断すると(ステップS404)、以上で当該撮影画像に対する画像合成処理を終えたものとして処理を終了する。
After completion of the composition processing, the
画像合成部18から画像合成処理の終了信号の発行を受けた画像データ転送部17では、ステップS204でこれを判断すると、あらためてJPEG変換部16に転送終了ライン位置「6」と処理終了信号とを発行した後(ステップS205)、現在転送した画像データのベルト位置がベイヤーデータの最終ベルトであることを判断し(ステップS206)、これも以上で当該撮影画像に対する画像の転送に関する処理を終えたものとして処理を終了する。
The image
図8はこのときの画像データ転送部17での処理を説明するものである。6ベルト目のYUVデータが停止ベルトでなければ、本来図8(2)に示すようにJPEG変換部16への処理終了信号が発行されるタイミングで、実際には6ベルト目のYUVデータが停止ベルトであるために処理終了信号が発行されずに一時的に停止し、その後画像合成部18からの終了信号を受けるのを待って処理終了信号を発行するものとなる。
FIG. 8 illustrates the processing in the image
JPEG変換部16では、画像データ転送部17から転送終了ライン位置と処理終了信号を受信すると上記ステップS301でこれを判断し、リングバッファに保持される画像合成後のベルト位置「6」の16ライン分のYUVデータをJPEGデータに変換してデータ圧縮し、変換後のJPEGデータをRAM3の該当領域に書込む(ステップS302)。
When the
その後、JPEG変換部16は変換を終えたデータが最終ベルトであることを判断し(ステップS303)、以上で当該撮影画像に対するJPEGデータへの変換処理を終えたものとして処理を終了する。
Thereafter, the
上記工程中にリングバッファでは、図10(6)に示すように6ベルト目の拡大したYUVデータが画素数変換部15により書込まれた後、このベルトが停止ベルトであることが画像データ転送部17により判断されて画像合成部18により文字画像の画像合成処理が実行されることで図10(7)に示すような保持内容となる。
In the ring buffer during the above process, after the enlarged YUV data of the sixth belt is written by the pixel
この画像合成後のYUVデータからJPEG変換部16によりJPEGデータが生成されてRAM3内に上記図7(B)で示したJPEGデータの一部として保持される。
JPEG data is generated from the YUV data after the image synthesis by the
その後、最終ベルトのJPEG変換を終えたことが画像データ転送部17、画像合成部18、及びJPEG変換部16でそれぞれ認識され、図5における処理はすべて完了したものとなり、あらためてRAM3に保持される1フレーム分のJPEGデータがメモリカードインターフェイス8を介して記録媒体であるメモリカードに記録される。
Thereafter, the image
このように本動作例では、RAM3の使用領域をむやみに広げてしまうことなく、画像データ中への文字画像データの合成を高品質且つ高速に実行することが可能となる。
As described above, in this operation example, it is possible to perform high-quality and high-speed synthesis of character image data in image data without unnecessarily widening the use area of the
また、上記実施形態において画像処理部14及び画素数変換部15では、ベイヤーデータをYUVデータに変換する際に画像サイズの拡大を行なうものとしたが、必要に応じた拡大ではなく縮小を行なう場合でも、上記図4に示した事前設定の処理でその内容を設定することで同様の本処理を行なうことが可能となる。
In the above-described embodiment, the
この場合、ベイヤーデータからYUVデータに変換する過程では画像サイズの拡大または縮小を併せて行ない、その後にYUVデータに対して文字画像の合成処理を施すものとしたことにより、文字画像が変形するなどの不具合を確実に回避することができる。 In this case, in the process of converting Bayer data to YUV data, enlargement or reduction of the image size is performed at the same time, and then the character image is combined with the YUV data so that the character image is deformed. Can be avoided reliably.
この点は、上記画像サイズの拡大または縮小に止まらず、カラー画像データに対する各種の色処理を施す場合も同様であり、文字画像の一部が他の部分と異なった色となってしまうような不具合を確実に回避することができる。 This is not limited to the enlargement or reduction of the image size, and the same applies when various color processing is performed on the color image data, and a part of the character image has a different color from the other parts. Problems can be avoided reliably.
また、上記動作例では、JPEG変換部16で取扱う基本画素ブロックに併せて所定のライン数、例えば8ラインあるいは16ライン単位で画像データ転送部17での転送動作を調整するものとした。
In the above operation example, the transfer operation in the image
これにより、文字画像合成後に即時JPEG変換部16の処理を実行することができ、合成する文字画像の大きさに影響されることなく、画像処理IC2内の画像転送に係る制御動作を単純化することができる。
As a result, the processing of the
(第2の動作例)
以下、CCD4を用いた撮影により、図3(A)に示す横64ピクセル×縦48ピクセル(ライン)のベイヤーデータを得、これを図3(B)に示すように縦横共に2倍して横128ピクセル×縦96ピクセル(ライン)のYUVデータに変換及び拡大した後に、同サイズのJPEGデータに変換してメモリカードインターフェイス8より図示しないメモリカードに記録させる場合の第2の動作について説明する。
(Second operation example)
Hereinafter, Bayer data of 64 pixels wide × 48 pixels vertical (line) shown in FIG. 3A is obtained by photographing using the
この場合、必要により図3(B)に示す画像中、ピクセルによる左上端点を原点座標(0,0)として座標(80,72)の位置を基準とし、任意の矩形領域、例えば横48ピクセル×縦16ピクセル(ライン)の大きさの文字画像データCIを合成するものとし、合成後のYUVデータをJPEGデータに変換する。 In this case, if necessary, in the image shown in FIG. 3B, the upper left end point of the pixel is the origin coordinate (0, 0) and the position of the coordinates (80, 72) is used as a reference, and an arbitrary rectangular area, for example, horizontal 48 pixels × It is assumed that character image data CI having a size of 16 pixels (lines) in length is synthesized, and the synthesized YUV data is converted into JPEG data.
上記文字画像データCIとしては、図示するような「2007.4.1」のようなデート(日付)情報でもよいし、さらには時刻、シャッタ速度や絞り(F)値などの撮影データ、その他の文字画像データでもよく、さらには記号やシンボル等の文字以外の各種画像情報を考えることもできる。 The character image data CI may be date (date) information such as “2007.4.1” as shown in the figure, and further, photographing data such as time, shutter speed and aperture (F) value, and the like. Character image data may be used, and various image information other than characters such as symbols and symbols can be considered.
後述するリングバッファ動作においては、JPEG変換処理が基本的に16ライン単位でデータ処理を行なうため、これを1領域分割単位として「1ベルト」と称するものとする。 In the ring buffer operation described later, since the JPEG conversion process basically performs data processing in units of 16 lines, this is referred to as “one belt” as one area division unit.
したがって、縦横共に2倍に拡大する前のベイヤーデータでは、対応するように半分の8ラインを1ベルトとして読出し、リングバッファに転送するものとする。 Accordingly, in the Bayer data before being doubled both vertically and horizontally, half of the 8 lines are read as one belt correspondingly and transferred to the ring buffer.
なお、画像撮影時に画像データ転送部17が後述する画像処理を実行するのに先立って実行しておく、各パラメータの事前設定処理については、上記第1の動作例で図3により実行した内容と基本的に同様であるものとし、その図示と説明は省略するものとする。
Note that the pre-setting process of each parameter, which is executed before the image
しかして、画像処理部14、画素数変換部15、画像合成部18、JPEG変換部16、及び画像データ転送部17への必要な事前設定が完了したものとして、撮影に伴う画像の記録までの本動作に移行する。
Thus, it is assumed that necessary pre-settings for the
図11は、画像データ転送部17、JPEG変換部16、及び画像合成部18で並列して実行される処理内容を示すものである。まず、ベルト位置「1」の1ベルト(8ライン)分のベイヤーデータを、より細かいデータ単位でRAM3のベイヤーデータ領域から、画像処理部14に転送して上記設定した通り16ラインのYUVデータに変換させた後に、画素数変換部15に転送して上記設定した通り「2」倍の倍率で画素数を拡大する処理を実行させて、RAM3のリングバッファ領域へ転送するように制御する(ステップS501)。
FIG. 11 shows the processing contents executed in parallel by the image
この後、画像データ転送部17では現在画像処理部14、画素数変換部15で処理させた画像データが予め設定した停止ベルトの範囲内であるか否かを判断する(ステップS502)。
Thereafter, the image
ここでベルト位置「1」が設定した停止ベルトの範囲内ではないと判断すると、そのままJPEG変換部16に転送終了ライン位置「1」と処理終了信号とを発行した後(ステップS506)、現在転送した画像データのベルト位置がベイヤーデータの最終ベルトではないことを確認した上で(ステップS507)、上記ステップS501からの処理に戻る。
If it is determined that the belt position “1” is not within the set stop belt range, the transfer end line position “1” and the processing end signal are issued to the
JPEG変換部16では、画像データ転送部17から転送終了ライン位置と処理終了信号とを受信するのを待機している(ステップS601)。
しかして、画像データ転送部17から処理終了信号を受信すると上記ステップS601でこれを判断し、リングバッファに保持されるベルト位置「1」の16ライン分のYUVデータをより細かいデータ単位でJPEG変換部16へ転送してJPEGデータに変換し、変換後のJPEGデータをRAM3のJPEGデータ領域内の該当領域に書込む(ステップS602)。
The
Accordingly, when the processing end signal is received from the image
その後、JPEG変換部16は変換を終えたデータが最終ベルトではないことを確認した上で(ステップS603)、上記ステップS601からの処理に戻り、画像データ転送部17から処理終了信号を受信して次のベルト分のデータの処理を行なうのを待機する。
Thereafter, after confirming that the converted data is not the final belt (step S603), the
こうして画像データ転送部17、画像処理部14、画素数変換部15、及びJPEG変換部16での処理を繰返し実行することにより、合成すべき文字画像データがないベルト位置ではRAM3のリングバッファを用いて1ベルト分ずつ処理が実行されていく。
Thus, by repeatedly executing the processing in the image
以下同様の処理を繰返し実行し、図13(1)〜(3)に示すように4ベルト目までをYUVデータに変換し、さらにJPEGデータに変換する。 Thereafter, the same processing is repeatedly executed to convert up to the fourth belt into YUV data and further into JPEG data as shown in FIGS.
その後、画像データ転送部17でステップS501により5ベルト目のベイヤーデータをリングバッファに転送すると、続くステップS502でこのベルトのベイヤーデータが停止ベルトの範囲内として設定されていることを判断する。
Thereafter, when the image
これを判断した画像データ転送部17は、次いでそのベルトが停止ベルトの範囲内中の最終ベルトであるか否かを判断する(ステップS503)。
Having determined this, the image
ここで5ベルト目は停止ベルトの範囲内であるが、その範囲内での最終ベルトは6ベルトであるため、停止最終ベルトではないものと判断して、再び上記ステップS501からの処理に戻る。 Here, the fifth belt is within the range of the stop belt, but since the final belt within the range is six belts, it is determined that the belt is not the final stop belt, and the process returns to step S501 again.
しかして、画像データ転送部17でステップS601により6ベルト目のベイヤーデータをリングバッファに転送すると、続くステップS602でこのベルトのベイヤーデータが停止ベルトの範囲として設定されていることを判断する。
Accordingly, when the image
これを判断した画像データ転送部17が、続くステップS503でそのベルトが停止ベルトの範囲内中の最終ベルトであると判断すると、画像合成部18に対して処理停止信号を発行した後(ステップS504)、その画像合成部18から画像合成処理の終了信号が送られてきたか否かを繰返し判断することで(ステップS505)、当該信号が送られてくるのを待機する。
When the image
画像合成部18では、画像データ転送部17から処理停止信号が送られてくるのを待機しており(ステップS701)、送られてきたと判断した時点で、上記RAM3のリングバッファ領域より停止範囲ベルト分(ここでは5,6ベルトの2ベルト分)のYUVデータをより細かいデータ単位でこの画像合成部18へデータ転送して,このYUVデータに対して対応する文字画像データの合成処理を一括して実行して合成画像(YUVデータ)を生成して、再度RAM3のリングバッファ領域へ合成画像データを転送する(ステップS702)。
The
なお、ここでリングバッファ領域から画像合成部18へ転送するデータは、合成処理を行なう部分のみのデータであってよい。
これにより、処理速度をさらに向上することが可能となる。
Here, the data transferred from the ring buffer area to the
As a result, the processing speed can be further improved.
合成処理終了後、画像合成部18は画像データ転送部17に対して画像合成処理の終了信号を発行し(ステップS703)、以上で当該撮影画像に対する画像合成処理を終えたものとして処理を終了する。
After completion of the composition processing, the
画像合成部18から画像合成処理の終了信号の発行を受けた画像データ転送部17では、ステップS505でこれを判断すると、あらためてJPEG変換部16に転送終了ライン位置「6」と処理終了信号とを発行した後(ステップS506)、現在転送した画像データのベルト位置がベイヤーデータの最終ベルトであることを判断し(ステップS507)、これも以上で当該撮影画像に対する画像の転送に関する処理を終えたものとして処理を終了する。
The image
図12はこのときの画像データ転送部17での処理を説明するものである。5ベルト目、及び6ベルト目のYUVデータが共に停止ベルトでなければ、本来図12(2)に示すようにJPEG変換部16への処理終了信号が発行されるタイミングで、実際には5ベルト目及び6ベルト目の2ベルト分の終了信号を一時的に出力せずにJPEG変換部16での変換処理を停止させ、その後画像合成部18からの複数ベルト分の合成処理に関する終了信号を受けるのを待って処理終了信号を発行するものとなる。
FIG. 12 illustrates the processing in the image
JPEG変換部16では、画像データ転送部17から転送終了ライン位置と処理終了信号を受信すると上記ステップS601でこれを判断し、リングバッファに保持される画像合成後のベルト位置「5」及び「6」の2ベルト分のYUVデータをJPEGデータに変換してデータ圧縮し、変換後のJPEGデータをRAM3の該当領域に書込む(ステップS602)。
When the
その後、JPEG変換部16は変換を終えたデータが最終ベルトであることを判断し(ステップS603)、以上で当該撮影画像に対するJPEGデータへの変換処理を終えたものとして処理を終了する。
Thereafter, the
上記工程中にリングバッファでは、図13(4)に示すように5ベルト目の拡大したYUVデータが画素数変換部15により書込まれ、さらに図13(5)に示すように6ベルト目の拡大したYUVデータが画素数変換部15により書込まれた後、このベルトが停止ベルト範囲内の最終ベルトであることが画像データ転送部17により判断されて画像合成部18により複数ベルト分の文字画像の一括画像合成処理が実行されることで図10(6)に示すような保持内容となる。
In the ring buffer, the enlarged YUV data of the fifth belt is written by the pixel
この画像合成後のYUVデータからJPEG変換部16によりJPEGデータが生成されてRAM3内にJPEGデータの一部として保持される。
JPEG data is generated from the YUV data after the image synthesis by the
その後、最終ベルトのJPEG変換を終えたことが画像データ転送部17、画像合成部18、及びJPEG変換部16でそれぞれ認識され、図11における処理はすべて完了したものとなり、あらためてRAM3に保持される1フレーム分のJPEGデータがメモリカードインターフェイス8を介して記録媒体であるメモリカードに記録される。
Thereafter, the image
このように本動作例では、合成する文字画像側のサイズに合わせてJPEG変換部16での変換処理を一時的に遅延させるものとした。
As described above, in this operation example, the conversion processing in the
このように、複数ベルトに渡った画像合成を一括して処理し、その間、後段での変換処理を一時的に遅延させるものとしたので、複数のベルトに跨った文字画像の合成に際して合成後の文字画像の整合が取り易く、効率的に処理を実行することができる。 In this way, image composition over a plurality of belts is collectively processed, and during that time, conversion processing in the subsequent stage is temporarily delayed. The alignment of the character images is easy and the processing can be executed efficiently.
なお、上記実施形態では、上述した如く合成する文字画像に関してその位置や大きさ等を任意に設定できるものとした。 In the above embodiment, the position and size of the character image to be synthesized can be arbitrarily set as described above.
これにより、本実施形態の如く単に日付情報を合成するのみならず、ユーザが任意に設定したメッセージやメモの情報等を任意に設定しておくことで、単なる画像の撮影に止まらず、ユーザに必要な情報を容易に記録しておくことができる。 As a result, not only the date information is simply synthesized as in the present embodiment, but also the message and memo information arbitrarily set by the user is arbitrarily set, so that the user can not only shoot images but also the user. Necessary information can be easily recorded.
また、上記図3に示した如く、画像合成に関する各種設定は事前に設定しておくことで、実際に画像を撮影してからその画像データに必要な文字画像を合成して記録するまでの処理を大幅に簡略化することができ、画像処理IC2内での制御動作を司るDMAC11、及びカメラ内で全体の制御動作を司るCPU1の負担を軽減できると共に、次の撮影に移行するまでの時間を短縮して、連射性能を向上することができる。
In addition, as shown in FIG. 3, various settings relating to image composition are set in advance, so that processing from when an image is actually captured until the necessary character image is synthesized and recorded with the image data is recorded. Can be greatly simplified, and the load on the
なお、上記実施形態では、1枚の撮影画像中に文字画像を1箇所だけ合成する場合について説明したが、本発明はこれに限ることなく、複数箇所に合成することも同様に可能である。 In the above-described embodiment, a case has been described in which a single character image is synthesized in one captured image. However, the present invention is not limited to this, and it is also possible to synthesize a character image in a plurality of locations.
なお、画像データに情報画像データを合成するに際し、情報画像データのライン数に基づいて画像データの領域分割単位のライン数を決定しても良い。 Note that when combining the information image data with the image data, the number of lines in the region division unit of the image data may be determined based on the number of lines of the information image data.
さらにその場合、情報画像データのライン数と、領域分割単位のライン数を同じにして、領域分割を行った際に、情報画像の合成位置を領域分割された領域に収まるように合成位置を設定して合成するようにしても良い。
これにより、画像合成をより効率的に行なうことが可能となる。
In that case, the number of lines in the information image data and the number of lines in the area division unit are the same, and when the area division is performed, the synthesis position is set so that the synthesis position of the information image fits in the area divided area And may be combined.
This makes it possible to perform image composition more efficiently.
なお、上記実施形態では、ベイヤーデータを取り込んでYUVデータに変換して出力することと、画像を合成することを画像合成部で行い、YUVデータを取り込んでJPEGデータに変換して出力することをJPEG変換部で行なっていた。つまり、コンピュータのソフトウェアではなくハードウェア回路で画像変換を行なっていた。 In the above embodiment, the Bayer data is captured and converted into YUV data and output, and the image is synthesized by the image composition unit, and the YUV data is captured and converted into JPEG data and output. This was done in the JPEG conversion unit. In other words, image conversion is performed not by computer software but by a hardware circuit.
しかしこれに限る必要はなく、データはRAM3上に置いたままで、ハードウェアではなくソフトウェアで、ベイヤーデータ→YUVデータ→JPEGデータへと変換するように構成しても良い。
However, the present invention is not limited to this, and the data may be placed on the
なお、上記実施形態では、ステップS201及びS501において、画像合成するベルトの1ベルト(8ライン)分のベイヤーデータを、より細かいデータ単位でRAM3のベイヤーデータ領域から、画像処理部14に転送して上記設定した通り16ラインのYUVデータに変換させた後に、画素数変換部15に転送して上記設定した通り「2」倍の倍率で画素数を拡大する処理を実行させて、RAM3のリングバッファ領域へ転送するように制御していると共に、ステップS402及びS702において、上記RAM3のリングバッファ領域より所定ベルト分のYUVデータをより細かいデータ単位でこの画像合成部18へデータ転送して,このYUVデータに対して対応する文字画像データの合成処理を実行して合成画像(YUVデータ)を生成して、再度RAM3のリングバッファ領域へ合成画像データを転送するように構成しているが、このようではなくとも構わない。
In the above embodiment, in steps S201 and S501, the Bayer data for one belt (8 lines) of the belt to be combined is transferred from the Bayer data area of the
例えば、画像合成するベルトの1ベルト(8ライン)分のベイヤーデータを、より細かいデータ単位でRAM3のベイヤーデータ領域から、画像処理部14に転送して上記設定した通り16ラインのYUVデータに変換させた後に、画素数変換部15に転送して上記設定した通り「2」倍の倍率で画素数を拡大する処理を実行させた後、リングバッファ領域へ画像を転送せずに、画像合成部18へデータ転送して,このYUVデータに対して対応する文字画像データの合成処理を実行して合成画像(YUVデータ)を生成して、RAM3のリングバッファ領域へ合成画像データを転送するように構成しても構わない。
これにより、処理速度を向上することが可能となる。
For example, the Bayer data for one belt (8 lines) of the belt to be combined is transferred from the Bayer data area of the
As a result, the processing speed can be improved.
なお、上記実施形態ではベイヤーデータからJPEGデータを生成する過程について詳細に説明しているが、ベイヤーデータから表示データを生成する過程については詳細に記載していないが、表示データとは、ここではいわゆるサムネイル画像のことを言っているので、基本的な処理の流れはベイヤーデータからJPEGデータを生成する流れと同様であるので詳細の記載を省略する。 In the above embodiment, the process of generating JPEG data from Bayer data is described in detail. However, the process of generating display data from Bayer data is not described in detail, but display data refers to here. Since it refers to a so-called thumbnail image, the basic processing flow is the same as the flow of generating JPEG data from Bayer data, and detailed description thereof is omitted.
JPEGデータと表示データとの生成過程で違う点は、ベイヤデータよりYUVデータを生成する時に、画素数変換部15で拡大処理を行なうのか、縮小処理を行なうかの違いがある。また、JPEG変換部16でJPEGデータに変換したデータを、JPEGデータ領域に保存するのか、表示データ領域に保存するか、の違いがある。しかしその他の点に関しては同一であって良い。
The difference in the generation process between JPEG data and display data is that when YUV data is generated from Bayer data, the pixel
なお、本実施形態においては、リングバッファを用いることで、ベイヤーデータからYUVデータへの変換処理を32ビットで実行し、YUVデータからJPEGデータへの変換処理を16ビットで実行することが出来る。YUVデータからJPEGデータへの変換処理は、16ビット又は8ビットに限定されているため、リングバッファを有することで、その前後工程の処理速度を変更できるので、リングバッファを用いない場合と比較して高速で処理できるというメリットがある。 In the present embodiment, by using a ring buffer, conversion processing from Bayer data to YUV data can be executed in 32 bits, and conversion processing from YUV data to JPEG data can be executed in 16 bits. Since the conversion processing from YUV data to JPEG data is limited to 16 bits or 8 bits, the processing speed of the process before and after that can be changed by having a ring buffer, so compared with the case where no ring buffer is used. And can be processed at high speed.
その他、本発明は上述した実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、上述した実施形態で実行される機能は可能な限り適宜組合わせて実施しても良い。上述した実施形態には種々の段階が含まれており、開示される複数の構成要件により適宜の組合せにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件からいくつかの構成要件が削除されても、効果が得られるのであれば、この構成要件が削除された構成が発明として抽出され得る。 In addition, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the invention in the implementation stage. In addition, the functions executed in the above-described embodiments may be implemented in appropriate combination as much as possible. The above-described embodiment includes various stages, and various inventions can be extracted by an appropriate combination according to a plurality of disclosed structural requirements. For example, even if some constituent requirements are deleted from all the constituent requirements shown in the embodiment, if the effect is obtained, a configuration from which the constituent requirements are deleted can be extracted as an invention.
1…CPU、2…画像処理IC、3…RAM、4…CCD、5…ROM、6…LCD、7…キー入力部、8…メモリカードインターフェイス(I/F)、9…電源部、11…DMAコントローラ(DMAC)、12…メモリ制御部、13…CCD制御部、14…画像処理部、15…画素数変換部、16…JPEG変換部、17…画像データ転送部、18…画像合成部、19…LCD制御部、20…キー入力制御部、CB…コントロールバス、DB…データバス。
DESCRIPTION OF
Claims (14)
上記全体画像データを記憶する第1の記憶手段と、
上記第1の記憶手段から所定の領域分割単位で転送されてくる画像データに対して第1の画像処理を施して部分画像データを得る第1の画像処理手段と、
上記第1の画像処理手段で得た部分画像データを保持する第2の記憶手段と、
上記第2の記憶手段が保持する部分画像データ中の所定箇所に情報データを合成する合成手段と、
上記第2の記憶手段から転送されてくる上記部分画像データに対して第2の画像処理を施す第2の画像処理手段と、
上記第1の記憶手段から上記第2の画像処理手段に至る部分画像データの転送動作を制御する転送制御手段と、
上記合成手段が上記情報データの合成を行う際に、上記転送制御手段による部分画像データの転送動作を一時停止する停止制御手段と
を備えることを特徴とする撮像装置。 Photographing means for photographing the subject and obtaining the whole image data;
First storage means for storing the entire image data;
First image processing means for obtaining partial image data by performing first image processing on image data transferred from the first storage means in predetermined area division units;
Second storage means for holding partial image data obtained by the first image processing means;
Combining means for combining information data at a predetermined location in the partial image data held by the second storage means;
Second image processing means for performing second image processing on the partial image data transferred from the second storage means;
Transfer control means for controlling the transfer operation of partial image data from the first storage means to the second image processing means;
An image pickup apparatus comprising: a stop control unit that temporarily stops the transfer operation of the partial image data by the transfer control unit when the combining unit combines the information data.
上記転送制御手段は、上記第1の記憶手段から上記第3の記憶手段に至る部分画像データの転送動作を制御する
ことを特徴とする請求項1記載の撮像装置。 A third storage means for holding partial image data obtained by the second image processing means;
2. The imaging apparatus according to claim 1, wherein the transfer control unit controls a transfer operation of partial image data from the first storage unit to the third storage unit.
上記停止制御手段は、上記判別手段での判別結果に応じて上記部分画像データの転送動作を停止制御する
ことを特徴とする請求項1記載の撮像装置。 A discriminating unit for discriminating the position and size of the information data to be synthesized in the image data to be synthesized by the synthesizing unit;
The imaging apparatus according to claim 1, wherein the stop control unit controls to stop the transfer operation of the partial image data according to a determination result by the determination unit.
上記停止制御手段は、上記判断手段での判断結果に応じて上記部分画像データの転送動作を停止制御する
ことを特徴とする請求項1記載の撮像装置。 The partial image data further includes a determination unit that determines whether or not the information data is partial image data to be combined.
The imaging apparatus according to claim 1, wherein the stop control unit performs stop control on the transfer operation of the partial image data according to a determination result by the determination unit.
上記第1の記憶手段から所定の領域分割単位で転送されてくる画像データに対して第1の画像処理を施して部分画像データを得て、この部分画像データは上記第2の記憶手段への転送されるように構成される第1の画像処理手段と、
上記第2の記憶手段が保持する部分画像データ中の所定箇所に情報データを合成する合成手段と、
上記第2の記憶手段から転送されてくる上記部分画像データに対して第2の画像処理を施す第2の画像処理手段と、
上記第1の記憶手段から上記第2の画像処理手段に至る部分画像データの転送動作を制御する転送制御手段と、
上記合成手段が上記情報データの合成を行う際に、上記転送制御手段による部分画像データの転送動作を一時停止する停止制御手段と
を備えることを特徴とする情報合成装置。 An information synthesizing device mounted on an image processing apparatus comprising first storage means for storing whole image data and second storage means,
The first image processing is performed on the image data transferred from the first storage means in a predetermined area division unit to obtain partial image data, and the partial image data is transferred to the second storage means. First image processing means configured to be transferred;
Combining means for combining information data at a predetermined location in the partial image data held by the second storage means;
Second image processing means for performing second image processing on the partial image data transferred from the second storage means;
Transfer control means for controlling the transfer operation of partial image data from the first storage means to the second image processing means;
An information synthesizing apparatus comprising: stop control means for temporarily stopping the transfer operation of the partial image data by the transfer control means when the synthesizing means synthesizes the information data.
上記第1の記憶手段から所定の領域分割単位で転送されてくる画像データに対して第1の画像処理を施して部分画像データを得て、この部分画像データは上記第2の記憶手段への転送されるように構成される第1の画像処理手段と、
上記第2の記憶手段が保持する部分画像データ中の所定箇所に情報データを合成する合成手段と、
上記第2の記憶手段から転送されてくる上記部分画像データに対して第2の画像処理を施す第2の画像処理手段と
を備えることを特徴とする情報合成装置に、
上記第1の記憶手段から上記第2の画像処理手段に至る部分画像データの転送動作を制御する転送制御手段と、
上記合成手段が上記情報データの合成を行う際に、上記転送制御手段による部分画像データの転送動作を一時停止する停止制御手段と
を実現させることを特徴とするプログラム。 An information synthesizing device mounted on an image processing apparatus comprising first storage means for storing whole image data and second storage means,
The first image processing is performed on the image data transferred from the first storage means in a predetermined area division unit to obtain partial image data, and the partial image data is transferred to the second storage means. First image processing means configured to be transferred;
Combining means for combining information data at a predetermined location in the partial image data held by the second storage means;
An information synthesizing apparatus comprising: second image processing means for performing second image processing on the partial image data transferred from the second storage means;
Transfer control means for controlling the transfer operation of partial image data from the first storage means to the second image processing means;
A program for realizing stop control means for temporarily stopping the transfer operation of partial image data by the transfer control means when the combining means synthesizes the information data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007266727A JP4882954B2 (en) | 2007-10-12 | 2007-10-12 | Imaging apparatus, information synthesis apparatus, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007266727A JP4882954B2 (en) | 2007-10-12 | 2007-10-12 | Imaging apparatus, information synthesis apparatus, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2009100029A JP2009100029A (en) | 2009-05-07 |
| JP4882954B2 true JP4882954B2 (en) | 2012-02-22 |
Family
ID=40702656
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007266727A Expired - Fee Related JP4882954B2 (en) | 2007-10-12 | 2007-10-12 | Imaging apparatus, information synthesis apparatus, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4882954B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5486233B2 (en) * | 2009-07-28 | 2014-05-07 | キヤノン株式会社 | Imaging apparatus and control method thereof |
| JP2016161753A (en) * | 2015-03-02 | 2016-09-05 | セイコーエプソン株式会社 | Video processing device, display device, and video processing method |
-
2007
- 2007-10-12 JP JP2007266727A patent/JP4882954B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009100029A (en) | 2009-05-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9596408B2 (en) | Image capturing apparatus | |
| JP6948810B2 (en) | Image processing system | |
| WO2011052457A1 (en) | Image taking device and image taking method | |
| JP2000092361A (en) | Imaging device | |
| JP5679763B2 (en) | Semiconductor integrated circuit and all-around video system | |
| JP2013228866A (en) | Semiconductor device, electronic apparatus, and image processing method | |
| CN102652321B (en) | Image synthesis device and image synthesis method | |
| US7023455B2 (en) | Apparatus and method for processing video signal | |
| JP2000092375A (en) | Signal processing device and control method therefor | |
| JP4882954B2 (en) | Imaging apparatus, information synthesis apparatus, and program | |
| JP4749701B2 (en) | On-screen display device | |
| JP6041630B2 (en) | Image processing device | |
| JP6415028B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM | |
| JP4484511B2 (en) | Image composition apparatus, integrated circuit for image composition, and image composition method | |
| JP2009177652A (en) | Data processing device | |
| JP7545238B2 (en) | Imaging device and control method thereof | |
| JP5023355B2 (en) | Liquid crystal display device, liquid crystal display method and program | |
| JP5705027B2 (en) | Image processing apparatus, image processing apparatus control method, program, and recording medium | |
| JP2000092365A (en) | Signal processing device | |
| JP4828788B2 (en) | Image processing device | |
| JP2001358981A (en) | Imaging apparatus, method thereof, and storage medium storing control program therefor | |
| JP2018182551A (en) | Imaging device | |
| JP5224492B2 (en) | Image data transfer control device, image data transfer method, and camera having the image data transfer device | |
| JP2000092349A (en) | Image processing device | |
| JP4924699B2 (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100915 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111031 |
|
| 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: 20111108 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20111121 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141216 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4882954 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |