JP6245992B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP6245992B2 JP6245992B2 JP2014001135A JP2014001135A JP6245992B2 JP 6245992 B2 JP6245992 B2 JP 6245992B2 JP 2014001135 A JP2014001135 A JP 2014001135A JP 2014001135 A JP2014001135 A JP 2014001135A JP 6245992 B2 JP6245992 B2 JP 6245992B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- image data
- comparison
- data
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000012545 processing Methods 0.000 title claims description 175
- 238000003672 processing method Methods 0.000 title claims description 8
- 238000000034 method Methods 0.000 claims description 87
- 239000002131 composite material Substances 0.000 claims description 82
- 230000008569 process Effects 0.000 claims description 80
- 230000015572 biosynthetic process Effects 0.000 claims description 79
- 238000003786 synthesis reaction Methods 0.000 claims description 79
- 238000003384 imaging method Methods 0.000 claims description 51
- 238000006243 chemical reaction Methods 0.000 claims description 34
- 230000001186 cumulative effect Effects 0.000 claims description 22
- 230000000052 comparative effect Effects 0.000 description 56
- 239000000203 mixture Substances 0.000 description 33
- 238000010586 diagram Methods 0.000 description 26
- 230000000875 corresponding effect Effects 0.000 description 13
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 5
- 238000001454 recorded image Methods 0.000 description 5
- 238000012937 correction Methods 0.000 description 3
- 230000002194 synthesizing effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 239000000470 constituent Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000003550 marker Substances 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 238000003705 background correction Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
Description
本発明は、複数の画像データにおけるピクセル位置が対応するピクセルデータ同士を値に応じて比較選択し合成画像データを得る画像処理装置、画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method for obtaining composite image data by comparing and selecting pixel data corresponding to pixel positions in a plurality of image data according to values.
従来より、複数の画像を合成する際に、同一画素(ピクセル)位置のピクセル同士の内の、明るいピクセルを採用する比較明合成と、暗いピクセルを採用する比較暗合成と、が知られている。 Conventionally, when synthesizing a plurality of images, comparatively bright composition using bright pixels and comparative dark composition using dark pixels among pixels at the same pixel (pixel) position are known. .
そして、ライブビューにより合成画像を観察しながら、比較明合成撮影や比較暗合成撮影を行うことが可能な撮像装置が提案されている。 An imaging apparatus has been proposed that can perform comparatively bright composite photography and comparative dark composite photography while observing a composite image with a live view.
例えば、特開2013−62740号公報には、撮像センサと記憶部と表示部とを備えた撮像装置において、撮像センサの露光および読み出しを所定の周期で繰り返し行って複数枚の画像を順次取得する処理であるインターバル撮影処理を行うインターバル撮影手段と、インターバル撮影処理により順次取得される複数枚の画像のうち、1枚目の画像と2枚目の画像とを用いて比較明合成処理を行って処理結果を合成画像として記憶部に記憶し、3枚目以降の画像については、画像と記憶部に記憶された合成画像とを用いて比較明合成処理を行って処理結果を新たな合成画像として記憶部に記憶する処理を繰り返し行う比較明合成手段と、第1の操作が行われた場合に、インターバル撮影処理を停止させることなく、記憶部に記憶された合成画像を表示部に表示させる合成画像表示手段と、を備える撮像装置が記載されている。 For example, Japanese Patent Laid-Open No. 2013-62740 discloses that in an imaging apparatus including an imaging sensor, a storage unit, and a display unit, exposure and readout of the imaging sensor are repeatedly performed at a predetermined cycle to sequentially acquire a plurality of images. The comparatively bright combination process is performed using the interval photographing means for performing the interval photographing process, and the first image and the second image among the plurality of images sequentially acquired by the interval photographing process. The processing result is stored in the storage unit as a composite image, and the third and subsequent images are subjected to comparatively bright composite processing using the image and the composite image stored in the storage unit, and the processing result is set as a new composite image. The comparatively bright combination means for repeatedly performing the process stored in the storage unit and the combination stored in the storage unit without stopping the interval shooting process when the first operation is performed. Imaging apparatus comprising: a composite image display means for displaying an image on the display unit, a is described.
例えば比較明合成を行う場合には、順次撮影された複数の画像における、同一ピクセル位置の複数のピクセルの中の最も明るいピクセルが採用されて合成画像に用いられるために、例えば被写体が花火である場合には、同じ位置に順次打ち上げられた輝度の高い花火と輝度の低い花火を撮影して比較明合成しても、輝度の低い花火は合成画像に残らない。また、比較暗合成を行う場合には、逆に、同一位置の輝度の高い被写体は合成画像に残らないことになる。 For example, when performing comparatively bright combination, since the brightest pixel among a plurality of pixels at the same pixel position in a plurality of images taken sequentially is adopted and used for a combined image, for example, the subject is fireworks. In this case, even if a high-luminance firework and a low-luminance firework sequentially launched at the same position are photographed and combined with comparatively bright light, the low-luminance firework does not remain in the composite image. On the other hand, when performing comparative dark combination, a subject with high luminance at the same position does not remain in the combined image.
本発明は上記事情に鑑みてなされたものであり、複数の画像を明るさに応じて合成して合成画像を得る際に、明るさの順序に関わらず、所望の被写体を合成画像に残すことができる画像処理装置、画像処理方法を提供することを目的としている。 The present invention has been made in view of the above circumstances, and when a composite image is obtained by combining a plurality of images according to brightness, a desired subject is left in the composite image regardless of the order of brightness. An object of the present invention is to provide an image processing apparatus and an image processing method capable of performing the above.
本発明のある態様による画像処理装置は、合成処理の対象とする画像データ群中の、ある画像データを合成画像データ、他の画像データを比較画像データとし、上記合成画像データと上記比較画像データとにおけるピクセル位置が対応するピクセルデータ同士を比較して値が大きい方と小さい方との何れか一方のみを選択する比較選択を行い、比較選択されたピクセルデータを該当ピクセル位置の新たなピクセルデータとして上記合成画像データを再構成する累積比較合成処理を、上記比較画像データが更新される毎に繰り返し行う比較合成処理部と、上記画像データ群の中から例外画像データを選択する画像データ選択部と、上記例外画像データを構成するピクセルデータが、上記比較選択において値が大きい方を選択する場合には所定のスレッシュレベル以上であるとき、上記比較選択において値が小さい方を選択する場合には所定のスレッシュレベル以下であるときに、該当ピクセルについては上記累積比較合成処理の例外とし、該ピクセルデータを該当ピクセル位置の新たなピクセルデータとして上記合成画像データを上記比較合成処理部に再構成させる例外処理を行う例外処理部と、を備えている。 An image processing apparatus according to an aspect of the present invention provides a composite image data as a certain image data and a comparison image data as another image data, and the composite image data and the comparison image data. The pixel data corresponding to the pixel positions in and are compared with each other, and only one of the larger and smaller values is selected, and the comparison-selected pixel data is replaced with new pixel data at the corresponding pixel position. A comparison / synthesis processing unit that repeatedly performs cumulative comparison / synthesis processing for reconstructing the combined image data each time the comparison image data is updated, and an image data selection unit that selects exceptional image data from the image data group When the pixel data constituting the exceptional image data selects a larger value in the comparison and selection, a predetermined value is used. When the threshold level is equal to or higher than the threshold level, and the smaller value is selected in the comparison and selection, when the threshold level is equal to or lower than the predetermined threshold level, the pixel is regarded as an exception to the cumulative comparison and synthesis process, An exception processing unit that performs an exception process for causing the comparison and synthesis processing unit to reconstruct the composite image data as new pixel data of a position.
本発明のある態様による画像処理方法は、合成処理の対象とする画像データ群中の、ある画像データを合成画像データ、他の画像データを比較画像データとし、上記合成画像データと上記比較画像データとにおけるピクセル位置が対応するピクセルデータ同士を比較して値が大きい方と小さい方との何れか一方のみを選択する比較選択を行い、比較選択されたピクセルデータを該当ピクセル位置の新たなピクセルデータとして上記合成画像データを再構成する累積比較合成処理を、上記比較画像データが更新される毎に繰り返し行う比較合成処理ステップと、上記画像データ群の中から例外画像データを選択する画像データ選択ステップと、上記例外画像データを構成するピクセルデータが、上記比較選択において値が大きい方を選択する場合には所定のスレッシュレベル以上であるとき、上記比較選択において値が小さい方を選択する場合には所定のスレッシュレベル以下であるときに、該当ピクセルについては上記累積比較合成処理の例外とし、該ピクセルデータを該当ピクセル位置の新たなピクセルデータとして上記合成画像データを上記比較合成処理ステップに再構成させる例外処理を行う例外処理ステップと、を有している。 In an image processing method according to an aspect of the present invention, in a group of image data to be combined, certain image data is used as combined image data, and other image data is used as comparison image data. The pixel data corresponding to the pixel positions in and are compared with each other, and only one of the larger and smaller values is selected, and the comparison-selected pixel data is replaced with new pixel data at the corresponding pixel position. A comparison and synthesis processing step of repeatedly performing cumulative comparison and synthesis processing for reconstructing the composite image data every time the comparison image data is updated, and an image data selection step of selecting exceptional image data from the image data group When the pixel data constituting the exceptional image data selects the larger value in the comparison and selection, When the threshold value is equal to or higher than the predetermined threshold level, and the smaller value is selected in the comparison selection, when the threshold value is equal to or lower than the predetermined threshold level, the corresponding pixel is an exception to the cumulative comparison and synthesis process. And an exception processing step for performing an exception process in which the composite image data is reconstructed by the comparison and synthesis processing step using the data as new pixel data at the corresponding pixel position.
本発明の画像処理装置、画像処理方法によれば、複数の画像を明るさに応じて合成して合成画像を得る際に、明るさの順序に関わらず、所望の被写体を合成画像に残すことが可能となる。 According to the image processing apparatus and the image processing method of the present invention, when a composite image is obtained by combining a plurality of images according to brightness, a desired subject is left in the composite image regardless of the order of brightness. Is possible.
以下、図面を参照して本発明の実施の形態を説明する。
[実施形態1]
Embodiments of the present invention will be described below with reference to the drawings.
[Embodiment 1]
図1から図16は本発明の実施形態1を示したものであり、図1は撮像装置の構成を示すブロック図である。 1 to 16 show the first embodiment of the present invention, and FIG. 1 is a block diagram showing the configuration of the imaging apparatus.
本実施形態は、画像処理装置を、例えば、デジタルカメラ等の撮像装置1(後述する図18、図19等も参照)、あるいは撮像装置1とスマートフォンやタブレットPC等の携帯情報機器3(後述する図24参照)との組み合わせ、などに適用したものとなっている。
In the present embodiment, the image processing apparatus is, for example, an
図1に示すように、撮像装置1は、レンズ11と、シャッタ12と、撮像素子13と、信号処理部14と、比較合成処理部15と、メモリ部16と、画像処理部17と、記録部18と、表示部19と、操作部20と、システム制御部21と、を備えている。
As shown in FIG. 1, the
レンズ11は、被写体の光学像を撮像素子13上に結像する撮像光学系である。このレンズ11の焦点位置(あるいはさらに焦点距離)は、図示しないレンズ駆動系を介してシステム制御部21により制御される。
The lens 11 is an imaging optical system that forms an optical image of a subject on the
シャッタ12は、例えば、フォーカルプレーンシャッタなどのメカニカルシャッタである。このシャッタ12の動作は、図示しないシャッタ駆動系を介してシステム制御部21により制御される。ただし、撮像素子13の露光開始タイミングや露光終了タイミングを制御する素子シャッタを用いても良いし、メカニカルシャッタと素子シャッタとを組み合わせた構成であっても構わない。ここに、素子シャッタを用いる場合には、複数の画像を連続して撮影するときの画像間の撮影間隔をできるだけ小さくすることができ、撮影された画像に基づき合成処理を行えば高速で移動する被写体の軌跡を連続させることが可能になる利点がある。
The
撮像素子13は、複数の画素(ピクセル)が2次元状に配列され、光学像を撮像して画像データを生成する撮像部である。この撮像素子13は、例えば、RGBベイヤ配列のカラーフィルタを備えた単板式のCMOS撮像素子(ただし、CCD撮像素子やその他の方式の撮像素子を用いても構わない)として構成され、レンズ11により結像された被写体の光学像を光電変換して画像データを生成し出力する。この撮像素子13には、レンズ11からの光が照射されないように遮光されたOB(オプティカル・ブラック)領域が設けられている。そして、撮像素子13は、図示しない撮像素子駆動回路を介してシステム制御部21により制御されるようになっている。システム制御部21は、累積比較合成処理を行う画像合成モードが設定されているときに撮影操作がなされると、一連の画像データ群を撮像素子13に順次生成させるように制御する。
The
信号処理部14は、撮像素子13から出力された画像データに対して、相関二重サンプリング等のノイズ低減、A/D変換、信号増幅などの各処理を行う。なお、図1には信号処理部14を撮像素子13の外部に設けた例を示したが、撮像素子13の内部において同様の処理を行う構成であっても構わない。
The
比較合成処理部15は、例外処理部26と、比較部27と、合成部28と、を備えている。
The comparison /
例外処理部26は、操作部20により選択された例外画像データを構成するピクセルデータが、比較選択において値が大きい方を選択する場合には所定のスレッシュレベル以上であるとき、比較選択において値が小さい方を選択する場合には所定のスレッシュレベル以下であるときに、当ピクセルについては累積比較合成処理の例外とし、ピクセルデータを当ピクセル位置の新たなピクセルデータとして合成画像データを比較合成処理部15に再構成させる例外処理を行う。
The exception processing unit 26, when the pixel data constituting the exceptional image data selected by the
比較部27は、2つの画像の同じピクセル位置のピクセル値の大小を比較する。 The comparison unit 27 compares the pixel values at the same pixel position in the two images.
合成部28は、比較部27の判定結果に基づき、ピクセル値の置き換えによる合成処理を行う。
The synthesizing
そして比較合成処理部15は、合成処理の対象とする画像データ群中の、ある画像データを合成画像データ、他の画像データを比較画像データとし、合成画像データと比較画像データとにおけるピクセル位置が対応するピクセルデータ同士を比較部27により比較して、値が大きい方と小さい方との何れか一方のみを選択する比較選択を行い、比較選択されたピクセルデータを当ピクセル位置の新たなピクセルデータとして合成部28により合成画像データを再構成する累積比較合成処理を、比較画像データが更新される毎に繰り返し行う。
Then, the comparison /
ここに、画像合成モードには、比較選択において、値が大きい方を選択する比較明合成モードと、値が小さい方を選択する比較暗合成モードとがある。以下においては、主として比較明合成モードにおける比較合成処理部15の動作について説明するが、比較暗合成モードにおける比較合成処理部15の動作についてもほぼ同様に考えることができる。
Here, the image composition mode includes a comparatively bright composition mode in which the larger value is selected in comparison and selection, and a comparative dark composition mode in which the smaller value is selected. In the following, the operation of the comparison /
なお、比較合成処理部15が処理する画像データがベイヤ画像データである場合には、比較部27によるピクセル値の比較に関して例えば2通りの方法が考えられる。第1の方法は、ベイヤ画像のピクセル配列のまま1ピクセル毎にピクセル値を比較する方法である。この場合には、同一ピクセル位置であればRGBの内の同一色のピクセルデータ同士を比較することができる。そして、ある画像データにおける被写体はR色成分が強く、他の画像データにおける被写体はB色成分が強い、といった場合に、比較明合成を行っても両方の被写体を残すことが可能となる。一方、第2の方法は、比較するピクセル位置における輝度信号を、周辺の他の色成分のピクセル信号を用いて生成し、生成した輝度信号同士を比較する方法である。この場合には、色味によることなく画像同士の明るさで比較することができ、比較明合成であれば明るい方の被写体を残すことが可能となる。
Note that when the image data processed by the comparison /
メモリ部16は、画像データを一時的に格納するものであり、例えばDRAM(Dynamic Random Access Memory)などにより構成されている。このメモリ部16は、第1メモリ領域16aと第2メモリ領域16bとを含んでおり、さらに図示はしないが他の画像処理等に使用するメモリ領域も含んでいる。
The
第1メモリ領域16aは、本実施形態においては、画像合成モードが設定されているときに撮影操作がなされて順次得られる一連の画像データ群の内の、まず、1枚目の画像データが得られたところでその画像データを格納する。続いて、2枚目の画像データが得られたら、比較合成処理部15により第1メモリ領域16aから読み出した1枚目の画像データと合成処理され、その合成結果が再び第1メモリ領域16aに上書きして格納される。3枚目以降の画像データが得られたときにもこのような処理を繰り返して行い、第1メモリ領域16a内の合成画像データを順次更新していく。
In the present embodiment, the first memory area 16a first obtains the first image data in a series of image data groups sequentially obtained by performing a shooting operation when the image composition mode is set. Then, the image data is stored. Subsequently, when the second image data is obtained, it is combined with the first image data read from the first memory area 16a by the comparison and
第2メモリ領域16bは、本実施形態においては、操作部20により選択された例外画像データを格納する。ここに、第2メモリ領域16bが1枚の画像のみを記憶可能である場合には、例外画像データの選択が複数回行われたときに、選択される毎に記憶する画像を更新することが一処理例として考えられる。また、後述する実施形態3で説明するように、複数枚の画像を記憶可能となるように第2メモリ領域16bを構成しても良い。
The second memory area 16b stores exceptional image data selected by the
画像処理部17は、シェーディング補正、ホワイトバランス処理、ガンマ補正、欠陥補正などの各種の補正処理や、1ピクセルに1色成分のみが存在する単板画像から1ピクセルに3色成分が揃ったカラー画像を構成するデモザイキング処理などの画像処理を行う。この画像処理部17は、さらに、比較合成処理部15により生成された合成画像のRAWデータを記録部18に記録することも可能となっている。
The
記録部18は、画像データや画像データに関連する情報等を記録する記録媒体であり、具体例としては、撮像装置1の内蔵フラッシュメモリ、あるいは撮像装置1に着脱自在に構成されたメモリカードなどが挙げられる。従って、記録部18は、撮像装置1に固有の構成でなくても構わない。
The
表示部19は、画像データにより表される画像や、撮像装置1に係る各種の情報などを表示するものであり、例えば、EVF(電子ビューファインダ)や、撮像装置1の背面に設けられた表示パネルなどにより構成されている。また、表示部19として、例えば無線LAN等を介して撮像装置1に接続されているスマートフォンやタブレットPCなどの携帯情報機器の表示部を利用しても構わない。この表示部19は、後述するように、合成処理中の合成画像データによって表される合成画像や、合成画像データに対してさらに合成される新規の画像データ(比較画像データ)によって表される比較画像を表示するようになっている(図18、図19等参照)。
The
操作部20は、この撮像装置1に関する各種の操作入力を行うためのものであり、具体的には、押しボタンやダイヤルなどの操作スイッチ、あるいは撮像装置1の背面に設けられた表示パネルに設けられているタッチパネルなどが幾つかの例として挙げられる。また、操作部20として、撮像装置1の外部に設けられた装置、例えば、遠隔制御装置(リモートコントローラ)や、上述したスマートフォンやタブレットPCなどの携帯情報機器の遠隔コントローラ機能などを利用しても構わない。このような操作部20は、画像データ群の中から例外処理の対象とする例外画像データを選択する画像データ選択部としても機能するようになっている。
The
システム制御部21は、例えばCPUを含んで構成され、この撮像装置1全体を統括的に制御するものである。
The
次に、図2〜図5は、撮像装置1により撮像される画像データ群の各画像の例を示す図であり、図2は撮像装置1により撮像される第1の画像P1を示す図、図3は撮像装置1により撮像される第2の画像P2を示す図、図4は撮像装置1により撮像される第3の画像P3を示す図、図5は撮像装置1により撮像される第4の画像P4を示す図である。
Next, FIGS. 2 to 5 are diagrams illustrating examples of each image of the image data group captured by the
図2〜図5に示す第1〜第4の画像P1〜P4は、この順に撮像して取得されたものとし、第1〜第4の画像P1〜P4に記録されている被写体Q1〜Q4は例えば夜空に打ち上げられた花火を示している。ここに、被写体Q1〜Q4の明るさには、次のような輝度(明るさ)の大小関係
Q2>Q1>Q3>Q4
があるものとする。
The first to fourth images P1 to P4 shown in FIG. 2 to FIG. 5 are captured and acquired in this order, and the subjects Q1 to Q4 recorded in the first to fourth images P1 to P4 are obtained. For example, it shows fireworks launched in the night sky. Here, the brightness of the subjects Q1 to Q4 has the following magnitude relationship (brightness) Q2>Q1>Q3> Q4
There shall be.
続いて、図6〜図8は、図2〜図5に示した第1〜第4の画像P1〜P4を、撮影された時刻の順に、比較明合成処理したときの合成画像の様子を示している。 Next, FIGS. 6 to 8 show the state of the composite image when the first to fourth images P1 to P4 shown in FIGS. ing.
図6は、第1の画像P1と第2の画像P2とを比較明合成して得られる第1の合成画像SP1を示す図である。被写体Q2は被写体Q1よりも明るいために、被写体Q1と被写体Q2とが重なっている部分には被写体Q2のみが第1の合成画像SP1に残っている。 FIG. 6 is a diagram showing a first synthesized image SP1 obtained by performing comparatively bright synthesis of the first image P1 and the second image P2. Since the subject Q2 is brighter than the subject Q1, only the subject Q2 remains in the first composite image SP1 where the subject Q1 and the subject Q2 overlap.
図7は、第1の合成画像SP1と第3の画像P3とを比較明合成して得られる第2の合成画像SP2を示す図である。被写体Q3は被写体Q1,Q2よりも暗いために、被写体Q1または被写体Q2と重なっている被写体Q3の部分は、第2の合成画像SP2には残らない。 FIG. 7 is a diagram showing a second composite image SP2 obtained by comparatively bright combining the first composite image SP1 and the third image P3. Since the subject Q3 is darker than the subjects Q1 and Q2, the portion of the subject Q3 that overlaps the subject Q1 or the subject Q2 does not remain in the second composite image SP2.
図8は、第2の合成画像SP2と第4の画像P4とを比較明合成して得られる第3の合成画像SP3を示す図である。被写体Q4は被写体Q1〜Q3よりも暗いために、被写体Q1、被写体Q2、または被写体Q3と重なっている被写体Q4の部分は、第3の合成画像SP3には残らない。 FIG. 8 is a diagram illustrating a third synthesized image SP3 obtained by performing comparatively bright synthesis of the second synthesized image SP2 and the fourth image P4. Since the subject Q4 is darker than the subjects Q1 to Q3, the portion of the subject Q4 that overlaps the subject Q1, the subject Q2, or the subject Q3 does not remain in the third composite image SP3.
このように、比較明合成処理では、明るい画像部分ほど上に重なるように画像合成が行われる。 As described above, in the comparatively bright combination process, the image combination is performed so that the brighter image portion is overlaid.
一方、図9および図10は、第3の画像P3が例外画像として選択されたときの合成画像の様子を示している。 On the other hand, FIG. 9 and FIG. 10 show the state of the composite image when the third image P3 is selected as an exceptional image.
まず、第1の画像P1と第2の画像P2とを比較明合成して得られる第1の合成画像は、図6に示した第1の合成画像SP1と同一である。 First, a first composite image obtained by performing comparatively bright combination of the first image P1 and the second image P2 is the same as the first composite image SP1 shown in FIG.
次に、図9は、第3の画像P3を例外画像として第1の合成画像SP1と特殊比較明合成して得られる第2の合成画像SP4を示す図である。このときには、第3の画像P3は例外画像として選択されているために、被写体同士の明るさ順序に関わらず、被写体Q3(この被写体Q3はスレッシュレベル以上であるものとする)が最も上に重なるように画像合成が行われる。従って、被写体Q1〜Q3の上から下へ向かっての重ね合わせ順序はQ3,Q2,Q1となり、被写体Q3の画像部分は基本的に全て第2の合成画像SP4に残ることになる。 Next, FIG. 9 is a diagram illustrating a second composite image SP4 obtained by performing special comparative bright combination with the first composite image SP1 using the third image P3 as an exceptional image. At this time, since the third image P3 is selected as an exceptional image, the subject Q3 (assuming that the subject Q3 is equal to or higher than the threshold level) overlaps the top regardless of the brightness order of the subjects. Thus, image synthesis is performed. Accordingly, the overlapping order from the top to the bottom of the subjects Q1 to Q3 is Q3, Q2, and Q1, and basically all the image portions of the subject Q3 remain in the second composite image SP4.
そして、図10は、第3の画像P3を例外画像としたまま、第4の画像P4と第2の合成画像SP4と特殊比較明合成して得られる第3の合成画像SP5を示す図である。第3の画像P3は例外画像であるために、第3の合成画像SP5においても被写体Q3が最も上に重なるように画像合成が行われる。従って、被写体Q1〜Q4の上から下へ向かっての重ね合わせ順序はQ3,Q2,Q1,Q4となり、被写体Q3の画像部分は基本的に全て第3の合成画像SP5に残ることになる。 FIG. 10 is a diagram showing a third composite image SP5 obtained by performing the special comparative bright combination with the fourth image P4 and the second composite image SP4, with the third image P3 as an exceptional image. . Since the third image P3 is an exceptional image, the image synthesis is performed so that the subject Q3 is superimposed on the top in the third synthesized image SP5 as well. Therefore, the overlapping order from the top to the bottom of the subjects Q1 to Q4 is Q3, Q2, Q1, and Q4, and basically all the image portions of the subject Q3 remain in the third composite image SP5.
次に、図11は撮影画像合成の処理を示すフローチャートである。 Next, FIG. 11 is a flowchart showing the process of combining captured images.
撮像装置1が画像合成モードにおける比較明合成モードに設定されている状態において、操作部20の例えばレリーズボタンが押下されるなどすると、この撮影画像合成の処理が開始される。
In a state where the
するとまず、メモリ部16を初期化する(ステップS1)。
Then, first, the
次に、設定されているISO感度、シャッタ速度、撮影間隔、合成枚数などに従って、システム制御部21が撮像素子13を制御して露光を行い(ステップS2)、露光後の画像データを撮像素子13から読み出す(ステップS3)。
Next, according to the set ISO sensitivity, shutter speed, shooting interval, composite number, etc., the
システム制御部21は、操作部20からの操作入力を監視しており、例外画像の選択操作が行われた場合には、選択された画像を例外画像として処理するように制御する。ここに、例外画像の選択操作タイミングには、例えば図15または図16に示すような2つのタイミングがある。
The
まず、図15は、表示部19に表示されている画像を観察しながら例外画像の選択操作を行う例を示すタイミングチャートである。この場合には、表示部19に第3の画像P3が写っているタイミングで、操作部20から例外処理指示がなされることになる。
First, FIG. 15 is a timing chart showing an example in which an exceptional image selection operation is performed while observing an image displayed on the
一方、図16は、実際の被写体を観察しながら例外画像の選択操作を行う例を示すタイミングチャートである。この場合には、実際の被写体を観察しているタイミング、つまり撮像素子13により第3の画像P3を露光しているタイミングで、操作部20から例外処理指示がなされることになる。
On the other hand, FIG. 16 is a timing chart showing an example of performing an exceptional image selection operation while observing an actual subject. In this case, an exception processing instruction is issued from the
図15に示す操作タイミングと、図16に示す操作タイミングと、の何れを利用するかは、操作部20を介してユーザが所望に設定することができるようになっている。すなわち、画像データ選択部である操作部20は、撮像素子13による撮像の対象となっている被写体を観察しているタイミングで例外画像データを選択するか、表示部19に表示されている比較画像データ(最新の撮影により得られた画像データ)によって表される画像を観察しているタイミングで例外画像データを選択するか、を設定可能となっている。
Which of the operation timing shown in FIG. 15 and the operation timing shown in FIG. 16 is used can be set as desired by the user via the
また、例外画像を選択する操作としては、操作ボタンの押下、表示部19がタッチパネル付きである場合のタッチ操作、遠隔制御装置(リモートコントローラ)や後述する実施形態3で説明するような携帯情報機器3からの遠隔操作、音声入力による操作、等の何れを用いても構わない。
Further, as an operation for selecting an exceptional image, an operation button is pressed, a touch operation when the
さらに、ユーザからの入力に基づき例外画像を選択するに限るものではなく、ストロボが発光されたとき、大きな音声が入力されたとき、などのタイミングで自動的に例外画像が選択されるようにしても構わない。 Furthermore, it is not limited to selecting an exception image based on an input from the user, but an exception image is automatically selected at a timing such as when a strobe is emitted or when a loud sound is input. It doesn't matter.
そして、システム制御部21は、撮像素子13から読み出された画像が、例外画像であるか否かを判定する(ステップS4)。
And the
ここで、例外画像でないと判定された場合には、システム制御部21は、比較合成処理部15に、後で図12を参照して説明するような比較明合成処理を行わせ(ステップS5)、合成処理の結果得られた合成画像データを第1メモリ領域16aに格納する(ステップS6)。
If it is determined that the image is not an exceptional image, the
一方、ステップS4において例外画像であると判定された場合には、システム制御部21は、画像データ中の暗時ノイズの大きさを示すノイズレベル以上のレベルが所定のスレッシュレベルとなるように、比較合成処理部15の例外処理部26に自動設定させる(ステップS7)。
On the other hand, if it is determined in step S4 that the image is an exceptional image, the
ここに、図14は撮像素子13のOB領域から読み出されたデータのヒストグラムの一例を示す線図である。
FIG. 14 is a diagram showing an example of a histogram of data read from the OB area of the
撮像素子13のOB領域は光学的に遮光されているために、OB領域から読み出されたデータは暗時ノイズを含んでいる。この暗時ノイズは、撮像素子13から読み出しを行う読出回路のランダムノイズ、暗電流に起因するショットノイズや固定パターンノイズなどを含んでいる。信号処理部14は、OB領域から読み出されたデータに基づいて、黒画像の輝度ヒストグラムやノイズ量(ノイズの標準偏差値など)を算出するようになっている。図14における輝度レベルが低い領域での頻度は、このような暗時ノイズが発生した画素数を示している。そこで、システム制御部21は、発生頻度がほぼ0に漸近する輝度レベル(暗時ノイズの上限の輝度レベル)をノイズレベルNLとして設定し、比較合成処理部15へ出力する。システム制御部21が自動的に設定したノイズレベルNLは、図14に示すように、表示部19において、OB領域から読み出されたデータの輝度ヒストグラムにマーカ表示される。このマーカ表示は、輝度レベル軸に沿って移動可能となっており、自動設定されたノイズレベルNLを、さらに手動で調整することができるようになっている。
Since the OB area of the
比較合成処理部15の例外処理部26は、受信したノイズレベルNL以上の範囲内において、比較明合成処理におけるスレッシュレベルを設定するようになっている。なお、例外処理部26が設定するスレッシュレベルは、比較暗合成処理においてもノイズレベルNL以上の範囲内において設定される。
The exception processing unit 26 of the comparative
そして、撮像素子13から読み出された例外画像データを、第2メモリ領域16bに格納する(ステップS8)。
Then, the exceptional image data read from the
ステップS6またはステップS8の処理を行ったら、次に、第2メモリ領域16bに格納されている例外画像データを、比較明合成の例外として、第1メモリ領域16aに格納されている合成画像データと合成する特殊比較明合成処理を後で図13を参照して説明するように行う(ステップS9)。ただし、第2メモリ領域16bに例外画像データが格納されていない場合には、この処理はスキップされる。こうして得られた合成画像は、ステップS2〜S10のループを回る毎に表示部19に更新して表示される。これにより、分割露光された複数の画像の合成画像をライブビューで観察しながら撮影することができるコンポジットライブバルブ機能が実現されている。
After performing the processing of step S6 or step S8, next, the exceptional image data stored in the second memory area 16b is used as the combined image data stored in the first memory area 16a as an exception of comparatively bright combination. The special comparative bright combination processing to be combined is performed as described later with reference to FIG. 13 (step S9). However, this process is skipped when exceptional image data is not stored in the second memory area 16b. The composite image thus obtained is updated and displayed on the
その後、操作部20により撮影終了の指示がなされたか否かを判定する(ステップS10)。この撮影終了の指示は、操作ボタンの押下、表示部19がタッチパネル付きである場合のタッチ操作、遠隔制御装置(リモートコントローラ)や後述する実施形態3で説明するような携帯情報機器3からの遠隔操作、音声入力による操作、等の何れを用いても構わない。また、撮影枚数が予め設定されている場合には、設定枚数の撮影が行われたところでこの処理が自動的に終了する。あるいは、撮像装置1のバッテリが消耗した場合などにも、この処理が自動的に終了することになる。
Thereafter, it is determined whether or not an instruction to end shooting is given by the operation unit 20 (step S10). This photographing end instruction is made by pressing an operation button, a touch operation when the
ここで、撮影をまだ終了しない場合にはステップS2へ戻って次の画像の撮像を行うために、比較合成処理部15による累積比較合成処理および例外処理部26による例外処理は、撮像素子13により画像データが生成される毎に行われることになる。一方、撮影を終了する場合にはこの処理を終える。
Here, in the case where the photographing is not yet finished, the
続いて、図12は図11のステップS5における比較明合成の処理を示すフローチャートである。 Next, FIG. 12 is a flowchart showing the comparatively bright combination process in step S5 of FIG.
この処理に入ると、撮像素子13により取得された最新の画像データである比較画像データと、第1メモリ領域16aに格納されている合成画像データとを、ピクセル単位で、対応するピクセル位置毎に読み込む(ステップS21)。
Upon entering this process, the comparison image data, which is the latest image data acquired by the
次に、読み込んだ比較画像のピクセルデータが、上述したノイズレベルNLよりも大きいか否かを判定する(ステップS22)。 Next, it is determined whether the pixel data of the read comparison image is larger than the noise level NL described above (step S22).
ここで、ノイズレベルNLよりも大きいと判定された場合には、さらに、比較画像のピクセルデータが合成画像のピクセルデータよりも大きいか否かを判定する(ステップS23)。 If it is determined that the noise level is higher than the noise level NL, it is further determined whether or not the pixel data of the comparison image is larger than the pixel data of the composite image (step S23).
そして、大きい場合には、比較画像のピクセルデータを合成画像における新たなピクセルデータとして設定する(ステップS24)。 If larger, the pixel data of the comparison image is set as new pixel data in the composite image (step S24).
このステップS24の処理が終了するか、ステップS22において比較画像のピクセルデータがノイズレベルNL以下であると判定されるか、またはステップS23において比較画像のピクセルデータが合成画像のピクセルデータ以下であると判定された場合には、全てのピクセル位置のピクセルデータの処理が終了したか否かを判定する(ステップS25)。 When the process of step S24 is completed, it is determined in step S22 that the pixel data of the comparison image is less than or equal to the noise level NL, or in step S23, the pixel data of the comparison image is less than or equal to the pixel data of the composite image. If it is determined, it is determined whether or not the processing of the pixel data at all the pixel positions has been completed (step S25).
ここで、まだ終了していないと判定された場合にはステップS21へ行って次のピクセル位置について同様の処理を行い、全てのピクセル位置のピクセルデータの処理が終了したと判定された場合には、この比較明合成処理から図11に示した撮影画像合成処理にリターンする。 If it is determined that the processing has not been completed yet, the process proceeds to step S21 to perform the same processing for the next pixel position, and if it is determined that the processing of the pixel data at all the pixel positions has been completed. The process returns from the comparatively bright combination process to the photographed image combination process shown in FIG.
次に、図13は図11のステップS9における特殊比較明合成の処理を示すフローチャートである。 Next, FIG. 13 is a flowchart showing the process of special comparative bright combination in step S9 of FIG.
この処理に入ると、第1メモリ領域16aに格納されている合成画像データと、第2メモリ領域16bに格納されている例外画像データとを、ピクセル単位で、対応するピクセル位置毎に読み込む(ステップS31)。 Upon entering this process, the composite image data stored in the first memory area 16a and the exceptional image data stored in the second memory area 16b are read in units of pixels for each corresponding pixel position (steps). S31).
そして、読み込んだ例外画像のピクセルデータが、スレッシュレベル以上であるか否かを判定する(ステップS32)。 Then, it is determined whether or not the pixel data of the read exception image is equal to or higher than the threshold level (step S32).
ここで、スレッシュレベル以上であると判定された場合には、例外画像のピクセルデータを合成画像における新たなピクセルデータとして設定する(ステップS33)。 If it is determined that the threshold level is exceeded, the pixel data of the exceptional image is set as new pixel data in the composite image (step S33).
このステップS33の処理が終了するか、ステップS32において例外画像のピクセルデータがスレッシュレベル未満であると判定された場合には、全てのピクセル位置のピクセルデータの処理が終了したか否かを判定する(ステップS34)。 When the process of step S33 is completed or when it is determined in step S32 that the pixel data of the exceptional image is less than the threshold level, it is determined whether the process of the pixel data at all the pixel positions is completed. (Step S34).
ここで、まだ終了していないと判定された場合にはステップS31へ行って次のピクセル位置について同様の処理を行い、全てのピクセル位置のピクセルデータの処理が終了したと判定された場合には、この特殊比較明合成処理から図11に示した撮影画像合成処理にリターンする。 Here, if it is determined that the processing has not been completed yet, the process proceeds to step S31 to perform the same processing for the next pixel position, and if it is determined that the processing of the pixel data at all the pixel positions has been completed. Then, the process returns from the special comparative bright combination processing to the photographed image combination processing shown in FIG.
なお、図12に示したように、比較明合成において、比較合成処理部15は、画像データ中の暗時ノイズの大きさを示すノイズレベル以下のピクセルデータについてはステップS24の累積比較合成処理を行わない。このことは、比較合成処理として比較暗合成処理を行う場合においても同様である(従って、比較暗合成の対象となるのはピクセル値がノイズレベルよりも高いピクセルであり、特殊比較暗合成の対象となるのはピクセル値がノイズレベルよりも高く比較暗合成用に設定されたスレッシュレベル以下のピクセルである)。
As shown in FIG. 12, in the comparative bright combination, the comparison /
これは次の理由による。ピクセル値がノイズレベル以下のピクセルデータについて、もし比較明合成を行うと、よりレベルが高い暗時ノイズが残ることとなってノイズ感の大きな画像となってしまう。また、ピクセル値がノイズレベル以下のピクセルデータについて、もし比較暗合成を行うと、よりレベルが低い暗時ノイズが残ることとなって暗時ノイズがつぶれ、暗部が平坦でのっぺりとした不自然な画像となってしまう。従って、比較明合成と比較暗合成との何れの場合においても、ノイズレベル以下のピクセルについては累積比較合成処理を行わないようにしている。 This is due to the following reason. If pixel data having a pixel value equal to or lower than the noise level is subjected to comparatively bright combination, dark noise having a higher level remains, resulting in an image with a large noise feeling. In addition, if pixel data with a pixel value below the noise level is used, if dark comparison is performed, dark noise with a lower level will remain and the dark noise will be crushed, making the dark part flat and unnatural. It becomes an image. Therefore, in both cases of comparative bright combination and comparative dark combination, the cumulative comparison combination process is not performed for pixels having a noise level or less.
また、特殊比較明合成を行う場合には、図11のステップS7において説明したようにスレッシュレベルがノイズレベル以上に設定されていて、図13のステップS32に示したようにスレッシュレベル未満のピクセルデータについては例外処理を行っていないために、必然的に例外処理部26は、ノイズレベル未満のピクセルデータについては例外処理を行わない。また、比較選択において値が小さい方を選択する比較暗合成の例外処理となる特殊比較暗合成を行う場合には、上述したように、ピクセル値がノイズレベルよりも高いピクセルを対象としているために、ノイズレベル以下のピクセルデータについては、同様に例外処理を行わないことになる。 Further, when performing the special comparative bright combination, the pixel level is set to a noise level or higher as described in step S7 in FIG. 11, and the pixel data is less than the threshold level as shown in step S32 in FIG. Since no exception processing is performed for, the exception processing unit 26 inevitably does not perform exception processing for pixel data less than the noise level. In addition, when performing special comparative dark synthesis, which is an exception processing of comparative dark synthesis that selects a smaller value in comparison selection, as described above, because pixels whose pixel value is higher than the noise level are targeted. Exception processing is not performed for pixel data below the noise level.
このような実施形態1によれば、合成処理の対象とする画像データ群の中から例外画像データを選択可能とし、例外画像データについては、他の画像との明るさの順序に関わらず、ピクセルデータを合成画像に用いるようにしたために、複数の画像を明るさに応じて合成して合成画像を得る際に所望の被写体を合成画像に残すことができる。 According to the first embodiment, exceptional image data can be selected from a group of image data to be combined, and the exceptional image data is a pixel regardless of the order of brightness with other images. Since the data is used for the composite image, a desired subject can be left in the composite image when a composite image is obtained by combining a plurality of images according to brightness.
このとき、比較明合成の場合には所定のスレッシュレベル以上であるとき、比較暗合成の場合には所定のスレッシュレベル以下であるときに例外処理を行うようにしたために、合成画像全体が例外画像に入れ替わるのを防止しして、スレッシュレベル以上または以下の被写体のみを例外処理として合成画像に残すことが可能となる。 At this time, since the exception processing is performed when the level is equal to or higher than a predetermined threshold level in the case of comparatively bright synthesis, and when the level is lower than the predetermined threshold level in the case of comparative dark synthesis, the entire synthesized image is an exception image. Therefore, it is possible to leave only subjects that are above or below the threshold level as exception processing in the composite image.
また、ノイズレベル以下のピクセルデータについては累積比較合成処理を行わないようにしたために、暗時ノイズのレベルを通常の1枚撮影の画像と同レベルに維持し、見た目に自然な画像を得ることができる。 In addition, since pixel data below the noise level is not subjected to cumulative comparison and synthesis processing, the dark noise level is maintained at the same level as a normal single-shot image to obtain an image that looks natural. Can do.
このとき、スレッシュレベルがノイズレベル以上となるように自動設定することにより、複雑な操作を必要とすることなく暗時ノイズのレベルを維持することが可能となる。 At this time, by automatically setting the threshold level to be equal to or higher than the noise level, it is possible to maintain the dark noise level without requiring a complicated operation.
また、比較暗合成の場合であっても、ノイズレベル以下のピクセルデータについては例外処理を行わないために、合成画像の暗時ノイズレベルを維持することができる。 Even in the case of comparative dark synthesis, pixel data having a noise level or less is not subjected to exceptional processing, so that the dark noise level of the synthesized image can be maintained.
そして、撮像素子13により画像データが生成される毎に累積比較合成処理および例外処理を行うようにしたために、撮影時に合成画像を得ることができるだけでなく、合成画像が更新される毎に表示部19に表示することにより、ユーザは、合成画像が変化していく様子を観察することが可能となる。
Since the cumulative comparison and synthesis process and the exception process are performed every time image data is generated by the
加えて、例外画像データを選択するタイミングをユーザが設定できるようにしたために、所望のタイミングで例外画像中の被写体を記録画像に残すことが可能となる。
[実施形態2]
In addition, since the user can set the timing for selecting the exceptional image data, the subject in the exceptional image can be left in the recorded image at the desired timing.
[Embodiment 2]
図17から図23は本発明の実施形態2を示したものであり、図17は特殊比較明合成の処理を示すフローチャートである。 FIGS. 17 to 23 show the second embodiment of the present invention, and FIG. 17 is a flowchart showing processing of special comparative bright combination.
この実施形態2において、上述の実施形態1と同様である部分については同一の符号を付すなどして説明を適宜省略し、主として異なる点についてのみ説明する。 In the second embodiment, the same parts as those in the first embodiment are denoted by the same reference numerals and the description thereof is omitted as appropriate, and only different points will be mainly described.
上述した実施形態1の特殊比較明合成処理は、図13に示したように、例外画像のピクセルデータがスレッシュレベル以上である場合に合成画像の該当ピクセルデータを置き換えるものであった。これに対して本実施形態の特殊比較明合成処理は、例外画像のピクセルデータに、合成画像のピクセルデータよりも優先的に用いられるような階調変換を施して、比較部27によるピクセルデータ同士の比較をそのまま利用しながら例外処理を行うようにしたものである。 As shown in FIG. 13, the special comparative bright combination processing of the first embodiment described above replaces the corresponding pixel data of the composite image when the pixel data of the exceptional image is equal to or higher than the threshold level. On the other hand, the special comparative bright combination processing of the present embodiment performs gradation conversion that is used preferentially over the pixel data of the exceptional image over the pixel data of the combined image, and the pixel data by the comparison unit 27 Exception processing is performed while using the comparison of.
すなわち、本実施形態における例外処理部26は、階調変換処理部を備え、累積比較合成処理の例外とするピクセルデータを、比較選択において値が大きい方を選択する比較明合成の場合には値をより大きくするように、比較選択において値が小さい方を選択する比較暗合成の場合には値をより小さくするように、階調変換処理部が階調変換することにより、例外処理を行うものとなっている。 That is, the exception processing unit 26 according to the present embodiment includes a gradation conversion processing unit, and the pixel data that is an exception of the cumulative comparison and synthesis processing is a value in the case of comparatively bright synthesis that selects a larger value in comparison selection. In the case of comparative dark synthesis that selects the smaller value in the comparison and selection, the gradation conversion processing unit performs exception processing by converting the gradation so that the value is smaller. It has become.
ここで、図18および図19を参照して、表示部19における画像の表示例について説明する。図18は例外画像が選択される前の表示部19における画像の表示例を示す図、図19は例外画像が選択された後の表示部19における画像の表示例を示す図である。
Here, with reference to FIG. 18 and FIG. 19, the example of a display of the image in the
撮像装置1の背面側には、表示部19が設けられると共に、操作部20に含まれる操作スイッチ類が配置されている。
On the back side of the
例外画像が選択される前においては、図18に示すように、表示部19には、合成画像19aと、比較画像19bと、比較画像19bの輝度ヒストグラム19dと、スレッシュレベル設定バー19eと、が表示されている。
Before the exceptional image is selected, as shown in FIG. 18, the
合成画像19aとして表示されるのは、第1メモリ領域16aに格納されている合成画像である。
What is displayed as the
比較画像19bとして表示されるのは、撮像素子13により撮影された最新の画像である。
The latest image captured by the
輝度ヒストグラム19dは、表示されている比較画像19bの、輝度毎の出現頻度を示すグラフである。
The
スレッシュレベル設定バー19eは、輝度ヒストグラム19dの輝度レベル軸に沿って移動可能に設けられ、輝度ヒストグラム19dを参照しながらスレッシュレベルを手動で設定するためのものであり、操作部20の一部を構成している。なお、スレッシュレベルが手動で設定されない場合には、スレッシュレベルとして例外処理部26により自動で設定された値を用いることになる。
The threshold
また、例外画像が選択された後は、図19に示すように、表示部19に例外画像19cが追加して表示(いわゆるフリーズ表示)される。例外画像19cとして表示されるのは、第2メモリ領域16bに格納されている例外画像である。図19に示す例においては、比較画像19bの大きさが図18に示したときよりも縮小され、比較画像19bの下側に例外画像19cが表示されている。また、例外画像19cが表示されると、輝度ヒストグラム19dおよびスレッシュレベル設定バー19eは、例外画像19cに関する表示や操作を行う機能に変更され、合成画像19aとして表示されるのは特殊比較明合成処理がなされた画像となる。
Further, after the exceptional image is selected, as shown in FIG. 19, the
図22は輝度ヒストグラム19dを参照しながらスレッシュレベル設定バー19eによりスレッシュレベルを手動で設定するときの例を示す図である。
FIG. 22 is a diagram showing an example when the threshold level is manually set by the threshold
撮像素子13により画像が次々に撮影されると、表示部19に表示される輝度ヒストグラム19dの分布も画像毎に変化する。例えば被写体が花火である場合には、背景の夜空を示す低輝度部分の出現頻度はあまり変化しないが、花火部分を示す中〜高輝度部分は花火毎に出現頻度が変化する。このような出現頻度が変化する部分が図22における楕円で囲んで示した部分であるとする。この場合に、スレッシュレベル設定バー19eを操作して、楕円で囲んだ部分の低輝度側端がスレッシュレベルとなるように設定すれば、所望の花火部分を例外処理の対象とし、背景の夜空を例外処理の対象から外すような選択を適切に行うことが可能となる。そして、スレッシュレベルが変更されると合成結果に随時反映されるようになっており、変更後のスレッシュレベルに応じた合成画像19aが表示部19に表示される。
When images are taken one after another by the
次に、図17を参照して、本実施形態における特殊比較明合成の処理について説明する。 Next, with reference to FIG. 17, the process of special comparative bright combination in the present embodiment will be described.
図11のステップS9において、図17に示す特殊比較明合成の処理に入ると、第1メモリ領域16aに格納されている合成画像データと、第2メモリ領域16bに格納されている例外画像データとを、ピクセル単位で、対応するピクセル位置毎に読み込む(ステップS41)。 In step S9 of FIG. 11, when the process of special comparative bright combination shown in FIG. 17 is entered, the composite image data stored in the first memory area 16a, the exceptional image data stored in the second memory area 16b, and Are read in units of pixels for each corresponding pixel position (step S41).
そして、読み込んだ例外画像のピクセルデータが、ノイズレベルNLよりも大きいか否かを判定する(ステップS42)。 Then, it is determined whether or not the pixel data of the read exception image is larger than the noise level NL (step S42).
ここで、ノイズレベルNLよりも大きいと判定された場合には、さらに、例外画像のピクセルデータが、スレッシュレベル以上であるか否かを判定する(ステップS43)。 Here, when it is determined that the noise level is higher than the noise level NL, it is further determined whether or not the pixel data of the exceptional image is equal to or higher than the threshold level (step S43).
ここで、スレッシュレベル以上であると判定された場合には、例外画像のピクセルデータを例外処理部26の階調変換処理部により階調変換する(ステップS44)。こうして、例外画像における、スレッシュレベル以上のピクセルデータについては例外処理がなされ、スレッシュレベル未満のピクセルデータについては通常の比較明合成処理と同様の処理がなされることになる。 Here, when it is determined that the threshold level or higher, the pixel data of the exceptional image is subjected to gradation conversion by the gradation conversion processing unit of the exception processing unit 26 (step S44). In this way, exception processing is performed for pixel data above the threshold level in the exceptional image, and processing similar to the normal comparative bright combination processing is performed for pixel data below the threshold level.
ここに、図20は比較明合成において用いられる階調変換曲線の例を示す線図である。 FIG. 20 is a diagram showing an example of a gradation conversion curve used in comparatively bright synthesis.
比較明合成において、合成画像のピクセルデータよりも比較画像のピクセルデータが優先的に用いられるような階調変換曲線は、例えばこの図20に示すようになっている。すなわち、変換前のピクセル値(画素値)が、スレッシュレベルTL未満である場合にはピクセル値を変化させず(すなわち、ステップS43において階調変換を行わないと判定され)、スレッシュレベルTL以上である場合にはピクセル値を大きくするような階調変換曲線である。 In the comparatively bright combination, the gradation conversion curve in which the pixel data of the comparative image is preferentially used over the pixel data of the combined image is as shown in FIG. 20, for example. That is, when the pixel value (pixel value) before conversion is less than the threshold level TL, the pixel value is not changed (that is, it is determined that gradation conversion is not performed in step S43), and the pixel value is equal to or higher than the threshold level TL. In some cases, the gradation conversion curve increases the pixel value.
図23は、図22に示したような輝度ヒストグラムの例外画像データを、図20に示したような階調変換曲線で階調変換したときの輝度ヒストグラムの例を示す線図である。 FIG. 23 is a diagram showing an example of a luminance histogram when gradation conversion is performed on the exceptional image data of the luminance histogram as shown in FIG. 22 using the gradation conversion curve as shown in FIG.
図示のように、図22において楕円で囲んだ部分の頻度が図23においては低下するとともに、より高輝度部分の頻度が図23において点線の囲みで示すように大きくなっている。 As shown in FIG. 23, the frequency of the portion surrounded by the ellipse in FIG. 22 decreases in FIG. 23, and the frequency of the higher luminance portion increases as shown by the dotted line in FIG.
また、図21は比較暗合成において用いられる階調変換曲線の例を示す線図である。 FIG. 21 is a diagram showing an example of a gradation conversion curve used in comparative dark synthesis.
比較暗合成において、合成画像のピクセルデータよりも比較画像のピクセルデータが優先的に用いられるような階調変換曲線は、例えばこの図21に示すようになっている。すなわち、変換前のピクセル値(画素値)が、スレッシュレベルTLよりも大きい場合にはピクセル値を変化させず(すなわち、ステップS43と同様に階調変換を行わないと判定され)、スレッシュレベルTL以下である場合にはピクセル値を小さくするような階調変換曲線である。ただし、この図21には示していないが、ピクセル値がノイズレベルNL以下であるピクセルデータについては、上述したように暗時ノイズを平坦化させないことが好ましいために、図17のステップS42における判定と同様に、階調変換を行わないようにすると良い。 In the comparative dark composition, a gradation conversion curve in which the pixel data of the comparative image is used preferentially over the pixel data of the composite image is as shown in FIG. 21, for example. That is, when the pixel value (pixel value) before conversion is larger than the threshold level TL, the pixel value is not changed (that is, it is determined that gradation conversion is not performed as in step S43), and the threshold level TL A gradation conversion curve that reduces the pixel value in the following cases. However, although not shown in FIG. 21, since it is preferable not to flatten the dark noise as described above for pixel data whose pixel value is equal to or less than the noise level NL, the determination in step S42 in FIG. Similarly to the above, it is preferable not to perform gradation conversion.
なお、これら図20または図21に示したような階調変換曲線は、ユーザが曲線形状を所望に設定することができるようにしても良い。 Note that the gradation conversion curve as shown in FIG. 20 or FIG. 21 may allow the user to set the curve shape as desired.
このステップS44の処理が終了するか、ステップS43において例外画像のピクセルデータがスレッシュレベル未満であると判定された場合には、ステップS44の処理を経たピクセルであれば階調変換後の例外画像のピクセルデータ、ステップS44の処理を経ていないピクセルであれば例外画像のピクセルデータが、合成画像のピクセルデータよりも大きいか否かを比較部27が判定する(ステップS45)。 If the processing of step S44 ends or if it is determined in step S43 that the pixel data of the exceptional image is less than the threshold level, the pixel of the exceptional image after gradation conversion is processed if it is a pixel that has undergone the processing of step S44. If the pixel data is a pixel that has not undergone the process of step S44, the comparison unit 27 determines whether the pixel data of the exceptional image is larger than the pixel data of the composite image (step S45).
ここで合成画像のピクセルデータよりも大きいと判定された場合には、階調変換前の例外画像のピクセルデータを合成画像における新たなピクセルデータとして設定する(ステップS46)。このようにステップS44において階調変換された例外画像のピクセルデータはステップS45における比較にのみ用いられ、合成画像への置き換えデータとしては階調変換前の例外画像のピクセルデータが用いられる。 If it is determined that the pixel data is larger than the pixel data of the composite image, the pixel data of the exceptional image before gradation conversion is set as new pixel data in the composite image (step S46). Thus, the pixel data of the exceptional image subjected to gradation conversion in step S44 is used only for comparison in step S45, and the pixel data of the exceptional image before gradation conversion is used as replacement data for the composite image.
このステップS46の処理が終了するか、ステップS42において例外画像のピクセルデータがノイズレベル以下であると判定された場合、あるいはステップS45において合成画像のピクセルデータ以下であると判定された場合には、全てのピクセル位置のピクセルデータの処理が終了したか否かを判定する(ステップS47)。 When the process of step S46 ends, or when it is determined in step S42 that the pixel data of the exceptional image is equal to or lower than the noise level, or in step S45, it is determined that the pixel data is equal to or lower than the pixel data of the composite image, It is determined whether or not the processing of the pixel data at all pixel positions has been completed (step S47).
ここで、まだ終了していないと判定された場合にはステップS41へ行って次のピクセル位置について同様の処理を行い、全てのピクセル位置のピクセルデータの処理が終了したと判定された場合には、この特殊比較明合成処理から図11に示した撮影画像合成処理にリターンする。 Here, if it is determined that the processing has not been completed yet, the process proceeds to step S41 to perform the same processing for the next pixel position, and if it is determined that the processing of the pixel data at all the pixel positions has been completed. Then, the process returns from the special comparative bright combination processing to the photographed image combination processing shown in FIG.
このような実施形態2によれば、上述した実施形態1とほぼ同様の効果を奏するとともに、例外画像のピクセルデータに、合成画像のピクセルデータよりも優先的に用いられるような階調変換を施すことで例外処理を行うようにしたために、通常の比較明/暗合成と同様の比較部27によるピクセルデータ同士の比較をそのまま利用しながら、特殊比較明/暗合成処理を行うことが可能となる。これにより、通常の比較明/暗合成に係る比較部27の構成を特殊比較明/暗合成においても利用可能となり、比較合成処理部15の構成を複雑にすることがない利点がある。
According to the second embodiment, the same effects as those of the first embodiment described above are obtained, and gradation conversion is performed on the pixel data of the exceptional image so as to be used preferentially over the pixel data of the composite image. Since the exception processing is performed in this way, it is possible to perform the special comparative light / dark combination processing while using the comparison of the pixel data by the comparison unit 27 as in the normal comparative light / dark combination as it is. . As a result, the configuration of the comparison unit 27 related to normal comparative light / dark combination can be used in special comparative light / dark combination, and there is an advantage that the configuration of the comparison /
また、合成画像のピクセル値と階調変換後の例外画像のピクセル値とを比較して何れのピクセルデータを合成画像に残すかを決定しているために、例えば比較明合成の場合、スレッシュレベル未満の明るさの例外画像のピクセルでも合成画像に残るかもしれないし、スレッシュレベル以上の明るさの例外画像のピクセルでも合成画像には残らないかもしれないことになる。従って、例外画像におけるスレッシュレベル以上の明るさ部分が切り取られて合成されるような不自然な画像でなく、輪郭が周囲に溶け込んでいくような、より自然な画像を合成することが可能となる。
[実施形態3]
In addition, since the pixel value of the synthesized image and the pixel value of the exception image after gradation conversion are compared to determine which pixel data is left in the synthesized image, for example, in the case of comparatively bright synthesis, the threshold level Even an exceptional image pixel with a brightness less than that may remain in the composite image, and an exceptional image pixel with a brightness higher than the threshold level may not remain in the composite image. Therefore, it is possible to synthesize a more natural image in which the outline blends into the surroundings, rather than an unnatural image in which the brightness portion above the threshold level in the exceptional image is cut out and synthesized. .
[Embodiment 3]
図24から図26は本発明の実施形態3を示したものであり、図24は携帯情報機器3を撮像装置1により画像合成を行う際の表示部および操作部として利用するときの表示部の表示例を示す図である。
FIGS. 24 to 26
この実施形態3において、上述の実施形態1,2と同様である部分については同一の符号を付すなどして説明を適宜省略し、主として異なる点についてのみ説明する。 In the third embodiment, the same parts as those in the first and second embodiments are denoted by the same reference numerals and the description thereof is omitted as appropriate, and only different points will be mainly described.
上述した実施形態1,2は撮影時に合成画像を生成する処理を行っていたが、本実施形態は、記録部18に既に記録されている画像を選択して画像合成処理を行うものとなっている。さらに、本実施形態においては、画像合成処理は撮像装置1により行うが、合成対象となる画像の選択や例外画像の選択操作、合成処理を開始するための操作等は携帯情報機器3により行うようにしたものとなっている。
In the first and second embodiments described above, a process of generating a composite image at the time of shooting is performed. However, in the present embodiment, an image already recorded in the
まず、携帯情報機器3は、撮像装置1に内蔵される図示しないカメラ通信部と、例えば無線LAN等を介して通信し、データや命令の授受を行うことができるようになっている。
First, the
そして、図24に示すように、携帯情報機器3の表示部31は、例えばタッチパネルを備え、操作部としても機能するようになっている。この表示部31には、撮像装置1の記録部18から読み出した複数の画像33が配列して再生表示されている。配列された複数の画像33の何れかをタッチすると、タッチされた画像33を合成処理の対象とする画像として選択することができるようになっており、ここでは画像33aおよび画像33bが選択された画像データ群を示している。
And as shown in FIG. 24, the
さらに、この画像データ群の内の、画像33bは、チェックマークを入れることにより例外画像として選択された画像となっている。この図24に示す例では、2つの画像33bが例外画像として選択されており、例外画像としての優先順位がつけられ、つけられた優先順位が例えば数字を用いて表示されている。従って、携帯情報機器3のタッチパネル付き表示部31は、画像データ群の中から例外処理の対象とする例外画像データを選択する画像データ選択部として機能し、例外画像データを優先順位を付けて複数設定可能である。
Further, the
また、表示部31には、合成画像34と、例外画像35と、輝度ヒストグラム36と、スレッシュレベル設定バー37と、が表示されている。
The
ここに、例外画像35として表示されているのは、この図24に示す例では、点線枠で囲んだ優先順位2位の画像33bである。なお、本実施形態においては複数の例外画像データを設定可能であるために、例外画像35をスライド操作すると、他の例外画像データ(例えば、優先順位1位の画像33b)を表示させることが可能となっている。
Here, in the example shown in FIG. 24, the
そして、輝度ヒストグラム36が例外画像35に係る情報を示し、スレッシュレベル設定バー37がスレッシュレベルを手動で設定するためのものであることは、図18や図19に示した例と同様である。
The
さらに、表示部31には、タッチパネルを利用することにより操作部としての機能を果たすように構成された、設定メニューボタン32aと、合成キャンセルボタン32bと、合成開始ボタン32cと、を含む操作ボタン32が表示されている。
Further, the
設定メニューボタン32aは、合成処理として比較明合成処理と比較暗合成処理との何れを行うかを設定する操作や、例外画像として選択された画像が複数である場合に優先順位を設定する操作などを行うために用いられる。
The
合成キャンセルボタン32bは、合成処理を中止する操作を行う場合に用いられる。
The composition cancel
合成開始ボタン32cは、設定されている内容で画像合成を開始する操作を行う場合に用いられる。この合成開始ボタン32cが押されると、画像合成処理開始命令が携帯情報機器3から撮像装置1へ送信され、撮像装置1において図26に示すような画像合成処理が行われる。この画像合成処理の結果得られた画像は、撮像装置1から携帯情報機器3へ送信され、上述したように合成画像34として表示される。
The
図25は、記録画像合成処理を示すフローチャートである。 FIG. 25 is a flowchart showing the recorded image composition process.
この処理を開始すると、撮像装置1の記録部18に記録されている画像を読み出して、携帯情報機器3の表示部31に画像33として表示する(ステップS51)。
When this process is started, an image recorded in the
その後、ユーザにより、複数の画像33の内の幾つかの画像がタッチされ、合成対象として選択される(画像33aおよび画像33b参照)(ステップS52)。
Thereafter, the user touches some of the plurality of
さらに、合成対象として選択された画像の中から、ユーザにより、必要に応じて例外画像が選択される(画像33b参照)(ステップS53)。ここに選択される例外画像は、上述したように、複数であっても構わない。
Further, an exceptional image is selected by the user as necessary from the images selected as the synthesis target (see
選択された例外画像は、選択される毎に表示部31に例外画像35として表示され、スレッシュレベル設定バー37を用いたスレッシュレベルの設定(もしくは、輝度ヒストグラム等に基づく自動処理によるスレッシュレベルの設定)が、例外画像35毎に行われる(ステップS54)。なお、スレッシュレベルの自動設定におけるノイズレベル算出に関しては、例えば記録画像を生成する画像処理の段階でOB領域のノイズレベル(ノイズの標準偏差値など)をタグ情報に記録しておき、例外画像として選択された場合に、タグ情報から読み出したノイズレベルをスレッシュレベルとするようにしても良い。従って、スレッシュレベルは、例外画像毎に異なる値となっても構わない。
The selected exception image is displayed as an
さらに、例外画像として選択された画像33bに対して、ユーザにより、優先順位が設定される(ステップS55)。
Further, the priority order is set by the user for the
こうして、合成処理の対象となる画像データ群と、画像データ群中における例外画像データと、例外画像データが複数である場合の優先順位と、が設定されたところで、合成開始ボタン32cが押される(タッチされる)と、合成処理を行い(ステップS56)、合成画像が生成されたら表示部31に合成画像34として表示してから、この処理を終了する。
In this way, when the image data group to be combined, the exceptional image data in the image data group, and the priority order when there are a plurality of exceptional image data are set, the
なお、ステップS56の処理を開始する前の何れかの段階で合成キャンセルボタン32bが押された場合には、ステップS56の合成処理を行うことなく、この記録画像合成処理を終了する。
If the composition cancel
次に、図26は、図25のステップS56における画像合成の処理を示すフローチャートである。 Next, FIG. 26 is a flowchart showing the image composition processing in step S56 of FIG.
この処理に入ると、まず、メモリ部16を初期化する(ステップS61)。
In this process, first, the
次に、記録部18から、合成処理の対象となった画像を1枚ずつ順次読み出す(ステップS62)。 Next, the images to be combined are sequentially read out one by one from the recording unit 18 (step S62).
すると、システム制御部21は、読み出された画像が例外画像であるか否かを判定する(ステップS63)。
Then, the
ここで、例外画像でないと判定された場合には、システム制御部21は、比較合成処理部15に、図12に示したような比較明合成処理を行わせ(ステップS64)、合成処理の結果得られた合成画像データを第1メモリ領域16aに格納する(ステップS65)。
If it is determined that the image is not an exceptional image, the
一方、ステップS63において例外画像であると判定された場合には、システム制御部21は、例外画像を、優先順位に従って第2メモリ領域16bに格納する(ステップS66)。ここに、第2メモリ領域16bは、複数の例外画像を、優先順位に従って振り分けて記憶可能であるものとする。
On the other hand, when it is determined in step S63 that the image is an exception image, the
ステップS65またはステップS66の処理を行ったら、合成処理の対象となる全ての画像について処理を行ったか否かを判定し(ステップS67)、まだ全ての対象画像の処理が終了していない場合にはステップS62へ戻って次の画像の処理を行う。 After the processing of step S65 or step S66 is performed, it is determined whether or not processing has been performed for all the images to be combined (step S67), and if processing of all target images has not been completed yet. Returning to step S62, the next image is processed.
こうして、ステップS67において全ての対象画像の処理が終了したと判定された場合には、次に、第2メモリ領域16bに記憶されている例外画像を、優先順位が低い順に処理対象に設定する(ステップS68)。 Thus, if it is determined in step S67 that all the target images have been processed, then the exceptional images stored in the second memory area 16b are set as processing targets in order of decreasing priority ( Step S68).
そして、図13または図17に示したような特殊比較明合成処理を行い(ステップS69)、全ての例外画像についての処理が終了したか否かを判定する(ステップS70)。 Then, the special comparative bright combination processing as shown in FIG. 13 or FIG. 17 is performed (step S69), and it is determined whether or not the processing has been completed for all the exceptional images (step S70).
このステップS70においてまだ全ての例外画像の処理が行われていないと判定された場合には、次に優先順位が低い例外画像、つまりステップS69の処理がまだ行われていない例外画像中の最も優先順位が低い画像について、ステップS69の処理を行う。 If it is determined in step S70 that all the exception images have not been processed yet, the next highest priority exception image, that is, the highest priority among the exception images that have not been processed in step S69. The process of step S69 is performed for images with a lower rank.
このような処理を行うことにより、例外処理部26は、複数の例外画像データにおいて同一ピクセル位置に累積比較合成処理の例外とするピクセルデータが複数存在する場合には、優先順位が最も高いピクセルデータを当ピクセル位置の新たなピクセルデータとすることになる。つまり、図13または図17に示したような特殊比較明合成処理が最後に行われるのは最も優先順位が高い例外画像となり、最も優先順位が高い例外画像が最も優先的に合成結果の記録画像として残ることになる。 By performing such processing, the exception processing unit 26 has the highest priority pixel data when there are a plurality of pieces of pixel data that are exceptions to the cumulative comparison / synthesis processing at the same pixel position in a plurality of exception image data. Is the new pixel data at this pixel position. That is, the special comparative bright combination processing as shown in FIG. 13 or FIG. 17 is performed at the end of the exceptional image with the highest priority, and the exceptional image with the highest priority is the recording image of the combined result with the highest priority. Will remain as.
こうして、ステップS70において全ての例外画像の処理が行われたと判定された場合には、この処理から図25に示した処理に復帰する。 Thus, when it is determined in step S70 that all the exceptional images have been processed, the process returns to the process shown in FIG.
なお、上述では記録部18に記録済みの画像に基づく合成処理を、撮像装置1と携帯情報機器3との組み合わせにより行ったが、勿論これは一例であり、撮像装置1単体で行っても良いし、記録部18に記録されている画像データを撮像装置1からパーソナルコンピュータ等に転送してパーソナルコンピュータにより画像処理プログラムを実行し合成するようにしても構わないし、撮像装置1で取得された画像データをネットワーク等を経由して転送し例えばインターネット上において合成処理するようにしても良いし、特定の構成に限定されるものではない。
In the above description, the composition processing based on the image recorded in the
このような実施形態3によれば、比較合成処理部15による累積比較合成処理および例外処理部26による例外処理を、記録部18から読み出した画像データ群に基づいて行うことによっても、上述した実施形態1,2とほぼ同様の効果を奏することができる。
According to the third embodiment, the above-described implementation can be performed by performing the cumulative comparison / synthesis processing by the comparison /
そして、優先順位が高い例外画像ほど特殊比較明合成処理が後に行われるようにしたために、記録画像として残したい例外画像が順位に従って優先された合成画像を得ることが可能となる。 Since the exceptionally bright combination processing is performed later for the exceptional images having higher priority, it is possible to obtain a combined image in which the exceptional images that are desired to be recorded are prioritized according to the order.
なお、上述では主として画像処理装置について説明したが、画像処理装置と同様の処理を行う画像処理方法であっても良いし、コンピュータに画像処理方法を実行させるための画像処理プログラム、該画像処理プログラムを記録するコンピュータにより読み取り可能な一時的でない記録媒体、等であっても構わない。 Although the image processing apparatus has been mainly described above, an image processing method for performing the same processing as the image processing apparatus may be used, and an image processing program for causing a computer to execute the image processing method, the image processing program The recording medium may be a non-temporary recording medium that can be read by a computer.
また、本発明は上述した実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化することができる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明の態様を形成することができる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除しても良い。さらに、異なる実施形態にわたる構成要素を適宜組み合わせても良い。このように、発明の主旨を逸脱しない範囲内において種々の変形や応用が可能であることは勿論である。 Further, the present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the constituent elements without departing from the scope in the implementation stage. In addition, various aspects of the invention can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, you may delete some components from all the components shown by embodiment. Furthermore, the constituent elements over different embodiments may be appropriately combined. Thus, it goes without saying that various modifications and applications are possible without departing from the spirit of the invention.
1…撮像装置
3…携帯情報機器
11…レンズ
12…シャッタ
13…撮像素子(撮像部)
14…信号処理部
15…比較合成処理部
16…メモリ部
16a…第1メモリ領域
16b…第2メモリ領域
17…画像処理部
18…記録部
19…表示部
19a,34…合成画像
19b…比較画像
19c,35…例外画像
19d,36…輝度ヒストグラム
19e,37…スレッシュレベル設定バー
20…操作部(画像データ選択部)
21…システム制御部
26…例外処理部(階調変換処理部を含む)
27…比較部
28…合成部
31…表示部(画像データ選択部)
32…操作ボタン
32a…設定メニューボタン
32b…合成キャンセルボタン
32c…合成開始ボタン
33,33a,33b…画像
DESCRIPTION OF
DESCRIPTION OF
21 ... System control unit 26 ... Exception processing unit (including gradation conversion processing unit)
27:
32 ...
Claims (10)
上記画像データ群の中から例外画像データを選択する画像データ選択部と、
上記例外画像データを構成するピクセルデータが、上記比較選択において値が大きい方を選択する場合には所定のスレッシュレベル以上であるとき、上記比較選択において値が小さい方を選択する場合には所定のスレッシュレベル以下であるときに、該当ピクセルについては上記累積比較合成処理の例外とし、該ピクセルデータを該当ピクセル位置の新たなピクセルデータとして上記合成画像データを上記比較合成処理部に再構成させる例外処理を行う例外処理部と、
を備えたことを特徴とする画像処理装置。 Among image data groups to be combined, certain image data is combined image data, and other image data is compared image data. Pixel data corresponding to pixel positions in the combined image data and the compared image data are Comparing and comparing to select only one of the larger value and the smaller value and comparing the selected pixel data as new pixel data at the corresponding pixel position and reconstructing the composite image data A comparison and synthesis processing unit that repeats the synthesis process every time the comparison image data is updated;
An image data selection unit for selecting exceptional image data from the image data group;
When the pixel data constituting the exceptional image data is equal to or higher than a predetermined threshold level when a larger value is selected in the comparison selection, a predetermined value is selected when the smaller value is selected in the comparison selection. When the threshold level is lower than the threshold level, an exception of the cumulative comparison / synthesis process is performed for the corresponding pixel, and the comparison / synthesis process unit reconfigures the synthesized image data with the pixel data as new pixel data at the corresponding pixel position. An exception handling unit that performs
An image processing apparatus comprising:
上記例外処理部は、複数の上記例外画像データにおいて同一ピクセル位置に上記累積比較合成処理の例外とするピクセルデータが複数存在する場合には、上記優先順位が最も高いピクセルデータを該当ピクセル位置の新たなピクセルデータとすることを特徴とする請求項1に記載の画像処理装置。 The image data selection unit can set a plurality of exceptional image data with priorities,
When there are a plurality of pieces of pixel data that are exceptions to the cumulative comparison / synthesis processing at the same pixel position in the plurality of exception image data, the exception processing unit determines that the pixel data having the highest priority is newly assigned to the corresponding pixel position. The image processing apparatus according to claim 1, wherein the image processing apparatus is pixel data.
上記画像データ群は、上記撮像部により順次生成されるものであり、
上記比較合成処理部による上記累積比較合成処理および上記例外処理部による上記例外処理は、上記撮像部により画像データが生成される毎に行われることを特徴とする請求項1に記載の画像処理装置。 An imaging unit that images the subject and generates image data;
The image data group is sequentially generated by the imaging unit,
The image processing apparatus according to claim 1, wherein the cumulative comparison and synthesis process by the comparison and synthesis processing unit and the exception process by the exception processing unit are performed every time image data is generated by the imaging unit. .
上記画像データ選択部は、上記撮像部による撮像の対象となっている被写体を観察しているタイミングで上記例外画像データを選択するか、上記表示部に表示されている上記比較画像データによって表される画像を観察しているタイミングで上記例外画像データを選択するか、を設定可能であることを特徴とする請求項7に記載の画像処理装置。 A display unit for displaying an image represented by the comparison image data;
The image data selection unit selects the exceptional image data at the timing of observing the subject to be imaged by the imaging unit, or is represented by the comparison image data displayed on the display unit. The image processing apparatus according to claim 7, wherein it is possible to set whether to select the exceptional image data at a timing at which an image to be observed is observed.
上記画像データ群は、上記記録部に記録されたデータであり、
上記比較合成処理部による上記累積比較合成処理および上記例外処理部による上記例外処理は、上記記録部から上記画像データ群を読み出して行われることを特徴とする請求項1に記載の画像処理装置。 A recording unit for recording data;
The image data group is data recorded in the recording unit,
The image processing apparatus according to claim 1, wherein the cumulative comparison and synthesis process by the comparison and synthesis processing unit and the exception process by the exception processing unit are performed by reading the image data group from the recording unit.
上記画像データ群の中から例外画像データを選択する画像データ選択ステップと、
上記例外画像データを構成するピクセルデータが、上記比較選択において値が大きい方を選択する場合には所定のスレッシュレベル以上であるとき、上記比較選択において値が小さい方を選択する場合には所定のスレッシュレベル以下であるときに、該当ピクセルについては上記累積比較合成処理の例外とし、該ピクセルデータを該当ピクセル位置の新たなピクセルデータとして上記合成画像データを上記比較合成処理ステップに再構成させる例外処理を行う例外処理ステップと、
を有することを特徴とする画像処理方法。 Among image data groups to be combined, certain image data is combined image data, and other image data is compared image data. Pixel data corresponding to pixel positions in the combined image data and the compared image data are Comparing and comparing to select only one of the larger value and the smaller value and comparing the selected pixel data as new pixel data at the corresponding pixel position and reconstructing the composite image data A comparison and synthesis process step in which the synthesis process is repeated each time the comparison image data is updated;
An image data selection step for selecting exceptional image data from the image data group;
When the pixel data constituting the exceptional image data is equal to or higher than a predetermined threshold level when a larger value is selected in the comparison selection, a predetermined value is selected when the smaller value is selected in the comparison selection. When the threshold level is lower than the threshold level, an exception of the cumulative comparison / synthesis process is performed for the corresponding pixel, and the synthesized image data is reconfigured in the comparison / synthesis process step with the pixel data as new pixel data at the corresponding pixel position. An exception handling step that performs
An image processing method comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014001135A JP6245992B2 (en) | 2014-01-07 | 2014-01-07 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014001135A JP6245992B2 (en) | 2014-01-07 | 2014-01-07 | Image processing apparatus and image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2015130059A JP2015130059A (en) | 2015-07-16 |
| JP6245992B2 true JP6245992B2 (en) | 2017-12-13 |
Family
ID=53760738
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2014001135A Expired - Fee Related JP6245992B2 (en) | 2014-01-07 | 2014-01-07 | Image processing apparatus and image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6245992B2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012119858A (en) * | 2010-11-30 | 2012-06-21 | Aof Imaging Technology Ltd | Imaging device, imaging method, and program |
| JP5765945B2 (en) * | 2011-01-14 | 2015-08-19 | キヤノン株式会社 | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD |
| JP6003081B2 (en) * | 2012-02-22 | 2016-10-05 | 株式会社リコー | Imaging apparatus and imaging method |
-
2014
- 2014-01-07 JP JP2014001135A patent/JP6245992B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2015130059A (en) | 2015-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102348056B (en) | Image synthesizing device and image synthesizing method | |
| KR101303410B1 (en) | Image capture apparatus and image capturing method | |
| US9357131B2 (en) | Imaging device and imaging method | |
| KR101256326B1 (en) | Image capturing apparatus, image capturing method, and storage medium storing program for image capturing | |
| JP2017509259A (en) | Imaging method for portable terminal and portable terminal | |
| JP5872834B2 (en) | Imaging apparatus, imaging method, and imaging program | |
| JP2017220892A (en) | Image processing device and image processing method | |
| US8957982B2 (en) | Imaging device and imaging method | |
| JP6304293B2 (en) | Image processing apparatus, image processing method, and program | |
| JP5578442B2 (en) | Imaging apparatus, image composition method, and program | |
| WO2016008359A1 (en) | Object movement track image synthesizing method, device and computer storage medium | |
| JP7142507B2 (en) | Image processing device, image processing method, and imaging device | |
| JP4952574B2 (en) | Image composition apparatus and program | |
| JP5413625B2 (en) | Image composition apparatus and program | |
| JP2006148550A (en) | Image processing apparatus and imaging apparatus | |
| JP6296909B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP6223173B2 (en) | Image processing apparatus, control method thereof, and program | |
| JP2014049882A (en) | Imaging apparatus | |
| JP4475118B2 (en) | Camera device, white balance bracketing shooting method | |
| JP5530304B2 (en) | Imaging apparatus and captured image display method | |
| JP2010283504A (en) | Imaging device, imaging method, and imaging program | |
| JP6245992B2 (en) | Image processing apparatus and image processing method | |
| JP6435904B2 (en) | Output device, output control method, and program | |
| JP5910613B2 (en) | Image composition apparatus and program | |
| JP5541956B2 (en) | Image composition method, image composition program, and image composition apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20161109 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20171012 |
|
| 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: 20171017 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20171114 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 6245992 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |