JP6294708B2 - Image processing apparatus and program - Google Patents

Image processing apparatus and program Download PDF

Info

Publication number
JP6294708B2
JP6294708B2 JP2014042882A JP2014042882A JP6294708B2 JP 6294708 B2 JP6294708 B2 JP 6294708B2 JP 2014042882 A JP2014042882 A JP 2014042882A JP 2014042882 A JP2014042882 A JP 2014042882A JP 6294708 B2 JP6294708 B2 JP 6294708B2
Authority
JP
Japan
Prior art keywords
image
motion vector
motion
unit
resolution image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2014042882A
Other languages
Japanese (ja)
Other versions
JP2015170908A (en
Inventor
境田 慎一
慎一 境田
俊枝 三須
俊枝 三須
井口 和久
和久 井口
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.)
Japan Broadcasting Corp
Original Assignee
Japan Broadcasting Corp
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 Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP2014042882A priority Critical patent/JP6294708B2/en
Publication of JP2015170908A publication Critical patent/JP2015170908A/en
Application granted granted Critical
Publication of JP6294708B2 publication Critical patent/JP6294708B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、高解像度画像から切出された低解像度画像を符号化する画像処理装置及びプログラムに関するものである。   The present invention relates to an image processing apparatus and a program for encoding a low resolution image cut out from a high resolution image.

従来、画素数の多い高解像度画像から一部の画像を切出して、高解像度画像よりも画素数の少ない低解像度画像として出力する画像処理装置が提案されている。例えば、高解像度画像を撮影し、その画像から切り出された低解像度画面を符号化して伝送する装置が知られている(特許文献1参照)。   2. Description of the Related Art Conventionally, there has been proposed an image processing apparatus that extracts a part of an image from a high-resolution image having a large number of pixels and outputs the image as a low-resolution image having a smaller number of pixels than the high-resolution image. For example, an apparatus that captures a high resolution image, encodes and transmits a low resolution screen cut out from the image is known (see Patent Document 1).

また、8Kのスーパーハイビジョンや4Kのような超高精細映像を扱う機器の開発が進んでいるため、画像サイズの大きい超高精細映像から2Kのハイビジョンのような一回り小さいサイズを切り出す装置は、新しい映像制作ツールとして活用されている(非特許文献1参照)。このような装置では、元の大きなサイズの映像から任意の位置の映像を切出し、例えばハイビジョンサイズでの出力が可能である。また、切り出す位置を任意の速度で時間的に可変にすることも可能となっている。   In addition, since the development of equipment that handles ultra-high-definition video such as 8K Super Hi-Vision and 4K is progressing, a device that cuts out a small size like 2K Hi-Vision from an ultra-high-definition video with a large image size, It is used as a new video production tool (see Non-Patent Document 1). In such an apparatus, an image at an arbitrary position can be cut out from an original large-size image, and output in, for example, a high-vision size. It is also possible to vary the position to be cut out at an arbitrary speed in terms of time.

一方、MPEG−2や、AVC/H.264,HEVC/H.265などの一般的な圧縮符号化方式では動き推定を行う。動き推定はブロックなどの単位で画像の動きの大きさ及び方向(動きベクトル)を予測するものである。予測の精度は方式によって異なるが、1画素精度ではなく、1/2画素精度や1/4画素精度にして予測の効率を上げている。この場合、元の画素の間の1/2画素や1/4画素の値は内挿フィルタ等を施したうえで補間生成する。映像内の被写体の動き量は通常1画素精度とは限らないので、1/2画素精度以上にすることで予測の効率は向上する。   On the other hand, MPEG-2 and AVC / H. 264, HEVC / H. A general compression encoding method such as H.265 performs motion estimation. Motion estimation predicts the magnitude and direction (motion vector) of the motion of an image in units such as blocks. Although the accuracy of prediction differs depending on the method, the prediction efficiency is increased by using 1/2 pixel accuracy or 1/4 pixel accuracy instead of 1 pixel accuracy. In this case, the values of ½ pixel and ¼ pixel between the original pixels are generated by interpolation after applying an interpolation filter or the like. Since the amount of motion of the subject in the video is usually not 1 pixel accuracy, the prediction efficiency is improved by setting it to 1/2 pixel accuracy or higher.

特開2004−336805号公報JP 2004-336805 A

“高機能「小型SHVダウンコンバータ」を初めて開発!〜SHV“ワンリソース・マルチユース”の番組制作が飛躍的に向上〜”、[online]、平成21年4月17日、NHK、[平成25年3月28日検索]、インターネット<URL:http://www.nhk.or.jp/pr/marukaji/pdf_ver/231.pdf>“High-performance“ small SHV down converter ”developed for the first time! -Dramatically improved SHV "One Resource Multi-use" program production- ", [online], April 17, 2009, NHK, [March 28, 2013 search], Internet <URL: http : //www.nhk.or.jp/pr/marukaji/pdf_ver/231.pdf>

しかし、動き推定の予測精度を高めるほど動きベクトル情報量が増え、動きベクトル情報量が増えると内挿や補間のための処理量が多くなり、動き補償に必要となる参照画像用のメモリも増やす必要があるという問題がある。つまり、高解像度画像からの切出し処理は任意の位置、任意の精度で画像切出しを行えるが、切出し位置の精度を1画素より小さくすると、切出した画像の圧縮符号化を行う際に、動きベクトル情報量、処理量、動き補償の参照用メモリなどが増えてしまうという問題がある。   However, as the prediction accuracy of motion estimation increases, the amount of motion vector information increases. When the amount of motion vector information increases, the amount of processing for interpolation and interpolation increases, and the memory for reference images required for motion compensation also increases. There is a problem that it is necessary. In other words, the extraction process from the high-resolution image can be performed at an arbitrary position and with an arbitrary accuracy. However, if the accuracy of the extraction position is smaller than one pixel, the motion vector information is used when compressing and encoding the extracted image. There is a problem that the amount of processing, the amount of processing, reference memory for motion compensation, and the like increase.

かかる事情に鑑みてなされた本発明の目的は、発生する動きベクトル情報量を考慮しつつ、高解像度画像から切出された低解像度画像を符号化することが可能な画像処理装置及びプログラムを提供することにある。   An object of the present invention made in view of such circumstances is to provide an image processing apparatus and program capable of encoding a low-resolution image cut out from a high-resolution image in consideration of the amount of generated motion vector information. There is to do.

上記課題を解決するため、本発明に係る画像処理装置は、フレームごとに高解像度画像から切出し位置に従って切出された低解像度画像を符号化する画像処理装置であって、前記低解像度画像の動き推定を行って動きベクトルを生成し、該動きベクトルを用いて動き補償した動き補償画像を出力するとともに、該動きベクトルの情報量を示す動きベクトル情報量を出力する動き推定部と、前記低解像度画像と前記動き補償画像との差分画像を符号化して符号化データを出力する符号化部と、前記動きベクトル情報量に基づいて、フレーム間の前記切出し位置の移動精度を制御する符号化制御部と、を備え、前記符号化制御部は、前記動きベクトル情報量が閾値を越えるか、又は前記動きベクトル情報量及び前記符号化データの情報量の総量に対する前記動きベクトル情報量の比率が閾値を越える場合に前記移動精度が低くなるように制御することを特徴とする。 In order to solve the above problems, an image processing apparatus according to the present invention is an image processing apparatus that encodes a low-resolution image cut out from a high-resolution image according to a cut-out position for each frame, and the motion of the low-resolution image A motion estimation unit that generates a motion vector by performing estimation, outputs a motion compensated image compensated for motion using the motion vector, and outputs a motion vector information amount indicating an information amount of the motion vector; and the low resolution An encoding unit that encodes a difference image between an image and the motion compensated image and outputs encoded data; and an encoding control unit that controls movement accuracy of the cut-out position between frames based on the amount of motion vector information When, wherein the encoding control unit, the motion or amount vector information exceeds a threshold value, or the total amount of the motion vector information amount and the amount of information of the encoded data The ratio of the motion vector information amount the movement accuracy is characterized that you control to be lower when exceeding the threshold value.

さらに、本発明に係る画像処理装置において、前記低解像度画像と、該低解像度画像の局部復号画像との差分値を算出する画質評価部を更に備え、前記符号化制御部は、前記差分値が閾値を越える場合に前記移動精度が高くなるように制御することを特徴とする。   Furthermore, the image processing apparatus according to the present invention further includes an image quality evaluation unit that calculates a difference value between the low-resolution image and a locally decoded image of the low-resolution image, and the encoding control unit includes the difference value Control is performed so that the movement accuracy is increased when a threshold value is exceeded.

さらに、本発明に係る画像処理装置において、前記移動精度で決定された前記切出し位置に従って、前記高解像度画像から前記低解像度画像を生成する切出し処理部を更に備えることを特徴とする。   Furthermore, the image processing apparatus according to the present invention further includes a cutout processing unit that generates the low resolution image from the high resolution image according to the cutout position determined with the movement accuracy.

さらに、本発明に係る画像処理装置において、前記切出し処理部は、フレーム間の前記切出し位置の移動速度の情報を出力し、前記動き推定部は前記移動速度の情報を用いて前記動き推定を行って前記動きベクトルを生成することを特徴とする。   Further, in the image processing apparatus according to the present invention, the cutout processing unit outputs information on a moving speed of the cutout position between frames, and the motion estimation unit performs the motion estimation using the information on the moving speed. Generating the motion vector.

また、上記課題を解決するため、本発明に係るプログラムは、コンピュータを、上記画像処理装置として機能させることを特徴とする。   In order to solve the above problems, a program according to the present invention causes a computer to function as the image processing apparatus.

本発明によれば、発生する動きベクトル情報量を考慮しつつ、高解像度画像から切出された低解像度画像を符号化することができるようになる。   According to the present invention, it is possible to encode a low resolution image cut out from a high resolution image in consideration of the amount of motion vector information generated.

本発明の第1の実施形態に係る画像処理装置の構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of an image processing apparatus according to a first embodiment of the present invention. 高解像度画像及び高解像度画像から切出される低解像度画像を示す図である。It is a figure which shows the low-resolution image cut out from a high-resolution image and a high-resolution image. 本発明の第1の実施形態に係る画像処理装置の動作を示すフローチャートである。3 is a flowchart showing an operation of the image processing apparatus according to the first embodiment of the present invention. 本発明の第2の実施形態に係る画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus which concerns on the 2nd Embodiment of this invention.

以下、本発明の実施形態について、図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

(第1の実施形態)
図1は、本発明の第1の実施形態に係る画像処理装置の構成例を示すブロック図である。図1に示す例では、画像処理装置1は、切出し装置10と、符号化装置20とを備える。本実施形態では、切出し装置10と符号化装置20とが分離した構成となっているが、切出し装置10と符号化装置20とが一体となって画像処理装置1を構成してもよい。また、画像処理装置1の外部に切出し装置10を設け、画像処理装置1は切出し装置10から入力される低解像度画像を符号化する符号化装置20のみを備える構成としてもよい。
(First embodiment)
FIG. 1 is a block diagram illustrating a configuration example of an image processing apparatus according to the first embodiment of the present invention. In the example illustrated in FIG. 1, the image processing apparatus 1 includes a clipping device 10 and an encoding device 20. In the present embodiment, the cutting device 10 and the encoding device 20 are separated from each other, but the cutting device 10 and the encoding device 20 may be integrated to form the image processing device 1. Further, the clipping device 10 may be provided outside the image processing device 1, and the image processing device 1 may include only the encoding device 20 that encodes the low-resolution image input from the clipping device 10.

切出し装置10は、フレームごとに高解像度画像の切出し位置を設定し、切出し位置に従って切出された低解像度画像を生成し、符号化装置20に出力する。例えば、8K(7680×4320画素)や4K(3840×2160画素)のような高解像度画像を、ハイビジョンサイズ(1920×1080画素)の大きさに切り取る。切出し装置10は、パラメータ設定部11と、切出し処理部12とを備える。   The cutout device 10 sets a cutout position of the high resolution image for each frame, generates a low resolution image cut out according to the cutout position, and outputs the low resolution image to the encoding device 20. For example, a high-resolution image such as 8K (7680 × 4320 pixels) or 4K (3840 × 2160 pixels) is cut into a high-vision size (1920 × 1080 pixels). The cutting device 10 includes a parameter setting unit 11 and a cutting processing unit 12.

図2は、高解像度画像及び高解像度画像から切出される低解像度画像を示す図である。以下、図2を参照して切出し装置10の説明をする。図2では、俯瞰的に撮影されたサッカー中継(選手や観客は省略)の高精細映像から撮りたいシーンを切出してハイビジョン映像とする例を示している。   FIG. 2 is a diagram illustrating a high resolution image and a low resolution image cut out from the high resolution image. Hereinafter, the cutting device 10 will be described with reference to FIG. FIG. 2 shows an example in which a scene to be taken is extracted from a high-definition video of a football broadcast (players and spectators are omitted) taken from a bird's-eye view to obtain a high-definition video.

パラメータ設定部11は、切出し処理部12に入力される高解像度画像Aに対する切出し位置、切出される画像のサイズ、及びフレーム間の切出し位置の移動精度を含むパラメータを設定し、設定情報を切出し処理部12に出力する。移動精度とは、切出し位置を移動させる際の最小の画素単位を意味し、例えば、1画素、1/2画素、1/4画素から選択できるものとする。1画素よりも細かい精度の画素は存在しないため、1/2画素又は1/4画素を選択した場合は、元の映像を内挿して1画素間の画素を生成してから切り出す処理となり、内挿処理を行うために処理量が増加し、映像を蓄積するメモリも別途必要となる。   The parameter setting unit 11 sets parameters including the cutting position for the high-resolution image A input to the cutting processing unit 12, the size of the cut image, and the movement accuracy of the cutting position between frames, and cuts the setting information. To the unit 12. The movement accuracy means a minimum pixel unit when moving the cutout position, and can be selected from, for example, 1 pixel, 1/2 pixel, and 1/4 pixel. Since there is no pixel with a precision finer than one pixel, when ½ pixel or ¼ pixel is selected, the original image is interpolated to generate a pixel between pixels, and then cut out. In order to perform the insertion process, the amount of processing increases, and a memory for storing video is also required separately.

パラメータの設定の仕方については特に制限はない。例えば、切出し装置10の表示部(図示せず)に高解像度画像Aを表示するとともに、切出される画像の枠(切出し位置)を示す長方形枠Bを重畳して表示させ、ユーザーインターフェースを利用して長方形枠Bをフレーム間で所定の移動精度で移動させて切出し位置を設定する。切出し処理部12は、長方形枠Bに囲まれた画像を切出し、低解像度画像Cとして出力する。   There are no particular restrictions on how to set the parameters. For example, the high-resolution image A is displayed on the display unit (not shown) of the cutting apparatus 10 and a rectangular frame B indicating the frame (cutting position) of the image to be cut out is superimposed and displayed, and the user interface is used. The rectangular frame B is moved between the frames with a predetermined movement accuracy to set the cutout position. The cutout processing unit 12 cuts out an image surrounded by the rectangular frame B and outputs it as a low resolution image C.

長方形枠Bの位置は、ダイヤルなどのユーザーインターフェースを操作することによって移動させ、決定することができる。例えばスポーツ中継映像の各フレームが高解像度画像Aとして入力された場合、ユーザはユーザーインターフェースを操作し、着目したい画像が含まれるように長方形枠Bを随時移動させる。長方形枠Bのサイズは、例えばハイビジョンサイズに切出す場合には1920×1080画素に固定する。また、切り出し位置を移動させる場合は、手動で長方形枠Bを動かしてもよいし、あらかじめ設定した速度・方向で長方形枠Bを動かしてもよい。長方形枠Bの移動精度には初期値を設定し、後述するように符号化制御部30から入力される制御信号により変更され得る。   The position of the rectangular frame B can be determined by moving it by operating a user interface such as a dial. For example, when each frame of a sports broadcast video is input as the high resolution image A, the user operates the user interface and moves the rectangular frame B as needed so that the image to be noticed is included. The size of the rectangular frame B is fixed to 1920 × 1080 pixels, for example, when cutting out to a high-vision size. When moving the cutout position, the rectangular frame B may be moved manually, or the rectangular frame B may be moved at a preset speed / direction. An initial value is set for the movement accuracy of the rectangular frame B, and can be changed by a control signal input from the encoding control unit 30 as described later.

切出し処理部12は、パラメータ設定部11によって設定されたパラメータに従って高解像度画像Aから画像を切出し、切り出された低解像度画像Cを符号化装置20に出力する。   The cutout processing unit 12 cuts out an image from the high resolution image A according to the parameters set by the parameter setting unit 11 and outputs the cut out low resolution image C to the encoding device 20.

符号化装置20は、例えば既存の映像符号化であるAVC/H.264やHEVC/H.265等に準拠した方式により圧縮符号化を行う。図1に示す例では、符号化装置20は、減算部21と、直交変換部22と、量子化部23と、逆量子化部24と、逆直交変換部25と、加算部26と、メモリ27と、動き推定部28と、符号化部29と、符号化制御部30を備える。   The encoding device 20 is, for example, an AVC / H. H.264 and HEVC / H. Compression encoding is performed by a method compliant with H.265 or the like. In the example illustrated in FIG. 1, the encoding device 20 includes a subtraction unit 21, an orthogonal transformation unit 22, a quantization unit 23, an inverse quantization unit 24, an inverse orthogonal transformation unit 25, an addition unit 26, and a memory. 27, a motion estimation unit 28, an encoding unit 29, and an encoding control unit 30.

減算部21は、切出し装置10から入力される低解像度画像と、動き推定部28から入力される動き補償画像とを差分して差分画像を生成し、直交変換部22に出力する。   The subtractor 21 generates a difference image by subtracting the low resolution image input from the clipping device 10 and the motion compensated image input from the motion estimator 28, and outputs the difference image to the orthogonal transform unit 22.

直交変換部22は、減算部21から入力される差分画像に対してブロック単位で直交変換(例えば、DCT;Discrete Cosine Transform)処理を施して直交変換係数を生成し、量子化部23に出力する。   The orthogonal transform unit 22 performs orthogonal transform (for example, DCT; Discrete Cosine Transform) processing on the difference image input from the subtraction unit 21 to generate an orthogonal transform coefficient and outputs it to the quantization unit 23. .

量子化部23は、直交変換部22から入力される直交変換係数に対して、所要ビットレートに合うように量子化処理を行い、量子化された直交変換係数を逆量子化部24及び符号化部29に出力する。   The quantization unit 23 performs a quantization process on the orthogonal transform coefficient input from the orthogonal transform unit 22 so as to match the required bit rate, and the quantized orthogonal transform coefficient is encoded by the inverse quantization unit 24 and the encoding unit. To the unit 29.

逆量子化部24は、量子化部23から入力される量子化された直交変換係数に対して逆量子化処理を行い、生成される直交変換係数を逆直交変換部25に出力する。   The inverse quantization unit 24 performs an inverse quantization process on the quantized orthogonal transform coefficient input from the quantization unit 23 and outputs the generated orthogonal transform coefficient to the inverse orthogonal transform unit 25.

逆直交変換部25は、逆量子化部24から入力される直交変換係数に対して逆直交変換(例えば、IDCT;Inverse Discrete Cosine Transform)処理を施し、局部復号差分画像を生成し、加算部26に出力する。   The inverse orthogonal transform unit 25 performs inverse orthogonal transform (for example, IDCT; Inverse Discrete Cosine Transform) processing on the orthogonal transform coefficient input from the inverse quantization unit 24 to generate a local decoded difference image, and an adder 26 Output to.

加算部26は、逆直交変換部25から入力される局部復号差分画像と、動き推定部28から入力される動き補償画像とを加算して局部復号画像を生成し、メモリ27に出力する。   The adding unit 26 adds the local decoded differential image input from the inverse orthogonal transform unit 25 and the motion compensated image input from the motion estimation unit 28 to generate a local decoded image, and outputs the local decoded image to the memory 27.

動き推定部28は、低解像度画像を正方形や長方形等のブロック形状に分割した部分ごとに、メモリ27に記憶された局部復号画像(参照画像)を参照して類似部分を探索することにより動きベクトルを生成し、動きベクトルの情報を符号化部29に出力する。探索方法は、SSD(Sum of Squared Difference)法やSAD(Sum of Absolute intensity Difference)法を用いたブロックマッチング法、又は勾配法などの既存の手法を用いることができる。また、動き推定部28は発生した動きベクトルの情報量を動きベクトル情報量として符号化制御部30に出力する。   The motion estimation unit 28 searches for a similar part by referring to a locally decoded image (reference image) stored in the memory 27 for each part obtained by dividing the low-resolution image into block shapes such as squares and rectangles. And outputs the motion vector information to the encoding unit 29. As a search method, an existing method such as a block matching method using an SSD (Sum of Squared Difference) method or an SAD (Sum of Absolute Intensity Difference) method, or a gradient method can be used. In addition, the motion estimation unit 28 outputs the information amount of the generated motion vector to the encoding control unit 30 as the motion vector information amount.

また、動き推定部28は、メモリ27に記憶された局部復号画像に対し、生成した動きベクトルを用いて動き補償を行って動き補償画像を生成し、減算部21及び加算部26に出力する。   In addition, the motion estimation unit 28 performs motion compensation on the locally decoded image stored in the memory 27 using the generated motion vector, generates a motion compensated image, and outputs the motion compensated image to the subtraction unit 21 and the addition unit 26.

画像中の被写体の動きは画素単位とは限らないので、動き推定の精度を高めるために、動き推定部28は参照画像の画素精度より細かい、例えば1/2画素や1/4画素精度で動きベクトルを求めることができる。これにより、実際の動きにより近い動き推定が可能となり、予測効率向上によりトータルで符号化効率が上昇する。しかしこの場合、動きベクトルを表現するための精度も高くなるので動きベクトル情報量が増える。また、1画素未満の精度を探索するために参照画像を1画素より細かい精度に内挿・拡大する処理が必要になる。   Since the motion of the subject in the image is not necessarily in units of pixels, the motion estimation unit 28 moves with finer pixel accuracy than the reference image, for example, with 1/2 pixel or 1/4 pixel accuracy, in order to increase the accuracy of motion estimation. A vector can be obtained. As a result, motion estimation closer to the actual motion becomes possible, and the coding efficiency is increased by improving the prediction efficiency. However, in this case, since the accuracy for expressing the motion vector is also increased, the amount of motion vector information increases. Further, in order to search for an accuracy of less than one pixel, a process for interpolating and enlarging the reference image with an accuracy smaller than one pixel is required.

符号化部29は、量子化部23から入力される量子化された直交変換係数について、符号化処理(例えば、スキャンを行って可変長符号化処理)を施して符号化データを生成し、外部に出力する。また、符号化部29は、動き推定部28から入力される動きベクトルの情報も同様に符号化処理を施し、得られる符号化データを外部に出力する。   The encoding unit 29 performs encoding processing (for example, scan and variable length encoding processing) on the quantized orthogonal transform coefficient input from the quantization unit 23 to generate encoded data, and generates external data. Output to. The encoding unit 29 also performs the encoding process on the motion vector information input from the motion estimation unit 28 and outputs the obtained encoded data to the outside.

また、符号化部29は、符号化処理により発生した符号量を符号化制御部30に出力する。   In addition, the encoding unit 29 outputs the code amount generated by the encoding process to the encoding control unit 30.

符号化制御部30は、符号化の所要ビットレート等に応じて量子化の度合いを調整し、発生する情報量を所要ビットレート内に収める処理を行う。通常の符号化では、量子化部23を制御して量子化幅を変化させることにより、発生情報量を制御する。本発明に係るが画像処理装置1ではこれに加え、切出し装置10の制御を行うことにより、動きベクトルの情報量も制御する。   The encoding control unit 30 adjusts the degree of quantization according to the required bit rate of encoding and the like, and performs a process of keeping the generated information amount within the required bit rate. In normal encoding, the amount of generated information is controlled by controlling the quantization unit 23 to change the quantization width. According to the present invention, in addition to this, the image processing apparatus 1 also controls the amount of motion vector information by controlling the clipping device 10.

符号化制御部30は、動きベクトルの情報量の増大を防止するために、動き推定部28から入力される動きベクトル情報量、及び符号化部29から入力される符号量に基づいて、切出し位置の移動精度を制御する。動きベクトル情報量及び符号量の総量を全情報量とすると、符号化制御部30は、例えば、全情報量、動きベクトル情報量、及び全情報量に対する動きベクトル情報量の比率(以下、「動きベクトル情報等」という)の少なくとも1つが所定の閾値を越える場合に、パラメータ設定部11に対して移動精度が低くなるように制御する。   In order to prevent an increase in the information amount of the motion vector, the encoding control unit 30 determines the cut-out position based on the motion vector information amount input from the motion estimation unit 28 and the code amount input from the encoding unit 29. Control the accuracy of movement. Assuming that the total amount of motion vector information and the amount of code is the total amount of information, the encoding control unit 30, for example, the total information amount, the motion vector information amount, and the ratio of the motion vector information amount to the total information amount (hereinafter referred to as “motion When at least one of “vector information etc.” exceeds a predetermined threshold, the parameter setting unit 11 is controlled so that the movement accuracy is lowered.

パラメータ設定部11は、符号化制御部30から動きベクトル情報量を抑制する制御信号を受け取った場合、切出し処理部12の移動精度に制限を課す。例えば、移動精度が1/4画素の場合には、1/2画素精度や1画素精度に制限する。切出し装置10の処理において、細かい精度の速度に対応した映像を生成する必要が無くなるため、内挿処理やメモリの削減も可能になる。また、切出し位置の移動精度を低くすることにより、動き推定部28で推定する動きベクトルの精度も粗くなる可能性が高くなるため、動きベクトル情報量を抑えることができる。   When the parameter setting unit 11 receives a control signal for suppressing the amount of motion vector information from the encoding control unit 30, the parameter setting unit 11 imposes a limit on the movement accuracy of the cutout processing unit 12. For example, when the movement accuracy is 1/4 pixel, it is limited to 1/2 pixel accuracy or 1 pixel accuracy. In the processing of the clipping device 10, it is not necessary to generate an image corresponding to a finely accurate speed, so that interpolation processing and memory reduction are possible. Moreover, since the possibility that the accuracy of the motion vector estimated by the motion estimation unit 28 becomes coarse by increasing the moving accuracy of the cutout position is increased, the amount of motion vector information can be suppressed.

次に、画像処理装置1の動作について、図3を参照して説明する。図3は、画像処理装置1の動作を示すフローチャートである。   Next, the operation of the image processing apparatus 1 will be described with reference to FIG. FIG. 3 is a flowchart showing the operation of the image processing apparatus 1.

切出し装置10は、まずパラメータ設定部11により、切出される画像のサイズ、切出し位置、及びフレーム間の切出し位置の移動精度を含むパラメータを設定する(ステップS101)。そして、切出し処理部12により、ステップS101にて設定されたパラメータを用いて、高解像度画像から一部の画像を切出して低解像度画像を生成する(ステップS102)。   In the clipping device 10, first, the parameter setting unit 11 sets parameters including the size of the image to be clipped, the clipping position, and the movement accuracy of the clipping position between frames (step S101). Then, the cutout processing unit 12 uses the parameters set in step S101 to cut out a part of the image from the high resolution image to generate a low resolution image (step S102).

符号化装置20は、低解像度画像が入力されると、動き推定部28により動き推定処理及び動き補償処理を行う(ステップS103)。そして、符号化制御部30により、ステップS103により発生する動きベクトル情報量に基づき、動きベクトル情報量等の大きさを判定する。例えば、動きベクトル情報量が閾値を超えるか否かを判定する(ステップS104)。   When the low-resolution image is input, the encoding device 20 performs motion estimation processing and motion compensation processing by the motion estimation unit 28 (step S103). Then, the encoding control unit 30 determines the magnitude of the motion vector information amount based on the motion vector information amount generated in step S103. For example, it is determined whether or not the amount of motion vector information exceeds a threshold (step S104).

動きベクトル情報量が閾値以下の場合には(ステップS104−No)、引き続き符号化処理を行い、符号化データを出力する(ステップS105)。一方、動きベクトル情報量が閾値を超える場合には(ステップS104−Yes)、符号化制御部30はパラメータ設定部11に対し、移動精度を現在の値よりも低く設定するように指示する。   If the amount of motion vector information is less than or equal to the threshold (step S104-No), the encoding process is continued and encoded data is output (step S105). On the other hand, when the amount of motion vector information exceeds the threshold (step S104—Yes), the encoding control unit 30 instructs the parameter setting unit 11 to set the movement accuracy to be lower than the current value.

なお、第1の閾値と第2の閾値を設け、符号化制御部30は、動きベクトル情報量等が第1の閾値を越える場合には、パラメータ設定部11に対して移動精度を現在の値よりも低く設定するように指示し、動きベクトル情報量等が第2の閾値以下である場合には、パラメータ設定部11に対して移動精度を現在の値よりも高く設定するように指示してもよい。   Note that the first threshold value and the second threshold value are provided, and the encoding control unit 30 sets the movement accuracy to the parameter setting unit 11 when the motion vector information amount exceeds the first threshold value. If the motion vector information amount is equal to or smaller than the second threshold value, the parameter setting unit 11 is instructed to set the movement accuracy higher than the current value. Also good.

上述したように、第1の実施形態に係る画像処理装置1は、動き推定部28により、低解像度画像の動き推定を行って動きベクトルを生成し、該動きベクトルを用いて動き補償した動き補償画像を出力するとともに、該動きベクトルの情報量を示す動きベクトル情報量を出力し、符号化部29により、低解像度画像と動き補償画像との差分画像を符号化して符号化データを出力し、符号化制御部30により、動きベクトル情報量に基づいてフレーム間の切出し位置の移動精度を制御する。かかる構成により、動きベクトル情報量等が多い場合には切出し位置の移動精度を低くすることにより、動きベクトル情報量等を抑制することができ、処理量、メモリなどのリソースを軽減することが可能となる。   As described above, in the image processing apparatus 1 according to the first embodiment, the motion estimation unit 28 performs motion estimation of a low-resolution image to generate a motion vector, and motion compensation is performed using the motion vector. Outputs an image and outputs a motion vector information amount indicating the information amount of the motion vector, and encodes a difference image between the low resolution image and the motion compensated image by the encoding unit 29 to output encoded data. The encoding control unit 30 controls the movement accuracy of the cutout position between frames based on the motion vector information amount. With this configuration, when the amount of motion vector information is large, the motion vector information amount can be suppressed by reducing the moving accuracy of the extraction position, and the amount of processing, memory, and other resources can be reduced. It becomes.

(第2の実施形態)
次に、本発明の第2の実施形態について説明する。図4は、第2の実施形態に係る画像処理装置の構成例を示すブロック図である。図4に示す例では、画像処理装置2は、切出し装置10と、符号化装置20とを備える。切出し装置10は、パラメータ設定部11と、切出し処理部12とを備える。符号化装置20は、減算部21と、直交変換部22と、量子化部23と、逆量子化部24と、逆直交変換部25と、加算部26と、メモリ27と、動き推定部28と、符号化部29と、符号化制御部30と、画質評価部31とを備える。第2の実施形態の画像処理装置2は第1の実施形態の画像処理装置1と比較して、画質評価部31を更に備える点が相違する。その他の構成については第1の実施形態と同一であるため、同一の参照番号を付して適宜説明を省略する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. FIG. 4 is a block diagram illustrating a configuration example of an image processing apparatus according to the second embodiment. In the example illustrated in FIG. 4, the image processing device 2 includes a clipping device 10 and an encoding device 20. The cutting device 10 includes a parameter setting unit 11 and a cutting processing unit 12. The encoding device 20 includes a subtraction unit 21, an orthogonal transformation unit 22, a quantization unit 23, an inverse quantization unit 24, an inverse orthogonal transformation unit 25, an addition unit 26, a memory 27, and a motion estimation unit 28. An encoding unit 29, an encoding control unit 30, and an image quality evaluation unit 31. The image processing apparatus 2 according to the second embodiment is different from the image processing apparatus 1 according to the first embodiment in that an image quality evaluation unit 31 is further provided. Since other configurations are the same as those of the first embodiment, the same reference numerals are given and description thereof is omitted as appropriate.

画質評価部31は、切出し装置10から入力される低解像度画像と、メモリ27から入力される局部復号画像との差分値を算出し、符号化制御部30に出力する。差分値は、差の絶対値の和、差の絶対値の積、差の二乗和など、種々の演算方法により算出することができる。   The image quality evaluation unit 31 calculates a difference value between the low-resolution image input from the clipping device 10 and the local decoded image input from the memory 27 and outputs the difference value to the encoding control unit 30. The difference value can be calculated by various calculation methods such as a sum of absolute values of differences, a product of absolute values of differences, and a sum of squares of differences.

符号化制御部30は、第1の実施形態で説明した動きベクトル情報に加え、画質評価部31により算出される差分値も勘案して切出し位置の移動精度を制御する。例えば、差分値が閾値を越える場合には、符号化による画質劣化が大きいため、量子化部23による量子化精度及び切出し処理部12による移動精度の少なくとも一方が高くなるように制御する。   In addition to the motion vector information described in the first embodiment, the encoding control unit 30 also takes into account the difference value calculated by the image quality evaluation unit 31 and controls the movement accuracy of the cutout position. For example, when the difference value exceeds a threshold value, image quality deterioration due to encoding is large, and therefore control is performed so that at least one of the quantization accuracy by the quantization unit 23 and the movement accuracy by the extraction processing unit 12 is increased.

また、切出し処理部12は、切出し位置の移動速度及び移動精度の情報を動き推定部28に出力するようにしてもよい。予め切出し位置の移動速度が分かれば、1フレームあたりのグローバル動きが分かるため、動き推定部28はグローバル動きを利用して動き推定を行うことができる。また、予め切出し位置の移動精度が分かれば、動き推定部28は通常の動き推定時に必要な1画素精度以上の内挿処理やメモリの用意などを簡略化することができる。なお、グローバル動きは切出し装置10で生成した低解像度画像全体の動きであるため、元々の映像が持っているローカル動きとの相関性はない。   Further, the cutout processing unit 12 may output information on the movement speed and movement accuracy of the cutout position to the motion estimation unit 28. If the movement speed of the cutout position is known in advance, the global motion per frame can be known, so the motion estimation unit 28 can perform motion estimation using the global motion. If the movement accuracy of the cutout position is known in advance, the motion estimator 28 can simplify interpolation processing with more than one pixel accuracy required for normal motion estimation, memory preparation, and the like. Note that since the global motion is the motion of the entire low-resolution image generated by the clipping device 10, there is no correlation with the local motion that the original video has.

上述したように、第2の実施形態に係る画像処理装置2は、低解像度画像と該低解像度画像の局部復号画像との差分値を算出する画質評価部31を更に備え、符号化制御部30は差分値が閾値を越える場合に量子化精度及び移動精度の少なくとも一方が高くなるように制御する。このため、動きベクトル情報量等を抑制しつつ、符号化による劣化を防止することができるようになる。   As described above, the image processing apparatus 2 according to the second embodiment further includes the image quality evaluation unit 31 that calculates the difference value between the low resolution image and the locally decoded image of the low resolution image, and the encoding control unit 30. Controls so that at least one of the quantization accuracy and the movement accuracy increases when the difference value exceeds the threshold value. For this reason, it is possible to prevent deterioration due to encoding while suppressing the amount of motion vector information and the like.

また、切出し処理部12が、フレーム間の切出し位置の移動速度の情報(グローバル動き情報)を動き推定部28に出力し、動き推定部28がグローバル動き情報を利用して動き推定を行うことにより、動きベクトルを少ない処理量で高精度に推定することができるようになる。   In addition, the cutout processing unit 12 outputs information on the moving speed of the cutout position between frames (global motion information) to the motion estimation unit 28, and the motion estimation unit 28 performs motion estimation using the global motion information. Thus, the motion vector can be estimated with a small amount of processing and with high accuracy.

なお、上述した画像処理装置1,2として機能させるためにコンピュータを好適に用いることができ、そのようなコンピュータは、画像処理装置1,2の各機能を実現する処理内容を記述したプログラムを該コンピュータの記憶部に格納しておき、該コンピュータのCPUによってこのプログラムを読み出して実行させることで実現することができる。なお、このプログラムは、コンピュータ読取り可能な記録媒体に記録可能である。   Note that a computer can be suitably used to cause the image processing apparatuses 1 and 2 to function as described above, and such a computer can store a program describing processing contents for realizing the functions of the image processing apparatuses 1 and 2. It can be realized by storing the program in a storage unit of a computer and reading and executing the program by the CPU of the computer. This program can be recorded on a computer-readable recording medium.

上述の実施形態は代表的な例として説明したが、本発明の趣旨及び範囲内で、多くの変更及び置換ができることは当業者に明らかである。したがって、本発明は、上述の実施形態によって制限するものと解するべきではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。例えば、実施形態に記載の複数の構成ブロックを1つに組み合わせたり、あるいは1つの構成ブロックを分割したりすることが可能である。   Although the above embodiment has been described as a representative example, it will be apparent to those skilled in the art that many changes and substitutions can be made within the spirit and scope of the invention. Therefore, the present invention should not be construed as being limited by the above-described embodiments, and various modifications and changes can be made without departing from the scope of the claims. For example, a plurality of constituent blocks described in the embodiments can be combined into one, or one constituent block can be divided.

1,2 画像処理装置
10 切出し装置
11 パラメータ設定部
12 切出し処理部
20 符号化装置
21 減算部
22 直交変換部
23 量子化部
24 逆量子化部
25 逆直交変換部
26 加算部
27 メモリ
28 動き推定部
29 符号化部
30 符号化制御部
31 画質評価部
DESCRIPTION OF SYMBOLS 1, 2 Image processing apparatus 10 Extraction apparatus 11 Parameter setting part 12 Extraction processing part 20 Encoding apparatus 21 Subtraction part 22 Orthogonal transformation part 23 Quantization part 24 Inverse quantization part 25 Inverse orthogonal transformation part 26 Adder part 27 Memory 28 Motion estimation Unit 29 encoding unit 30 encoding control unit 31 image quality evaluation unit

Claims (5)

フレームごとに高解像度画像から切出し位置に従って切出された低解像度画像を符号化する画像処理装置であって、
前記低解像度画像の動き推定を行って動きベクトルを生成し、該動きベクトルを用いて動き補償した動き補償画像を出力するとともに、該動きベクトルの情報量を示す動きベクトル情報量を出力する動き推定部と、
前記低解像度画像と前記動き補償画像との差分画像を符号化して符号化データを出力する符号化部と、
前記動きベクトル情報量に基づいて、フレーム間の前記切出し位置の移動精度を制御する符号化制御部と、
を備え
前記符号化制御部は、前記動きベクトル情報量が閾値を越えるか、又は前記動きベクトル情報量及び前記符号化データの情報量の総量に対する前記動きベクトル情報量の比率が閾値を越える場合に前記移動精度が低くなるように制御することを特徴とする画像処理装置。
An image processing apparatus that encodes a low-resolution image cut out from a high-resolution image according to a cut-out position for each frame,
Motion estimation for generating a motion vector by performing motion estimation of the low-resolution image, outputting a motion compensated image compensated for motion using the motion vector, and outputting a motion vector information amount indicating an information amount of the motion vector And
An encoding unit that encodes a difference image between the low-resolution image and the motion-compensated image and outputs encoded data;
An encoding control unit that controls the movement accuracy of the cut-out position between frames based on the amount of motion vector information;
Equipped with a,
The coding control unit moves the movement vector information amount when the amount of motion vector information exceeds a threshold value, or when the ratio of the motion vector information amount to the total amount of the motion vector information amount and the encoded data information amount exceeds a threshold value. the image processing apparatus according to claim that you control such accuracy is lowered.
前記低解像度画像と該低解像度画像の局部復号画像との差分値を算出する画質評価部を更に備え、
前記符号化制御部は、前記差分値が閾値を越える場合に前記移動精度が高くなるように制御することを特徴とする、請求項1に記載の画像処理装置。
An image quality evaluation unit that calculates a difference value between the low resolution image and a locally decoded image of the low resolution image;
The image processing apparatus according to claim 1, wherein the encoding control unit performs control so that the movement accuracy is increased when the difference value exceeds a threshold value.
前記移動精度で決定された前記切出し位置に従って、前記高解像度画像から前記低解像度画像を生成する切出し処理部を更に備えることを特徴とする、請求項1又は2に記載の画像処理装置。 Wherein according to said cut position determined by the movement accuracy, characterized in that from the high resolution image, further comprising a clipping processor for generating the low-resolution image, the image processing apparatus according to claim 1 or 2. 前記切出し処理部は、フレーム間の前記切出し位置の移動速度の情報を出力し、
前記動き推定部は前記移動速度の情報を用いて前記動き推定を行って前記動きベクトルを生成することを特徴とする、請求項に記載の画像処理装置。
The cutout processing unit outputs information on the moving speed of the cutout position between frames,
The image processing apparatus according to claim 3 , wherein the motion estimation unit generates the motion vector by performing the motion estimation using the moving speed information.
コンピュータを、請求項1からのいずれか一項に記載の画像処理装置として機能させるためのプログラム。 The program for functioning a computer as an image processing apparatus as described in any one of Claim 1 to 4 .
JP2014042882A 2014-03-05 2014-03-05 Image processing apparatus and program Expired - Fee Related JP6294708B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014042882A JP6294708B2 (en) 2014-03-05 2014-03-05 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014042882A JP6294708B2 (en) 2014-03-05 2014-03-05 Image processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2015170908A JP2015170908A (en) 2015-09-28
JP6294708B2 true JP6294708B2 (en) 2018-03-14

Family

ID=54203309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014042882A Expired - Fee Related JP6294708B2 (en) 2014-03-05 2014-03-05 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP6294708B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3300228B2 (en) * 1996-05-02 2002-07-08 株式会社メガチップス Image communication system
JP4528212B2 (en) * 2005-06-23 2010-08-18 日本放送協会 Trimming control device and trimming control program
JP2007067694A (en) * 2005-08-30 2007-03-15 Mitsubishi Electric Corp Apparatus and method for encoding image, camera, and portable terminal equipment
JP4857297B2 (en) * 2008-03-11 2012-01-18 株式会社日立製作所 Video processing device
JP5411806B2 (en) * 2010-05-25 2014-02-12 日本放送協会 Image composition apparatus and program thereof
JP5537390B2 (en) * 2010-11-15 2014-07-02 日本放送協会 Video signal processing apparatus and camera apparatus

Also Published As

Publication number Publication date
JP2015170908A (en) 2015-09-28

Similar Documents

Publication Publication Date Title
KR102520957B1 (en) Encoding apparatus, decoding apparatus and method thereof
CN108810536B (en) Image encoding apparatus
JP6344800B2 (en) Image processing apparatus and moving image transmission method
JP5871628B2 (en) Image encoding device, image encoding method and program, image decoding device, image decoding method and program
US20140247890A1 (en) Encoding device, encoding method, decoding device, and decoding method
JP6149707B2 (en) Moving picture coding apparatus, moving picture coding method, moving picture coding program, and moving picture photographing apparatus
JP2013038758A (en) Image encoder, image encoding method, program, image decoder, image decoding method and program
JP2013229674A (en) Image coding device, image decoding device, image coding method, image decoding method, image coding program, and image decoding program
US9185417B2 (en) Video decoding switchable between two modes
JP5137687B2 (en) Decoding device, decoding method, and program
US20060067403A1 (en) Information processing device and information processing method
US9100650B2 (en) Video encoding method, decoding method, and apparatus
JP4888919B2 (en) Moving picture encoding apparatus and moving picture decoding apparatus
CN106028031B (en) Video encoding device and method, video decoding device and method
JP6435029B2 (en) Video encoding apparatus and video encoding program
KR20170126934A (en) Content-Adaptive B-Picture Pattern Video Encoding
JPWO2014155738A1 (en) Encoding apparatus, encoding method, and encoding program
JP6294708B2 (en) Image processing apparatus and program
JP4569968B2 (en) Moving picture composition apparatus and program
JP4514666B2 (en) Video encoding device
JP6069929B2 (en) Image selection method, image selection apparatus, encoding apparatus, image selection system, image selection program, encoding program, and image encoding selection program
US9549205B2 (en) Method and device for encoding video
JP6265414B2 (en) Video encoding device and video decoding device
JP2008141407A (en) Device and method for converting coding system
JP2016076758A (en) Reproducer, encoder, and reproduction method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170130

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171107

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180109

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: 20180123

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180216

R150 Certificate of patent or registration of utility model

Ref document number: 6294708

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees