JP2013021509A - Image processing apparatus and method - Google Patents

Image processing apparatus and method Download PDF

Info

Publication number
JP2013021509A
JP2013021509A JP2011153271A JP2011153271A JP2013021509A JP 2013021509 A JP2013021509 A JP 2013021509A JP 2011153271 A JP2011153271 A JP 2011153271A JP 2011153271 A JP2011153271 A JP 2011153271A JP 2013021509 A JP2013021509 A JP 2013021509A
Authority
JP
Japan
Prior art keywords
image
image data
information
electronic zoom
zoom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2011153271A
Other languages
Japanese (ja)
Inventor
Eiei Han
盈盈 范
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2011153271A priority Critical patent/JP2013021509A/en
Publication of JP2013021509A publication Critical patent/JP2013021509A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image of higher resolution and definition than those of an image subjected to electronic zooming.SOLUTION: A lens 101 and an imaging device 102 capture the image data of a subject. A camera signal processing unit 105 generates the zoom image data by magnifying a part of an image represented by the image data output from the imaging device 102 according to the zoom magnification information being input. An imaging model database 108 stores the deterioration information of an image due to the optical system of the lens 101, and the deterioration information of an image due to the magnification, as the imaging model information. A file generation unit 112 generates a data file storing the information indicating on/off of magnification, the zoom magnification information, the imaging model information, the image data, and the zoom image data.

Description

本発明は、超解像処理を利用する画像処理装置およびその方法に関する。   The present invention relates to an image processing apparatus and method using super-resolution processing.

画像、映像を取得した際に失われた信号を復元し、画像、映像の画素そのものを増やすことで画像、映像の解像度を高める技術、いわゆる超解像技術が普及しつつある。超解像技術として、MAP (maximum a posterior)推定に基づく方法が有名である(例えば、非特許文献1)。   A technique for improving the resolution of an image or video by restoring signals lost when the image or video is acquired and increasing the pixels of the image or video itself, so-called super-resolution technology, is becoming widespread. As a super-resolution technique, a method based on MAP (maximum a posterior) estimation is famous (for example, Non-Patent Document 1).

MAP法は、二乗誤差に高解像度画像の確率情報を付加した評価関数を最小化するような高解像度画像を推定する方法である。つまり、高解像度画像に対するある先見情報を利用して、事後確率を最大化する最適化問題として高解像度画像を推定する超解像処理方法である。具体的には、撮像装置の劣化過程をモデル化した撮像モデルを用いて、低解像度の画像から高解像度画像を推定する逆問題を最適化処理によって解決し、超解像画像を演算によって得る。   The MAP method is a method for estimating a high-resolution image that minimizes an evaluation function obtained by adding probability information of a high-resolution image to a square error. In other words, this is a super-resolution processing method that estimates a high-resolution image as an optimization problem that maximizes the posterior probability by using some foresight information for the high-resolution image. Specifically, using an imaging model that models the degradation process of the imaging device, the inverse problem of estimating a high resolution image from a low resolution image is solved by optimization processing, and a super-resolution image is obtained by calculation.

一方、画像取得時に撮像装置が実行可能な電子的な画像拡大方法として、電子ズーム技術がある。電子ズームは、画像取得時における撮像装置のズーム倍率が光学ズームの限界を超えた場合、撮像装置が取得した画像の一部を切り取り、当該部分を拡大する技術である(例えば、特許文献1)。   On the other hand, there is an electronic zoom technique as an electronic image enlargement method that can be executed by the imaging apparatus during image acquisition. Electronic zoom is a technique for cutting out a portion of an image acquired by the imaging device and enlarging the portion when the zoom magnification of the imaging device at the time of image acquisition exceeds the limit of optical zoom (for example, Patent Document 1). .

非特許文献1が開示する技術は、撮像モデルを用いて低解像度画像から高解像度画像を推定する逆問題であり、適切な撮像モデルがなければ良好な超解像画像は得られない。撮像モデルは、撮像装置の光学特性などを加味した劣化過程であり、撮像装置に固有の情報である。言い換えれば、良好な超解像画像を得るには、撮像装置に固有の撮像モデルを、画像データを記録する際に画像データと併せて保持する必要がある。   The technique disclosed in Non-Patent Document 1 is an inverse problem of estimating a high-resolution image from a low-resolution image using an imaging model, and a good super-resolution image cannot be obtained without an appropriate imaging model. The imaging model is a deterioration process that takes into account the optical characteristics of the imaging apparatus, and is information unique to the imaging apparatus. In other words, in order to obtain a good super-resolution image, it is necessary to hold an imaging model unique to the imaging apparatus together with the image data when recording the image data.

また、電子ズームされた画像以上の解像度を得るには、電子ズームされた画像に超解像処理を施し、当該画像の解像度を電子的に高めることが考えられる。しかし、電子ズームによって拡大された画像に撮像装置の撮像モデルを考慮した超解像処理を施しても、電子ズーム処理の過程で画像劣化が生じていて、充分な解像度の向上を期待することはできない。   In order to obtain a resolution higher than that of an electronic zoomed image, it is conceivable to perform super-resolution processing on the electronic zoomed image to electronically increase the resolution of the image. However, even if super-resolution processing considering the imaging model of the imaging device is performed on the image enlarged by electronic zoom, image degradation has occurred in the process of electronic zoom processing, and it is expected that sufficient resolution improvement will be expected Can not.

特開2009-038627号公報JP 2009-038627

Sung C. P.、Min K. P.「Super-Resolution Image Reconstruction: A Technical Overview」IEEE Signal Proc. Magazine、第26巻、第3号、21-36頁、2003年Sung C. P., Min K. P. "Super-Resolution Image Reconstruction: A Technical Overview" IEEE Signal Proc. Magazine, Vol. 26, No. 3, pp. 21-36, 2003

本発明は、電子ズーム処理された画像よりも高解像、高精細な画像の提供を可能にすることを目的とする。   It is an object of the present invention to provide an image with higher resolution and higher definition than an image that has been subjected to electronic zoom processing.

本発明は、前記の目的を達成する一手段として、以下の構成を備える。   The present invention has the following configuration as one means for achieving the above object.

本発明にかかる画像処理装置は、被写体の画像データを撮像する撮像手段と、入力されるズーム倍率情報に従い、前記撮像手段が出力する画像データが表す画像の一部を拡大処理したズーム画像データを生成する生成手段と、前記撮像手段の光学系による画像の劣化情報、および、前記拡大処理による画像の劣化情報を撮像モデル情報として格納する格納手段と、前記拡大処理のオンオフを示す情報、前記ズーム倍率情報、前記撮像モデル情報、前記画像データ、前記ズーム画像データを格納したデータファイルを作成する作成手段とを有することを特徴とする。   An image processing apparatus according to the present invention includes an image capturing unit that captures image data of a subject, and zoom image data obtained by enlarging a part of an image represented by the image data output by the image capturing unit in accordance with input zoom magnification information. Generation means for generating; storage means for storing image degradation information by the optical system of the imaging means; and image degradation information by the enlargement process as imaging model information; information indicating on / off of the enlargement process; the zoom And creating means for creating a data file storing the magnification information, the imaging model information, the image data, and the zoom image data.

本発明によれば、電子ズーム処理された画像よりも高解像、高精細な画像の提供を可能にすることができる。   According to the present invention, it is possible to provide a higher resolution and higher definition image than an image that has been subjected to electronic zoom processing.

実施例1の撮像装置の構成例を説明するブロック図。1 is a block diagram illustrating a configuration example of an imaging apparatus according to Embodiment 1. FIG. カメラ信号処理部の構成例を説明するブロック図。The block diagram explaining the structural example of a camera signal processing part. ファイル作成部の構成例を説明するブロック図。The block diagram explaining the structural example of a file preparation part. 動画像を格納するデータファイルの構成例を説明する図。The figure explaining the structural example of the data file which stores a moving image. 表示装置の構成例を説明するブロック図。FIG. 9 is a block diagram illustrating a structure example of a display device. 超解像処理を使用した電子ズーム画像の再生を説明する概念図。The conceptual diagram explaining reproduction | regeneration of the electronic zoom image using a super-resolution process. カメラ信号処理部の画像処理を説明するフローチャート。The flowchart explaining the image processing of a camera signal processing part. ファイル作成部のファイル作成処理を説明するフローチャート。The flowchart explaining the file creation process of a file creation part. 表示装置の動画再生処理を説明するフローチャート。7 is a flowchart for explaining moving image reproduction processing of the display device. 超解像画像生成部の構成例を説明するブロック図。The block diagram explaining the structural example of a super-resolution image production | generation part. 撮像装置の劣化モデルを説明する図。6A and 6B illustrate a deterioration model of an imaging device. 行列BとDのサイズを説明する図。The figure explaining the size of the matrices B and D. 二次元画像と行列Xの関係を説明する図。The figure explaining the relationship between a two-dimensional image and the matrix X. FIG. 行列Bの構成例を説明する図。The figure explaining the structural example of the matrix B. FIG. 行列Dの構成例を説明する図。The figure explaining the structural example of the matrix D. FIG. 超解像画像生成部の処理例を説明するフローチャート。The flowchart explaining the process example of a super-resolution image generation part.

以下、本発明にかかる実施例の画像処理である撮像モデル用いた超解像処理による電子ズーム画像の生成処理を図面を参照して詳細に説明する。   Hereinafter, an electronic zoom image generation process by super-resolution processing using an imaging model, which is image processing according to an embodiment of the present invention, will be described in detail with reference to the drawings.

[装置の構成]
図1のブロック図により実施例1の撮像装置113の構成例を説明する。
[Device configuration]
A configuration example of the imaging apparatus 113 according to the first embodiment will be described with reference to the block diagram of FIG.

被写体からの光は、レンズ101を介して撮像デバイス102に結像する。撮像デバイス102が出力するアナログ信号は、アナログ-ディジタル変換器(A/D)103によりディジタル信号(撮像データ)に変換されてバッファメモリ104に格納される。   Light from the subject forms an image on the imaging device 102 via the lens 101. An analog signal output from the imaging device 102 is converted into a digital signal (imaging data) by an analog-digital converter (A / D) 103 and stored in the buffer memory 104.

カメラ信号処理部105は、デモザイキング、ホワイトバランス調整、ガンマ補正などを含む現像処理をバッファメモリ104から読み出した撮像データに施して、例えばRGB各色8ビットの画像データを生成する。また、カメラ信号処理部105は、詳細は後述するが、電子ズーム機能を実現する。   The camera signal processing unit 105 performs development processing including demosaicing, white balance adjustment, gamma correction, and the like on the imaging data read from the buffer memory 104 to generate, for example, 8-bit image data for each color of RGB. The camera signal processing unit 105 realizes an electronic zoom function, which will be described in detail later.

ファイル作成部112は、詳細は後述するが、カメラ信号処理部105から画像データを入力してデータファイルを作成する。そして、作成したデータファイルをLCDモニタのような表示装置106、および、例えばメモリカードやハードディスクドライブ(HDD)のような記憶装置107に出力する。撮像モデルDB108は、レンズ101のレンズ情報、および、撮像デバイス102のデバイス情報に関連する画像の劣化情報を示す撮像モデル情報を格納する。   Although details will be described later, the file creation unit 112 inputs image data from the camera signal processing unit 105 and creates a data file. Then, the created data file is output to a display device 106 such as an LCD monitor and a storage device 107 such as a memory card or a hard disk drive (HDD). The imaging model DB 108 stores imaging model information indicating lens information of the lens 101 and image degradation information related to the device information of the imaging device 102.

ズーム制御部109は、撮像装置113のズーム機能を制御する。ズーム制御部109は、図には示さない例えばズームボタンのようなユーザインタフェイスを介してユーザの指示であるズーム倍率情報を入力する。そして、ズーム倍率情報が光学ズーム機能の範囲であれば、スイッチの端子110を経てレンズ101にズーム倍率情報を含む制御情報を供給する。ズーム倍率情報が光学ズーム機能の限界に達すると、ズーム制御部109は、スイッチの端子111を経てカメラ信号処理部105に電子ズーム倍率情報を供給する。   The zoom control unit 109 controls the zoom function of the imaging device 113. The zoom control unit 109 inputs zoom magnification information, which is a user instruction, via a user interface such as a zoom button (not shown). If the zoom magnification information is within the range of the optical zoom function, control information including the zoom magnification information is supplied to the lens 101 via the terminal 110 of the switch. When the zoom magnification information reaches the limit of the optical zoom function, the zoom control unit 109 supplies the electronic zoom magnification information to the camera signal processing unit 105 via the terminal 111 of the switch.

カメラ信号処理部105は、ズーム制御部109から入力される電子ズーム倍率情報に基づき電子ズームのオンオフを判断する。そして、電子ズームがオンの場合は電子ズーム機能を起動して、電子ズーム倍率情報に従い電子ズーム処理した電子ズーム画像データを出力する。   The camera signal processing unit 105 determines whether the electronic zoom is on or off based on the electronic zoom magnification information input from the zoom control unit 109. When the electronic zoom is on, the electronic zoom function is activated to output electronic zoom image data that has been electronically zoomed according to the electronic zoom magnification information.

図1には、撮像装置113と表示装置106を例えばビデオインタフェイスおよびビデオケーブルを介して接続し、撮像装置113と記憶装置107を例えばUSBのようなシリアルバスやカードインタフェイスを介して接続する例を記載した。しかし、表示装置106と記憶装置107の少なくとも一方は、撮像装置113と一体に構成されていてもよい。   In FIG. 1, the imaging device 113 and the display device 106 are connected via, for example, a video interface and a video cable, and the imaging device 113 and the storage device 107 are connected via, for example, a serial bus such as USB or a card interface. An example was given. However, at least one of the display device 106 and the storage device 107 may be configured integrally with the imaging device 113.

また、ファイル作成部112は、記憶装置107からデータファイルを読み出し、読み出したデータファイルを表示装置106に出力して、動画を再生させることができる。勿論、表示装置106が記憶装置107用のインタフェイスを有する場合、表示装置106は、記憶装置107から直接読み出したデータファイルに記録された動画を再生することができる。   In addition, the file creation unit 112 can read a data file from the storage device 107, output the read data file to the display device 106, and reproduce a moving image. Of course, when the display device 106 has an interface for the storage device 107, the display device 106 can reproduce the moving image recorded in the data file read directly from the storage device 107.

●カメラ信号処理部
図2のブロック図によりカメラ信号処理部105の構成例を説明する。
Camera Signal Processing Unit A configuration example of the camera signal processing unit 105 will be described with reference to the block diagram of FIG.

入力端子201は、ズーム制御部109から電子ズーム倍率情報を入力する。電子ズーム判断部203は、電子ズーム倍率情報に基づき電子ズームのオンオフを判断して、電子ズームオンオフ情報を出力する。電子ズーム倍率取得部205は、電子ズーム判断部203から入力される電子ズームオンオフ情報が電子ズームのオンを示す場合、電子ズーム倍率情報を電子ズーム倍率メモリ212に格納する。   The input terminal 201 inputs electronic zoom magnification information from the zoom control unit 109. The electronic zoom determination unit 203 determines whether the electronic zoom is on or off based on the electronic zoom magnification information, and outputs electronic zoom on / off information. When the electronic zoom on / off information input from the electronic zoom determination unit 203 indicates that the electronic zoom is on, the electronic zoom magnification acquisition unit 205 stores the electronic zoom magnification information in the electronic zoom magnification memory 212.

入力端子202は、バッファメモリ104から撮像データを入力する。画像取得部204は、撮像データに現像処理を施して画像データを生成し、生成した画像データを画像メモリ208に格納する。   The input terminal 202 inputs imaging data from the buffer memory 104. The image acquisition unit 204 generates image data by performing development processing on the imaging data, and stores the generated image data in the image memory 208.

電子ズーム画像生成部206は、画像メモリ208に格納された画像データの一部から、電子ズーム倍率メモリ212に格納された電子ズーム倍率情報に対応する電子ズーム画像データを生成する。そして、生成した電子ズーム画像データを電子ズーム画像メモリ207に格納する。   The electronic zoom image generation unit 206 generates electronic zoom image data corresponding to the electronic zoom magnification information stored in the electronic zoom magnification memory 212 from a part of the image data stored in the image memory 208. The generated electronic zoom image data is stored in the electronic zoom image memory 207.

電子ズームオンオフ情報は出力端子213から出力される。電子ズーム倍率メモリ212に格納された電子ズーム倍率情報は出力端子211から出力される。電子ズーム画像メモリ207に格納された電子ズーム画像データは出力端子209から出力される。画像メモリ208に格納された画像データは出力端子210から出力される。なお、電子ズームがオフの場合、電子ズーム倍率メモリ212と電子ズーム画像メモリ207は空である。   The electronic zoom on / off information is output from the output terminal 213. The electronic zoom magnification information stored in the electronic zoom magnification memory 212 is output from the output terminal 211. The electronic zoom image data stored in the electronic zoom image memory 207 is output from the output terminal 209. The image data stored in the image memory 208 is output from the output terminal 210. When the electronic zoom is off, the electronic zoom magnification memory 212 and the electronic zoom image memory 207 are empty.

●ファイル作成部
図3のブロック図によりファイル作成部112の構成例を説明する。
File creation unit A configuration example of the file creation unit 112 will be described with reference to the block diagram of FIG.

入力端子311は、カメラ信号処理部105(出力端子213)から電子ズームオンオフ情報を入力する。電子ズームオンオフ情報はデータファイル生成部309に供給される。   The input terminal 311 inputs electronic zoom on / off information from the camera signal processing unit 105 (output terminal 213). The electronic zoom on / off information is supplied to the data file generation unit 309.

入力端子301は、カメラ信号処理部105(出力端子211)から電子ズーム倍率情報を入力する。電子ズーム倍率取得部305は、有意の電子ズーム倍率情報が入力された場合、当該電子ズーム倍率情報をデータファイル生成部309に供給する。   The input terminal 301 inputs electronic zoom magnification information from the camera signal processing unit 105 (output terminal 211). When significant electronic zoom magnification information is input, the electronic zoom magnification acquisition unit 305 supplies the electronic zoom magnification information to the data file generation unit 309.

入力端子302は、カメラ信号処理部105(出力端子209)から電子ズーム画像データを入力する。電子ズーム画像取得部306は、有意の電子ズーム画像データが入力された場合、当該電子ズーム画像データをデータファイル生成部309に供給する。   The input terminal 302 inputs electronic zoom image data from the camera signal processing unit 105 (output terminal 209). When significant electronic zoom image data is input, the electronic zoom image acquisition unit 306 supplies the electronic zoom image data to the data file generation unit 309.

入力端子303は、カメラ信号処理部105(出力端子210)から画像データを入力する。画像取得部307は、入力された画像データをデータファイル生成部309に供給する。   The input terminal 303 inputs image data from the camera signal processing unit 105 (output terminal 210). The image acquisition unit 307 supplies the input image data to the data file generation unit 309.

入力端子304は、撮像モデルデータベース108から撮像モデル情報を入力する。撮像モデル取得部308は、入力された撮像モデル情報をデータファイル生成部309に供給する。   The input terminal 304 inputs imaging model information from the imaging model database 108. The imaging model acquisition unit 308 supplies the input imaging model information to the data file generation unit 309.

データファイル生成部309は、電子ズームオンオフ情報、電子ズーム倍率情報、電子ズーム画像データ、画像データ、撮像モデル情報をまとめたデータファイルを生成し、生成したデータファイルを出力端子310から出力する。なお、データファイルの構成は後述するが、電子ズームがオフの場合、データファイルの電子ズーム倍率情報および画像データの格納領域には空(null)を格納する。   The data file generation unit 309 generates a data file in which electronic zoom on / off information, electronic zoom magnification information, electronic zoom image data, image data, and imaging model information are collected, and outputs the generated data file from the output terminal 310. Although the configuration of the data file will be described later, when the electronic zoom is off, null is stored in the storage area of the electronic zoom magnification information and the image data of the data file.

●データファイルの構成
図4により動画像を格納するデータファイルの構成例を説明する。
Data file structure An example of the data file structure for storing moving images will be described with reference to FIG.

データファイルのフォーマットは、例えば、既存の動画データを格納するファイルフォーマットに、電子ズームオンオフ情報、電子ズーム倍率情報、画像データ、撮像モデル情報などを組み込む領域を新たに設けたものである。データファイルは、タグ情報部501、動画情報部502、画像情報部503に大別される。   The data file format is, for example, a new area in which electronic zoom on / off information, electronic zoom magnification information, image data, imaging model information, and the like are provided in a file format for storing existing moving image data. Data files are roughly divided into a tag information unit 501, a moving image information unit 502, and an image information unit 503.

タグ情報部501は属性情報を格納する。例えば、属性情報1には撮像モデル情報の撮像レンズ特性値が格納され、属性情報2には撮像モデル情報の撮像デバイス特性値が格納され、属性情報3には電子ズーム倍率情報、属性情報4には電子ズームオンオフ情報が格納される。なお、電子ズーム倍率情報は数値で与えられ、電子ズームオンオフ情報はオンを‘1’、オフを‘0’で示すフラグであり、動画データのコマ数分の情報が格納される。   The tag information unit 501 stores attribute information. For example, the attribute information 1 stores the imaging lens characteristic value of the imaging model information, the attribute information 2 stores the imaging device characteristic value of the imaging model information, the attribute information 3 stores the electronic zoom magnification information, and the attribute information 4 stores Stores electronic zoom on / off information. The electronic zoom magnification information is given as a numerical value, and the electronic zoom on / off information is a flag indicating “1” for on and “0” for off, and stores information for the number of frames of moving image data.

動画情報部502は、通常の再生に使用する動画データ、つまり光学ズームか電子ズームかに関わりなく動画データが格納される格納領域である。画像情報部503は、超解像処理を行う際に必要な画像データを格納する領域である。つまり、電子ズームがオンのコマ(フレーム)の画像データが、当該コマを示す情報とともに画像情報部503に格納される。   The moving image information unit 502 is a storage area in which moving image data used for normal reproduction, that is, moving image data is stored regardless of optical zoom or electronic zoom. The image information unit 503 is an area for storing image data necessary for performing super-resolution processing. That is, image data of a frame (frame) for which the electronic zoom is on is stored in the image information unit 503 together with information indicating the frame.

なお、データファイルを通常の動画再生装置に供給すれば、動画情報部502に格納された動画データによって動画を再生することができる。   If the data file is supplied to a normal moving image playback device, the moving image can be played back using the moving image data stored in the moving image information unit 502.

●表示装置
図5のブロック図により表示装置106の構成例を説明する。
Display Device A configuration example of the display device 106 will be described with reference to the block diagram of FIG.

入力端子401は、ファイル作成部112(の出力端子310)からデータファイルを入力する。ファイル取得部402は、データファイルからタグ情報、動画データ、画像データを分離する。タグ情報取得部403は、分離されたタグ情報から電子ズームオンオフ情報、電子ズーム倍率情報、撮像モデル情報を分離する。   The input terminal 401 inputs a data file from the file creation unit 112 (output terminal 310 thereof). The file acquisition unit 402 separates tag information, moving image data, and image data from the data file. The tag information acquisition unit 403 separates the electronic zoom on / off information, the electronic zoom magnification information, and the imaging model information from the separated tag information.

超解像画像生成部409は、電子ズームオンオフ情報が‘1’のコマについて、撮像モデル情報、電子ズーム倍率情報、画像データから超解像画像データを生成する。   The super-resolution image generation unit 409 generates super-resolution image data from the imaging model information, the electronic zoom magnification information, and the image data for the frame whose electronic zoom on / off information is “1”.

動画再構成部410は、電子ズームオンオフ情報が‘0’の場合はファイル取得部402から入力される動画データを表示部411に出力する。また、電子ズームオンオフ情報が‘1’の場合は超解像画像生成部409から入力される超解像画像データを表示部411に出力する。つまり、動画再構成部410は、電子ズームがオンのコマの電子ズーム画像を超解像画像に置き換える置換動作を行う。   The moving image reconstruction unit 410 outputs the moving image data input from the file acquisition unit 402 to the display unit 411 when the electronic zoom on / off information is “0”. When the electronic zoom on / off information is “1”, super-resolution image data input from the super-resolution image generation unit 409 is output to the display unit 411. That is, the moving image reconstruction unit 410 performs a replacement operation for replacing an electronic zoom image of a frame with electronic zoom on with a super-resolution image.

表示部411は、動画再構成部410から入力される動画データを例えばLCDモニタに表示する。   The display unit 411 displays the moving image data input from the moving image reconstruction unit 410 on, for example, an LCD monitor.

図6の概念図により超解像処理を使用した電子ズーム画像の再生を説明する。図6の上部において、符号601-606は撮像装置113によって記録された各コマに対応し、各コマの下にズーム倍率を示す。コマ601-606の中で電子ズーム倍率が×2(二倍)のコマ604-606には電子ズーム画像が記録される。また、符号607-609は電子ズーム画像の元の画像に対応し、画像607-609の中央部(ハッチング部)が電子ズーム画像の生成に使用される画像領域である。   The reproduction of an electronic zoom image using super-resolution processing will be described with reference to the conceptual diagram of FIG. In the upper part of FIG. 6, reference numerals 601 to 606 correspond to the frames recorded by the imaging device 113, and the zoom magnification is shown below each frame. An electronic zoom image is recorded in the frames 604-606 having the electronic zoom magnification of × 2 (double) in the frames 601-606. Reference numeral 607-609 corresponds to the original image of the electronic zoom image, and the central portion (hatched portion) of the image 607-609 is an image region used for generating the electronic zoom image.

図6の下部は動画像の再生を示し、電子ズームがオフのコマ601-603は記録された画像が再生される。一方、電子ズームがオフのコマ604-606においては、画像607-609から超解像処理によって生成した電子ズーム画像610-612が再生される。   The lower part of FIG. 6 shows the reproduction of a moving image, and the recorded images are reproduced on the frames 601 to 603 where the electronic zoom is off. On the other hand, in the frames 604-606 in which the electronic zoom is off, the electronic zoom images 610-612 generated from the images 607-609 by the super-resolution processing are reproduced.

[画像処理]
●カメラ信号処理部
図7のフローチャートによりカメラ信号処理部105の画像処理を説明する。なお、カメラ信号処理部105は、動画撮影の開始に伴い、図7に示す処理を開始し、例えばコマ単位に実行する。
[Image processing]
Camera Signal Processing Unit Image processing of the camera signal processing unit 105 will be described with reference to the flowchart of FIG. Note that the camera signal processing unit 105 starts the processing illustrated in FIG. 7 with the start of moving image shooting, and executes it, for example, in units of frames.

カメラ信号処理部105は、バッファメモリ104から例えば1コマ分の撮像データを入力し(S701)、撮像データに現像処理を施して画像データを生成する(S702)。そして、画像データを画像メモリ208に格納し(S703)、画像メモリ208に格納した画像データを出力する(S704)。そして、電子ズーム倍率情報を入力して、電子ズームのオンオフを判断し(S705)、電子ズームオンオフ情報および電子ズーム倍率を出力する(S706)。   The camera signal processing unit 105 receives, for example, one frame of image data from the buffer memory 104 (S701), and performs development processing on the image data to generate image data (S702). The image data is stored in the image memory 208 (S703), and the image data stored in the image memory 208 is output (S704). Then, the electronic zoom magnification information is input to determine whether the electronic zoom is on or off (S705), and the electronic zoom on / off information and the electronic zoom magnification are output (S706).

続いて、カメラ信号処理部105は、電子ズームがオフの場合は処理をステップS709に進める。また、電子ズームがオンの場合は、電子ズーム倍率情報に従い画像メモリ208に格納した画像データから電子ズーム画像データを生成し(S707)、生成した電子ズーム画像データを出力する(S708)。なお、電子ズームにおける補間拡大手法には線形補間またはバイキュービック補間などを用いる。   Subsequently, if the electronic zoom is off, the camera signal processing unit 105 proceeds with the process to step S709. If the electronic zoom is on, electronic zoom image data is generated from the image data stored in the image memory 208 according to the electronic zoom magnification information (S707), and the generated electronic zoom image data is output (S708). Note that linear interpolation, bicubic interpolation, or the like is used as an interpolation enlargement method in the electronic zoom.

続いて、カメラ信号処理部105は、動画撮影が終了したか否かを判定し(S709)、未了であれば処理をステップS701に戻す。   Subsequently, the camera signal processing unit 105 determines whether or not the moving image shooting is completed (S709), and if not completed, the process returns to step S701.

●ファイル作成部
図8のフローチャートによりファイル作成部112のファイル作成処理を説明する。なお、ファイル作成部112は、動画撮影の開始に伴い、図8に示す処理を開始する。
File Creation Unit The file creation process of the file creation unit 112 will be described with reference to the flowchart of FIG. The file creation unit 112 starts the process shown in FIG. 8 with the start of moving image shooting.

ファイル作成部112は、電子ズームオンオフ情報を入力し(S801)、電子ズームオンオフ情報をデータファイルのタグ情報部501に格納し(S802)、電子ズームのオンオフを判定する(S803)。電子ズームがオフの場合は、画像データを入力し(S804)、画像データをデータファイルの動画情報部502に格納する(S805)。   The file creation unit 112 inputs the electronic zoom on / off information (S801), stores the electronic zoom on / off information in the tag information unit 501 of the data file (S802), and determines whether the electronic zoom is on or off (S803). When the electronic zoom is off, image data is input (S804), and the image data is stored in the moving image information section 502 of the data file (S805).

また、電子ズームがオンの場合、ファイル作成部112は、電子ズーム倍率情報、電子ズーム画像データ、画像データを入力する(S806)。そして、電子ズーム倍率情報をデータファイルのタグ情報部501に格納し(S807)、電子ズーム画像データをデータファイルの動画情報部502に格納し(S808)、画像データをデータファイルの画像情報部503に格納する(S809)。   If the electronic zoom is on, the file creation unit 112 inputs electronic zoom magnification information, electronic zoom image data, and image data (S806). The electronic zoom magnification information is stored in the tag information section 501 of the data file (S807), the electronic zoom image data is stored in the moving image information section 502 of the data file (S808), and the image data is stored in the image information section 503 of the data file. (S809).

続いて、ファイル作成部112は、動画撮影が終了したか否かを判定し(S810)、未了であれば処理をステップS801に戻して、例えばコマ単位にステップS801からS809の処理を繰り返す。   Subsequently, the file creation unit 112 determines whether or not the moving image shooting has been completed (S810). If the movie creation has not been completed, the process returns to step S801, and, for example, the processes of steps S801 to S809 are repeated for each frame.

動画撮影が終了すると、ファイル作成部112は、撮像モデルDB108から撮像モデル情報を取得し(S811)、撮像モデル情報をデータファイルのタグ情報部501に格納する(S812)。そして、データファイルを閉じてデータファイルを出力する(S813)。   When the moving image shooting is completed, the file creation unit 112 acquires the imaging model information from the imaging model DB 108 (S811), and stores the imaging model information in the tag information unit 501 of the data file (S812). Then, the data file is closed and the data file is output (S813).

●表示装置
図9のフローチャートにより表示装置106の動画再生処理を説明する。表示装置106は、例えばファイル作成部112からデータファイルが入力されると図9に示す処理を開始する。
Display Device The moving image playback process of the display device 106 will be described with reference to the flowchart of FIG. For example, when a data file is input from the file creation unit 112, the display device 106 starts the processing illustrated in FIG.

表示装置106は、データファイルを入力し(S901)、データファイルからタグ情報を分離し(S902)、タグ情報から撮像モデル情報、電子ズーム倍率情報、電子ズームオンオフ情報を分離する(S903)。そして、電子ズームオンオフ情報を超解像画像生成部409と動画再構成部410に供給し(S904)、撮像モデル情報と電子ズーム倍率情報を超解像画像生成部409に供給する(S905)。   The display device 106 inputs a data file (S901), separates tag information from the data file (S902), and separates imaging model information, electronic zoom magnification information, and electronic zoom on / off information from the tag information (S903). Then, the electronic zoom on / off information is supplied to the super-resolution image generation unit 409 and the moving image reconstruction unit 410 (S904), and the imaging model information and the electronic zoom magnification information are supplied to the super-resolution image generation unit 409 (S905).

次に、表示装置106は、コマ単位にデータファイルから動画データを分離して動画再構成部410に供給し(S906)、コマ単位の電子ズームオンオフ情報に基づき電子ズームのオンオフを判定する(S907)。そして、電子ズームがオンの場合は、データファイルから当該コマの画像データを分離して超解像画像生成部409に供給する(S908)。   Next, the display device 106 separates the moving image data from the data file for each frame and supplies it to the moving image reconstruction unit 410 (S906), and determines whether the electronic zoom is on or off based on the electronic zoom on / off information for each frame (S907). ). If the electronic zoom is on, the image data of the frame is separated from the data file and supplied to the super-resolution image generation unit 409 (S908).

コマ単位の電子ズームオンオフ情報が電子ズームのオンを示す場合、超解像画像生成部409は、電子ズーム倍率情報に基づき、入力される画像データから超解像処理により電子ズーム画像データ(以下、超解像電子ズーム画像データ)を生成する。また、動画再構成部410は、電子ズームがオンのコマの動画データを超解像電子ズーム画像データに置き換える。   When the electronic zoom on / off information for each frame indicates that the electronic zoom is on, the super-resolution image generation unit 409 performs electronic zoom image data (hereinafter, referred to as electronic zoom image data by super-resolution processing from input image data based on the electronic zoom magnification information). Super-resolution electronic zoom image data) is generated. In addition, the moving image reconstruction unit 410 replaces moving image data of frames for which electronic zoom is on with super-resolution electronic zoom image data.

次に、表示装置106は、データファイルの動画再生処理が終了したか否かを判定し(S909)、未了であれば処理をステップS906に戻して、動画再生処理を継続する。なお、動画再生処理の終了は、コマ単位の電子ズームオンオフ情報が末尾に達したか、動画データが末尾に達したなどによって判定すればよい。   Next, the display device 106 determines whether or not the moving image playback process of the data file has ended (S909). If not completed, the display device 106 returns the process to step S906 and continues the moving image playback process. Note that the end of the moving image playback process may be determined based on whether the electronic zoom on / off information for each frame has reached the end or the moving image data has reached the end.

[超解像画像生成部]
図10のブロック図により超解像画像生成部409の構成例を説明する。なお、以下では、高解像度(high resolution)の画像を「HR画像」、低解像度(low resolution)の画像を「LR画像」と呼ぶ。
[Super-resolution image generator]
A configuration example of the super-resolution image generation unit 409 will be described with reference to the block diagram of FIG. Hereinafter, a high resolution image is referred to as an “HR image”, and a low resolution image is referred to as an “LR image”.

超解像画像生成部409は、入力端子1001から画像データを、入力端子1012から電子ズーム倍率情報を入力する。なお、説明を簡単にするため、入力画像データは8ビットのグレイスケール画像データとする。   The super-resolution image generation unit 409 inputs image data from the input terminal 1001 and electronic zoom magnification information from the input terminal 1012. For simplicity of explanation, the input image data is assumed to be 8-bit grayscale image data.

画像切出部1009は、入力画像データが表す画像の中央部の、電子ズーム倍率情報に対応する領域の画像データをクロップしたLR画像データを出力する。   The image cutout unit 1009 outputs LR image data obtained by cropping the image data of the area corresponding to the electronic zoom magnification information at the center of the image represented by the input image data.

初期HR画像作成部1002は、LR画像データから例えば線形補間処理によりHR画像の初期値である初期HR画像データを作成し、HR画像作成部1005に出力する。HR画像作成部1005は、後述するMAP推定法によって計算される修正量をHR画像データに加えてHR画像データを更新する。劣化画像生成部1011は、劣化条件入力部1006から入力される劣化条件に従い、HR画像作成部1005が出力するHR画像データを劣化させた劣化画像データを生成する。   The initial HR image creation unit 1002 creates initial HR image data that is an initial value of the HR image from the LR image data, for example, by linear interpolation processing, and outputs the initial HR image data to the HR image creation unit 1005. The HR image creation unit 1005 updates the HR image data by adding a correction amount calculated by a MAP estimation method described later to the HR image data. The degraded image generation unit 1011 generates degraded image data obtained by degrading the HR image data output from the HR image creation unit 1005 in accordance with the degradation condition input from the degradation condition input unit 1006.

劣化条件は、入力端子1014から入力される撮像モデル情報が示す、撮像装置113の光学系の劣化関数(PSF: point spread function)と、撮像デバイス102の画素数制限による劣化過程であるダウンサンプリングである。なお、本実施例では扱うダウンサンプリングの劣化条件は、ダウンサンプリングにおける縮小倍率1/Mと1/N(M、Nは自然数)で与えられる。また、劣化条件は、超解像処理に先立ち計測されたデータ、あるいは、既知のデータである。   Degradation conditions are the degradation function (PSF: point spread function) of the optical system of the imaging device 113 indicated by the imaging model information input from the input terminal 1014 and downsampling which is a degradation process due to the limitation on the number of pixels of the imaging device 102. is there. Note that the downsampling degradation conditions handled in this embodiment are given by the reduction ratios 1 / M and 1 / N in downsampling (M and N are natural numbers). The deterioration condition is data measured prior to super-resolution processing or known data.

差分演算部1010は、初期HR画像データと劣化画像データの差分を演算する。ここでは、初期HR画像データと劣化画像データの差分画像の平均値を計算することにする。終了判定部1007は、差分画像の平均値を用いて、超解像画像の生成が充分に実施されたか否かを判定する。その際の判定閾値は、入力端子1008から与えられ、判定閾値は0から255までの任意の値とする。つまり、終了判定部1007は、差分画像の平均値と判定閾値を比較して、平均値≦判定閾値の場合は判定値‘0’を出力し、平均値>判定閾値の場合は判定値‘1’を出力する。   The difference calculation unit 1010 calculates the difference between the initial HR image data and the deteriorated image data. Here, the average value of the difference image between the initial HR image data and the deteriorated image data is calculated. The end determination unit 1007 determines whether or not the super-resolution image has been sufficiently generated using the average value of the difference images. The determination threshold at that time is given from the input terminal 1008, and the determination threshold is an arbitrary value from 0 to 255. That is, the end determination unit 1007 compares the average value of the difference image with the determination threshold value, and outputs a determination value '0' if the average value ≦ the determination threshold value, and determines the determination value '1 if the average value> the determination threshold value. 'Is output.

修正量計算部1004は、判定値を入力して、判定値が‘1’の場合は差分画像の平均値から修正量を計算し、修正量をHR画像作成部1005に出力する。また、判定値が‘0’の場合は値が零の修正量をHR画像作成部1005に出力する。   The correction amount calculation unit 1004 inputs the determination value. When the determination value is “1”, the correction amount calculation unit 1004 calculates the correction amount from the average value of the difference images, and outputs the correction amount to the HR image creation unit 1005. When the determination value is “0”, the correction amount having a value of zero is output to the HR image creation unit 1005.

HR画像作成部1005は、修正量の値が零の場合、HR画像データを出力端子1003から出力する。また、修正量>0の場合はHR画像データに修正量を加えてHR画像データを更新する。つまり、入力画像データと劣化画像データの差分が判定閾値以下になるまでHR画像データの更新が繰り返される。   The HR image creation unit 1005 outputs HR image data from the output terminal 1003 when the value of the correction amount is zero. If the correction amount> 0, the HR image data is updated by adding the correction amount to the HR image data. That is, the update of the HR image data is repeated until the difference between the input image data and the deteriorated image data becomes equal to or less than the determination threshold value.

[撮像装置の劣化モデル]
図11により撮像装置の劣化モデルを説明する。なお、撮像系の劣化過程を線形モデルを用いて説明する。
[Imaging device deterioration model]
A deterioration model of the image pickup apparatus will be described with reference to FIG. The deterioration process of the imaging system will be described using a linear model.

劣化過程前のHR画像1101(ベクトルX)は、光学系処理1102の光学系処理のPSFによる劣化(以下、光学劣化)(行列B)を受ける。さらに、電子ズーム処理における拡大処理1103のダウンサンプリングによる劣化(以下、ダウンサンプリング劣化)(行列D)を受けて撮影画像1104(ベクトルY)になる。なお、ダウンサンプリング劣化の条件は画像縮小倍率として提供される。   The HR image 1101 (vector X) before the degradation process is subjected to degradation by the PSF of the optical system processing of the optical system processing 1102 (hereinafter, optical degradation) (matrix B). In addition, the captured image 1104 (vector Y) is obtained in response to deterioration due to downsampling (hereinafter referred to as downsampling deterioration) (matrix D) in the enlargement processing 1103 in the electronic zoom processing. The condition for downsampling degradation is provided as an image reduction magnification.

光学劣化を、(2C+1)×(2C+1)サイズ(Cは自然数)の線形フィルタFで表すとすると、光学劣化を受けた画像YPSFはコンボリューション演算により下式によって表される。
YPSF(i, j) = ΣpΣqX(i-p, j-q)*F(p, q) …(1)
ここで、YPSFはPSFにより劣化した画像、
Xは劣化前のHR画像1101、
(i, j)は画素の座標、
F(p, q)は劣化フィルタ、
*はコンボリューション演算を表す、
Σpの演算範囲はp=-CからCまで、
Σqの演算範囲はq=-CからCまで。
If the optical degradation is represented by a linear filter F having a size of (2C + 1) × (2C + 1) (C is a natural number), the image Y PSF subjected to the optical degradation is represented by the following equation by the convolution calculation.
Y PSF (i, j) = Σ p Σ q X (ip, jq) * F (p, q)… (1)
Where Y PSF is an image degraded by PSF,
X is HR image 1101 before deterioration,
(i, j) is the pixel coordinates,
F (p, q) is the degradation filter,
* Represents a convolution operation,
Calculation range of sigma p from p = -C to C,
The calculation range of Σ q is from q = -C to C.

超解像処理で扱う都合上、式(1)のコンボリューション演算を式(2)で定義して、線形演算の形式に変更する。式(1)から式(2)への変換方法については後述する。線形演算の形式によると撮像装置の劣化モデルは下式で表される。
Y = DB・X …(2)
ここで、Xは劣化前のHR画像1101のベクトル、
Yは撮影画像1104、
行列Bは光学系劣化に対応する正方行列、
行列Dはダウンサンプリング劣化に対応する行列。
For convenience in super-resolution processing, the convolution operation of Equation (1) is defined by Equation (2) and changed to the linear operation format. A conversion method from Expression (1) to Expression (2) will be described later. According to the linear calculation format, the deterioration model of the image pickup apparatus is expressed by the following equation.
Y = DB · X (2)
Where X is the vector of the HR image 1101 before degradation,
Y is the captured image 1104,
Matrix B is a square matrix corresponding to optical system degradation,
Matrix D is a matrix corresponding to downsampling degradation.

行列BとDのサイズは、入力画像のサイズにより変化する。図12により行列BとDのサイズを説明する。図12(a)は、入力画像のサイズは横方向の画素数をW、縦方向の画素数をH、ダウンサンプリング劣化の条件である画像縮小率を横方向1/M、縦方向1/Nとする場合の一般的な行列BとDのサイズを示す。   The sizes of the matrices B and D vary depending on the size of the input image. The sizes of the matrices B and D will be described with reference to FIG. In FIG. 12 (a), the size of the input image is W for the number of pixels in the horizontal direction, H for the number of pixels in the vertical direction, and the image reduction ratio, which is a condition for downsampling degradation, 1 / M in the horizontal direction and 1 / N in the vertical direction Shows the size of general matrices B and D.

図13により二次元画像と行列Xの関係を説明する。二次元画像のサイズをW×Hとし、画素位置を(i, j)で表す。つまり、HR画像1101の画素データをラスタ順に走査して、一列、HW行の行列Xにする。   The relationship between the two-dimensional image and the matrix X will be described with reference to FIG. The size of the two-dimensional image is W × H, and the pixel position is represented by (i, j). That is, the pixel data of the HR image 1101 is scanned in raster order to form a matrix X with one column and HW rows.

図14により行列Bの構成例を説明する。線形フィルタFのサイズは(2C+1)×(2C+1)であり、式(2)に示すようにすべての画素について線形フィルタFとの積和演算を行う。   A configuration example of the matrix B will be described with reference to FIG. The size of the linear filter F is (2C + 1) × (2C + 1), and a product-sum operation with the linear filter F is performed on all pixels as shown in Expression (2).

画素(i, j)が線形フィルタFの中心にある場合、行列i×j行目にフィルタの値を行列の対応する位置に値を代入する。代入される以外のところは0に代入する。   When the pixel (i, j) is at the center of the linear filter F, the value of the filter is substituted into the corresponding position of the matrix in the matrix i × j row. Assign to 0 except where it is assigned.

図15により行列Dの構成例を説明する。行列Dは、縮小サイズを用いて、画像の画素を間引いた画素データを取得する行列である。行列の値について、画素データを取得すべき画素が存在する位置に対応する行列の値は1とし、その他の行列の値は0にする。   A configuration example of the matrix D will be described with reference to FIG. The matrix D is a matrix for obtaining pixel data obtained by thinning out the pixels of the image using the reduced size. Regarding the matrix values, the matrix value corresponding to the position where the pixel from which the pixel data is to be obtained is 1, and the other matrix values are 0.

図12(b)は行列BとDのサイズの具体例を示す。図12(b)において、HR画像1101のサイズはW=1024、H=1024、ダウンサンプリング劣化の条件である縮小倍率はM=1/2、N=1/2である。つまり、撮影画像1104のサイズはW=512、H=512になる。   FIG. 12 (b) shows a specific example of the sizes of the matrices B and D. In FIG. 12B, the size of the HR image 1101 is W = 1024, H = 1024, and the reduction magnification, which is a condition for downsampling degradation, is M = 1/2 and N = 1/2. That is, the size of the captured image 1104 is W = 512 and H = 512.

[超解像画像の生成]
本実施は、超解像画像の生成にMAP法を利用する。MAP法は、二乗誤差に高解像画像の確率情報を付加した評価関数を最小化することで、高解像画像を推定する方法である。つまり、高解像画像に対するある事前情報を利用して、事後確率を最大化する最適化問題として高解像度画像を推定する超解像処理方法である。本実施は、下式使って超解像画像を生成する。
X^ = arg min[α||CX^||2 + 1/σ2||Y-DBX^||2] …(3)
ここで、X^は推定された超解像画像、
Yは劣化した撮影画像、
DとBは劣化を表す行列、
Cは線形フィルタ。
[Generation of super-resolution images]
In this embodiment, the MAP method is used to generate a super-resolution image. The MAP method is a method for estimating a high-resolution image by minimizing an evaluation function obtained by adding probability information of a high-resolution image to a square error. That is, it is a super-resolution processing method that estimates a high-resolution image as an optimization problem that maximizes the posterior probability by using some prior information for the high-resolution image. In this embodiment, a super-resolution image is generated using the following equation.
X ^ = arg min [α || CX ^ || 2 + 1 / σ 2 || Y-DBX ^ || 2 ]… (3)
Where X ^ is the estimated super-resolution image,
Y is a deteriorated captured image,
D and B are matrices representing degradation,
C is a linear filter.

式(3)の右辺第一項の||CX^||2は隣接画素の画素値であり、注目画素は隣接画素に類似する値を有することが多いという事前情報を加味した拘束項であり、画像全体に平滑化を施す効果がある。なお、線形フィルタCとしてラプラシアンフィルタを使用する。係数αは、||CX^||2項の平滑化の度合いを調整するパラメータである。平滑化の度合いが高い結果を得たい場合はαの値を大きくする。 || CX ^ || 2 in the first term on the right side of Equation (3) is the pixel value of the adjacent pixel, and is a constraint term that takes into account prior information that the pixel of interest often has a value similar to the adjacent pixel. There is an effect of smoothing the entire image. A Laplacian filter is used as the linear filter C. The coefficient alpha, which is a parameter for adjusting the degree of smoothing of || CX ^ || 2 Section. To obtain a result with a high degree of smoothing, the value of α is increased.

式(3)の右辺第二項である1/σ2||Y-DBX^||2は、入力画像と、推定された超解像画像に劣化を与えた画像の差分項である。係数σは、撮像装置の撮影画像Yのノイズの標準偏差である。式(4)は、式(3)の右辺を取り出して、超解像処理時の評価関数として用いる式を示す。
I = α||CX^||2 + 1/σ2||Y-DBX^||2 …(4)
1 / σ 2 || Y-DBX ^ || 2 that is the second term on the right side of Equation (3) is a difference term between the input image and an image that has deteriorated the estimated super-resolution image. The coefficient σ is a standard deviation of noise of the captured image Y of the imaging device. Expression (4) is an expression that is used as an evaluation function during super-resolution processing by extracting the right side of Expression (3).
I = α || CX ^ || 2 + 1 / σ 2 || Y-DBX ^ || 2 … (4)

図16のフローチャートにより超解像画像生成部409の処理例を説明する。   A processing example of the super-resolution image generation unit 409 will be described with reference to the flowchart of FIG.

超解像画像生成部409は、画像データ(撮影画像Yに相当)を入力し(S1701)、撮像モデル情報(劣化を表す行列B、Dに相当)を入力し(S1702)、電子ズーム倍率情報(ダウンサンプリング劣化の条件に相当)を入力する(S1703)。そして、画像データが表す画像の中央部の、電子ズーム倍率情報に対応する領域の画像データをクロップしたLR画像データから初期HR画像データを生成する(S1704)。つまり、線形補間により、LR画像データのサイズを横方向にM倍、縦方向にN倍に拡大する。   The super-resolution image generation unit 409 inputs image data (corresponding to the captured image Y) (S1701), inputs imaging model information (corresponding to the matrixes B and D representing deterioration) (S1702), and electronic zoom magnification information (Corresponding to the condition of downsampling degradation) is input (S1703). Then, initial HR image data is generated from the LR image data obtained by cropping the image data of the area corresponding to the electronic zoom magnification information at the center of the image represented by the image data (S1704). In other words, the size of the LR image data is expanded M times in the horizontal direction and N times in the vertical direction by linear interpolation.

次に、超解像画像生成部409は、超解像処理の達成度合いを判定する判定閾値を入力し(S1705)、HR画像データに光学劣化(行列B)Fとダウンサンプリング劣化(行列D)を与えた劣化画像データを生成する(S1706)。式(5)は劣化画像データの生成式を示す。
Y' = DB・Xk …(5)
ここで、Y'は劣化画像データ、
Xkはk回目の演算で生成されたHR画像データ。
Next, the super-resolution image generation unit 409 inputs a determination threshold value for determining the degree of achievement of super-resolution processing (S1705), and optical degradation (matrix B) F and down-sampling degradation (matrix D) are added to the HR image data. Is generated (S1706). Expression (5) represents a generation expression of the deteriorated image data.
Y '= DB · X k (5)
Where Y ′ is the degraded image data,
X k is the HR image data generated by the kth calculation.

次に、超解像画像生成部409は、式(6)により劣化画像データY'と初期HR画像データYの各画素について値の差分を計算し、それら差分の平均値Δを計算する(S1707)。
Δ = [ΣiΣj{Y'(i, j) - Y(i, j)}]/N …(6)
ここで、Nは総画素数(W/M×H/N)。
Next, the super-resolution image generation unit 409 calculates a value difference for each pixel of the deteriorated image data Y ′ and the initial HR image data Y by Equation (6), and calculates an average value Δ of these differences (S1707). ).
Δ = [Σ i Σ j {Y '(i, j)-Y (i, j)}] / N… (6)
Here, N is the total number of pixels (W / M × H / N).

次に、超解像画像生成部409は、差分の平均値Δと判定閾値Thを比較する(S1708)。Δ>Thの場合は、HR画像データXkの修正量である更新項ΔXkを計算し(S1709)、カウンタkをインクリメントする(S1710)。そして、HR画像データXk-1に更新項ΔXk-1を加えてHR画像データXkを更新して(S1711)、処理をステップS1706に戻す。また、Δ≦Thの場合、超解像画像生成部409は、HR画像データXkを出力する(S1712)。 Next, the super-resolution image generation unit 409 compares the average difference Δ with the determination threshold Th (S1708). For delta> Th, and calculates an update term [Delta] X k is a correction amount of the HR image data X k (S1709), it increments the counter k (S1710). Then, the update term ΔX k-1 is added to the HR image data X k-1 to update the HR image data X k (S1711), and the process returns to step S1706. If Δ ≦ Th, the super-resolution image generation unit 409 outputs the HR image data X k (S1712).

本実施例では、更新項ΔXkの計算に下式に示す最急降下法を用いる。最急降下法は最小化したい関数の一次微分を使用した最適化手法である。最急降下法に必要になる更新項(関数の一次微分)ΔXkは下式で計算する。
ΔXk = ∂I/(∂Xk) = 2αCTCXk + 2/σ2(DB)T[Y-DBXk] …(6)
ここで、Tは転置行列を表す。
In the present embodiment, the steepest descent method shown in the following equation is used to calculate the update term ΔXk. The steepest descent method is an optimization method using the first derivative of the function to be minimized. The update term (first derivative of the function) ΔXk required for the steepest descent method is calculated by the following formula.
ΔXk = ∂I / (∂Xk) = 2αC T CXk + 2 / σ 2 (DB) T [Y-DBXk]… (6)
Here, T represents a transposed matrix.

上記では、動画オデータのデータファイルに、電子ズーム処理されたビデオ画像のコマに対応する電子ズーム処理前の画像データ、撮像モデル情報、電子ズーム倍率情報を含める方法を説明した。そして、動画を再生する際に、電子ズーム処理されたコマの画像データを電子ズーム処理前の画像データから超解像処理によって生成し、電子ズーム処理されたコマの画像データを超解像処理によって生成した画像データに置き換える方法を説明した。このようにすれば、電子ズームによって得られる画像よりも高解像、高精細な画像を再生することができる。   In the above description, the method of including the image data before the electronic zoom processing corresponding to the frame of the video image subjected to the electronic zoom processing, the imaging model information, and the electronic zoom magnification information in the data file of the moving image data has been described. Then, when playing back a moving image, the image data of the electronic zoom processed frame is generated from the image data before the electronic zoom processing by super-resolution processing, and the image data of the electronic zoom processed frame is generated by super-resolution processing. The method of replacing with generated image data has been described. In this way, it is possible to reproduce a higher resolution and higher definition image than an image obtained by electronic zoom.

なお、上記では、実施例を動画に適用する例を説明したが、静止画の場合も、電子ズーム処理された画像データと、電子ズーム処理前の画像データを保持することができる。そして、電子ズーム処理された画像を表示する場合は、電子ズーム処理前の画像データを超解像処理した画像データによって画像を表示すれば、電子ズームによって得られる画像よりも高解像度、高精細な画像を表示することができる。   In the above description, an example in which the embodiment is applied to a moving image has been described. However, even in the case of a still image, image data that has been subjected to electronic zoom processing and image data that has not been electronically zoomed can be retained. When displaying an image that has been subjected to electronic zoom processing, if the image is displayed using image data obtained by super-resolution processing of the image data before the electronic zoom processing, the resolution is higher than that obtained by the electronic zoom. An image can be displayed.

なお、電子ズーム処理された画像データと、電子ズーム処理前の画像データを保持するため、超解像処理機能を有さない表示装置においては、電子ズーム処理された動画または静止画が再生または表示され、互換性を維持することができる。   In addition, in order to hold the image data that has been subjected to the electronic zoom processing and the image data before the electronic zoom processing, a moving image or still image that has been subjected to the electronic zoom processing is reproduced or displayed on a display device that does not have a super-resolution processing function. And compatibility can be maintained.

[その他の実施例]
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステムあるいは装置のコンピュータ(又はCPUやMPU等)がプログラムを読み出して実行する処理である。
[Other Examples]
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

Claims (6)

被写体の画像データを撮像する撮像手段と、
入力されるズーム倍率情報に従い、前記撮像手段が出力する画像データが表す画像の一部を拡大処理したズーム画像データを生成する生成手段と、
前記撮像手段の光学系による画像の劣化情報、および、前記拡大処理による画像の劣化情報を撮像モデル情報として格納する格納手段と、
前記拡大処理のオンオフを示す情報、前記ズーム倍率情報、前記撮像モデル情報、前記画像データ、前記ズーム画像データを格納したデータファイルを作成する作成手段とを有することを特徴とする画像処理装置。
Imaging means for imaging image data of a subject;
Generating means for generating zoom image data obtained by enlarging a part of the image represented by the image data output by the imaging means according to the zoom magnification information input;
Storage means for storing image degradation information due to the optical system of the imaging means and image degradation information due to the enlargement processing as imaging model information;
An image processing apparatus comprising: information indicating whether the enlargement processing is on / off, the zoom magnification information, the imaging model information, the image data, and a creation unit that creates a data file storing the zoom image data.
さらに、前記データファイルに格納された前記ズーム倍率情報、前記撮像モデル情報、前記画像データから超解像処理により、前記ズーム倍率情報に従い、前記画像データが表す画像の一部を拡大処理した超解像画像データを生成する超解像手段と、
前記データファイルから取り出した前記ズーム画像データを前記超解像画像データに置き換える置換手段とを有し、
前記データファイルに格納された前記拡大処理のオンオフを示す情報が前記拡大処理のオンを示す場合、前記超解像手段は超解像画像データを生成し、前記置換手段は置き換えを行うことを特徴とする請求項1に記載された画像処理装置。
Further, super-resolution obtained by enlarging a part of the image represented by the image data according to the zoom magnification information by super-resolution processing from the zoom magnification information, the imaging model information, and the image data stored in the data file. Super-resolution means for generating image image data;
Replacement means for replacing the zoom image data retrieved from the data file with the super-resolution image data,
When the information indicating on / off of the enlargement process stored in the data file indicates that the enlargement process is on, the super-resolution means generates super-resolution image data, and the replacement means performs replacement. 2. The image processing apparatus according to claim 1.
さらに、前記撮像手段の光学ズーム機能を制御する制御手段を有し、
前記制御手段は、ユーザが指示するズーム倍率が前記光学ズーム機能の限界に達した場合、前記生成手段に前記ズーム倍率情報を出力することを特徴とする請求項1または請求項2に記載された画像処理装置。
Furthermore, it has a control means for controlling the optical zoom function of the imaging means,
3. The control unit according to claim 1, wherein the control unit outputs the zoom magnification information to the generation unit when a zoom magnification indicated by a user reaches a limit of the optical zoom function. Image processing device.
前記作成手段は、前記拡大処理のオンオフを示す情報がオフを示す場合は前記データファイルの通常の再生に使用する画像データの格納領域に前記画像データを格納し、前記拡大処理のオンオフを示す情報がオンを示す場合は前記通常の再生に使用する画像データの格納領域に前記ズーム画像データを格納することを特徴とする請求項1から請求項3の何れか一項に記載された画像処理装置。   The creation means stores the image data in a storage area of image data used for normal reproduction of the data file when the information indicating on / off of the enlargement processing indicates off, and information indicating on / off of the enlargement processing 4. The image processing apparatus according to claim 1, wherein the zoom image data is stored in a storage area of the image data used for the normal reproduction when “I” indicates ON. . 被写体の画像データを撮像する撮像手段、入力されるズーム倍率情報に従い、前記撮像手段が出力する画像データが表す画像の一部を拡大処理したズーム画像データを生成する生成手段、前記撮像手段の光学系による画像の劣化情報、および、前記拡大処理による画像の劣化情報を撮像モデル情報として格納する格納手段、並びに、作成手段を有する画像処理装置の画像処理方法であって、
前記作成手段が、前記拡大処理のオンオフを示す情報、前記ズーム倍率情報、前記撮像モデル情報、前記画像データ、前記ズーム画像データを格納したデータファイルを作成することを特徴とする画像処理方法。
An imaging unit that captures image data of a subject, a generation unit that generates zoom image data obtained by enlarging a part of an image represented by the image data output by the imaging unit, in accordance with input zoom magnification information, and an optical unit of the imaging unit An image processing method for an image processing apparatus having storage means for storing image degradation information by the system and image degradation information by the enlargement processing as imaging model information, and a creation means,
An image processing method, wherein the creation unit creates a data file storing information indicating on / off of the enlargement process, the zoom magnification information, the imaging model information, the image data, and the zoom image data.
画像処理装置に、請求項5に記載された画像処理を実行させることを特徴とするプログラム。   6. A program causing an image processing apparatus to execute the image processing according to claim 5.
JP2011153271A 2011-07-11 2011-07-11 Image processing apparatus and method Withdrawn JP2013021509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011153271A JP2013021509A (en) 2011-07-11 2011-07-11 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011153271A JP2013021509A (en) 2011-07-11 2011-07-11 Image processing apparatus and method

Publications (1)

Publication Number Publication Date
JP2013021509A true JP2013021509A (en) 2013-01-31

Family

ID=47692507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011153271A Withdrawn JP2013021509A (en) 2011-07-11 2011-07-11 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP2013021509A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018067868A (en) * 2016-10-21 2018-04-26 ナンチャン オー−フィルム オプトエレクトロニクス テクノロジー リミテッドNanchang O−Film Optoelectronics Technology Ltd Imaging apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018067868A (en) * 2016-10-21 2018-04-26 ナンチャン オー−フィルム オプトエレクトロニクス テクノロジー リミテッドNanchang O−Film Optoelectronics Technology Ltd Imaging apparatus

Similar Documents

Publication Publication Date Title
JP5222472B2 (en) Image processing apparatus, image restoration method, and program
JP4657367B2 (en) Image processing apparatus, imaging apparatus, and image distortion correction method
JP2009194896A (en) Image processing device and method, and imaging apparatus
JP6236259B2 (en) Image processing apparatus, image processing method, and image processing program
JP5238220B2 (en) Resolution conversion apparatus, method and program
KR20090041169A (en) Digital image processing apparatus, method for controlling the same, recording medium storing program to implement the method, and method of compressing digital image
JP2002300459A (en) Image restoring device through iteration method, image restoring method and its program, and recording medium
CN105144700B (en) Image processing equipment and image processing method
JP2000244851A (en) Picture processor and method and computer readable storage medium
JP2007151080A (en) Image processor and image processing method
JP2008079026A (en) Image processor, image processing method, and program
JP5534832B2 (en) Image processing apparatus, image processing method, and program
JP4640032B2 (en) Image composition apparatus, image composition method, and program
JP4714038B2 (en) Method and apparatus for increasing image resolution
WO2010032649A1 (en) Image display device and imaging apparatus
JP2004234624A (en) Static image generating device, static image generating method, static image generating program and recording medium with static image generating program recorded
US20120093227A1 (en) Data compression method and data compression device
JP2012015865A (en) Image processing apparatus and image processing method
JP6278712B2 (en) Imaging apparatus and control method thereof
US7522189B2 (en) Automatic stabilization control apparatus, automatic stabilization control method, and computer readable recording medium having automatic stabilization control program recorded thereon
KR100972764B1 (en) Image processing device, image processing method and recording medium embodying an image processing program
JP2016005103A (en) Imaging apparatus and control method therefor
JP2009237650A (en) Image processor and imaging device
JP2013021509A (en) Image processing apparatus and method
JP2000354244A (en) Image processing unit, its method and computer-readable storage medium

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20141007