JP6083162B2 - Image processing apparatus, imaging apparatus, and image processing program - Google Patents
Image processing apparatus, imaging apparatus, and image processing program Download PDFInfo
- Publication number
- JP6083162B2 JP6083162B2 JP2012198585A JP2012198585A JP6083162B2 JP 6083162 B2 JP6083162 B2 JP 6083162B2 JP 2012198585 A JP2012198585 A JP 2012198585A JP 2012198585 A JP2012198585 A JP 2012198585A JP 6083162 B2 JP6083162 B2 JP 6083162B2
- Authority
- JP
- Japan
- Prior art keywords
- frame
- processing
- unit
- resolution
- image processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003384 imaging method Methods 0.000 title claims description 15
- 238000000034 method Methods 0.000 claims description 66
- 230000008569 process Effects 0.000 claims description 58
- 230000006835 compression Effects 0.000 claims description 55
- 238000007906 compression Methods 0.000 claims description 55
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 101100328887 Caenorhabditis elegans col-34 gene Proteins 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 3
- 238000013139 quantization Methods 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- 238000007476 Maximum Likelihood Methods 0.000 description 2
- 230000002146 bilateral effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000005111 flow chemistry technique Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Description
本発明は、画像処理装置、撮像装置及び画像処理プログラムに関する。 The present invention relates to an image processing device, an imaging device, and an image processing program.
従来から位置ずれのある複数の低解像度の画像に基づいて、高解像度の画像を生成する超解像処理が知られている(例えば、特許文献1参照)。 Conventionally, a super-resolution process for generating a high-resolution image based on a plurality of low-resolution images having a positional shift is known (for example, see Patent Document 1).
超解像処理では、例えば、電子カメラで撮影された複数の低解像度の静止画像を合成することにより、1枚の高解像度の静止画像を生成することができる。 In the super-resolution processing, for example, a single high-resolution still image can be generated by combining a plurality of low-resolution still images captured by an electronic camera.
しかしながら、圧縮処理が施された動画データを用いて超解像処理を行なった場合、その動画データに圧縮歪みであるブロックノイズが含まれると、例えば複数のフレームを用いて超解像処理をする際に必要となる画像の位置合わせの精度を低下させてしまうという問題がある。 However, when super-resolution processing is performed using video data that has been subjected to compression processing, if block noise that is compression distortion is included in the video data, for example, super-resolution processing is performed using a plurality of frames. There is a problem in that the accuracy of image alignment required at the time is lowered.
そこで、本発明は、上記事情に鑑み、圧縮処理が施された動画データであっても、精度良く超解像処理を行なえる手段を提供することを目的とする。 In view of the above circumstances, an object of the present invention is to provide means capable of performing super-resolution processing with high accuracy even for moving image data subjected to compression processing.
第1の発明に係る画像処理装置は、選択部と、判定部と、ノイズ除去部とを備える。前記選択部は、フレーム間予測を用いて圧縮された動画データを読み出して、処理対象となる複数のフレームを選択する。前記判定部は、前記選択部が選択した前記フレームの情報を解析して、前記フレーム毎にノイズを除去するか否かを判定する。前記ノイズ除去部は、前記判定部の判定結果に応じて、前記ノイズの除去処理を前記フレーム毎に行なう。前記判定部は、前記フレーム間予測に用いられる第1のフレームに対してノイズを除去しないと判定し、前記第1のフレームよりも圧縮率の高い第2のフレームに対してはノイズを除去すると判定する。 An image processing apparatus according to a first invention includes a selection unit, a determination unit, and a noise removal unit. The selection unit reads moving image data compressed using inter-frame prediction, and selects a plurality of frames to be processed. The determination unit analyzes information on the frame selected by the selection unit, and determines whether noise is to be removed for each frame. The noise removal unit performs the noise removal process for each frame according to the determination result of the determination unit. The determination unit is configured to determine not to remove noise with respect to the first frame used in inter-frame prediction and removal of noise with respect to the first second frame highly compressed than the frame Judge .
第2の発明は、第1の発明において、画像処理装置は、さらに超解像処理部を備える。前記超解像処理部は、前記除去処理が施されたフレームを含む前記処理対象となる複数の前記フレームに超解像処理を施すことにより、前記フレームよりも高解像度の画像を生成する。 In a second aspect based on the first aspect, the image processing apparatus further includes a super-resolution processing section. The super-resolution processing unit generates a higher resolution image than the frame by performing super-resolution processing on the plurality of frames to be processed including the frame on which the removal processing has been performed.
第3の発明は、第1の発明において、前記判定部は、前記フレーム毎の圧縮率と圧縮形式との少なくとも一方に基づいて、前記除去処理を行なうか否かを判定する。 In a third aspect based on the first aspect, the determination unit determines whether or not to perform the removal process based on at least one of a compression rate and a compression format for each frame.
第4の発明は、第1の発明において、前記ノイズ除去部は、前記ノイズとしてのブロックノイズを除去するデブロッキングフィルタ処理を行なう。 In a fourth aspect based on the first aspect, the noise removing unit performs a deblocking filter process for removing block noise as the noise.
第5の発明は、第1の発明において、前記判定部は、前記フレーム間予測に用いられるIフレーム、Bフレーム、Pフレームについて、予め設定した圧縮率の閾値に応じて、前記除去処理を行なうか否かを判定する。 In a fifth aspect based on the first aspect , the determination unit performs the removal process on the I frame, the B frame, and the P frame used for the inter-frame prediction according to a preset compression rate threshold value. It is determined whether or not.
第6の発明は、第2の発明において、前記判定部は、前記超解像処理に不適な解像度のフレームを前記処理対象から外す。 In a sixth aspect based on the second aspect , the determination unit excludes a frame having a resolution unsuitable for the super-resolution processing from the processing target.
第7の発明に係る撮像装置は、被写体像を連続して撮像して生成した動画データを圧縮する圧縮処理部と、第1の発明から第6の発明の何れかの画像処理装置とを備える。 An imaging apparatus according to a seventh aspect includes a compression processing unit that compresses moving image data generated by continuously capturing subject images, and the image processing apparatus according to any one of the first to sixth aspects. .
第8の発明に係る画像処理プログラムは、選択ステップと、判定ステップと、ノイズ除去ステップとをコンピュータに実行させる。前記選択ステップは、フレーム間予測を用いて圧縮された動画データを読み出して、処理対象となる複数のフレームを選択する。前記判定ステップは、前記選択ステップにより選択された前記フレームの情報を解析して、前記フレーム毎にノイズを除去するか否かを判定する。前記ノイズ除去ステップは、前記判定ステップの判定結果に応じて、前記ノイズの除去処理を前記フレーム毎に行なう。前記判定ステップは、前記フレーム間予測に用いられる第1のフレームに対してノイズを除去しないと判定し、前記第1のフレームよりも圧縮率の高い第2のフレームに対してはノイズを除去すると判定する。 An image processing program according to an eighth aspect causes a computer to execute a selection step, a determination step, and a noise removal step. The selection step reads moving image data compressed using inter-frame prediction, and selects a plurality of frames to be processed. In the determination step, information on the frame selected in the selection step is analyzed to determine whether noise is to be removed for each frame. In the noise removal step, the noise removal processing is performed for each frame according to the determination result of the determination step. The determination step, the determination not to remove noise with respect to the first frame used in inter-frame prediction and removal of noise with respect to the first second frame highly compressed than the frame Judge .
本発明は、圧縮処理が施された動画データであっても、精度良く超解像処理を行なえる手段を提供できる。 The present invention can provide means for performing super-resolution processing with high accuracy even for moving image data that has been subjected to compression processing.
(第1実施形態)
以下、図面に基づいて本発明の実施の形態を詳細に説明する。第1実施形態では、本発明に係る撮像装置、画像処理装置及び画像処理プログラムに関する実施の形態について説明する。
(First embodiment)
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the first embodiment, an embodiment relating to an imaging apparatus, an image processing apparatus, and an image processing program according to the present invention will be described.
図1は、電子カメラ1の構成例を示すブロック図である。ここで、本発明に係る撮像装置の一実施形態である電子カメラ1は、本発明に係る画像処理装置の機能と、電子カメラ1の内部で処理する本発明に係る画像処理プログラムとを備える。
FIG. 1 is a block diagram illustrating a configuration example of the
また、電子カメラ1は、動画撮影機能を有し、圧縮処理が施された動画データであっても、精度良く超解像処理を行なえる超解像処理モードを有している。
Further, the
電子カメラ1は、撮影光学系10と、撮像素子11と、信号処理部12と、RAM(Random Access Memory)13と、フラッシュメモリ14と、記録インターフェース部(以下「記録I/F部」という。)15と、表示インターフェース部(以下「表示I/F部」という。)16と、表示モニタ17と、操作部18と、レリーズ釦19と、動画撮影釦20と、CPU(Central Processing Unit)21と、バス22とを備える。
The
このうち、信号処理部12、RAM13、フラッシュメモリ14、記録I/F部15、表示I/F部16及びCPU21は、バス22を介して互いに接続されている。
Among these, the
撮影光学系10は、一例として、焦点距離を調整するズームレンズと、撮像素子11の撮像面での結像位置を調整するフォーカスレンズとを含む複数のレンズ群で構成されている。レンズ駆動部(不図示)は、撮影光学系10内でズームレンズやフォーカスレンズのレンズ位置をCPU21の指示に応じて光軸方向に調整する。なお、簡単のため、図1では、撮影光学系10を1枚のレンズとして図示する。
The photographing
撮像素子11は、被写体像を撮像して、画像(アナログの画像信号)を生成する。そして、撮像素子11が出力するアナログの画像信号は、信号処理部12に入力される。なお、撮像素子11の撮像面には、R(赤)、G(緑)B(青)の3種類のカラーフィルタが例えばベイヤー配列で配置されている。また、撮像素子11の電荷蓄積時間及び画像信号の読み出しは、タイミングジェネレータ(不図示)によって制御される。撮像素子11は、CCD(Charge Coupled Device)型又はCMOS(Complementary Metal-Oxide Semiconductor)型のカラーイメージセンサである。
The image sensor 11 captures a subject image and generates an image (analog image signal). The analog image signal output from the image sensor 11 is input to the
信号処理部12は、アナログフロントエンド(AFE)回路と、A/D変換部と、デジタルフロントエンド(DFE)回路とを有している。
The
AFE回路は、撮像素子11が出力する画像信号に対してアナログ信号処理を施す。A/D変換部は、アナログの画像信号をデジタルの画像信号に変換する。DFE回路は、A/D変換後の画像信号にデジタル信号処理を施す。なお、撮像素子11が出力する画像信号は、バス22を介して、画像データとしてRAM13に一時的に記録される。RAM13は、揮発性のメモリであり、画像データを一時的に記録するバッファメモリの領域を有する。
The AFE circuit performs analog signal processing on the image signal output from the image sensor 11. The A / D converter converts an analog image signal into a digital image signal. The DFE circuit performs digital signal processing on the image signal after A / D conversion. The image signal output from the image sensor 11 is temporarily recorded in the
フラッシュメモリ14は、書き換え可能な不揮発性の半導体メモリである。フラッシュメモリ14は、電子カメラ1の制御を行なうプログラムを格納する。
The
記録I/F部15には、着脱自在の記録媒体M1を接続するためのコネクタ(不図示)が形成されている。そして、記録I/F部15は、そのコネクタに接続された記録媒体M1にアクセスして静止画データや動画データの記録処理等を行なう。この記録媒体M1は、例えば、カード型の不揮発性のメモリカードである。図1では、コネクタに接続された後の記録媒体M1を示している。なお、記録媒体M1は、本発明の一実施形態の画像処理プログラムを記録しているコンピュータ可読な記録媒体として用いても良い。 The recording I / F unit 15 is formed with a connector (not shown) for connecting a detachable recording medium M1. Then, the recording I / F unit 15 accesses the recording medium M1 connected to the connector and performs recording processing of still image data and moving image data. The recording medium M1 is, for example, a card-type nonvolatile memory card. FIG. 1 shows the recording medium M1 after being connected to the connector. The recording medium M1 may be used as a computer-readable recording medium that records the image processing program according to the embodiment of the present invention.
表示I/F部16は、表示モニタ17の表示画面上に画像等を表示するためのインターフェースを提供する。表示モニタ17は、例えば液晶表示媒体を利用した表示装置(液晶モニタ)である。そして、表示モニタ17は、例えば静止画像、動画像又は電子カメラ1の操作メニュー等を表示する。操作部18は、撮影者の操作(ユーザ入力)を受け付ける複数の釦を有しており、電子カメラ1を操作するための指示入力を受け付ける。
The display I / F unit 16 provides an interface for displaying an image or the like on the display screen of the
レリーズ釦19は、半押し操作(撮影前におけるオートフォーカス(AF)や自動露出(AE)等の撮影準備の動作開始)と全押し操作(記録用の静止画像を取得するための撮影の動作開始)との指示入力とを受け付ける。
The
動画撮影釦20は、押圧操作により動画撮影(動画記録)の開始の指示入力を受け付け、再度の押圧操作により動画撮影の終了の指示入力を受け付ける。
The moving
CPU21は、ASIC(画像エンジン:Application Specific Integrated Circuit)の機能を有し、各種演算及び電子カメラ1の統括的な制御を行なうマイクロプロセッサである。CPU21は、上記のプログラムを実行することにより、電子カメラ1の各部の制御等を行なう。また、CPU21は、RAM13に記録されている画像データを読み出し、各種の画像処理を施す。
The
また、CPU21は、例えば、記録媒体M1から本発明の一実施形態である画像処理プログラムをフラッシュメモリ14に格納する。これにより、CPU21は、本発明に係る画像処理装置の一態様として、選択部21aと、判定部21bと、ノイズ除去部21cと、超解像処理部21dとを備える。また、CPU21は、圧縮処理部21eと、復号処理部21fと、記録処理部21gとを備える。
Further, the
なお、本実施形態では、説明を分かりやすくするため、図1において、選択部21a、判定部21b、ノイズ除去部21c及び超解像処理部21dをCPU21に含めて描いているが、CPU21とは別の専用のハードウエア回路で構成しても良い。さらに、本実施形態では、圧縮処理部21e、復号処理部21f及び記録処理部21gについても専用のハードウエア回路に含めても良い。
In this embodiment, in order to make the explanation easy to understand, the selection unit 21a, the determination unit 21b, the
また、CPU21は、画像処理プログラムに従って、図3〜図6に示すフローチャートの処理(以下「フローの処理」という。)を実行する。
Further, the
選択部21aは、圧縮された動画データを読み出して、処理対象となる複数のフレームを選択する。ここで、圧縮された動画データは、例えば、フレーム間予測を用いて圧縮が施された動画データである。フレーム間予測は、圧縮効率を高めるために、MPEG(Moving Picture Experts Group)形式等の符号化処理に利用される。 The selection unit 21a reads the compressed moving image data and selects a plurality of frames to be processed. Here, the compressed moving image data is, for example, moving image data that has been compressed using inter-frame prediction. Inter-frame prediction is used for encoding processing such as MPEG (Moving Picture Experts Group) format in order to increase compression efficiency.
フレーム間予測を用いて圧縮が施された動画データでは、非圧縮の場合のRAWデータと異なり、例えば、何枚かに一枚の割合で取得された動き予測の基準となるIフレーム(Intra-coded Frame)と、時間的に過去のフレームから予測(順方向予測)して生成したPフレーム(Predicted Frame)と、時間的に過去と未来の双方向から予測して生成したBフレーム(Bi-directional Predicted Frame)との組み合わせにより構成される。 In moving image data compressed using interframe prediction, unlike RAW data in the case of non-compression, for example, an I frame (Intra- coded frame), P frame (Predicted Frame) generated by predicting from the past frame in time (forward prediction), and B frame generated by predicting from the past and future in time (Bi- directional Predicted Frame).
このフレーム間予測を用いて圧縮が施されたデータは、復号化した際に、ブロックノイズが発生しやすいので、本実施形態の超解像処理モードを適用するデータとしては好適である。なお、フレームの選択の仕方については、図2等を用いて後述する。 Since the data compressed using the inter-frame prediction is likely to generate block noise when decoded, it is suitable as data to which the super-resolution processing mode of the present embodiment is applied. The method of selecting a frame will be described later with reference to FIG.
判定部21bは、選択部21aが選択したフレームの情報を解析して、フレーム毎にブロックノイズを除去するか否かを判定する。具体的には、判定部21bは、フレーム毎の圧縮率と圧縮形式との少なくとも一方に基づいて、ブロックノイズの除去処理を行なうか否かを判定する。例えば、判定部21bは、フレーム間予測に用いられるIフレーム、Bフレーム、Pフレームについて、予め設定した圧縮率の閾値に応じて、ブロックノイズの除去処理を行なうか否かを判定する。これにより、判定部21bは、フレームの種別毎にブロックノイズの除去処理を行なうか否かを判定することができる。 The determination unit 21b analyzes information on the frame selected by the selection unit 21a, and determines whether or not to remove block noise for each frame. Specifically, the determination unit 21b determines whether or not to perform block noise removal processing based on at least one of the compression rate and the compression format for each frame. For example, the determination unit 21b determines whether or not to perform block noise removal processing on an I frame, B frame, and P frame used for inter-frame prediction, according to a preset compression rate threshold. Thereby, the determination unit 21b can determine whether or not to perform a block noise removal process for each frame type.
ここで、例えば、MPEG形式の符号化処理では、画像信号に対して、所定の単位の画素ブロック毎に離散コサイン変換(Discrete Cosine Transformation)を施す。そして、この符号化処理では、離散コサイン変換を施した後、所定の量子化処理を行なうことにより情報量の圧縮を図る。 Here, for example, in the MPEG format encoding process, a discrete cosine transformation is performed on the image signal for each pixel block of a predetermined unit. In this encoding process, after performing discrete cosine transform, a predetermined quantization process is performed to reduce the amount of information.
この際、この符号化処理では、量子化処理の程度に応じて圧縮率を大きくすることができるが、一部の情報を切り捨てるために、圧縮率に応じてモザイク状のブロックノイズが発生する。 At this time, in this encoding process, the compression rate can be increased according to the degree of the quantization process. However, in order to discard some information, mosaic block noise is generated according to the compression rate.
すなわち、MPEG形式の符号化処理では、所定の単位の画素ブロック(例えば8×8画素)毎に量子化処理等を施すため、圧縮率に応じて、復号化した際にブロック境界(ブロックノイズ)が発生してしまう。他の符号化処理でも、復号化した際に圧縮率に応じて、ブロックノイズが発生する。 That is, in the MPEG format encoding process, a quantization process or the like is performed for each pixel block (for example, 8 × 8 pixels) in a predetermined unit. Therefore, block boundaries (block noise) are generated when decoding is performed according to the compression rate. Will occur. Even in other encoding processes, block noise occurs according to the compression rate when decoding.
そこで、本実施形態では、圧縮率に閾値を設け、例えば、Iフレームより高圧縮なBフレーム、Pフレームについて、判定部21bは、ブロックノイズの除去処理を行なう判定を行なう。これにより、判定部21bは、Iフレームより高圧縮なフレームについて、ブロックノイズの除去処理の対象とする。このような判定を行なうのは、Bフレーム、Pフレームは、Iフレームと比較して、復号化した際にブロックノイズが発生しやすいためである。 Therefore, in the present embodiment, a threshold is provided for the compression rate, and for example, the determination unit 21b performs determination to perform block noise removal processing for B frames and P frames that are more highly compressed than I frames. Accordingly, the determination unit 21b sets a block noise higher than the I frame as a block noise removal process target. Such a determination is made because the B frame and the P frame are more likely to generate block noise when decoded than the I frame.
なお、判定部21bは、フレームのファイルサイズに閾値を設定しても良い。すなわち、判定部21bは、フレームのファイルサイズが閾値以下の場合、高圧縮なフレームと判定する。これにより、判定部21bは、Iフレームより高圧縮なBフレーム、Pフレームについて、ブロックノイズの除去処理を行なう判定を行なうことができる。 The determination unit 21b may set a threshold value for the file size of the frame. That is, the determination unit 21b determines that the frame is a highly compressed frame when the file size of the frame is equal to or smaller than the threshold value. Thereby, the determination part 21b can perform the determination which performs the removal process of a block noise about B frame and P frame higher compression than I frame.
また、判定部21bは、超解像処理に不適な解像度のフレームを処理対象から外す。このような判定を行なうのは、超解像処理に寄与しないフレームだからである。なお、超解像処理に不適な解像度のフレームとは、例えば、ボケ等に起因する低解像度のフレームや超解像処理に用いるフレームとしては圧縮率が高く、低画質のフレーム等が挙げられる。 Further, the determination unit 21b excludes a frame having a resolution unsuitable for the super-resolution processing from the processing target. This determination is performed because the frame does not contribute to the super-resolution processing. Note that the frame having a resolution unsuitable for the super-resolution processing includes, for example, a low-resolution frame caused by blur or the like, a frame having a high compression rate as a frame used for the super-resolution processing, and the like.
ノイズ除去部21cは、判定部21bの判定結果に応じて、ブロックノイズの除去処理をフレーム毎に行なう。具体的には、ノイズ除去部21cは、ブロックノイズを除去するため、ブロック境界を平滑化する公知のデブロッキングフィルタ(Deblocking Filter)処理(以下「DF処理」という。)を行なう。これにより、ノイズ除去部21cは、ブロック境界(ブロックノイズ)のみを平滑化して、ブロックノイズの発生を抑制することができる。
The
つまり、ノイズ除去部21cは、超解像処理に使用するフレームのうち、判定部21bの判定結果に応じて、1枚〜全てのフレームにDF処理を行なう。
That is, the
ここで、ブロックノイズが発生する(歪む境界)箇所は、圧縮形式に応じて推定でき、また、ブロックノイズは、高圧縮な設定であるほど発生しやすいため、本実施形態では、ブロックノイズが発生しやすい条件で、DF処理を適用する。デブロッキングフィルタは、必要ない箇所に適用すると、画質劣化を及ぼす可能性もあるため、本実施形態では、例えば、Iフレームであれば、DF処理を適用しなくても良い構成とする。これにより、ノイズ除去部21cは、画質劣化を抑制しつつ、DF処理を行なうことができる。
Here, the location where block noise occurs (distorted boundary) can be estimated according to the compression format, and block noise is more likely to occur as the compression setting is higher. In this embodiment, block noise is generated. Apply DF processing under easy-to-use conditions. If the deblocking filter is applied to an unnecessary part, there is a possibility that the image quality may be deteriorated. Therefore, in the present embodiment, for example, in the case of an I frame, it is not necessary to apply DF processing. Thereby, the
超解像処理部21dは、除去処理が施されたフレームを含む処理対象となる複数のフレームに超解像処理を施して、高解像度の静止画像を生成する。なお、超解像処理の詳細については、図5等を用いて後述する。 The super-resolution processing unit 21d performs super-resolution processing on a plurality of frames to be processed including frames subjected to the removal processing, and generates a high-resolution still image. The details of the super-resolution processing will be described later with reference to FIG.
圧縮処理部21eは、静止画データ又は動画データに対して圧縮処理を施す。圧縮処理部21eは、静止画データに対しては、例えばJPEG(Joint Photographic Experts Group)形式で圧縮処理を施す。また、圧縮処理部21eは、動画データに対しては、例えばMPEG形式で圧縮処理を施す。 The compression processing unit 21e performs compression processing on still image data or moving image data. The compression processing unit 21e performs compression processing on still image data in, for example, JPEG (Joint Photographic Experts Group) format. The compression processing unit 21e performs compression processing on the moving image data in, for example, MPEG format.
なお、本実施形態で採用する動画データの圧縮形式は、MPEG(例えばMPEG−1〜4)形式に限られず、例えばITU(国際電気通信連合)によって勧告された、動画データの圧縮符号化方式の一つであるH.264又はH.265であっても良い。 Note that the compression format of moving image data employed in the present embodiment is not limited to the MPEG (for example, MPEG-1 to 4) format, and is, for example, a compression encoding method for moving image data recommended by the ITU (International Telecommunication Union). H. is one. H.264 or H.264 It may be 265.
或いは、本実施形態で採用する動画データの圧縮形式は、Motion−JPEGであっても良い。Motion−JPEGの場合、フレーム間の圧縮をしない分、圧縮率は低くなるが、フレーム毎にJPEG圧縮を行なっているので圧縮率に応じてブロックノイズが発生する可能性がある。そのため、判定部21bは、例えば、全てのフレームに対して、DF処理を行なうようにしても良い。つまり、判定部21bは、圧縮率と圧縮形式とに基づいて、ブロックノイズの除去処理を行なうか否かを判定することができる。したがって、本実施形態で採用する動画データの圧縮形式は、特に限定されない。なお、本実施形態では、Iフレーム、Bフレーム、Pフレームについても圧縮形式の一態様としても良い。 Alternatively, the compression format of moving image data employed in the present embodiment may be Motion-JPEG. In the case of Motion-JPEG, the compression rate is reduced by the amount of compression between frames, but since JPEG compression is performed for each frame, there is a possibility that block noise occurs depending on the compression rate. Therefore, the determination unit 21b may perform DF processing on all frames, for example. That is, the determination unit 21b can determine whether or not to perform block noise removal processing based on the compression rate and the compression format. Therefore, the compression format of the moving image data employed in the present embodiment is not particularly limited. In this embodiment, the I frame, the B frame, and the P frame may be an aspect of the compression format.
復号処理部21fは、圧縮された静止画データや動画データを、伸長することにより復号化処理する。記録処理部21gは、超解像処理により生成した静止画像をフラッシュメモリ14又は記録媒体M1に記録する。
The
次に、電子カメラ1の動作について説明する。
Next, the operation of the
図2は、超解像処理モードの概要を説明する図である。図3は、超解像処理モード下での電子カメラ1の動作を示すフローチャートである。CPU21は、画像処理プログラムに基づいて、図3に示すフローの処理を実行する。
FIG. 2 is a diagram for explaining the outline of the super-resolution processing mode. FIG. 3 is a flowchart showing the operation of the
図3に示すフローの処理では、圧縮処理が施された動画データを処理対象とする。この動画データは、例えば、電子カメラ1で動画撮影され、記録媒体M1に記録されていることとする。なお、本実施形態において、処理対象となる複数のフレームは、一例として、同一被写体が略同一画角で時間的に連続して撮影されたフレームから構成される動画データであることとする。
In the processing of the flow shown in FIG. 3, moving image data that has been subjected to compression processing is a processing target. For example, the moving image data is captured by the
ここで、CPU21は、操作部18を介して、超解像処理モードの指示入力を受け付ける。すると、CPU21は、超解像処理モードに移行し、操作部18を介して、ユーザから動画再生の指示入力を受け付けることにより、記録媒体M1から動画データを読み出して、復号化した後、表示モニタ17に動画を再生させる。
Here, the
そして、ユーザは、再生された動画を見ながら、所望のワンシーンに対して超解像処理を行ないたい画像を指定することができる。この際、CPU21は、操作部18を介して、ユーザからの動画再生を停止させる指示入力を受け付けることにより、所望のワンシーンで停止させる。すると、CPU21は、以下に示すフローの処理を開始する。
Then, the user can specify an image to be subjected to super-resolution processing for a desired one scene while watching the reproduced moving image. At this time, the
ステップS101:CPU21の選択部21aは、フレームの選択処理を行なう。具体的には、選択部21aは、後述するステップS105の超解像処理を行なうため、動画データを参照し、ユーザにより指定された画像の元になるフレーム、及びそのフレームの前後の複数のフレームを選択する。
Step S101: The selection unit 21a of the
図2(a)は、フレームの選択処理を説明する図である。図2(a)では、説明の便宜上、動画再生中のn枚目のフレームから番号付け(1〜12)をしている。また、図中のI、B、Pは、それぞれ、該当する番号のフレームが、Iフレーム、Bフレーム、Pフレームの何れかを表わしている。 FIG. 2A is a diagram for explaining frame selection processing. In FIG. 2A, for convenience of explanation, numbering (1 to 12) is performed from the nth frame during moving image reproduction. Also, I, B, and P in the figure each indicate whether the corresponding numbered frame is an I frame, a B frame, or a P frame.
一例として、ユーザが指定した画像(表示モニタ17に表示されている画像)の元になるフレームが、図2(a)において、フレーム3であった場合、選択部21は、圧縮された動画データ(例えばフレーム1〜5)を記録媒体M1からRAM13に読み出して、処理対象となるフレーム1〜5として選択する。そして、CPU21は、ステップS102の処理に移行する。
As an example, when the frame that is the basis of the image specified by the user (the image displayed on the display monitor 17) is the
ステップS102:CPU21の判定部21bは、選択部21bが選択したフレームの判定処理を行なう。具体的には、判定部21bは、フレームの情報を解析して、フレーム毎にブロックノイズを除去するか否かを判定する。フレームの情報としては、圧縮率と圧縮形式とを含む。ここで、判定部21bは、図4に示す判定処理のサブルーチンのフローの処理を実行する。図2(b)は、判定処理を説明する図である。判定処理のサブルーチンのフローの処理が終了すると、CPU21は、ステップS103の処理に移行する。
Step S102: The determination unit 21b of the
ステップS103:CPU21の復号処理部21fは、フレームの復号化処理を行なう。一例として、復号処理部21fは、RAM13に一時記録されている処理対象となるフレーム1〜5に対して、MPEG形式に準拠した復号化処理を行なう。そして、CPU21は、ステップS104の処理に移行する。
Step S103: The
ステップS104:CPU21のノイズ除去部21cは、必要に応じてDF処理を行なう。具体的には、ノイズ除去部21cは、後述するフラグを参照して、判定部21bがDF処理を行なう設定をしたフレームについて、DF処理を行なう。
Step S104: The
図2(c)は、DF処理を行なうフレームを例示している。上段のフレームについては、DF処理前の状態を表わしており、ブロックノイズが存在するフレームについては、象徴的にブロックノイズを四角形状で表わしている。したがって、実際には、ブロックノイズは、モザイク状に複数存在している。 FIG. 2C illustrates a frame for performing DF processing. The upper frame represents the state before DF processing, and the frame in which block noise exists symbolically represents the block noise in a square shape. Therefore, actually, a plurality of block noises exist in a mosaic pattern.
また、下段のフレームについては、DF処理後の状態を表わしており、ブロックノイズが除去された状態を表わしている。 Further, the lower frame represents the state after the DF processing, and represents a state in which block noise is removed.
すなわち、ノイズ除去部21cは、フレーム2〜5について、DF処理を行なう。そして、CPU21は、ステップS105の処理に移行する。
That is, the
ステップS105:CPU21の超解像処理部21dは、超解像処理を行なう。具体的には、超解像処理部21dは、図5に示す超解像処理のサブルーチンのフローの処理を実行する。図2(d)は、超解像処理により高解像度の静止画像が生成したことを模式的に表わしている。超解像処理のサブルーチンのフローの処理が終了すると、CPU21は、ステップS106の処理に移行する。
Step S105: The super-resolution processing unit 21d of the
ステップS106:CPU21の記録処理部21gは、記録処理を行なう。具体的には、超解像処理を施して生成した新たな静止画像をフラッシュメモリ14又は記録媒体M1に記録する。そして、CPU21は、図3に示すフローの処理を終了させる。
Step S106: The
次に、判定処理のサブルーチンのフローの処理について説明する。 Next, the flow of the determination process subroutine will be described.
図4は、判定処理のサブルーチンのフローチャートである。 FIG. 4 is a flowchart of a subroutine for determination processing.
ステップS201:判定部21bは、n枚目のフレームの解析処理を行なう。具体的には、判定部21bは、選択部21が選択した処理対象となるフレームを順番に読み出して、解析処理を行なう。解析結果に応じて、CPU21は、ステップS202、S203、S204の何れかの処理に移行する。
Step S201: The determination unit 21b performs analysis processing on the nth frame. Specifically, the determination unit 21b sequentially reads out the frames to be processed selected by the
ここで、図2(b)を例にして説明すると、判定部21bは、1枚目のフレームを読み出す。この場合、1枚目は、Iフレームであるので、判定部21bは、DF処理を行なわない判定をする。そのため、CPU21は、ステップS202に移行する。
Here, with reference to FIG. 2B as an example, the determination unit 21b reads the first frame. In this case, since the first frame is an I frame, the determination unit 21b determines not to perform DF processing. Therefore, the
ステップS202:判定部21bは、DF処理のフラグをオフに設定する。ここで、フラグがオフの場合、ノイズ除去部21cは、フラグがオフに設定されたフレームについては、DF処理を行なわないことを意味する。そして、CPU21は、ステップS205に移行する。
Step S202: The determination unit 21b sets the DF processing flag to OFF. Here, when the flag is off, it means that the
ステップS203:判定部21bは、DF処理のフラグをオンに設定する。ここで、フラグがオンの場合、ノイズ除去部21cは、フラグがオンに設定されたフレームについては、DF処理を行なうことを意味する。そして、CPU21は、ステップS205に移行する。
Step S203: The determination unit 21b sets the DF processing flag to ON. Here, when the flag is on, it means that the
ステップS204:判定部21bは、当該n枚目のフレームを処理対象から外す処理を行なう。つまり、判定部21bは、超解像処理に不適な解像度のフレームを処理対象から外す。そして、CPU21は、ステップS205に移行する。
Step S204: The determination unit 21b performs a process of excluding the nth frame from the processing target. That is, the determination unit 21b excludes a frame having a resolution inappropriate for the super-resolution processing from the processing target. Then, the
ステップS205:判定部21bは、次のフレームがあるか否かを判定する。次のフレームが無い場合(ステップS205:No)、CPU21は、図3に示すステップS103の処理に戻る。一方、次のフレームがある場合(ステップS205:Yes)、CPU21は、ステップS206の処理に移行する。
Step S205: The determination unit 21b determines whether there is a next frame. If there is no next frame (step S205: No), the
ステップS206:判定部21bは、次のフレーム番号(n=n+1)を設定する。そして、CPU21は、ステップS201の処理に戻り、引き続き、ステップS201以下の処理を繰り返す。一例として、図2(b)に示す通り、2〜4枚目は、Bフレームであるので、判定部21bは、DF処理のフラグをオンに設定する(ステップS203参照)。また、一例として、図2(b)に示す通り、5枚目は、Pフレームであるので、判定部21bは、DF処理のフラグをオンに設定する(ステップS203参照)。 Step S206: The determination unit 21b sets the next frame number (n = n + 1). And CPU21 returns to the process of step S201, and repeats the process after step S201 continuously. As an example, as shown in FIG. 2B, since the second to fourth frames are B frames, the determination unit 21b sets the DF processing flag to ON (see step S203). As an example, as shown in FIG. 2B, since the fifth frame is a P frame, the determination unit 21b sets the DF processing flag to ON (see step S203).
但し、図2(b)の事例では、ステップS204の処理を行なわなかったが、上記の通り、超解像処理に不適な解像度のフレームの場合、ステップS204の処理に移行し、判定部21bは、当該n枚目のフレームを処理対象から外す。 However, in the case of FIG. 2B, the process of step S204 was not performed. However, as described above, in the case of a frame having a resolution inappropriate for the super-resolution process, the process proceeds to the process of step S204. The n-th frame is removed from the processing target.
次に、超解像処理のサブルーチンのフローの処理について説明する。 Next, the flow of the super-resolution processing subroutine will be described.
図5は、超解像処理のサブルーチンのフローチャートである。 FIG. 5 is a flowchart of a subroutine for super-resolution processing.
ステップS301:超解像処理部21dは、位置合わせ処理を行なう。具体的には、超解像処理部21dは、ステップS104の処理が行なわれた後の複数のフレームの位置合わせ処理を行なう。この際、超解像処理部21dは、位置合わせの基準となる低解像度のフレームを基準画像とする。 Step S301: The super-resolution processing unit 21d performs alignment processing. Specifically, the super-resolution processor 21d performs alignment processing for a plurality of frames after the processing in step S104. At this time, the super-resolution processing unit 21d uses a low-resolution frame serving as a reference for alignment as a reference image.
一例として、超解像処理部21dは、図2(c)に示すDF処理後のフレーム3を基準画像とする。そして、超解像処理部21dは、基準画像に対して、位置合わせの対象となる低解像度の画像(フレーム1、DF処理後のフレーム2、4、5)を用いて、位置合わせ処理を行なう。なお、位置合わせ処理としては、超解像処理に用いられる位置合わせであれば、特に限定されない。超解像処理部21dは、位置合わせ処理として、例えば、公知の領域ベースマッチング法を適用しても良い。
As an example, the super-resolution processing unit 21d uses the
ここで、基準画像や位置合わせの対象となる低解像度の画像にブロックノイズが存在すると、フレーム間でブロックノイズ同士が位置合わせの対象となり、被写体同士の位置合わせの精度が著しく落ちる。しかしながら、本実施形態では、予めブロックノイズを除去しているので、位置合わせ処理を精度良く行なうことができる。そして、CPU21は、ステップS302の処理に移行する。 Here, if block noise exists in the reference image or the low-resolution image to be aligned, the block noise becomes an object of alignment between frames, and the accuracy of alignment between subjects is significantly reduced. However, in this embodiment, since block noise is removed in advance, the alignment process can be performed with high accuracy. And CPU21 transfers to the process of step S302.
ステップS302:超解像処理部21dは、高解像度の静止画像の合成処理を行なう。具体的には、超解像処理部21dは、位置合わせ処理後の低解像度の画像を合成することにより、高解像度の静止画像を生成する。なお、超解像処理部21dは、特定の超解像処理に限定されず、例えば、公知のML(Maximum-likelihood)法、MAP(Maximum A Posterior)法、又はPOCS(Projection Onto Convex Sets)法等の方法を用いて、超解像処理を行なうことができる。そして、CPU21は、図3に示すステップS106の処理に戻る。 Step S302: The super-resolution processor 21d performs high-resolution still image composition processing. Specifically, the super-resolution processing unit 21d generates a high-resolution still image by synthesizing the low-resolution image after the alignment process. The super-resolution processing unit 21d is not limited to a specific super-resolution process. For example, the well-known ML (Maximum-likelihood) method, MAP (Maximum A Posterior) method, or POCS (Projection Onto Convex Sets) method is used. The super-resolution processing can be performed using a method such as the above. And CPU21 returns to the process of step S106 shown in FIG.
以上説明した通り、本実施形態の電子カメラ1は、CPU21が画像処理プログラムに従って図3〜図5に示すフローの処理を行なうことにより、超解像処理が施された高解像度の静止画像を生成することができる。
As described above, the
したがって、本実施形態によれば、圧縮処理が施された動画データであっても、精度良く超解像処理を行なえる手段を提供できる。 Therefore, according to the present embodiment, it is possible to provide means capable of performing super-resolution processing with high accuracy even for moving image data that has been subjected to compression processing.
次に、第1実施形態の変形例について説明する。 Next, a modification of the first embodiment will be described.
図6は、超解像処理モード下での電子カメラ1の動作の変形例を示すフローチャートである。図3に示すフローチャートでは、判定部21bがフレームの判定処理を行なった後(ステップS102参照)、復号処理部21fがフレームの復号化を行なう構成とした(ステップS103参照)。
FIG. 6 is a flowchart showing a modification of the operation of the
一方、第1実施形態の変形例では、図3に示すフローチャートの差異点として、復号処理部21fがフレームの復号化を行なった後(ステップS402参照)、判定部21bがフレームの判定処理を行なう構成とする(ステップS403参照)。
On the other hand, in the modification of the first embodiment, as a difference in the flowchart shown in FIG. 3, after the
第1実施形態の変形例においても、CPU21は、操作部18を介して、ユーザからの動画再生を停止させる指示入力を受け付けることにより、所望のワンシーンで停止させる。すると、CPU21は、図6に示すフローの処理を開始する。なお、図6に示すフローの処理は、図3に示すフローの処理と順序が一部異なるだけなので簡略化して説明する。
Also in the modified example of the first embodiment, the
ステップS401:選択部21aは、フレームの選択処理を行なう。 Step S401: The selection unit 21a performs a frame selection process.
ステップS402:復号処理部21fは、フレームの復号化処理を行なう。
Step S402: The decoding
ステップS403:判定部21bは、選択部21bが選択したフレームの判定処理を行なう。この場合、既に各フレームは、復号化処理されているので、判定部21bは、復号化される前のフレームの情報(I、B、Pフレームの何れかのフレーム)に基づいて、DF処理を行なうか否かを判定しても良い。 Step S403: The determination unit 21b performs determination processing on the frame selected by the selection unit 21b. In this case, since each frame has already been decoded, the determination unit 21b performs DF processing based on the information of the frame before decoding (any one of the I, B, and P frames). It may be determined whether or not to perform.
ステップS404:ノイズ除去部21cは、必要に応じてDF処理を行なう。
Step S404: The
ステップS405:超解像処理部21dは、超解像処理を行なう。 Step S405: The super-resolution processing unit 21d performs super-resolution processing.
ステップS406:記録処理部21gは、記録処理を行なう。具体的には、超解像処理を施して生成した新たな静止画像を記録媒体M1に記録する。そして、CPU21は、図6に示すフローの処理を終了させる。
Step S406: The
以上説明した通り、第1実施形態の変形例によれば、電子カメラ1は、CPU21が画像処理プログラムに従って図6、図4及び図5に示すフローの処理を行なうことにより、超解像処理が施された高解像度の静止画像を生成することができる。
As described above, according to the modification of the first embodiment, the
なお、上記の超解像処理モードでは、ユーザ入力に応じて、複数のフレームから1枚の高解像度の静止画像を生成することとした。ここで、他の超解像処理モードとしては、例えば、CPU21が、自動的に図3又は図6に示すフローの処理を行なって、処理対象となる複数のフレームを選択して、超解像処理を施した静止画像を生成する構成としても良い。或いは、CPU21が、自動的に図3又は図6に示すフローの処理を繰り返し、処理対象となる複数のフレームを選択して、超解像処理を施した静止画像を時系列に複数生成する構成としても良い。
(第2実施形態)
次に、第2実施形態について説明する。第2実施形態では、本発明に係る画像処理プログラムをコンピュータに組み込んで使用する。
In the super-resolution processing mode, one high-resolution still image is generated from a plurality of frames in accordance with user input. Here, as another super-resolution processing mode, for example, the
(Second Embodiment)
Next, a second embodiment will be described. In the second embodiment, the image processing program according to the present invention is used by being incorporated in a computer.
図7は、コンピュータ100の構成例を示すブロック図である。コンピュータ100は、制御部2と、記録I/F部3と、RAM4と、記録装置5と、入出力インターフェース部(以下「入出力I/F部」という。)6と、バス7とを備える。
FIG. 7 is a block diagram illustrating a configuration example of the
ここで、制御部2、記録I/F部3、RAM4、記録装置5及び入出力I/F部6は、バス7を介して互いに接続されている。
Here, the
また、記録I/F部3は、不揮発性の記憶媒体M1を着脱可能に接続できる。この記録媒体M1には、画像処理プログラムや電子カメラ1で撮影された圧縮された動画データが記録されている。
The recording I /
RAM4は、プログラムの演算結果等を一時的に記録する。このRAM4は、例えば、揮発性のSDRAM(Synchronous Dynamic Random Access Memory)等で構成される。 The RAM 4 temporarily records the calculation result of the program. The RAM 4 is composed of, for example, a volatile SDRAM (Synchronous Dynamic Random Access Memory).
記録装置5は、例えば、ハードディスクや、不揮発性の半導体メモリ等の記録媒体で構成される。この記録装置5は、本発明の一実施形態である画像処理プログラムが格納される。
The
また、入出力I/F部6は、入力デバイス8(キーボード、マウス等のポインティングデバイス)と表示部(液晶モニタ等)9とがそれぞれ接続されている。なお、入出力I/F部6は、入力デバイス8からの各種入力を受け付けるとともに、表示部9に対して表示用のデータを出力する。
The input / output I /
制御部2は、コンピュータ100の制御を行なうプロセッサである。制御部2は、記録装置5に予め格納されたOS(オペレーションシステム)を実行することにより、コンピュータ100の各部の制御等を行なう。
The
また、制御部2は、記録媒体M1から本発明の一実施形態である画像処理プログラムを記録装置5に格納する。この画像処理プログラムは、上記の電子カメラ1と同様、コンピュータ100にも適用することができる。この画像処理プログラムが記録装置5に格納されることにより、制御部2は、本発明に係る画像処理装置の一態様として、選択部2aと、判定部2bと、ノイズ除去部2cと、超解像処理部2dとを備える。これにより、コンピュータ100を本発明に係る画像処理装置の一実施形態としても良い。
In addition, the
また、制御部2は、圧縮処理部2eと、復号処理部2fと、記録処理部2gとを備える。これらの各部は、第1実施形態の電子カメラ1の選択部21a、判定部21b、ノイズ除去部21c、超解像処理部21d、圧縮処理部21e、復号処理部21f及び記録処理部21gと各々同様の機能を有するので説明を省略する。
The
次に、コンピュータ100の動作について説明する。ここで、制御部2は、入力デバイス8を介して、画像処理プログラムの起動の指示入力を受け付ける。すると、制御部2は、入力デバイス8を介して、ユーザから動画再生の指示入力を受け付けることにより、記録媒体M1から動画データを読み出して、復号化した後、表示部9に動画を再生させる。そして、第1実施形態と同様、ユーザは、再生された動画を見ながら、所望のワンシーンに対して超解像処理を行ないたい画像を指定することができる。この際、制御部2は、入力デバイス8を介して、ユーザからの動画再生を停止させる指示入力を受け付けることにより、所望のワンシーンで停止させる。すると、制御部2は、画像処理プログラムに従って、図3又は図6に示すフローの処理を開始する。そして、コンピュータ100では、制御部2が図3〜図5又は図4〜図6に示すフローの処理を行なうことにより、圧縮処理が施された動画データであっても、精度良く超解像処理を行なうことができる。
Next, the operation of the
以上説明した通り、本実施形態のコンピュータ100は、制御部2が画像処理プログラムに従って図3〜図5又は図4〜図6に示すフローの処理を行なうことにより、超解像処理が施された高解像度の静止画像を生成することができる。
As described above, the
なお、本発明に係る画像処理装置は、図3〜図5又は図4〜図6に示すフローの処理と同様の処理を行なう専用のハードウエア回路として、コンピュータ100に組み込んでも良い。
The image processing apparatus according to the present invention may be incorporated in the
(実施形態の補足事項)
(1)上記の実施形態(第1実施形態)では、レンズ一体型のコンパクトタイプの電子カメラを例示したが、本発明の適用可能な撮像装置は、このタイプの電子カメラに限られない。すなわち、本発明の適用可能な撮像装置は、例えば、一眼レフレックスタイプの電子カメラが含まれる。また、本発明の適用可能な撮像装置は、クイックリターンミラーを必要としないレンズ交換式の電子カメラが含まれる。
(Supplementary items of the embodiment)
(1) In the above-described embodiment (first embodiment), a lens-integrated compact type electronic camera is exemplified, but an imaging apparatus to which the present invention can be applied is not limited to this type of electronic camera. That is, the imaging apparatus to which the present invention is applicable includes, for example, a single-lens reflex type electronic camera. The imaging apparatus to which the present invention is applicable includes an interchangeable lens type electronic camera that does not require a quick return mirror.
また、本発明の適用可能な撮像装置は、カメラ機能を備えた携帯電話機、携帯情報端末(PDA:Personal Digital Assistant)も含まれる。 The imaging apparatus to which the present invention can be applied also includes a mobile phone having a camera function and a personal digital assistant (PDA).
(2)上記の実施形態における動画データには、連写撮影した画像群が含まれても良い。 (2) The moving image data in the above embodiment may include a group of images taken continuously.
(3)上記の実施形態では、ブロックノイズを除去するため、DF処理を採用したが、他のノイズリダクションフィルタを採用しても良い。 (3) In the above embodiment, DF processing is adopted to remove block noise, but other noise reduction filters may be adopted.
例えば、ノイズ除去部21cは、平均値フィルタ(ガウシアンフィルタ等)又は、バイラテラルフィルタ(Bilateral Filter)等を用いても良い。これらのフィルタを用いても、ブロックノイズを平滑化することができる。また、ノイズ除去部21cは、これらの複数のフィルタを選択的に組み合わせて採用しても良い。
For example, the
(4)上記の実施形態(第1実施形態)では、判定部21bがフレーム毎の圧縮率と圧縮形式との少なくとも一方に基づいて、ブロックノイズの除去処理を行なうか否かを判定する構成とした。ここで、判定部21bは、さらに、ブロックノイズを検出する手段を設けて、ブロックノイズの除去処理を行なうか否かを判定するようにしても良い。ブロックノイズを検出する手段としては、公知技術を適用すれば良く、例えば、フレーム内を複数に分割したブロックの境界における画素値のレベル差からブロックノイズを検出すれば良い。そして、判定部21bは、ブロックノイズを検出する手段を適用することにより、ブロックノイズを検出した箇所にDF処理を施す判定する。そして、ノイズ除去部21cは、ブロックノイズを検出した箇所にDF処理を施す。
(4) In the above embodiment (first embodiment), the determination unit 21b determines whether to perform block noise removal processing based on at least one of the compression rate and the compression format for each frame. did. Here, the determination unit 21b may further include means for detecting block noise to determine whether or not to perform block noise removal processing. As a means for detecting block noise, a known technique may be applied. For example, block noise may be detected from a level difference of pixel values at a boundary between blocks obtained by dividing the frame into a plurality of blocks. And the determination part 21b determines by performing a DF process to the location which detected block noise by applying the means to detect block noise. And the
これにより、超解像処理部2dは、圧縮処理が施された動画データであっても、精度良く超解像処理を行なうことができる。なお、第2実施形態も同様にして、判定部2bは、さらに、ブロックノイズを検出する手段を設けて、ブロックノイズの除去処理を行なうか否かを判定するようにしても良い。
Thereby, the super-resolution processing unit 2d can perform the super-resolution processing with high accuracy even for the moving image data subjected to the compression processing. Similarly, in the second embodiment, the
1・・・電子カメラ、2・・・制御部、21・・・CPU、21a・・・選択部、2b、21b・・・判定部、2c、21c・・・ノイズ除去部、2d、21d・・・超解像処理部、100・・・コンピュータ
DESCRIPTION OF
Claims (8)
前記選択部が選択した前記フレームの情報を解析して、前記フレーム毎にノイズを除去するか否かを判定する判定部と、
前記判定部の判定結果に応じて、前記ノイズの除去処理を前記フレーム毎に行なうノイズ除去部と、を備え、
前記判定部は、前記フレーム間予測に用いられる第1のフレームに対してノイズを除去しないと判定し、前記第1のフレームよりも圧縮率の高い第2のフレームに対してはノイズを除去すると判定する画像処理装置。 A selection unit that reads out video data compressed using inter-frame prediction and selects a plurality of frames to be processed;
Analyzing the information of the frame selected by the selection unit, and determining whether to remove noise for each frame;
A noise removal unit that performs the noise removal process for each frame according to the determination result of the determination unit,
The determination unit is configured to determine not to remove noise with respect to the first frame used in inter-frame prediction and removal of noise with respect to the first second frame highly compressed than the frame An image processing apparatus for determining .
さらに、前記除去処理が施されたフレームを含む前記処理対象となる複数の前記フレームに超解像処理を施すことにより、前記フレームよりも高解像度の画像を生成する超解像処理部を備える画像処理装置。 The image processing apparatus according to claim 1.
Further, an image including a super-resolution processing unit that generates a higher-resolution image than the frame by performing super-resolution processing on the plurality of frames to be processed including the frame subjected to the removal processing. Processing equipment.
前記判定部は、前記フレーム毎の圧縮率と圧縮形式との少なくとも一方に基づいて、前記除去処理を行なうか否かを判定する画像処理装置。 The image processing apparatus according to claim 1.
The determination unit is an image processing apparatus that determines whether or not to perform the removal process based on at least one of a compression rate and a compression format for each frame.
前記ノイズ除去部は、前記ノイズとしてのブロックノイズを除去するデブロッキングフィルタ処理を行なう画像処理装置。 The image processing apparatus according to claim 1.
The noise removal unit is an image processing apparatus that performs deblocking filter processing to remove block noise as the noise.
前記判定部は、前記フレーム間予測に用いられるIフレーム、Bフレーム、Pフレームについて、予め設定した圧縮率の閾値に応じて、前記除去処理を行なうか否かを判定する画像処理装置。 The image processing apparatus according to claim 1.
The determination unit is an image processing apparatus that determines whether or not to perform the removal process according to a preset compression rate threshold for an I frame, a B frame, and a P frame used for the inter-frame prediction.
前記判定部は、前記超解像処理に不適な解像度のフレームを前記処理対象から外す画像処理装置。 The image processing apparatus according to claim 2,
The determination unit is an image processing apparatus that removes a frame having a resolution unsuitable for the super-resolution processing from the processing target.
請求項1から請求項6の何れか1項に記載の画像処理装置と、
を備える撮像装置。 A compression processing unit that compresses moving image data generated by continuously capturing subject images;
The image processing apparatus according to any one of claims 1 to 6,
An imaging apparatus comprising:
前記選択ステップにより選択された前記フレームの情報を解析して、前記フレーム毎にノイズを除去するか否かを判定する判定ステップと、
前記判定ステップの判定結果に応じて、前記ノイズの除去処理を前記フレーム毎に行なうノイズ除去ステップと、をコンピュータに実行させ、
前記判定ステップは、前記フレーム間予測に用いられる第1のフレームに対してノイズを除去しないと判定し、前記第1のフレームよりも圧縮率の高い第2のフレームに対してはノイズを除去すると判定する画像処理プログラム。 A selection step of reading the video data compressed using inter-frame prediction and selecting a plurality of frames to be processed;
Analyzing the information of the frame selected in the selection step, and determining whether to remove noise for each frame;
According to the determination result of the determination step, the computer performs a noise removal step of performing the noise removal processing for each frame,
The determination step, the determination not to remove noise with respect to the first frame used in inter-frame prediction and removal of noise with respect to the first second frame highly compressed than the frame An image processing program for determination .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012198585A JP6083162B2 (en) | 2012-09-10 | 2012-09-10 | Image processing apparatus, imaging apparatus, and image processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012198585A JP6083162B2 (en) | 2012-09-10 | 2012-09-10 | Image processing apparatus, imaging apparatus, and image processing program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014053857A JP2014053857A (en) | 2014-03-20 |
JP6083162B2 true JP6083162B2 (en) | 2017-02-22 |
Family
ID=50611903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012198585A Active JP6083162B2 (en) | 2012-09-10 | 2012-09-10 | Image processing apparatus, imaging apparatus, and image processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6083162B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11153575B2 (en) | 2018-03-06 | 2021-10-19 | Samsung Electronics Co., Ltd. | Electronic apparatus and control method thereof |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6937473B2 (en) * | 2015-10-29 | 2021-09-22 | パナソニックIpマネジメント株式会社 | Image processing device, vital information acquisition system equipped with this, and image processing method |
JP6653459B2 (en) | 2015-10-29 | 2020-02-26 | パナソニックIpマネジメント株式会社 | Image processing apparatus, pulse estimation system including the same, and image processing method |
JP7467034B2 (en) * | 2018-08-10 | 2024-04-15 | キヤノン株式会社 | IMAGE PROCESSING METHOD, IMAGE PROCESSING APPARATUS, IMAGE PROCESSING SYSTEM, AND PROGRAM |
WO2020031601A1 (en) * | 2018-08-10 | 2020-02-13 | キヤノン株式会社 | Image processing method, image processing device, image processing system, and program |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003032685A (en) * | 2001-07-16 | 2003-01-31 | Sony Corp | Noise reduction method and image processing device |
JP2005176337A (en) * | 2003-11-21 | 2005-06-30 | Matsushita Electric Ind Co Ltd | Method, device and program for processing image signal, and integrated circuit device |
JP4643454B2 (en) * | 2006-01-10 | 2011-03-02 | 株式会社東芝 | Moving picture decoding apparatus and moving picture decoding method |
JP2007193508A (en) * | 2006-01-18 | 2007-08-02 | Sanyo Electric Co Ltd | Image processor and image processing program |
JP5160451B2 (en) * | 2006-01-31 | 2013-03-13 | トムソン ライセンシング | Edge-based spatio-temporal filtering method and apparatus |
JP2007329678A (en) * | 2006-06-07 | 2007-12-20 | Matsushita Electric Ind Co Ltd | Super resolution processing method and apparatus using luminance masking and luminance compensation |
JP2009033317A (en) * | 2007-07-25 | 2009-02-12 | Panasonic Corp | Mpeg noise eliminating device, mpeg noise eliminating method, and mpeg noise eliminating program |
JP5076755B2 (en) * | 2007-09-07 | 2012-11-21 | ソニー株式会社 | Image processing apparatus, image processing method, and computer program |
JP2010081539A (en) * | 2008-09-29 | 2010-04-08 | Victor Co Of Japan Ltd | Moving image encoder and moving image encoding program |
JP5262879B2 (en) * | 2009-03-18 | 2013-08-14 | 株式会社Jvcケンウッド | Re-encoding device and re-encoding method |
JP2012004890A (en) * | 2010-06-17 | 2012-01-05 | Toshiba Corp | Video signal output device, and video signal output method |
-
2012
- 2012-09-10 JP JP2012198585A patent/JP6083162B2/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11153575B2 (en) | 2018-03-06 | 2021-10-19 | Samsung Electronics Co., Ltd. | Electronic apparatus and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
JP2014053857A (en) | 2014-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5243432B2 (en) | Image processing apparatus and image processing method | |
JP4687807B2 (en) | Movie recording apparatus, moving image tilt correction method, and program | |
KR101913837B1 (en) | Method for providing Panoramic image and imaging device thereof | |
WO2016000515A1 (en) | Method and device for filming star trail video, and computer storage medium | |
US9398230B2 (en) | Imaging device and imaging method | |
JP4985251B2 (en) | Imaging apparatus, focus control method, and focus control program | |
JP5126207B2 (en) | Imaging device | |
WO2016011859A1 (en) | Method for filming light painting video, mobile terminal, and computer storage medium | |
JP6083162B2 (en) | Image processing apparatus, imaging apparatus, and image processing program | |
US8363128B2 (en) | Image processing apparatus and image processing method | |
WO2016169488A1 (en) | Image processing method and apparatus, computer storage medium and terminal | |
US8565543B2 (en) | Video recording apparatus, video recording method, and recording medium | |
US20160012562A1 (en) | Image processing apparatus and image processing method | |
JP2010199884A (en) | Imaging device | |
JP2010021710A (en) | Imaging device, image processor, and program | |
JP2007134788A (en) | Image processing apparatus and program | |
KR20100061311A (en) | Photographing apparatus and controlling method thereof | |
JP2013225779A (en) | Image processing device, imaging device, and image processing program | |
JP5352377B2 (en) | Image processing apparatus and image processing method | |
JP4888829B2 (en) | Movie processing device, movie shooting device, and movie shooting program | |
US9955135B2 (en) | Image processing apparatus, image processing method, and program wherein a RAW image to be subjected to special processing is preferentially subjected to development | |
JP5482427B2 (en) | Imaging apparatus, camera shake correction method, and program | |
KR101480407B1 (en) | Digital image processing apparatus, method for controlling the same and medium of recording the method | |
JP6347056B2 (en) | Imaging apparatus and still image generation method | |
JP2007053482A (en) | Imaging apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150812 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160525 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160531 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160801 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20161004 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20161205 |
|
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: 20161227 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170109 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6083162 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |