JP2010093492A - Imaging apparatus and program for imaging apparatus - Google Patents
Imaging apparatus and program for imaging apparatus Download PDFInfo
- Publication number
- JP2010093492A JP2010093492A JP2008260824A JP2008260824A JP2010093492A JP 2010093492 A JP2010093492 A JP 2010093492A JP 2008260824 A JP2008260824 A JP 2008260824A JP 2008260824 A JP2008260824 A JP 2008260824A JP 2010093492 A JP2010093492 A JP 2010093492A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- resolution
- unit
- imaging
- motion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Abstract
Description
本発明は、被写体を撮像して画像データを生成する撮像装置および撮像装置用プログラムに関する。 The present invention relates to an imaging apparatus and an imaging apparatus program for imaging a subject and generating image data.
従来、撮像装置においてシャッターチャンスを逃さずに撮影することが可能な技術として、撮影者が自身の体に撮像装置を身につけておき、常時撮影することが可能な撮像装置に関する技術が知られている(例えば、特許文献1を参照)。この技術では、撮影者の頭部近傍または胸部に撮像装置を身につけさせておき、撮影した画像の画像データをメモリに一時的に記録して所定の時間間隔で更新し、更新の際に撮影者からの指示によって画像データを保存する構成を有している。ところで、この技術を適用する場合、撮像装置が画像の撮影と記録を常時行っているため、無駄な画像が多く撮影されてしまい、消費電力の増加や記憶容量の不足といった問題が生じていた。 2. Description of the Related Art Conventionally, as a technique capable of shooting without missing a photo opportunity in an image pickup apparatus, a technique related to an image pickup apparatus that allows a photographer to wear an image pickup apparatus on his / her body and always take a picture is known. (For example, refer to Patent Document 1). In this technology, an imaging device is worn in the vicinity of the photographer's head or chest, and image data of the photographed image is temporarily recorded in a memory and updated at predetermined time intervals. The image data is stored according to an instruction from the person. By the way, when this technique is applied, since the imaging device always captures and records an image, a lot of useless images are captured, causing problems such as increased power consumption and insufficient storage capacity.
上述した特許文献1に記載の技術が有する問題を解決し得る技術として、複数のフレームを比較してフレームの映像信号や音声信号の情報変化量を検出し、この検出した情報変化量に応じて撮像時および信号処理時における画像解像度を自動的に切り換える技術が知られている(例えば、特許文献2を参照)。この技術によれば、撮像したフレーム間の情報変化量が少ない場合には一部のフレームの画像解像度を低く設定することにより、消費電力の増加や記憶容量の不足を防止することができることが期待される。 As a technique that can solve the problem of the technique described in Patent Document 1 described above, a plurality of frames are compared to detect an information change amount of a video signal or an audio signal of the frame, and according to the detected information change amount A technique for automatically switching image resolution at the time of imaging and signal processing is known (see, for example, Patent Document 2). According to this technology, when the amount of information change between captured frames is small, an increase in power consumption and a shortage of storage capacity can be prevented by setting the image resolution of some frames low. Is done.
しかしながら、上記特許文献2に記載の技術を上記特許文献1に記載の技術へ適用する場合、撮像装置は撮影者とともに常に動いているため、フレーム間の変化がシーンの変化によるものか撮影者の動きによるものであるかを適確に判断することができなかった。このため、結局は撮影した全ての画像を高解像度で記録することとなり、消費電力の増加や記憶容量の不足を防止することができなかった。
However, when the technique described in
本発明は、上記に鑑みてなされたものであって、シャッターチャンスを逃さずに撮影することができるとともに、消費電力の増加および記憶容量の不足を確実に防止することができる撮像装置および撮像装置用プログラムを提供することを目的とする。 The present invention has been made in view of the above, and can capture an image without missing a photo opportunity, and can reliably prevent an increase in power consumption and a shortage of storage capacity. The purpose is to provide a program.
上述した課題を解決し、目的を達成するために、本発明に係る撮像装置は、被写体を撮像して画像データを生成する撮像装置であって、間隔をおいて連続的に被写体を撮影して所定の解像度の画像データを順次生成する撮像部と、前記撮像部が生成した最新の画像データの解像度と該最新の画像データより所定時間前に生成された画像データの解像度とを一致させる解像度一致部と、前記解像度一致部が一致させた二つの画像データの各々を前記撮像部が撮影する間の当該撮像装置の動きを検出する動き検出部と、前記動き検出部が検出した当該撮像装置の動きの量が所定の閾値よりも小さい場合、前記最新の画像データから当該撮像装置の動きに起因する変化を除去する補正を行う画像補正部と、前記画像補正部が補正した前記最新の画像データと該最新の画像データより所定時間前に生成した画像データとの差分値を算出する差分値算出部と、前記差分値算出部が算出した差分値に応じて前記撮像部が生成する画像データの解像度を設定する解像度設定部と、を備えたことを特徴とする。 In order to solve the above-described problems and achieve the object, an imaging apparatus according to the present invention is an imaging apparatus that images a subject and generates image data, and continuously captures the subject at intervals. An imaging unit that sequentially generates image data of a predetermined resolution, and a resolution match that matches the resolution of the latest image data generated by the imaging unit with the resolution of the image data generated a predetermined time before the latest image data A motion detection unit that detects a motion of the imaging device while the imaging unit captures each of the two pieces of image data matched by the resolution matching unit, and the imaging device detected by the motion detection unit When the amount of movement is smaller than a predetermined threshold, an image correction unit that performs correction to remove a change caused by the movement of the imaging device from the latest image data, and the latest image corrected by the image correction unit A difference value calculation unit that calculates a difference value between the data and image data generated a predetermined time before the latest image data, and an image generated by the imaging unit according to the difference value calculated by the difference value calculation unit And a resolution setting unit for setting the data resolution.
また、本発明に係る撮像装置は、上記発明において、前記解像度設定部は、前記解像度を高さが異なる高低二つの解像度のいずれかに設定し、前記解像度一致部は、二つの画像データの解像度が異なる場合に高解像度の画像データの解像度を低解像度に変換することを特徴とする。 In the image pickup apparatus according to the present invention, in the above invention, the resolution setting unit sets the resolution to one of two resolutions having different heights, and the resolution matching unit includes two image data resolutions. If the image data is different, the resolution of the high resolution image data is converted to a low resolution.
また、本発明に係る撮像装置は、上記発明において、前記動き検出部が検出した当該撮像装置の動きの量が前記所定の閾値以上である場合、前記解像度設定部は前記撮像部が生成する画像データの解像度を高解像度に設定することを特徴とする。 In the imaging device according to the present invention, in the above invention, when the amount of motion of the imaging device detected by the motion detection unit is equal to or greater than the predetermined threshold, the resolution setting unit generates an image generated by the imaging unit. The data resolution is set to a high resolution.
また、本発明に係る撮像装置は、上記発明において、前記動き検出部は、画像中の特徴点の動きベクトルを算出することを特徴とする。 In the imaging device according to the present invention as set forth in the invention described above, the motion detection unit calculates a motion vector of a feature point in the image.
また、本発明に係る撮像装置は、上記発明において、前記動き検出部は、加速度センサまたはジャイロセンサを有することを特徴とする。 Moreover, the imaging device according to the present invention is characterized in that, in the above invention, the motion detection unit includes an acceleration sensor or a gyro sensor.
また、本発明に係る撮像装置用プログラムは、間隔をおいて連続的に被写体を撮像して画像データを順次生成する撮像部と、前記画像データを含む情報を記憶する記憶部とを備えた撮像装置に、被写体を撮影して所定の解像度の画像データを生成し、この生成した画像データを前記記憶部へ書き込む画像データ生成ステップ、前記画像データ生成ステップで生成した画像データおよび該画像データより所定時間前に生成した画像データを前記記憶部から読み出し、この読み出した二つの画像データの解像度を一致させる解像度一致ステップ、前記解像度一致ステップで一致させた二つの画像データの各々を前記撮像部が撮影する間の当該撮像装置の動きを検出する動き検出ステップ、前記動き検出ステップで検出した当該撮像装置の動きの量が所定の閾値よりも小さい場合、最新の画像データから当該撮像装置の動きに起因する変化を除去する補正を行う画像補正ステップ、前記画像補正ステップで補正した前記最新の画像データと該最新の画像データより所定時間前に生成した画像データとの差分値を算出する差分値算出ステップ、前記差分値算出ステップで算出した差分値に応じて前記撮像部が生成する画像データの解像度を設定する解像度設定ステップ、を実行させることを特徴とする。 In addition, an imaging apparatus program according to the present invention includes an imaging unit that sequentially captures a subject and generates image data sequentially at intervals, and a storage unit that stores information including the image data. The apparatus shoots a subject to generate image data of a predetermined resolution, writes the generated image data to the storage unit, an image data generation step generated by the image data generation step, and a predetermined value based on the image data The image data generated before time is read from the storage unit, and the imaging unit captures each of the two image data matched in the resolution matching step, the resolution matching step for matching the resolutions of the two read image data. A motion detection step for detecting the motion of the imaging device during the operation, and the amount of motion of the imaging device detected in the motion detection step An image correction step for performing correction to remove a change caused by the movement of the imaging device from the latest image data, the latest image data corrected in the image correction step, and the latest image data, when smaller than a predetermined threshold A difference value calculating step for calculating a difference value from image data generated before a predetermined time, and a resolution setting step for setting the resolution of the image data generated by the imaging unit in accordance with the difference value calculated in the difference value calculating step , Is executed.
本発明によれば、間隔をおいて連続的に被写体を撮影して所定の解像度の画像データを順次生成し、所定の画像データ間で撮像装置に動きがある場合にはその影響を排除して両画像データの差分値を検出し、この差分値に基づいて撮像部が生成する画像データの解像度を設定しているため、シーン変化が少ないにもかかわらず解像度を高く設定し続けてしまうようなことがない。したがって、シャッターチャンスを逃さずに撮影することができるとともに、消費電力の増加および記憶容量の不足を確実に防止することが可能となる。 According to the present invention, images of a subject are continuously photographed at intervals to sequentially generate image data of a predetermined resolution, and the influence of the movement of the imaging device between the predetermined image data is eliminated. Since the difference between the two image data is detected and the resolution of the image data generated by the imaging unit is set based on this difference value, the resolution continues to be set high despite a small scene change. There is nothing. Therefore, it is possible to shoot without missing a photo opportunity, and it is possible to reliably prevent an increase in power consumption and a shortage of storage capacity.
以下、添付図面を参照して、本発明を実施するための最良の形態(以後、「実施の形態」という)を説明する。 The best mode for carrying out the present invention (hereinafter referred to as “embodiment”) will be described below with reference to the accompanying drawings.
(実施の形態1)
図1は、本発明の実施の形態1に係る撮像装置の構成を示す図である。同図に示す撮像装置1は、被写体を撮像して画像データを生成する撮像部2、撮像部2が生成した画像データに対して画像処理を施す画像処理部3、画像処理部3が出力する画像データを含む情報を表示する表示部4、撮像装置1の操作指示信号が入力される入力部5、撮像装置1の動作を制御する制御部6、撮像装置1の動作に関する各種情報を記憶する記憶部7を備える。
(Embodiment 1)
FIG. 1 is a diagram illustrating a configuration of an imaging apparatus according to Embodiment 1 of the present invention. An imaging apparatus 1 shown in FIG. 1 outputs an
撮像部2は、所定の視野領域にある被写体からの光を集光する撮影レンズ21、撮影レンズ21が集光した光の入射量を調整する絞り22、絞り22を通過した入射光を受光して電気信号に変換するCCD等の撮像素子23、撮像素子23から出力されるアナログ信号に対して感度補正やホワイトバランスを含む各種処理を施すアナログ信号処理部24、アナログ信号処理部24が出力した信号からデジタルの画像データを生成するA/D変換部25を有する。このうち、撮影レンズ21は、一または複数のレンズによって構成される光学系であり、レンズ駆動部8によって駆動される。また、絞り22は絞り駆動部9によって駆動される。撮像部2は高速で駆動することができ、一定の周期で被写体を連続的に撮影する機能を有する。
The
画像処理部3は、撮像部2が生成した最新の画像データの解像度と一つ前に生成した画像データの解像度とを比較し、二つの画像データの解像度が異なる場合に所定のルールにしたがって両画像データの解像度を一致させる解像度一致部31、最新の画像データと該最新の画像データの一つ前に生成した画像データとの間における撮像装置1の動きを検出する動き検出部32、動き検出部32の検出結果に基づいて撮像装置1の動きを判定する動き判定部33、動き判定部33の判定結果に応じて画像を補正する画像補正部34、画像補正部34が補正した最新の画像データとこの画像データの一つ前に生成した画像データとの差分値を算出する差分値算出部35、を有する。
The image processing unit 3 compares the resolution of the latest image data generated by the
入力部5は、撮像装置1の電源ボタン、撮像指示を与えるシャッターボタン、画像データの再生や編集の指示を含む制御ボタンなどを有する。入力部5を構成する各種ボタンの少なくとも一部を、十字キーやタッチパネルを用いて実現することも可能である。
The
制御部6は、差分値算出部35が算出した差分値に応じて撮像部2が生成する画像データの解像度を設定する解像度設定部61を有する。解像度設定部61は、撮像部2が撮影して生成する画像データの解像度を高解像度と低解像度の高低二つの解像度のいずれかに設定する。制御部6はMPU等を用いて実現され、制御対象の各部とバスラインを介して接続されている。
The
記憶部7は、本実施の形態1に係る撮像装置用プログラムを含み、撮像装置1が実行する各種プログラムを記憶するプログラム記憶部71、撮像部2が撮影した画像データを記憶する画像データ記憶部72、を有する。記憶部7は、撮像装置1の内部に固定的に設けられるフラッシュメモリやRAM等の半導体メモリなどを用いて実現される。なお、記憶部7が、外部から装着されるメモリカード等の記録媒体に対して情報を記録する一方、記録媒体が記録する情報を読み出す記録媒体インターフェースとしての機能を有していてもよい。
The
以上の構成を有する撮像装置1では、通常の撮影モードに加えて連続撮影モードを設定することができる。連続撮影モードは、撮像部2が所定の周期で画像を連続的に自動撮影するモードである。この連続撮影モードにおいて、撮像部2は、解像度設定部61が設定した解像度の画像データを生成する。以下、連続撮影モードであって撮像部2が高解像度の画像データを生成するモードを高解像度モードと呼ぶ一方、連続撮影モードであって撮像部2が低解像度の画像データを生成するモードを低解像度モードと呼ぶ。
In the imaging apparatus 1 having the above configuration, the continuous shooting mode can be set in addition to the normal shooting mode. The continuous shooting mode is a mode in which the
撮像装置1は、撮影者が身につけることが可能な態様をなしている。図2は、撮像装置1の具体的な態様を示す図である。図2において、撮像部2、レンズ駆動部8および絞り駆動部9を含む撮影ユニット1Aは、撮影者200が装着しているメガネ201のつるの側面に取り付けられている。撮像装置1のうち撮影ユニット1A以外の構成要素を含む本体部1Bは、ケーブル1Cを介して撮影ユニット1Aに接続されている。
The imaging device 1 has an aspect that a photographer can wear. FIG. 2 is a diagram illustrating a specific aspect of the imaging apparatus 1. In FIG. 2, the photographing unit 1 </ b> A including the
図3は、撮像装置1が連続撮影モードに設定されている場合の解像度設定処理の概要を示すフローチャートである。まず、撮像部2が画像を撮影して画像データを生成する(ステップS1)。撮像部2は、制御部6から送られてくる制御信号(AF指示値、AE指示値、AWB指示値等の撮影パラメータを含む)に基づいて撮影を行い、解像度設定部61が設定した撮影モードに応じた解像度を有する画像データを生成する。撮影モードが高解像度モードに設定されている場合、撮像部2は全画素読み出しを行う。一方、撮影モードが低解像度モードに設定されている場合、撮像部2は画素の間引き読み出しを行う。
FIG. 3 is a flowchart illustrating an outline of the resolution setting process when the imaging apparatus 1 is set to the continuous shooting mode. First, the
この後、撮像装置1は、撮像部2が生成した画像データを、画像処理部3を介して記憶部7に書き込んで保存する(ステップS2)。
Thereafter, the imaging apparatus 1 writes and saves the image data generated by the
続いて、解像度一致部31は、ステップS1で生成された最新の画像データの解像度を1回前に撮影した画像データ(以後、「前フレーム」という)の解像度と比較し、比較結果に応じて最新の画像データの解像度と前フレームの解像度とを一致させる処理を行う(ステップS3〜S7)。まず、最新の画像データが高解像度である場合(ステップS3,Yes)、前フレームが低解像度であれば(ステップS4,Yes)、解像度一致部31は最新の画像データの解像度を低解像度に変換し(ステップS5)、後述するステップS8へ進む。一方、前フレームが高解像度であれば(ステップS4,No)、撮像装置1は後述するステップS8へ直接進む。 Subsequently, the resolution matching unit 31 compares the resolution of the latest image data generated in step S1 with the resolution of the image data captured once before (hereinafter referred to as “previous frame”), and according to the comparison result. Processing for matching the resolution of the latest image data with the resolution of the previous frame is performed (steps S3 to S7). First, if the latest image data has a high resolution (step S3, Yes), if the previous frame has a low resolution (step S4, Yes), the resolution matching unit 31 converts the resolution of the latest image data to a low resolution. (Step S5), the process proceeds to Step S8 described later. On the other hand, if the previous frame has a high resolution (step S4, No), the imaging apparatus 1 proceeds directly to step S8 described later.
一方、最新の画像データが高解像度ではない場合(ステップS3,No)、前フレームが低解像度であれば(ステップS6,Yes)、後述するステップS8へ直接進む。一方、前フレームが高解像度であれば(ステップS6,No)、解像度一致部31は前フレームの解像度を低解像度に変換し(ステップS7)、後述するステップS8へ進む。 On the other hand, if the latest image data is not high resolution (step S3, No), if the previous frame is low resolution (step S6, Yes), the process proceeds directly to step S8 described later. On the other hand, if the previous frame has a high resolution (step S6, No), the resolution matching unit 31 converts the resolution of the previous frame to a low resolution (step S7), and proceeds to step S8 described later.
解像度一致部31が行ったステップS3〜S7の処理により、いかなる状況であっても最新の画像データの解像度と前フレームの解像度とが一致することとなる。 Due to the processing in steps S3 to S7 performed by the resolution matching unit 31, the resolution of the latest image data matches the resolution of the previous frame in any situation.
ステップS8において、動き検出部32は、撮像装置1の動きを検出する(ステップS8)。具体的には、動き検出部32は、画像中の特徴点を検出し、パターンマッチングを行って特徴点の動きベクトルを算出する。 In step S8, the motion detection unit 32 detects the motion of the imaging device 1 (step S8). Specifically, the motion detection unit 32 detects feature points in the image, performs pattern matching, and calculates a motion vector of the feature points.
その後、動き判定部33は、動き検出部32が算出した特徴点の動きベクトルを用いることによって撮像装置1の動きを判定する(ステップS9)。具体的にはステップS9において、動き判定部33は、まず特徴点の動きベクトルの方向と大きさが略同一の動きベクトルの集合Vを抽出する。集合Vによって特定される特徴点は、画面の背景に相当する。この集合Vの要素の数が所定数以上である場合、動き判定部33は撮像装置1が動いていると判定する。なお、動き判定部33は、集合Vの要素が全ての動きベクトルに対して所定の割合以上ある場合に撮像装置1が動いていると判定するようにしてもよい。続いて、動き判定部33は、集合Vを構成する動きベクトルの大きさに応じて、撮像装置1の動きがブレによるものであるか否かを識別する。すなわち、動き判定部33は、集合Vを構成する動きベクトルの大きさの平均値が所定の閾値よりも小さければその動きがブレによるものであると判定する一方、その平均値が所定の閾値以上であれば撮像装置1が移動したと判定する。 Thereafter, the motion determination unit 33 determines the motion of the imaging device 1 by using the motion vector of the feature point calculated by the motion detection unit 32 (step S9). Specifically, in step S9, the motion determination unit 33 first extracts a set V of motion vectors having substantially the same direction and magnitude as the motion vectors of the feature points. The feature points specified by the set V correspond to the background of the screen. When the number of elements in the set V is equal to or greater than a predetermined number, the motion determination unit 33 determines that the imaging device 1 is moving. Note that the motion determination unit 33 may determine that the imaging device 1 is moving when the elements of the set V are greater than or equal to a predetermined ratio with respect to all the motion vectors. Subsequently, the motion determination unit 33 identifies whether or not the motion of the imaging device 1 is due to a shake, according to the size of the motion vector constituting the set V. That is, the motion determination unit 33 determines that the motion is caused by the shake if the average value of the magnitudes of the motion vectors constituting the set V is smaller than the predetermined threshold, while the average value is equal to or greater than the predetermined threshold. If it is, it will determine with the imaging device 1 having moved.
動き判定部33が撮像装置1の動きありと判定(ステップS10,Yes)し、かつその動きをブレと判定(ステップS11,Yes)した場合、画像補正部34はブレの分だけ画像の補正を行う(ステップS12)。図4は、ブレの補正の概要を示す図である。図4において、画像101はブレを含む画像であり、画像102は集合Vを構成する動きベクトルの大きさと向きの平均として定義される平均ブレベクトルの逆ベクトルviを用いて画像の補正を行った図である。このような補正を行うことにより、撮影者200がわずかに動くことに起因した撮像装置1の微小なブレの影響を適確に排除することが可能となる。
When the motion determination unit 33 determines that the imaging device 1 is moving (step S10, Yes) and determines that the motion is a blur (step S11, Yes), the image correction unit 34 corrects the image by the amount of the blur. It performs (step S12). FIG. 4 is a diagram showing an outline of blur correction. In FIG. 4, an
この後、差分値算出部35は、時間的に前後して並んでいる二つの画像データ間の差分値Dを算出する(ステップS13)。ここでの差分値Dは、例えば所定の画素ごとのR成分、G成分、B成分の各差分値の関数として定義される。差分値Dが所定値D0以上である場合(ステップS14,Yes)、解像度設定部61は撮影モードを高解像度モードに設定する(ステップS15)。一方、差分値Dが所定値D0未満である場合(ステップS14,No)、解像度設定部61は撮影モードを低解像度モードに設定する(ステップS16)。なお、ステップS15を行う際に撮影モードが高解像度モードに設定されている場合、およびステップS16を行う際に撮影モードが低解像度モードに設定されている場合には、解像度設定部61が改めて設定を指示する信号を撮像部2へ送信しないようにしてもよい。
Thereafter, the difference value calculation unit 35 calculates a difference value D between the two image data arranged side by side in time (step S13). The difference value D here is defined as a function of the difference values of the R component, G component, and B component for each predetermined pixel, for example. When the difference value D is a predetermined value D 0 or more (step S14, Yes), the resolution setting unit 61 sets the photographing mode to the high-resolution mode (step S15). On the other hand, when the difference value D is smaller than the predetermined value D 0 (step S14, No), the resolution setting unit 61 sets the photographing mode to the low-resolution mode (step S16). When the shooting mode is set to the high resolution mode when performing step S15, and when the shooting mode is set to the low resolution mode when performing step S16, the resolution setting unit 61 sets again. May not be transmitted to the
ステップS10において動き判定部33が撮像装置1の動きありと判定(ステップS10,Yes)し、その動きを移動と判定(ステップS11,No)した場合を説明する。図5は、動き判定部33が撮像装置1の動きありと判定する場合の前フレームおよび最新の画像データを示す図である。図5に示す場合、前フレームに対応する画像103と最新の画像データに対応する画像104とでは共通部分が画面の半分程度であり、その共通部分の位置も大きく異なっている。このような場合、解像度設定部61は撮影モードを高解像度モードに設定する(ステップS15)。
A case will be described in which the motion determination unit 33 determines that there is a motion of the imaging apparatus 1 in Step S10 (Yes in Step S10) and determines that the motion is a movement (No in Step S11). FIG. 5 is a diagram illustrating the previous frame and the latest image data when the motion determination unit 33 determines that there is a motion of the imaging apparatus 1. In the case shown in FIG. 5, the common portion of the
ステップS10において動き判定部33が撮像装置1の動きなしと判定(ステップS10,No)した場合を説明する。この場合、撮像装置1は、差分値算出部35による画像データ間の差分値算出処理(ステップS13)へ進む。ステップS13に続くステップS14〜S16の処理は上述した通りである。 A case where the motion determination unit 33 determines in step S10 that the imaging device 1 does not move (No in step S10) will be described. In this case, the imaging apparatus 1 proceeds to the difference value calculation process (step S13) between the image data by the difference value calculation unit 35. The processes in steps S14 to S16 subsequent to step S13 are as described above.
最後に、撮像装置1は、記憶部7が低解像度の前フレームを記憶している場合(ステップS17,Yes)、この低解像度の前フレームを削除し(ステップS18)、ステップS1に戻る。記憶部7が低解像度の前フレームを記憶していない場合(ステップS17,No)、撮像装置1はステップS1に直接戻る。このようにして、撮像装置1では、不要になった低解像度の画像データを逐次削除することにより、記憶部7の記憶量が増加してしまうのを抑制している。
Finally, when the
以上説明した本発明の実施の形態1によれば、間隔をおいて連続的に被写体を撮影して所定の解像度の画像データを順次生成し、所定の画像データ間で撮像装置に動きがある場合にはその影響を排除して両画像データの差分値を検出し、この差分値に基づいて撮像部が生成する画像データの解像度を設定しているため、撮影者がわずかに動くことに起因した撮像装置の微小なブレの影響を適確に排除することが可能となり、シーン変化が少ないにもかかわらず解像度を高く設定し続けてしまうようなことがない。したがって、シャッターチャンスを逃さずに撮影することができるとともに、消費電力の増加および記憶容量の不足を確実に防止することが可能となる。 According to the first embodiment of the present invention described above, the subject is continuously photographed at intervals to sequentially generate image data with a predetermined resolution, and the imaging apparatus moves between the predetermined image data. This is because the difference between the two image data is detected and the resolution of the image data generated by the imaging unit is set based on this difference value. It is possible to accurately eliminate the influence of the minute blur of the image pickup apparatus, and there is no case where the resolution is kept high even though the scene change is small. Therefore, it is possible to shoot without missing a photo opportunity, and it is possible to reliably prevent an increase in power consumption and a shortage of storage capacity.
また、本実施の形態1によれば、消費電力を削減するとともに記憶部として必要な記憶容量を小さくすることができるので、撮像装置の小型軽量化を実現することもできる。 Further, according to the first embodiment, the power consumption can be reduced and the storage capacity necessary for the storage unit can be reduced, so that the image pickup apparatus can be reduced in size and weight.
(実施の形態2)
図6は、本発明の実施の形態2に係る撮像装置の構成を示す図である。同図に示す撮像装置10は、加速度センサまたはジャイロセンサを有し、撮像装置10の動きを検出する動き検出部11を備える。このため、撮像装置10の画像処理部12は、画像認識によって撮像装置10の動きを検出して判定する機能を有しない。また、撮像装置10の制御部13は、動き検出部11の出力に基づいて撮像装置10の動きの有無を判定する動き判定部131を有する。以上の点を除く撮像装置10の機能構成は、撮像装置1の機能構成と同様である。
(Embodiment 2)
FIG. 6 is a diagram illustrating a configuration of an imaging apparatus according to
図7は、撮像装置10が連続撮影モードに設定されている場合の解像度設定処理の概要を示すフローチャートである。まず、撮像部2が画像を撮影して画像データを生成する(ステップS21)。この後、撮像装置10は、撮像部2が生成した画像データを記憶部7に書き込んで保存する(ステップS22)。
FIG. 7 is a flowchart illustrating an outline of the resolution setting process when the
動き検出部11は撮像装置10の動きを検出する(ステップS23)。具体的には、撮像装置10は、加速度センサまたはジャイロセンサの出力から撮像装置10の動きの大きさおよび方向を検出し、この検出結果に基づいて撮像装置10の動きベクトルを算出する。
The
続いて、動き判定部131は、動き検出部11からの出力に基づいて撮像装置10の動きの有無を判定し、撮像装置10の動きがある場合にその動きがブレであるか否かを判定する(ステップS24)。
Subsequently, the motion determination unit 131 determines the presence / absence of the movement of the
動き判定部131が撮像装置10の動きありと判定し(ステップS25,Yes)、かつその動きをブレと判定した場合(ステップS26,Yes)、画像補正部34はブレの分だけ画像の補正を行う(ステップS27)。 When the motion determination unit 131 determines that there is a motion of the imaging device 10 (step S25, Yes) and determines that the motion is a blur (step S26, Yes), the image correction unit 34 corrects the image by the amount of the blur. This is performed (step S27).
ステップS27に続くステップS28〜S32の処理は、解像度一致部31が最新の画像データの解像度と前フレームの解像度とを比較し、比較の結果に応じて二つの画像データの解像度を一致させる処理であり、図3のステップS3〜S7の処理に順次対応している。また、ステップS33〜S36の処理は、二つの画像データの差分値Dを算出し、この差分値Dと閾値D0との大小関係に応じて撮像部2が生成する画像データの解像度を設定する処理であり、図3のステップS13〜S16に順次対応している。
The processes in steps S28 to S32 subsequent to step S27 are processes in which the resolution matching unit 31 compares the resolution of the latest image data with the resolution of the previous frame, and matches the resolutions of the two image data according to the comparison result. Yes, and sequentially corresponds to the processing of steps S3 to S7 in FIG. The processing of steps S33~S36 calculates a difference value D of the two image data, sets the resolution of the image data generated by the
ステップS25において動き判定部131が撮像装置10の動きありと判定(ステップS25,Yes)し、かつその動きを移動と判定(ステップS26,No)した場合、解像度設定部61は撮影モードを高解像度モードに設定する(ステップS35)。
When the motion determination unit 131 determines in step S25 that the
ステップS25において動き判定部131が撮像装置10の動きなしと判定(ステップS25,No)した場合、解像度一致部31が最新の画像データの解像度と前フレームの解像度とを比較し、比較の結果に応じて二つの画像データの解像度を一致させる処理(ステップS28〜32)を行った後、二つの画像データの差分値算出処理と差分値の算出結果に応じて撮影モードの設定処理を行う(ステップS33〜S36)。 When the motion determination unit 131 determines in step S25 that there is no motion of the imaging apparatus 10 (No in step S25), the resolution matching unit 31 compares the resolution of the latest image data with the resolution of the previous frame, and the comparison result is obtained. Accordingly, after performing the process of matching the resolutions of the two image data (steps S28 to S32), the difference value calculation process of the two image data and the shooting mode setting process are performed according to the difference value calculation result (steps). S33 to S36).
最後に、撮像装置1は、記憶部7が低解像度の前フレームを記憶している場合(ステップS37,Yes)、この低解像度の前フレームを削除し(ステップS38)、ステップS21に戻る。記憶部7が低解像度の前フレームを記憶していない場合(ステップS37,No)、撮像装置1はステップS21に直接戻る。
Finally, when the
以上説明した本発明の実施の形態2によれば、上述した実施の形態1と同様、消費電力の増加および記憶容量の不足を確実に防止することが可能となる。 According to the second embodiment of the present invention described above, as in the first embodiment described above, it is possible to reliably prevent an increase in power consumption and a shortage of storage capacity.
ここまで、本発明を実施するための最良の形態として、実施の形態1、2を詳述してきたが、本発明はそれらの実施の形態によって限定されるべきものではない。例えば、本発明に係る撮像装置の動きを判定する際には、画像認識による検出と加速度センサまたはジャイロセンサによる検出との組み合わせによって判定を行うようにしてもよい。 So far, the first and second embodiments have been described in detail as the best mode for carrying out the present invention, but the present invention should not be limited by these embodiments. For example, when determining the movement of the imaging apparatus according to the present invention, the determination may be made by a combination of detection by image recognition and detection by an acceleration sensor or a gyro sensor.
また、本発明に係る撮像装置は、通常のデジタルカメラのように筐体状をなしていてもよい。 Further, the imaging apparatus according to the present invention may have a housing shape like a normal digital camera.
このように、本発明は、ここでは記載していない様々な実施の形態等を含みうるものであり、特許請求の範囲により特定される技術的思想を逸脱しない範囲内において種々の設計変更等を施すことが可能である。 Thus, the present invention can include various embodiments and the like not described herein, and various design changes and the like can be made without departing from the technical idea specified by the claims. It is possible to apply.
1、10 撮像装置
1A 撮影ユニット
1B 本体部
1C ケーブル
2 撮像部
3、12 画像処理部
4 表示部
5 入力部
6、13 制御部
7 記憶部
8 レンズ駆動部
9 絞り駆動部
11、32 動き検出部
21 撮影レンズ
22 絞り
23 撮像素子
24 アナログ信号処理部
25 A/D変換部
31 解像度一致部
33、131 動き判定部
34 画像補正部
35 差分値算出部
61 解像度設定部
71 プログラム記憶部
72 画像データ記憶部
101、102、103、104 画像
200 撮影者
201 メガネ
DESCRIPTION OF
Claims (6)
間隔をおいて連続的に被写体を撮影して所定の解像度の画像データを順次生成する撮像部と、
前記撮像部が生成した最新の画像データの解像度と該最新の画像データより所定時間前に生成された画像データの解像度とを一致させる解像度一致部と、
前記解像度一致部が一致させた二つの画像データの各々を前記撮像部が撮影する間の当該撮像装置の動きを検出する動き検出部と、
前記動き検出部が検出した当該撮像装置の動きの量が所定の閾値よりも小さい場合、前記最新の画像データから当該撮像装置の動きに起因する変化を除去する補正を行う画像補正部と、
前記画像補正部が補正した前記最新の画像データと該最新の画像データより所定時間前に生成した画像データとの差分値を算出する差分値算出部と、
前記差分値算出部が算出した差分値に応じて前記撮像部が生成する画像データの解像度を設定する解像度設定部と、
を備えたことを特徴とする撮像装置。 An imaging device that images a subject and generates image data,
An imaging unit that sequentially shoots an object at intervals and sequentially generates image data of a predetermined resolution;
A resolution matching unit that matches the resolution of the latest image data generated by the imaging unit and the resolution of the image data generated a predetermined time before the latest image data;
A motion detection unit that detects a motion of the imaging device while the imaging unit captures each of the two pieces of image data matched by the resolution matching unit;
An image correction unit that performs correction to remove a change caused by the motion of the imaging device from the latest image data when the amount of motion of the imaging device detected by the motion detection unit is smaller than a predetermined threshold;
A difference value calculation unit that calculates a difference value between the latest image data corrected by the image correction unit and image data generated a predetermined time before the latest image data;
A resolution setting unit that sets a resolution of image data generated by the imaging unit in accordance with the difference value calculated by the difference value calculation unit;
An imaging apparatus comprising:
前記解像度一致部は、二つの画像データの解像度が異なる場合に高解像度の画像データの解像度を低解像度に変換することを特徴とする請求項1記載の撮像装置。 The resolution setting unit sets the resolution to one of two resolutions of different heights,
The imaging apparatus according to claim 1, wherein the resolution matching unit converts the resolution of the high-resolution image data to the low resolution when the resolutions of the two image data are different.
被写体を撮影して所定の解像度の画像データを生成し、この生成した画像データを前記記憶部へ書き込む画像データ生成ステップ、
前記画像データ生成ステップで生成した画像データおよび該画像データより所定時間前に生成した画像データを前記記憶部から読み出し、この読み出した二つの画像データの解像度を一致させる解像度一致ステップ、
前記解像度一致ステップで一致させた二つの画像データの各々を前記撮像部が撮影する間の当該撮像装置の動きを検出する動き検出ステップ、
前記動き検出ステップで検出した当該撮像装置の動きの量が所定の閾値よりも小さい場合、最新の画像データから当該撮像装置の動きに起因する変化を除去する補正を行う画像補正ステップ、
前記画像補正ステップで補正した前記最新の画像データと該最新の画像データより所定時間前に生成した画像データとの差分値を算出する差分値算出ステップ、
前記差分値算出ステップで算出した差分値に応じて前記撮像部が生成する画像データの解像度を設定する解像度設定ステップ、
を実行させることを特徴とする撮像装置用プログラム。 An imaging apparatus comprising: an imaging unit that sequentially captures an object at intervals and generates image data sequentially; and a storage unit that stores information including the image data.
An image data generation step of shooting a subject to generate image data of a predetermined resolution and writing the generated image data to the storage unit,
A resolution matching step of reading out the image data generated in the image data generation step and the image data generated a predetermined time before the image data from the storage unit, and matching the resolutions of the two read image data;
A motion detection step of detecting a motion of the imaging device while the imaging unit captures each of the two pieces of image data matched in the resolution matching step;
An image correction step for performing correction to remove a change caused by the motion of the imaging device from the latest image data when the amount of motion of the imaging device detected in the motion detection step is smaller than a predetermined threshold;
A difference value calculating step for calculating a difference value between the latest image data corrected in the image correction step and image data generated a predetermined time before the latest image data;
A resolution setting step for setting a resolution of image data generated by the imaging unit in accordance with the difference value calculated in the difference value calculating step;
A program for an imaging apparatus, characterized in that
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008260824A JP2010093492A (en) | 2008-10-07 | 2008-10-07 | Imaging apparatus and program for imaging apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008260824A JP2010093492A (en) | 2008-10-07 | 2008-10-07 | Imaging apparatus and program for imaging apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010093492A true JP2010093492A (en) | 2010-04-22 |
Family
ID=42255814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008260824A Withdrawn JP2010093492A (en) | 2008-10-07 | 2008-10-07 | Imaging apparatus and program for imaging apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010093492A (en) |
-
2008
- 2008-10-07 JP JP2008260824A patent/JP2010093492A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4900401B2 (en) | Imaging apparatus and program | |
JP4872797B2 (en) | Imaging apparatus, imaging method, and imaging program | |
US8593531B2 (en) | Imaging device, image processing method, and computer program | |
JP6518452B2 (en) | Imaging apparatus and imaging method | |
JP2009284394A (en) | Imaging apparatus and imaging method | |
CN104243863A (en) | Image pickup apparatus and image pickup method | |
JP5156991B2 (en) | Imaging apparatus, imaging method, and imaging program | |
JP4614143B2 (en) | Imaging apparatus and program thereof | |
JP2015053741A (en) | Image reproduction device | |
TWI477887B (en) | Image processing device, image processing method and recording medium | |
US8040380B2 (en) | Image-taking apparatus | |
JP6758950B2 (en) | Imaging device, its control method and program | |
JP2007221711A (en) | Sensor unit, and electronic device | |
KR101630307B1 (en) | A digital photographing apparatus, a method for controlling the same, and a computer-readable storage medium | |
JP2011217334A (en) | Imaging apparatus and method of controlling the same | |
JP2006148550A (en) | Image processor and imaging device | |
JP4844220B2 (en) | Exposure compensation device, photographing device, exposure value setting device, exposure compensation value calculation method, and control program | |
JP5179859B2 (en) | Imaging apparatus and imaging method | |
JP5111293B2 (en) | Imaging apparatus and control method thereof | |
JP5962974B2 (en) | Imaging apparatus, imaging method, and program | |
JP2010093451A (en) | Imaging apparatus and program for imaging apparatus | |
JP2008048152A (en) | Moving picture processing apparatus, moving picture photographing apparatus and moving picture photographing program | |
JP2010093492A (en) | Imaging apparatus and program for imaging apparatus | |
JP5613145B2 (en) | Imaging apparatus and program | |
US11956538B2 (en) | Image capturing apparatus that performs blur correction and method of controlling same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20120110 |