JP5035614B2 - Imaging apparatus and program - Google Patents
Imaging apparatus and program Download PDFInfo
- Publication number
- JP5035614B2 JP5035614B2 JP2007248950A JP2007248950A JP5035614B2 JP 5035614 B2 JP5035614 B2 JP 5035614B2 JP 2007248950 A JP2007248950 A JP 2007248950A JP 2007248950 A JP2007248950 A JP 2007248950A JP 5035614 B2 JP5035614 B2 JP 5035614B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- area
- acquiring
- region
- acquisition means
- 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)
- Editing Of Facsimile Originals (AREA)
- Studio Devices (AREA)
Description
本発明は、撮像装置及びプログラムに関し、詳しくは、主画像中の指定領域内に、副画像中の指定領域画像を填め込み合成する撮像装置及びプログラムに関する。
The present invention relates to an imaging apparatus and a program, and more particularly, to an imaging apparatus and a program that insert a specified area image in a sub-image into a specified area in a main image.
パーソナルコンピュータやワークステーション、あるいは、デジタルカメラ等の画像処理の分野においては、ディスプレイやモニタ画面上での画像合成が広く行われている。たとえば、下記の特許文献1には、フレームメモリに保持されている主画像中の指定領域内に、画像メモリに格納された副画像中の指定領域画像の縮小又は拡大画像を填め込み合成する技術(以下、従来技術という。)が記載されている。
In the field of image processing such as a personal computer, a workstation, or a digital camera, image composition on a display or a monitor screen is widely performed. For example, in
ところで、この従来技術における“指定領域”は正方形又は長方形といった「矩形」であるが、画像合成によっては、矩形以外の形状、たとえば、左右辺の長さが異なる「横台形」の領域に、「矩形」である副画像の填め込みが求められることがあるものの、上記の従来技術は、この要求に応えることができない。 By the way, the “designated region” in this prior art is a “rectangle” such as a square or a rectangle, but depending on the image composition, a shape other than a rectangle, for example, a “horizontal trapezoid” region having different left and right side lengths, Although the filling of the sub-image that is “rectangular” may be required, the above-described conventional technology cannot meet this requirement.
つまり、上記技術にあっては、主画像と副画像を合成するとしても、その自由度が低いため、所望の画像を得ることが難しく、特に、画像の撮影に際してこのような合成画像を簡易に得ることが課題となっていた。 That is, in the above technique, even if the main image and the sub-image are combined, it is difficult to obtain a desired image because of its low degree of freedom. Obtaining was an issue.
そこで、本発明の目的は、主画像と副画像を効果的に合成可能な撮像装置及びプログラムを提供することにある。
Accordingly, an object of the present invention is to provide an imaging apparatus and program capable of effectively synthesizing a main image and a sub image.
本発明は、被写体を撮像して撮影画像を取得する撮像手段と、前記撮影画像を第1の画像として取得する第1の画像取得手段と、第2の画像を取得する第2の画像取得手段と、前記第1の画像平面上の矩形である第1の四角領域を取得する第1の領域取得手段と、前記第2の画像平面上の第2の四角領域を取得する第2の領域取得手段と、矩形の領域である前記第1の四角領域内の第1の画像を、前記第2の四角領域の形状に基づきあてはまるように形状変換して変換画像を取得する変換手段と、前記第2の画像中の第2の四角領域内の画像と、前記変換画像を合成する合成手段と、を備え、前記変換手段は、この変換手段で生成している前記変換画像を台形補正した場合に得られる画像が、前記第1の画像の一部分を切り出した画像のうちの一つと相似の関係にあるように画像の変換を行うことを特徴とする撮像装置またはプログラムである。The present invention provides an imaging unit that captures a subject and acquires a captured image, a first image acquisition unit that acquires the captured image as a first image, and a second image acquisition unit that acquires a second image. First area acquisition means for acquiring a first square area which is a rectangle on the first image plane; and second area acquisition for acquiring a second square area on the second image plane Means for converting the first image in the first square area, which is a rectangular area, into a shape based on the shape of the second square area, and obtaining a converted image; and An image in a second square area in the second image and a combining unit that combines the converted image, and the converting unit performs a trapezoidal correction on the converted image generated by the converting unit. Of the images obtained by cutting out a part of the first image An image pickup apparatus or a program which is characterized in that the transformation of the image so that the relationship between one and similar.
また、本発明の他の形態は、被写体を撮像して撮影画像を取得する撮像手段と、前記撮影画像を第1の画像として取得する第1の画像取得手段と、第2の画像を取得する第2の画像取得手段と、前記第1の画像平面上の第1の四角領域を取得する第1の領域取得手段と、前記第2の画像平面上の矩形である第2の四角領域を取得する第2の領域取得手段と、矩形の領域である前記第2の四角領域内の第2の画像を、前記第1の四角領域の形状に基づきあてはまるように形状変換して変換画像を取得する変換手段と、前記第1の画像中の第1の四角領域内の画像と、前記変換画像を合成する合成手段と、を備え、前記変換手段は、この変換手段で生成している前記変換画像を台形補正した場合に得られる画像が、前記第2の画像の一部分を切り出した画像のうちの一つと相似の関係にあるように画像の変換を行うことを特徴とする撮像装置またはプログラムである。According to another aspect of the present invention, an imaging unit that captures an image of a subject to acquire a captured image, a first image acquisition unit that acquires the captured image as a first image, and a second image are acquired. Second image acquisition means, first area acquisition means for acquiring a first square area on the first image plane, and second square area that is a rectangle on the second image plane Second area acquisition means for converting the second image in the second square area, which is a rectangular area, to obtain a converted image by applying a shape conversion based on the shape of the first square area. A conversion unit; and an image in the first square area in the first image; and a combination unit that combines the conversion image. The conversion unit generates the conversion image generated by the conversion unit. The image obtained when keystone is corrected is a part of the second image. An image pickup apparatus or a program which is characterized in that the conversion of the image to be in one and similarity relationship in the image.
本発明によれば、主画像と副画像を効果的に合成することができる。 According to the present invention, a main image and a sub image can be effectively combined.
以下、本発明の実施形態を、デジタルカメラ等の撮像装置への適用を例にして、図面を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings, taking application to an imaging apparatus such as a digital camera as an example.
図1は、本発明の実施形態に係る撮像装置の概念構成図である。この図において、撮像装置1は、不図示の被写体の像を光学系2を介して取り込み、その像を電気信号に変換し、画像信号として出力するCCDやCMOS等の撮像部3と、撮像部3からの撮像信号に対してガンマ補正等の所要の画像処理を施す画像処理部4と、画像処理済みの画像信号を構図確認用のスルー画像として表示したり撮影済みの画像を再生表示したり必要に応じて各種設定用のメニューを表示したりする液晶ディスプレイパネルからなる表示部5と、撮影済み画像を記憶する記憶部6と、シャッタボタン7やモードボタン8などの様々な操作ボタン類を有する操作部9と、バッテリを含む電源部10と、外部機器(パソコン等)との間で画像データなどをやり取りする入出力部11と、撮像装置1の動作を統括制御する制御部12とを備える。なお、これ以外にも、ストロボ発光部などを備えるが、図面の煩雑化を避けるためにここでは割愛している。
FIG. 1 is a conceptual configuration diagram of an imaging apparatus according to an embodiment of the present invention. In this figure, an
制御部12は、たとえば、CPU13やRAM14及びROM15などを含んで構成されており、CPU13は、ROM15に格納されている制御プログラムや制御データをRAM14に読み出して実行することにより、撮像装置1に必要な各種機能(撮影機能や再生機能等)を実現するものである。
The
図2は、制御部12のCPU13で実行される制御プログラムの簡略フローを示す図である。このプログラムは、撮像装置1の電源をオンにしたときに実行される。このプログラムを開始すると、まず、撮像装置1の動作モード(撮影モード/再生モード)を判定する(ステップS1)。この動作モードは、ユーザ(撮影者)の所望に応じて、操作部9のモードボタン8により任意に変更できるようになっている。
FIG. 2 is a diagram showing a simplified flow of a control program executed by the
ステップS1で撮影モードを判定した場合は、撮影処理を実行し(ステップS2)、再生モードを判定した場合は、再生処理を実行する(ステップS3)。 If the shooting mode is determined in step S1, the shooting process is executed (step S2). If the playback mode is determined, the playback process is executed (step S3).
図3は、撮影処理の簡略フローを示す図である。この図において、撮影処理を開始すると、まず、スルー画像を表示し(ステップS11)、画像合成モードであるか否かを判定する(ステップS12)。そして、画像合成モードでなければ、通常の撮影モードであると判断して、操作部9のシャッタボタン7の押し下げ操作(以下、シャッタレリーズという。)を判定し(ステップS13)、シャッタレリーズを判定すると、画像処理部4から出力された撮像部3の撮影画像を取り込み(ステップS14)、その撮影画像を記憶部6に記憶保存する(ステップS15)。
FIG. 3 is a diagram showing a simplified flow of the photographing process. In this figure, when shooting processing is started, first, a through image is displayed (step S11), and it is determined whether or not it is in an image composition mode (step S12). If it is not the image composition mode, it is determined that the camera is in the normal shooting mode, and a pressing operation of the
一方、ステップS12で画像合成モードが判定されたときは、シャッタレリーズを判定し(ステップS16)、シャッタレリーズを判定すると、画像処理部4から出力された撮像部3の撮影画像を「第1の画像」として取り込む(ステップS17)と共に、記憶部6に保存されている所定の画像(たとえば、テンプレート画像)を「第2の画像」として取り込み(ステップS18)、これらの第1の画像と第2の画像に対して後述の合成処理を実行し(ステップS19)、その合成画像を記憶部6に記憶保存する(ステップS15)。
なお、ここでは撮影画像である「第1の画像」の取り込み後に、所定の画像である「第2の画像」を取り込むように構成しているが、状況に応じて順番を逆にしても構わない。
On the other hand, when the image compositing mode is determined in step S12, the shutter release is determined (step S16). When the shutter release is determined, the captured image of the
Here, the “second image” that is a predetermined image is captured after capturing the “first image” that is a captured image, but the order may be reversed depending on the situation. Absent.
図4は、再生処理の簡略フローを示す図である。この図において、再生処理を開始すると、まず、画像合成モードであるか否かを判定する(ステップS21)。そして、画像合成モードでなければ、通常の再生モードであると判断して、記憶部6に保存されている撮影済み画像のサムネイルリストを表示部5に表示し(ステップS22)、ユーザによる再生画像の選択操作(ステップS23)に応答して、その選択画像を表示部5に表示する(ステップS24)。 FIG. 4 is a diagram showing a simplified flow of the reproduction process. In this figure, when the reproduction process is started, it is first determined whether or not it is an image composition mode (step S21). If the mode is not the image composition mode, it is determined that the playback mode is normal, and a thumbnail list of captured images stored in the storage unit 6 is displayed on the display unit 5 (step S22). In response to the selection operation (step S23), the selected image is displayed on the display unit 5 (step S24).
一方、ステップS21で画像合成モードが判定されたときは、記憶部6に保存されている撮影済み画像のサムネイルリストを表示部5に表示し(ステップS25)、ユーザによる「第1の画像」の選択操作(ステップS26)と「第2の画像」の選択操作(ステップS27)とに応答して、それらの選択画像(第1の画像と第2の画像)に対して後述の合成処理を実行し(ステップS28)、その合成画像を表示部5に表示(ステップS29)した後、又は、表示と並行して、その合成画像を記憶部6に記憶保存する(ステップS30)。 On the other hand, when the image composition mode is determined in step S21, a thumbnail list of captured images stored in the storage unit 6 is displayed on the display unit 5 (step S25), and the "first image" by the user is displayed. In response to the selection operation (step S26) and the “second image” selection operation (step S27), a composition process described later is executed on the selected images (first image and second image). After the composite image is displayed on the display unit 5 (step S29) or in parallel with the display, the composite image is stored and saved in the storage unit 6 (step S30).
図5は、撮影処理と再生処理に共通の合成処理(図3のステップS19及び図4のステップS29)の簡略フローを示す図、図6は、その合成処理の概念図である。これらの図において、合成処理を開始すると、まず、第1の画像21の中の矩形状指定領域22に含まれる画像(以下、被合成画像23という。)を抽出する(ステップS31及び図6の(a))。ここでは、被合成画像23は、説明の便宜上、アルファベットの“A”の文字が写っているものとする。
FIG. 5 is a diagram showing a simplified flow of the synthesizing process (step S19 in FIG. 3 and step S29 in FIG. 4) common to the photographing process and the reproducing process, and FIG. 6 is a conceptual diagram of the synthesizing process. In these figures, when the synthesis process is started, first, an image included in the rectangular designated
次いで、第2の画像24の中に合成領域25を設定する(ステップS32及び図6の(b))。この合成領域25の形状は任意であり、ここでは、たとえば、左右辺の長さが異なる横台形状であるものとする。
Next, a
次いで、合成領域25の形に対応させて、被合成画像23の形を変形する(ステップS33及び図6の(c))。ここでは、合成領域25の形に対応させる一つの例として、合成領域25の形に合わせて被合成画像23の形を横台形画像26に変形している。この変形には、公知のアファイン変換を用いることが好ましい。
Next, the shape of the synthesized
次いで、変換後の被合成画像23(つまり、この例の場合は横台形画像26)を、第2の画像24の中の合成領域25に填め込み合成して、最終的な合成画像27を得る(ステップS34及び図6の(d))。
Next, the converted composite image 23 (that is, the horizontal
以上のとおり、本実施形態によれば、第2の画像24の合成領域25に、第1の画像21の矩形状指定領域22に含まれる画像(被合成画像23)を嵌め込む際に、第2の画像24の合成領域25の形状を考慮して、被合成画像23の形を適切に変更した上で上記填め込みを簡易に行うことができるという、冒頭で説明した従来技術にない格別な効果を得ることができる。
As described above, according to the present embodiment, when the image (the synthesized image 23) included in the rectangular designated
なお、本発明は以上の実施形態に限定されることなく、その思想の範囲内において、様々な発展例や変形例を含むことはもちろんであり、たとえば、以下のようにしてもよい。 In addition, this invention is not limited to the above embodiment, Of course, various development examples and modifications are included within the scope of the idea, and for example, the following may be adopted.
前記の実施形態においては、撮影モード時の画像合成を行う際に、第2の画像24の合成領域25に、第1の画像21の矩形状指定領域22に含まれる画像(被合成画像23)を嵌め込むようにしているが、この逆であってもよい。つまり、図示はしないが、第1の画像21の合成領域に、第2の画像24の矩形状指定領域に含まれる画像(被合成画像23)を嵌め込むようにしてもよい。
In the above-described embodiment, when performing the image composition in the shooting mode, the image included in the rectangular designated
また、前記の実施形態においては、撮影モード時の画像合成を行う際の第1の画像21は撮像部3によって撮影された撮影画像であり、第2の画像24は記憶部6に保存されている所定の画像(たとえば、合成用画像であるテンプレート画像)であるが、これを逆にしてもよい。つまり、第1の画像21を記憶部6に保存されている所定の画像(たとえば、テンプレート画像)とし、第2の画像24を撮像部3によって撮影された撮影画像としてもよい。あるいは、記憶部6に保存されている所定の画像(たとえば、テンプレート画像)の代わりに他の画像、たとえば、スルー画像を用いてもよい。
In the above-described embodiment, the
たとえば、合成用画像である第1の画像を選択しておき、この第1の画像の所望の領域に、スルー画像である第2の画像を表示するようにしてもよい。 For example, a first image that is an image for synthesis may be selected, and a second image that is a through image may be displayed in a desired region of the first image.
この時、スルー画像は、上記した合成処理により、合成領域に対応させて画像の形状を変形させた上で表示されていることが望ましい。つまり、合成用画像である第1の画像の中の所望の領域に、スルー画像である第2の画像を、上記合成処理により変形させた上で表示しているこの状態で、シャッターキーを押下することで、上記したスルー画像を、撮影画像と置き換えるようにして合成画像を生成するようにすることが望ましい。 At this time, it is desirable that the through image is displayed after the shape of the image is deformed in accordance with the synthesis region by the above-described synthesis processing. That is, in this state where the second image, which is a through image, is deformed and displayed in a desired area in the first image, which is the image for composition, by pressing the shutter key. Thus, it is desirable to generate a composite image by replacing the through image described above with a captured image.
これにより、画像合成後の状態をスルー画像として確認しながら所望の合成画像を撮影して合成することができるというメリットがある。従来は、合成後の画像のでき具合を考慮しながら画像合成用の撮影を行なうことはできなかったので、このように構成することは特にメリットがある。 Accordingly, there is an advantage that a desired composite image can be photographed and combined while confirming the state after the image combination as a through image. Conventionally, it has not been possible to take a picture for image synthesis while taking into account the quality of the synthesized image, so that this configuration is particularly advantageous.
このことについて、具体例を挙げて説明する。今、第1の画像として、たとえば、額縁のようなもの(以下、説明の便宜上、額縁とする。)が写った画像を想定し、その第1の画像の額縁内にスルー画像(第2の画像)を表示することを考える。この場合、撮影者は、表示部5に表示されているモニター画像(第1の画像の額縁内のスルー画像)を見ながら、構図を調整し、所望の構図が得られた時点で撮影を行う(シャッタレリーズする)ことになるが、撮影された画像は、あたかも額縁内に被写体が嵌め込まれたものとなり、結局、いわゆる「プリクラ」のような遊び心に溢れた合成画像を得ることができる。 This will be described with a specific example. Now, for example, an image in which something like a frame (hereinafter referred to as a frame for convenience of description) is assumed as the first image, and a through image (second image) is included in the frame of the first image. Consider displaying an image. In this case, the photographer adjusts the composition while looking at the monitor image displayed on the display unit 5 (through image in the frame of the first image), and takes a picture when the desired composition is obtained. (Shutter release), however, the photographed image is as if the subject was fitted in the frame, and eventually, a composite image overflowing with playfulness such as a so-called “printer” can be obtained.
ここで、額縁内にスルー画像を嵌め込む際には、元のスルー画像の大きさを額縁の大きさに合わせて縮小することになる。また、額縁の形が矩形以外の形状になっている場合は、上記の縮小と共に、元のスルー画像の形状を額縁の形に合わせて変形する。 Here, when the through image is fitted into the frame, the size of the original through image is reduced in accordance with the size of the frame. Further, when the shape of the frame is a shape other than a rectangle, along with the above reduction, the shape of the original through image is deformed according to the shape of the frame.
また、合成領域25の形に対応させて被合成画像23の形を変形する(ステップS33及び図6の(c))とは、前記の例示のとおりに、合成領域25の形が横台形状である場合に、それに合わせて被合成画像23の形を横台形画像26に変形することだけでなく、その他の態様も含むものである。すなわち、合成領域25にぴったりと収まるように被合成画像23の形を変形するのみならず、被合成画像23が合成領域25から若干はみ出す程度に変形する態様も含むものである。これにより、より自然な状態での合成画像とできることがある。
Further, the shape of the synthesized
また、被合成画像23は、第1の画像21の全体であってもよい。
図7(a)は、第1の画像21の全体を被合成画像23とする場合の概念図である。この図において、被合成画像23は、第1の画像21の全体であり、このままでは大きすぎて第2の画像24の合成領域25に収まらない。そこで、この場合には、被合成画像23(=第1の画像21)の全体を縮小した上、その縮小画像28を、合成領域25の形に対応させて変形する。
Further, the
FIG. 7A is a conceptual diagram in the case where the entire
また、主要被写体が合成領域25に入りきらない程度に大き過ぎる被合成画像23の場合には、その被合成画像23の主要被写体の要部を切り出すようにしてもよい。
図7(b)は、主要被写体が大き過ぎる被合成画像23の対策を示す概念図である。この図において、第1の画像21の中の矩形状指定領域22から抽出された被合成画像23は、第2の画像24の合成領域25に対して相当に大きく、このままでは、合成領域25の形に対応させて被合成画像23の形を変形しても、合成領域25に収まらない。そこで、このような場合には、被合成画像23の面積中心点Paを基準にして適切な範囲を切り出し、その切り出し画像29を合成領域25の形に対応させて変形した上、第2の画像24の合成領域25に填め込み合成すればよい。
In addition, in the case of the
FIG. 7B is a conceptual diagram showing a countermeasure for the combined
あるいは、次のようにしてもよい。
図7(c)は、主要被写体が大き過ぎる被合成画像23の他の対策を示す概念図である。この図においても、第1の画像21の中の矩形状指定領域22から抽出された被合成画像23は、第2の画像24の合成領域25に対して相当に大きく、このままでは、合成領域25の形に対応させて被合成画像23の形を変形しても、合成領域25に収まらない。そこで、このような場合には、被合成画像23の縦又は横寸法(ここでは縦寸法)を縮小し、その縮小画像30を合成領域25の形に対応させて変形した上、第2の画像24の合成領域25に填め込み合成すればよい。
Alternatively, the following may be performed.
FIG. 7C is a conceptual diagram showing another countermeasure against the
または、前記の実施形態では、第1の画像21の中の矩形状指定領域22に含まれる画像(以下、被合成画像23という。)を抽出する(ステップS31及び図6の(a))とされており、この抽出には、たとえば、画像の輪郭抽出の技術を応用できるものの、画像の内容によっては、複数の矩形領域が抽出されてしまうことがあり、この場合、前記被合成画像23の抽出に不都合を来してしまう。
Or in the said embodiment, the image (henceforth the synthesized image 23) contained in the rectangular-shaped designation | designated area |
図8は、複数の矩形領域が抽出されてしまった場合の対策を示す概念図である。この図において、表示部5のモニタ画面上には、第1の画像21の中から抽出された複数の矩形領域31〜34が“枠取り”されて表示されている。ユーザは、それらの矩形領域31〜34から所望の領域を選択する。たとえば、太枠で示されている左下の矩形領域33が選択されたとすると、この矩形領域33が前述の矩形状指定領域22となり、以降、この矩形状指定領域22に含まれる画像が被合成画像23として抽出される。
FIG. 8 is a conceptual diagram showing a countermeasure when a plurality of rectangular areas have been extracted. In this figure, a plurality of
または、以下のようにしてもよい。
図9は、アスペクト比の調整概念図である。まず、図示の例は、画像110の台形状の領域101に、画像103の全体を嵌め込むことを想定したものである。ここで、画像103は、画像120の中の所定の領域を矩形に切り出したものであるものとする。
Or it may be as follows.
FIG. 9 is a conceptual diagram of adjustment of the aspect ratio. First, the illustrated example assumes that the
その場合の処理の一例を下記に示す。
先ず、領域101の台形補正を行い、矩形状の領域102を作成する。
このとき、台形補正を行った際のアフィンパラメータAを、RAM14に記憶しておく。
An example of processing in that case is shown below.
First, trapezoidal correction of the
At this time, the affine parameter A when the keystone correction is performed is stored in the
そして、領域102と画像103のアスペクト比を比較し、領域102のアスペクト比になるように、画像103を加工する。具体的には、領域102の横寸法をaとすると共に縦寸法をbとし、画像103の横寸法をa´とすると共に縦寸法をb´としたとき、a/a´<=b/b´のときは、領域102のアスペクト比に対して、画像103のアスペクト比は横に幅広いので、領域102のアスペクト比からはみ出る部分を左右均等に切り取ると共に、切り取った画像をb/b´倍することで、領域102にちょうど適合する画像105を生成し、この画像105を画像104とする。
Then, the aspect ratio of the
また、a/a´>b/b´のときは、領域102のアスペクト比に対して、画像103のアスペクト比は縦に幅広いので、領域102のアスペクト比からはみ出る部分を上下均等に切り取ると共に、切り取った画像をa/a´倍することで、領域102にちょうど適合する画像106を生成し、この画像106を画像104とする。
In addition, when a / a ′> b / b ′, the aspect ratio of the
つまり、画像104とは、画像103と相似にある画像104´の所定部分を切り取り、領域102に当てはまるようにしたものと同等である。
In other words, the
ここでは、画像の切り取り後に変倍を行っているが、変倍後に画像の切り取りを行うように構成しても構わない。 Here, zooming is performed after the image is cut out, but the image may be cut out after zooming.
なお、上記においては、左右または上下の領域を均等に切り取るように構成したが、このようではなくともよく、主要被写体を検出して、その主要被写体の位置に基づいて、画像を切り取り領域を変化させてもよい。例えば、主要被写体の中心位置を算出して、計算した中心位置から、左右又は上下均等に画像を残して領域102と同等のアスペクト比部分を形成し、残りの部分を削除する構成としても構わない。
In the above description, the left and right or upper and lower areas are cut out equally. However, this is not necessary. The main subject is detected, and the image is cut out based on the position of the main subject. You may let them. For example, the center position of the main subject may be calculated, and an aspect ratio portion equivalent to that of the
上記のようにして作成した画像104を、今度は、領域101を領域102に変換したときのアフィンパラメータであるアフィンパラメータAを用いて、台形補正の逆変換を行い、画像104の形状を、画像107の形状になるように変形する。つまり、画像107は、領域101に丁度等しい形状となる。
This time, the
このようにして、画像110の領域101部分に画像107を合成した画像110´を合成することができる。
In this way, an
これにより、画像103が矩形であるがために、下記のメリットを得ることができる。画像110から選択された領域である領域101が、例えば、直方体の表示領域を持つテレビを斜めから撮影したときのテレビの画面枠となる領域であるような場合、上記の変換方法を用いることにより、画像107は、画像110の中で、もしもこのテレビを正面から見たなら、画像104のようにみえるかのように表現される。
Thereby, since the
つまり、画像110の中で、画像107は、あたかもそのテレビの中で、自然に表示されている画像であるかのように表現される。
That is, in the
このように、上記の画像合成方法においては、領域101が画像110の中で、もともと矩形である領域を斜めから撮影したために、画像110の中では矩形として表現されていない領域であるような場合に、矩形である所望の画像(例えば画像103)を、もし領域101を正面から撮影した場合に、正しい縦横比で表示されるように、適切に画像103を加工して、画像110に合成することを可能にする。
As described above, in the above image composition method, the
したがって、画像104と、画像103の部分画像のうちの一つが相似の関係になっているので、領域101が、ある方向から撮影した場合に矩形となる場合において、画像110の中で、画像103を、より自然に、領域101にはめこむことが可能になる。
Therefore, since the
なお、上記図9に係る実施形態においては、画像110中の領域101は台形状であるとしたが、これに限らず、以下のようなものであってもよい。
In the embodiment according to FIG. 9 described above, the
図10は、他の画像変形概念図である。この図において、画像110中であって、領域101を含み、形状がこの領域101と相似である領域101´を設定して、この領域101´内部の画像110を切り取って台形補正を行った台形補正画像130を取得し、その台形補正画像130内の、前記領域101に相当する領域である領域131(領域101´の台形補正に伴い、領域101自体も同時に台形補正されている。つまり領域131は矩形である。)を取得するようにして、ここで求めた台形補正画像130を画像110として、領域131を領域101として再設定した上で、図9に係る画像変換を行なうようにしても構わない。
FIG. 10 is another conceptual diagram of image deformation. In this figure, a trapezoid obtained by setting a
また、同様にして、図6に係る実施形態においても、本なおがきは適用可能である。 Similarly, this postcard can be applied to the embodiment according to FIG.
図11は、さらに他の画像変形概念図である。この図において、図6に係る実施形態においては、画像24中の領域25は台形状であるとしたが、画像24中であって、領域25を含み、形状がこの領域25と相似である領域25´を設定して、この領域25´内部の画像24を切り取って台形補正を行った台形補正画像140を取得し、その台形補正画像140内の、前記領域25に相当する領域である領域141(領域25´の台形補正に伴い、領域25自体も同時に台形補正されている。つまり領域141は矩形である。)を取得するようにして、ここで求めた台形補正画像140を画像24として、領域141を領域25として再設定した上で、図6に係る画像変換を行なうようにしても構わない。
FIG. 11 is still another image deformation conceptual diagram. In this figure, in the embodiment according to FIG. 6, the
これにより、また異なった風合いの画像を取得することが可能となる。 This makes it possible to obtain images with different textures.
また、これにより、例えば領域101から領域102への台形補正と、これに伴う画像104から画像107への逆台形補正を行う必要が無くなり、処理の簡略化を図ることができる。
This eliminates the need for, for example, the trapezoidal correction from the
1 撮像装置
3 撮像部(撮像手段)
6 記憶部(記憶手段)
12 制御部(第1の画像取得手段、第2の画像取得手段、第3の画像取得手段、第1の領域取得手段、第2の領域取得手段、第3の領域取得手段、第4の領域取得手段、変換手段、合成手段)
21 第1の画像
22 矩形状指定領域(第1の四角領域)
24 第2の画像
25 合成領域(第2の四角領域)
26 横台形画像(変換画像)
29 切り出し画像
30 縮小画像
DESCRIPTION OF
6 Storage unit (storage means)
12 control unit (first image acquisition means, second image acquisition means, third image acquisition means, first area acquisition means, second area acquisition means, third area acquisition means, fourth area (Acquisition means, conversion means, synthesis means)
21
24
26 Horizontal trapezoidal image (converted image)
29
Claims (6)
前記撮影画像を第1の画像として取得する第1の画像取得手段と、
第2の画像を取得する第2の画像取得手段と、
前記第1の画像平面上の矩形である第1の四角領域を取得する第1の領域取得手段と、
前記第2の画像平面上の第2の四角領域を取得する第2の領域取得手段と、
矩形の領域である前記第1の四角領域内の第1の画像を、前記第2の四角領域の形状に基づきあてはまるように形状変換して変換画像を取得する変換手段と、
前記第2の画像中の第2の四角領域内の画像と、前記変換画像を合成する合成手段と、
を備え、
前記変換手段は、この変換手段で生成している前記変換画像を台形補正した場合に得られる画像が、前記第1の画像の一部分を切り出した画像のうちの一つと相似の関係にあるように画像の変換を行うことを特徴とする撮像装置。 Imaging means for capturing an image of a subject and acquiring a captured image;
First image acquisition means for acquiring the captured image as a first image;
Second image acquisition means for acquiring a second image;
First area acquisition means for acquiring a first square area that is a rectangle on the first image plane;
Second area acquisition means for acquiring a second square area on the second image plane;
Conversion means for converting a shape of the first image in the first square region, which is a rectangular region, so as to be applied based on the shape of the second square region, and obtaining a converted image;
Combining means for combining the image in the second square area in the second image with the converted image;
With
The conversion means is configured so that an image obtained when the converted image generated by the conversion means is trapezoidally corrected is similar to one of the images cut out of a part of the first image. An image pickup apparatus that performs image conversion.
前記撮影画像を第1の画像として取得する第1の画像取得手段と、
第2の画像を取得する第2の画像取得手段と、
前記第1の画像平面上の第1の四角領域を取得する第1の領域取得手段と、
前記第2の画像平面上の矩形である第2の四角領域を取得する第2の領域取得手段と、
矩形の領域である前記第2の四角領域内の第2の画像を、前記第1の四角領域の形状に基づきあてはまるように形状変換して変換画像を取得する変換手段と、
前記第1の画像中の第1の四角領域内の画像と、前記変換画像を合成する合成手段と、
を備え、
前記変換手段は、この変換手段で生成している前記変換画像を台形補正した場合に得られる画像が、前記第2の画像の一部分を切り出した画像のうちの一つと相似の関係にあるように画像の変換を行うことを特徴とする撮像装置。 Imaging means for capturing an image of a subject and acquiring a captured image;
First image acquisition means for acquiring the captured image as a first image;
Second image acquisition means for acquiring a second image;
A first region acquisition means for acquiring a first square region on the first image plane,
Second area acquisition means for acquiring a second square area that is a rectangle on the second image plane;
Conversion means for converting a second image in the second square area, which is a rectangular area, to obtain a converted image by applying shape conversion so as to be applied based on the shape of the first square area;
Combining means for combining the image in the first square region in the first image and the converted image;
With
The converting means is configured so that an image obtained when the converted image generated by the converting means is trapezoidally corrected is similar to one of the images cut out from a part of the second image. An image pickup apparatus that performs image conversion.
前記撮像手段により逐次撮像して得られる撮影画像を前記第1の画像とし、予め記憶されている画像を前記第2の画像として、前記合成手段により前記第3の画像を逐次生成させる第1の合成制御手段と、
を更に備え、
前記表示手段は、画像合成モードが設定されている場合には、前記第1の合成制御手段により逐次生成される第3の画像を前記撮影画像に代えてスルー画像として逐次表示させることを特徴とする請求項1または2に記載の撮像装置。 Display means for sequentially displaying the captured image obtained by sequentially captured as a through image by the image pickup means,
A first image in which the third image is sequentially generated by the synthesizing unit, with the photographed image obtained by sequential imaging by the imaging unit as the first image, the image stored in advance as the second image, Synthesis control means;
Further comprising
The display means sequentially displays the third image sequentially generated by the first composition control means as a through image instead of the captured image when the image composition mode is set. The imaging apparatus according to claim 1 or 2 .
撮影指示に応じて前記撮像手段により撮像して得られる撮影画像を前記第1の画像とし、予め記憶されている画像を前記第2の画像として、前記合成手段により前記第3の画像を生成させる第2の合成制御手段と、
を更に備え、
前記記録手段は、画像合成モードが設定されている場合には、前記第2の合成制御手段により生成された第3の画像を前記撮影画像に代えて前記記録手段により記録させることを特徴とする請求項3に記載の撮像装置。 A recording unit that records a captured image obtained by imaging by the imaging unit according to a shooting instruction;
The synthesized image is generated by the synthesizing unit using the captured image obtained by imaging by the imaging unit in response to the imaging instruction as the first image and the image stored in advance as the second image. Second synthesis control means;
Further comprising
The recording means is configured to cause the recording means to record the third image generated by the second composition control means in place of the photographed image when the image composition mode is set. The imaging device according to claim 3 .
前記撮影画像を第1の画像として取得する第1の画像取得手段と、
第2の画像を取得する第2の画像取得手段と、
前記第1の画像平面上の矩形である第1の四角領域を取得する第1の領域取得手段と、
前記第2の画像平面上の第2の四角領域を取得する第2の領域取得手段と、
矩形の領域である前記第1の四角領域内の第1の画像を、前記第2の四角領域の形状に基づきあてはまるように形状変換して変換画像を取得する変換手段と、
前記第2の画像中の第2の四角領域内の画像と、前記変換画像を合成する合成手段と、
として機能させるプログラムであって、
前記変換手段は、この変換手段で生成している前記変換画像を台形補正した場合に得られる画像が、前記第1の画像の一部分を切り出した画像のうちの一つと相似の関係にあるように画像の変換を行うことを特徴とするプログラム。 A computer of an imaging apparatus including an imaging unit that captures an image of a subject and acquires a captured image,
First image acquisition means for acquiring the captured image as a first image;
Second image acquisition means for acquiring a second image;
First area acquisition means for acquiring a first square area that is a rectangle on the first image plane;
Second area acquisition means for acquiring a second square area on the second image plane;
Conversion means for converting a shape of the first image in the first square region, which is a rectangular region, so as to be applied based on the shape of the second square region, and obtaining a converted image;
Combining means for combining the image in the second square area in the second image with the converted image;
A program that functions as
The conversion means is configured so that an image obtained when the converted image generated by the conversion means is trapezoidally corrected is similar to one of the images cut out of a part of the first image. A program characterized by converting an image.
前記撮影画像を第1の画像として取得する第1の画像取得手段と、
第2の画像を取得する第2の画像取得手段と、
前記第1の画像平面上の第1の四角領域を取得する第1の領域取得手段と、
前記第2の画像平面上の矩形である第2の四角領域を取得する第2の領域取得手段と、
矩形の領域である前記第2の四角領域内の第2の画像を、前記第1の四角領域の形状に基づきあてはまるように形状変換して変換画像を取得する変換手段と、
前記第1の画像中の第1の四角領域内の画像と、前記変換画像を合成する合成手段と、
として機能させるプログラムであって、
前記変換手段は、この変換手段で生成している前記変換画像を台形補正した場合に得られる画像が、前記第2の画像の一部分を切り出した画像のうちの一つと相似の関係にあるように画像の変換を行うことを特徴とするプログラム。
A computer of an imaging apparatus including an imaging unit that captures an image of a subject and acquires a captured image,
First image acquisition means for acquiring the captured image as a first image;
Second image acquisition means for acquiring a second image;
A first region acquisition means for acquiring a first square region on the first image plane,
Second area acquisition means for acquiring a second square area that is a rectangle on the second image plane;
Conversion means for converting a second image in the second square area, which is a rectangular area, to obtain a converted image by applying shape conversion so as to be applied based on the shape of the first square area;
Combining means for combining the image in the first square region in the first image and the converted image;
A program that functions as
The converting means is configured so that an image obtained when the converted image generated by the converting means is trapezoidally corrected is similar to one of the images cut out from a part of the second image. A program characterized by converting an image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007248950A JP5035614B2 (en) | 2007-09-26 | 2007-09-26 | Imaging apparatus and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007248950A JP5035614B2 (en) | 2007-09-26 | 2007-09-26 | Imaging apparatus and program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2009080619A JP2009080619A (en) | 2009-04-16 |
JP2009080619A5 JP2009080619A5 (en) | 2010-10-28 |
JP5035614B2 true JP5035614B2 (en) | 2012-09-26 |
Family
ID=40655330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007248950A Expired - Fee Related JP5035614B2 (en) | 2007-09-26 | 2007-09-26 | Imaging apparatus and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5035614B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8244070B2 (en) * | 2009-06-01 | 2012-08-14 | Xerox Corporation | Real-time image personalization |
US8934024B2 (en) * | 2010-01-14 | 2015-01-13 | Fuji Xerox Co., Ltd. | Efficient, user-friendly system to stream screens inside video using a mobile device |
JP5845565B2 (en) * | 2010-10-28 | 2016-01-20 | セイコーエプソン株式会社 | Projector and projector control method |
JP6687946B2 (en) * | 2016-09-27 | 2020-04-28 | 株式会社ソルトワークス | Image processing method and image processing program |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09269999A (en) * | 1996-01-31 | 1997-10-14 | Fuji Photo Film Co Ltd | Device for synthesizing picture and its method |
JP2004173300A (en) * | 1997-01-10 | 2004-06-17 | Casio Comput Co Ltd | Image pickup device and picked-up image working method |
JP3222091B2 (en) * | 1997-05-27 | 2001-10-22 | シャープ株式会社 | Image processing apparatus and medium storing image processing apparatus control program |
JPH11195106A (en) * | 1997-12-26 | 1999-07-21 | Canon Inc | Data processing method, device and storage medium |
JP2005269449A (en) * | 2004-03-19 | 2005-09-29 | Casio Comput Co Ltd | Image processor, image processing method and program |
JP4548144B2 (en) * | 2005-02-23 | 2010-09-22 | カシオ計算機株式会社 | Digital camera device and through image display method |
JP2007013734A (en) * | 2005-06-30 | 2007-01-18 | Canon Software Inc | Photographic device, method, program and storage medium |
JP2007104198A (en) * | 2005-10-03 | 2007-04-19 | Fujifilm Corp | Imaging apparatus and program |
JP4832878B2 (en) * | 2005-12-09 | 2011-12-07 | 倉敷紡績株式会社 | Image composition processing apparatus and method |
-
2007
- 2007-09-26 JP JP2007248950A patent/JP5035614B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009080619A (en) | 2009-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4869270B2 (en) | Imaging apparatus and image reproduction apparatus | |
JP5578442B2 (en) | Imaging apparatus, image composition method, and program | |
JP2010130437A (en) | Imaging device and program | |
JP4697078B2 (en) | Imaging apparatus and program thereof | |
JP6304293B2 (en) | Image processing apparatus, image processing method, and program | |
JP4772009B2 (en) | Digital camera | |
JP4380644B2 (en) | Electronic camera device | |
JP4696614B2 (en) | Image display control device and program | |
JP4748442B2 (en) | Imaging apparatus and program thereof | |
JP4735166B2 (en) | Image display apparatus and program | |
JP5035614B2 (en) | Imaging apparatus and program | |
JP5282530B2 (en) | Digital camera | |
JP4189820B2 (en) | Imaging apparatus and image recording method | |
JP4986189B2 (en) | Imaging apparatus and program | |
JP2007142639A (en) | Imaging apparatus and program therefor | |
JP4710351B2 (en) | Digital camera and program | |
JP2009118084A (en) | Digital camera | |
JP2003244507A (en) | Digital camera | |
JP5003803B2 (en) | Image output apparatus and program | |
JP6857863B1 (en) | Imaging device and recording method of image data | |
JP5614713B2 (en) | Imaging apparatus and program | |
JP4352236B2 (en) | Imaging apparatus and program thereof | |
JP2006191296A (en) | Image synthesizing apparatus and electronic camera | |
JP2010161526A (en) | Digital camera | |
JP2011120060A (en) | Imaging apparatus, imaging method, and imaging program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100909 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100909 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110628 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110826 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111206 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120203 |
|
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: 20120607 |
|
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: 20120620 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150713 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5035614 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 |