JP2011250284A - Output apparatus and program - Google Patents

Output apparatus and program Download PDF

Info

Publication number
JP2011250284A
JP2011250284A JP2010122974A JP2010122974A JP2011250284A JP 2011250284 A JP2011250284 A JP 2011250284A JP 2010122974 A JP2010122974 A JP 2010122974A JP 2010122974 A JP2010122974 A JP 2010122974A JP 2011250284 A JP2011250284 A JP 2011250284A
Authority
JP
Japan
Prior art keywords
frame
image
insertion position
frame images
storage area
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.)
Pending
Application number
JP2010122974A
Other languages
Japanese (ja)
Inventor
Tomohiko Hasegawa
智彦 長谷川
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2010122974A priority Critical patent/JP2011250284A/en
Publication of JP2011250284A publication Critical patent/JP2011250284A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To output an image having no space even when a total number of frame images that are extractable from a video is less than the number of frame images to be arranged.SOLUTION: Nine frame images are extracted from a video represented by video data, and a frame-arranged image formed by time-sequentially arranging the nine frame images in three rows by three columns is generated (c). When the total number of frame images that are extractable from the video is less than nine, a change amount of between time-sequential frame images among all the frame images that are extractable from the video is calculated. An insertion location for inserting interpolating frame images for an insufficient number of frame images are determined so that at least an interval between two frame images having the least change amount is used as the insertion location (a). By reproducing one of two frame images adjacent to the determined insertion location to form interpolating frame images, and inserting the formed frame images, a frame-arranged image is generated (b).

Description

本発明は、出力装置及びプログラムに関するものである。   The present invention relates to an output device and a program.

従来、画像データの表す画像を印刷する印刷装置が知られている。こうした印刷装置で印刷対象となるのは写真等の静止画像を表す画像データ(静止画像データ)が一般的であるが、近年、動画像を表す画像データ(動画像データ)についても印刷対象とすることが可能な印刷装置が提案されている。   Conventionally, a printing apparatus that prints an image represented by image data is known. Image data representing still images such as photographs (still image data) is generally printed by such a printing apparatus, but in recent years image data representing moving images (moving image data) is also targeted for printing. Printing apparatuses that can do this have been proposed.

例えば、特許文献1に記載の印刷装置は、動画像データの表す動画像から複数のフレーム画像を抽出し、それらを同一ページに配置した画像を印刷する。ここで、動画像から抽出可能なフレーム画像の総数が印刷用の画像に配置すべき数よりも少ない場合には、フレーム画像の不足する部分が余白となる。   For example, the printing apparatus described in Patent Document 1 extracts a plurality of frame images from a moving image represented by moving image data, and prints an image in which they are arranged on the same page. Here, when the total number of frame images that can be extracted from the moving image is smaller than the number to be arranged in the image for printing, a lacking portion of the frame image becomes a blank space.

特開2005−130254号公報JP 2005-130254 A

しかしながら、動画像から抽出可能なフレーム画像が不足するからといって本来フレーム画像が配置されるはずの部分を余白にすると、フレーム画像の配置バランスが悪くなるなど、見栄えが悪くなるという問題があった。   However, if there is a lack of frame images that can be extracted from a moving image, there is a problem that if the portion where the frame image is supposed to be placed is left blank, the appearance of the frame image is deteriorated and the appearance is deteriorated. It was.

本発明は、こうした問題にかんがみてなされたものであり、動画像から抽出可能なフレーム画像の総数が配置すべき数よりも少ない場合にも余白のない画像を出力することのできる出力装置及びプログラムを提供することを目的としている。   The present invention has been made in view of these problems, and an output device and program capable of outputting an image without a margin even when the total number of frame images that can be extracted from a moving image is smaller than the number to be arranged. The purpose is to provide.

上記目的を達成するためになされた本発明の出力装置は、動画像データの表す動画像から複数のフレーム画像を抽出し、これらを時系列的な規則性を持つように配置したフレーム配置画像を生成する配置画像生成手段と、フレーム配置画像を出力する出力手段とを備える。そして、配置画像生成手段は、動画像から抽出可能なフレーム画像の総数が、フレーム配置画像に配置すべき配置フレーム数未満である場合に、動画像から抽出可能なすべてのフレーム画像について時系列順に連続するフレーム画像間の変化量を算出する変化量算出手段と、変化量算出手段により算出された変化量に基づき、配置フレーム数に対する総数の不足数分の補完フレーム画像を挿入するための挿入位置を決定する挿入位置決定手段と、挿入位置決定手段により決定された挿入位置にその挿入位置周辺のフレーム画像に基づく補完フレーム画像を挿入したフレーム配置画像を生成する補完手段とを備える。具体的には、挿入位置決定手段は、変化量算出手段により算出された変化量のうち少なくとも最も変化量が小さいフレーム画像間を挿入位置として決定する。   In order to achieve the above object, an output device of the present invention extracts a plurality of frame images from a moving image represented by moving image data, and a frame arrangement image in which these are arranged so as to have chronological regularity. Arrangement image generation means for generating and output means for outputting the frame arrangement image. Then, the layout image generation means, when the total number of frame images that can be extracted from the moving image is less than the number of layout frames that should be positioned in the frame layout image, for all the frame images that can be extracted from the moving image, in chronological order. Based on the amount of change calculated by the amount of change calculated by the amount of change calculated by the amount of change calculated by the amount of change between the successive frame images and the amount of change calculated by the change amount calculator, And an interpolation position generating means for generating a frame arrangement image in which a complementary frame image based on a frame image around the insertion position is inserted at the insertion position determined by the insertion position determining means. Specifically, the insertion position determination unit determines, as an insertion position, a frame image having the smallest change amount among the change amounts calculated by the change amount calculation unit.

このような出力装置によれば、動画像から抽出可能なフレーム画像の総数が配置フレーム数未満である場合にも、余白のない(より見栄えのよい)フレーム配置画像を出力することができる。特に、時系列順に連続するフレーム画像間の変化量のうち、少なくとも最も変化量が小さいフレーム画像間を補完フレーム画像の挿入位置とするため、補完フレーム画像を目立ちにくい形で挿入することができる。   According to such an output device, even when the total number of frame images that can be extracted from a moving image is less than the number of arranged frames, it is possible to output a frame arranged image having no blank space (which looks better). In particular, among the amount of change between frame images that are consecutive in time series, at least the frame image having the smallest change amount is set as the insertion position of the complementary frame image, so that the complementary frame image can be inserted in an inconspicuous manner.

ここで、補完フレーム画像は、例えば、その挿入位置周辺のフレーム画像を複製した画像とすることが可能である。すなわち、補完手段が、挿入位置前後の2つのフレーム画像のうちの一方を複製した複製画像を補完フレーム画像としてその挿入位置に挿入する。このような出力装置によれば、補完フレーム画像を目立ちにくくすることができる。しかも、補完フレーム画像を生成する処理を簡素化することができる。   Here, the complementary frame image can be, for example, an image obtained by duplicating a frame image around the insertion position. That is, the complementing means inserts a duplicate image obtained by duplicating one of the two frame images before and after the insertion position as a complementation frame image at the insertion position. According to such an output device, the complement frame image can be made inconspicuous. In addition, it is possible to simplify the process of generating the complementary frame image.

そして、この場合には、フレーム配置画像における補完フレーム画像の配置に基づき複製対象のフレーム画像を選択するようにしてもよい。すなわち、補完手段が、挿入位置前後の2つのフレーム画像のうちの一方を、フレーム配置画像におけるその挿入位置の配置に基づき選択し、選択したフレーム画像の複製画像を補完フレーム画像としてその挿入位置に挿入する。このような出力装置によれば、挿入位置前後の2つのフレーム画像のうちの一方を無作為に選択する場合に比べて、より適切なフレーム画像を選択することが可能となる。   In this case, the frame image to be copied may be selected based on the arrangement of the complementary frame image in the frame arrangement image. That is, the complementing unit selects one of the two frame images before and after the insertion position based on the arrangement of the insertion position in the frame layout image, and a duplicate image of the selected frame image is used as the complementary frame image at the insertion position. insert. According to such an output device, it is possible to select a more appropriate frame image as compared to the case of randomly selecting one of the two frame images before and after the insertion position.

例えば、補完手段が、挿入位置前後の2つのフレーム画像のうち、フレーム配置画像においてその挿入位置から離れている方を選択するようにしてもよい。このような出力装置によれば、補完フレーム画像とその複製元のフレーム画像とが近接して配置されることによる違和感を生じにくくすることができる。   For example, the complementing unit may select one of the two frame images before and after the insertion position that is farther from the insertion position in the frame layout image. According to such an output device, it is possible to make it difficult to produce a sense of incongruity due to the complementary frame image and the copy source frame image being arranged close to each other.

具体的には、フレーム配置画像が、動画像から抽出した複数のフレーム画像を時系列順に複数列に配置したものであれば、補完手段が、挿入位置前後の2つのフレーム画像が異なる列に配置される場合には、補完フレーム画像とは異なる列に配置される方を選択するようにしてもよい。このような出力装置によれば、補完フレーム画像とその複製元のフレーム画像とが異なる列に配置されやすくすることができる。   Specifically, if the frame arrangement image is a plurality of frame images extracted from a moving image arranged in a plurality of columns in time series, the complementing unit arranges the two frame images before and after the insertion position in different columns. In such a case, it is possible to select the one arranged in a different column from the complement frame image. According to such an output device, it is possible to easily arrange the complementary frame image and the copy source frame image in different columns.

一方、上記目的を達成するためになされた本発明のプログラムは、動画像データの表す動画像から複数のフレーム画像を抽出し、これらを時系列的な規則性を持つように配置したフレーム配置画像を生成する配置画像生成手段と、フレーム配置画像を出力する出力手段とを備える出力装置としてコンピュータを機能させる。そして、配置画像生成手段は、動画像から抽出可能なフレーム画像の総数が、フレーム配置画像に配置すべき配置フレーム数未満である場合に、動画像から抽出可能なすべてのフレーム画像について時系列順に連続するフレーム画像間の変化量を算出する変化量算出手段と、変化量算出手段により算出された変化量に基づき、配置フレーム数に対する総数の不足数分の補完フレーム画像を挿入するための挿入位置を決定する挿入位置決定手段と、挿入位置決定手段により決定された挿入位置にその挿入位置周辺のフレーム画像に基づく補完フレーム画像を挿入したフレーム配置画像を生成する補完手段とを備える。具体的には、挿入位置決定手段は、変化量算出手段により算出された変化量のうち少なくとも最も変化量が小さいフレーム画像間を挿入位置として決定する。   On the other hand, a program of the present invention made to achieve the above object extracts a plurality of frame images from a moving image represented by moving image data, and arranges them so as to have time-series regularity. The computer is caused to function as an output device including arrangement image generation means for generating the image and output means for outputting the frame arrangement image. Then, the layout image generation means, when the total number of frame images that can be extracted from the moving image is less than the number of layout frames that should be positioned in the frame layout image, for all the frame images that can be extracted from the moving image, in chronological order. Based on the amount of change calculated by the amount of change calculated by the amount of change calculated by the amount of change calculated by the amount of change between the successive frame images and the amount of change calculated by the change amount calculator, And an interpolation position generating means for generating a frame arrangement image in which a complementary frame image based on a frame image around the insertion position is inserted at the insertion position determined by the insertion position determining means. Specifically, the insertion position determination unit determines, as an insertion position, a frame image having the smallest change amount among the change amounts calculated by the change amount calculation unit.

このようなプログラムによれば、前述した出力装置としてコンピュータを機能させることができ、これにより前述した効果を得ることができる。   According to such a program, it is possible to cause the computer to function as the above-described output device, thereby obtaining the above-described effects.

実施形態の複合機の概略構成を表すブロック図である。1 is a block diagram illustrating a schematic configuration of a multifunction machine according to an embodiment. 補完フレーム画像の挿入位置の説明図である。It is explanatory drawing of the insertion position of a complement frame image. 入力画像情報記憶領域の説明図である。It is explanatory drawing of an input image information storage area. 動画像情報記憶領域の説明図である。It is explanatory drawing of a moving image information storage area. フレーム画像情報記憶領域の説明図である。It is explanatory drawing of a frame image information storage area. フレーム差分情報記憶領域の説明図である。It is explanatory drawing of a frame difference information storage area. メディア画像印刷処理のフローチャートである。It is a flowchart of a media image printing process. 出力画像生成処理のフローチャートである。It is a flowchart of an output image generation process. フレーム差分算出処理のフローチャートである。It is a flowchart of a frame difference calculation process.

以下、本発明が適用された実施形態について、図面を用いて説明する。
[1.全体構成]
図1は、実施形態の出力装置としての複合機10の概略構成を表すブロック図である。
Embodiments to which the present invention is applied will be described below with reference to the drawings.
[1. overall structure]
FIG. 1 is a block diagram illustrating a schematic configuration of a multifunction machine 10 as an output device according to the embodiment.

この複合機10は、プリンタ機能の他、スキャナ機能やコピー機能等を有する多機能装置であり、CPU11、ROM12、内部メモリ(RAM)13、スキャナ読取部14、印刷制御部15、液晶表示部16、操作入力部17及びメディアカードスロット18を備えており、これらは信号線を介して接続されている。   The multifunction machine 10 is a multi-function device having a scanner function, a copy function, and the like in addition to a printer function, and includes a CPU 11, a ROM 12, an internal memory (RAM) 13, a scanner reading unit 14, a print control unit 15, and a liquid crystal display unit 16. The operation input unit 17 and the media card slot 18 are connected to each other via a signal line.

CPU11は、複合機10におけるすべての演算を行うための装置である。
ROM12は、後述する処理(図7〜図9)をCPU11に実行させるためのプログラムがあらかじめ記憶されている装置である。
The CPU 11 is a device for performing all calculations in the multifunction machine 10.
The ROM 12 is a device in which a program for causing the CPU 11 to execute processes (FIGS. 7 to 9) described later is stored in advance.

内部メモリ13は、CPU11による演算結果や入力データなどを一時的に記憶しておくための装置である。なお、内部メモリ13の記憶領域の詳細については後述する。
印刷制御部15は、印刷命令が出された画像データを印刷するための装置であり、CMYKの色材(トナーやインク等)によりカラー画像を印刷可能なものである。
The internal memory 13 is a device for temporarily storing calculation results, input data, and the like by the CPU 11. Details of the storage area of the internal memory 13 will be described later.
The print control unit 15 is a device for printing image data for which a print command has been issued, and is capable of printing a color image with CMYK color materials (toner, ink, etc.).

液晶表示部16は、小型のカラー液晶ディスプレイに画像(メッセージ等の文字列を表す画像を含む。)を表示するための装置である。
操作入力部17は、ユーザによって押操作される各種操作キーが配置され、操作に基づく情報を入力するための装置である。具体的には、上下左右操作を行うための上キー、下キー、左キー及び右キーと、決定操作を行うためのOKキーとを備えている。
The liquid crystal display unit 16 is a device for displaying an image (including an image representing a character string such as a message) on a small color liquid crystal display.
The operation input unit 17 is a device for arranging various operation keys pressed by the user and inputting information based on the operation. Specifically, an up key, a down key, a left key, and a right key for performing up / down / left / right operations and an OK key for performing a determination operation are provided.

メディアカードスロット18は、静止画像撮影及び動画像撮影が可能なデジタルスチルカメラやデジタルビデオカメラ等の撮影機器で生成された画像ファイル(静止画像又は動画像を表す画像データ)が記憶されたSDカードやCFカード等のメディアカード(不揮発性の可搬型記憶媒体)を挿入可能に構成されている。そして、複合機10は、メディアカードスロット18に挿入された状態のメディアカードから画像ファイルを直接読み出し、読み出した画像ファイルの内容を表す画像を印刷する機能(いわゆるダイレクトプリント機能)を有している。   The media card slot 18 stores an SD card in which an image file (image data representing a still image or a moving image) generated by a photographing device such as a digital still camera or a digital video camera capable of taking a still image and a moving image is stored. And a media card (nonvolatile portable storage medium) such as a CF card can be inserted. The multifunction device 10 has a function of directly reading an image file from a media card inserted in the media card slot 18 and printing an image representing the content of the read image file (so-called direct print function). .

ここで、画像ファイルとしては、静止画像を表す静止画像ファイルだけでなく、動画像を表す動画像ファイルも対象となる。具体的には、印刷対象の画像ファイルが静止画像ファイルの場合には、その静止画像ファイルの表す静止画像のみを出力画像1ページ内に配置したレイアウトで印刷する。一方、印刷対象の画像ファイルが動画像ファイルの場合には、その動画像ファイルの表す動画像を構成するすべてのフレーム画像のうち、あらかじめ決められた配置フレーム数(本実施形態では9個)のフレーム画像を抽出し、抽出したフレーム画像を出力画像1ページ内に配置したレイアウトのフレーム配置画像を生成して印刷する。   Here, as an image file, not only a still image file representing a still image but also a moving image file representing a moving image is a target. Specifically, when the image file to be printed is a still image file, only the still image represented by the still image file is printed with a layout arranged in one page of the output image. On the other hand, when the image file to be printed is a moving image file, a predetermined number of arrangement frames (9 in this embodiment) among all frame images constituting the moving image represented by the moving image file. A frame image is extracted, and a frame arrangement image having a layout in which the extracted frame image is arranged in one page of the output image is generated and printed.

ここで、動画像から抽出可能なフレーム画像の総数が配置フレーム数に満たないことも考えられる。この場合、フレーム配置画像にすべてのフレーム画像を配置しても余白(フレーム画像を配置可能な空き部分)が生じることになる。そこで、本実施形態の複合機10は、フレーム配置画像に余白が生じないようにするため、不足数分の補完フレーム画像を挿入する。   Here, it is conceivable that the total number of frame images that can be extracted from a moving image is less than the number of arranged frames. In this case, even if all the frame images are arranged in the frame arrangement image, a margin (empty portion where the frame image can be arranged) is generated. Therefore, the multifunction machine 10 according to the present embodiment inserts a shortage of complementary frame images so that no blank space is generated in the frame layout image.

例えば図2(a)に示すように、動画像から8個のフレーム画像が抽出可能な場合には、1個の補完フレーム画像を挿入する。具体的には、動画像から抽出可能なすべてのフレーム画像について時系列順に連続するフレーム画像間の差分(フレーム間差分)を算出し、フレーム間差分が最も小さい2つのフレーム画像間を補完フレーム画像の挿入位置とする。図2(a)は、8個のフレーム画像のうち左から3番目のフレーム画像と4番目のフレーム画像とのフレーム間差分が最も小さい場合の例であり、これら2つのフレーム画像間を補完フレーム画像の挿入位置とする。   For example, as shown in FIG. 2A, when 8 frame images can be extracted from a moving image, one complementary frame image is inserted. Specifically, for all frame images that can be extracted from a moving image, a difference between frame images that are consecutive in time series (interframe difference) is calculated, and a complementary frame image is obtained between two frame images having the smallest interframe difference. Is the insertion position. FIG. 2A shows an example in which the inter-frame difference between the third frame image and the fourth frame image from the left among the eight frame images is the smallest, and a complementary frame between these two frame images. This is the image insertion position.

そして、図2(b)に示すように、補完フレーム画像も含めた9個のフレーム画像から余白のないフレーム配置画像を生成する。このフレーム配置画像において、フレーム画像は、左上から横方向に時系列順に配置される。このフレーム配置画像における1列の最大配置数は3個に設定されており、これを超える分については次の(下の)列の左から時系列順に配置され、3個×3列(合計9個)のフレーム画像が配置される。   Then, as shown in FIG. 2B, a frame layout image without a margin is generated from the nine frame images including the complementary frame image. In this frame arrangement image, the frame images are arranged in chronological order from the upper left to the horizontal direction. The maximum arrangement number of one column in this frame arrangement image is set to three, and the portion exceeding this is arranged in chronological order from the left of the next (lower) column, 3 × 3 columns (9 in total) Frame images) are arranged.

また、本実施形態では、挿入位置前後の2つのフレーム画像のうちの一方を複製(コピー)した複製画像を補完フレーム画像とする。具体的には、挿入位置前後の2つのフレーム画像が異なる列に配置される場合には、補完フレーム画像とは異なる列に配置される方のフレーム画像を複製対象とする。   In this embodiment, a duplicate image obtained by duplicating (copying) one of the two frame images before and after the insertion position is used as a complementary frame image. Specifically, when two frame images before and after the insertion position are arranged in different columns, the frame image arranged in a column different from the complementary frame image is set as a replication target.

例えば、図2(b)に示すように、挿入位置の前のフレーム画像がフレーム配置画像における右端(列の末尾)に配置される場合には、補完フレーム画像は次の列の先頭に配置されることになるため、そのフレーム画像を複製(コピー)した複製画像を補完フレーム画像とする。   For example, as shown in FIG. 2B, when the frame image before the insertion position is arranged at the right end (end of the column) in the frame arrangement image, the complementary frame image is arranged at the beginning of the next column. Therefore, a duplicate image obtained by duplicating (copying) the frame image is set as a complementary frame image.

一方、例えば図2(c)に示すように、挿入位置の後ろのフレーム画像がフレーム配置画像における左端(列の先頭)に配置される場合には、補完フレーム画像は前の列の末尾に配置されることになるため、そのフレーム画像を複製(コピー)した複製画像を補完フレーム画像とする。   On the other hand, for example, as shown in FIG. 2C, when the frame image behind the insertion position is arranged at the left end (the top of the column) in the frame arrangement image, the complementary frame image is arranged at the end of the previous column. Therefore, a duplicate image obtained by duplicating (copying) the frame image is set as a complement frame image.

なお、複合機10は、メディアカードに記憶されている複数の画像ファイルの中から印刷対象の画像ファイルをユーザに選択させるため、画像ファイルの内容を把握可能なサムネイル画像を液晶表示部16に表示し、ユーザにより選択されたサムネイル画像に対応する画像ファイルの表す画像を印刷するようになっている。   Note that the multifunction device 10 displays on the liquid crystal display unit 16 a thumbnail image that can grasp the contents of the image file so that the user can select an image file to be printed from among a plurality of image files stored in the media card. An image represented by an image file corresponding to the thumbnail image selected by the user is printed.

[2.内部メモリの記憶領域]
次に、内部メモリ13の記憶領域について説明する。
図1に示すように、内部メモリ13には、各種情報を記憶するための記憶領域として、入力画像情報記憶領域31、動画像情報記憶領域32、出力画像データ記憶領域33、拡大/縮小画像データ記憶領域34、フレーム画像情報記憶領域35、第1フレーム画像データ記憶領域36、第2フレーム画像データ記憶領域37、フレーム差分情報記憶領域38、補完フレーム画像データ記憶領域39、印刷データ記憶領域40、一時変数記憶領域41及びサムネイル画像データ記憶領域42が用意されている。
[2. Internal memory storage area]
Next, the storage area of the internal memory 13 will be described.
As shown in FIG. 1, in the internal memory 13, as storage areas for storing various information, an input image information storage area 31, a moving image information storage area 32, an output image data storage area 33, and enlarged / reduced image data are stored. Storage area 34, frame image information storage area 35, first frame image data storage area 36, second frame image data storage area 37, frame difference information storage area 38, complementary frame image data storage area 39, print data storage area 40, A temporary variable storage area 41 and a thumbnail image data storage area 42 are prepared.

入力画像情報記憶領域31は、メディアカードに記憶されている画像ファイルの情報を記憶するための領域である。具体的には、図3に示すように、入力画像情報記憶領域31は、入力画像ID記憶領域51、入力画像ファイル名記憶領域52及び入力画像ファイルサイズ記憶領域53を備えている。   The input image information storage area 31 is an area for storing image file information stored in the media card. Specifically, as shown in FIG. 3, the input image information storage area 31 includes an input image ID storage area 51, an input image file name storage area 52, and an input image file size storage area 53.

入力画像ID記憶領域51は、メディアカードに記憶されている画像ファイルの数に応じて0から順に振り分けた画像ファイルのID(以下「入力画像ID」という。)を記憶するための領域である。具体的には、メディアカードから読み出された画像ファイルに対し、読み出された順に入力画像IDが割り振られる。   The input image ID storage area 51 is an area for storing image file IDs (hereinafter referred to as “input image IDs”) sorted in order from 0 according to the number of image files stored in the media card. Specifically, input image IDs are assigned to the image files read from the media card in the order of reading.

入力画像ファイル名記憶領域52は、メディアカードに記憶されている画像ファイルのファイル名を記憶するための領域である。具体的には、例えば256バイトの領域の中に256文字(1文字/バイト)の文字データ(文字無しの情報も含む)が格納される。   The input image file name storage area 52 is an area for storing the file name of the image file stored in the media card. Specifically, for example, 256-character (1 character / byte) character data (including information without characters) is stored in a 256-byte area.

入力画像ファイルサイズ記憶領域53は、メディアカードに記憶されている画像ファイルのファイルサイズ(データサイズ)を数値(この例ではキロバイト単位の数値)として記憶するための領域である。   The input image file size storage area 53 is an area for storing the file size (data size) of the image file stored in the media card as a numerical value (in this example, a numerical value in kilobytes).

図1に戻り、動画像情報記憶領域32は、メディアカードに記憶されている画像ファイルのうち、処理対象となっている動画像ファイルの情報を一時的に記憶しておくための領域である。具体的には、図4に示すように、動画像情報記憶領域32は、フォーマット種別記憶領域61、コーデック種別記憶領域62、横方向サイズ記憶領域63、縦方向サイズ記憶領域64及び総フレーム数記憶領域65を備えている。   Returning to FIG. 1, the moving image information storage area 32 is an area for temporarily storing information of a moving image file to be processed among image files stored in the media card. Specifically, as shown in FIG. 4, the moving image information storage area 32 includes a format type storage area 61, a codec type storage area 62, a horizontal size storage area 63, a vertical size storage area 64, and a total frame number storage. A region 65 is provided.

フォーマット種別記憶領域61は、処理対象となっている動画像ファイルのファイルフォーマット(データフォーマット)の種別を記憶する領域である。本実施形態では、3種類のファイルフォーマットに対応付けられた数値(例えば、AVIフォーマットであれば「0」、MOVフォーマットであれば「1」、MPEGフォーマットであれば「2」)が記憶される。   The format type storage area 61 is an area for storing the file format (data format) type of the moving image file to be processed. In the present embodiment, numerical values associated with the three types of file formats (for example, “0” for the AVI format, “1” for the MOV format, “2” for the MPEG format) are stored. .

コーデック種別記憶領域62は、処理対象となっている動画像ファイルのコーデックの種別を記憶する領域である。本実施形態では、3種類のコーデックに対応付けられた数値(例えば、MotionJPEGコーデックであれば「0」、MPEG1コーデックであれば「1」、DivXコーデックであれば「2」)が記憶される。   The codec type storage area 62 is an area for storing the codec type of the moving image file to be processed. In the present embodiment, numerical values associated with three types of codecs (for example, “0” for the Motion JPEG codec, “1” for the MPEG1 codec, “2” for the DivX codec) are stored.

横方向サイズ記憶領域63は、処理対象となっている動画像ファイルを構成するフレーム画像データの横方向のピクセルサイズを数値データとして記憶する領域である。
縦方向サイズ記憶領域64は、処理対象となっている動画像ファイルを構成するフレーム画像データの縦方向のピクセルサイズを数値データとして記憶する領域である。
The horizontal size storage area 63 is an area for storing the pixel size in the horizontal direction of the frame image data constituting the moving image file to be processed as numerical data.
The vertical size storage area 64 is an area for storing, as numerical data, the vertical pixel size of the frame image data constituting the moving image file to be processed.

総フレーム数記憶領域65は、処理対象となっている動画像ファイルを構成するフレーム画像データの総数(総フレーム数)を数値データとして記憶する領域である。
図1に戻り、出力画像データ記憶領域33は、印刷制御部15に渡すための出力画像データ(印刷用画像を表す画像データ)を一時的に記憶するための領域である。静止画像ファイルは1つの画像データから構成されるため、この1つの画像データが出力画像データ記憶領域33の全体に配置される。一方、動画像ファイルは複数のフレーム画像を配置して出力するため、配置する配置フレーム数で等分された各配置領域の対応する位置に各フレーム画像データを配置することとなる。
The total frame number storage area 65 is an area for storing the total number of frame image data (total number of frames) constituting the moving image file to be processed as numerical data.
Returning to FIG. 1, the output image data storage area 33 is an area for temporarily storing output image data (image data representing an image for printing) to be transferred to the print control unit 15. Since the still image file is composed of one image data, this one image data is arranged in the entire output image data storage area 33. On the other hand, since the moving image file arranges and outputs a plurality of frame images, each frame image data is arranged at a corresponding position in each arrangement area equally divided by the number of arrangement frames to be arranged.

拡大/縮小画像データ記憶領域34は、画像データをあらかじめ決められたサムネイル画像のサイズに変換(拡大又は縮小)処理した画像データを記憶するための領域である。
フレーム画像情報記憶領域35は、フレーム配置画像に配置するフレーム画像に関する情報を記憶するための領域である。具体的には、図5に示すように、フレーム画像情報記憶領域35は、フレーム配置位置番号記憶領域71、動画ファイル名記憶領域72、抽出フレーム番号記憶領域73、オフセットサイズ情報記憶領域74及びフレームサイズ情報記憶領域75を備えている。
The enlarged / reduced image data storage area 34 is an area for storing image data obtained by converting (enlarging or reducing) the image data into a predetermined thumbnail image size.
The frame image information storage area 35 is an area for storing information relating to the frame image to be arranged in the frame arrangement image. Specifically, as shown in FIG. 5, the frame image information storage area 35 includes a frame arrangement position number storage area 71, a moving picture file name storage area 72, an extracted frame number storage area 73, an offset size information storage area 74, and a frame. A size information storage area 75 is provided.

フレーム配置位置番号記憶領域71は、フレーム配置画像におけるフレーム画像の配置位置に対応した番号(0〜8の番号であり、以下「フレーム配置位置番号」という。)を記憶するための領域である。具体的には、フレーム配置画像における配置位置には、1番上の列の左から「0」,「1」,「2」、2番目の列の左から「3」,「4」,「5」、3番目の列の左から「6」,「7」,「8」の番号が対応づけられている。   The frame arrangement position number storage area 71 is an area for storing numbers corresponding to the arrangement positions of the frame images in the frame arrangement image (numbers 0 to 8, hereinafter referred to as “frame arrangement position numbers”). Specifically, the arrangement position in the frame arrangement image is “0”, “1”, “2” from the left in the top row, and “3”, “4”, “from the left in the second row. “5”, numbers “6”, “7”, “8” from the left in the third column are associated with each other.

動画ファイル名記憶領域72は、フレーム画像データの抽出元である動画像ファイルのファイル名を記憶するための領域である。
抽出フレーム番号記憶領域73は、フレーム画像が元の動画像ファイルの何フレーム目に当たるかを示す数値(フレーム番号)である抽出フレーム番号を記憶するための領域である。なお、本実施形態では、先頭のフレーム画像のフレーム番号を「0」としている。
The moving image file name storage area 72 is an area for storing the file name of a moving image file from which frame image data is extracted.
The extracted frame number storage area 73 is an area for storing an extracted frame number that is a numerical value (frame number) indicating which frame of the original moving image file the frame image corresponds to. In the present embodiment, the frame number of the first frame image is “0”.

オフセットサイズ情報記憶領域74は、フレーム画像の動画像ファイルにおける位置を特定する情報を記憶するための領域である。具体的には、オフセットサイズ情報記憶領域74には、フレーム画像データの先頭が元の動画像ファイルの先頭から何バイト目に当たるかを示すオフセットサイズが、数値(この例ではバイト単位の数値)として記憶されている。すなわち、動画像ファイルのファイル構造は、先頭のヘッダ情報と末尾のインデックス情報との間に、フレーム画像データが順に配置された構造となっており、ここでいうオフセットサイズとは、動画像ファイルの先頭(つまりヘッダ情報の先頭)から抽出対象のフレーム画像データの先頭までのデータサイズのことである。なお、オフセットサイズをキロバイト単位でなくバイト単位で記憶するのは、フレーム画像データの位置を正確に特定するためである。   The offset size information storage area 74 is an area for storing information for specifying the position of the frame image in the moving image file. Specifically, in the offset size information storage area 74, an offset size indicating how many bytes the head of the frame image data corresponds to from the head of the original moving image file is a numerical value (in this example, a numerical value in units of bytes). It is remembered. That is, the file structure of a moving image file is a structure in which frame image data is sequentially arranged between the header information at the beginning and the index information at the end. The offset size here is the moving image file's file structure. This is the data size from the beginning (that is, the beginning of the header information) to the beginning of the frame image data to be extracted. The reason why the offset size is stored in bytes instead of kilobytes is to accurately specify the position of the frame image data.

フレームサイズ情報記憶領域75は、フレーム画像データのデータサイズ(伸張(デコード)処理前の圧縮状態(例えばJPEG形式)でのデータサイズ)を記憶するための領域であり、データサイズが数値(この例ではバイト単位の数値)として記憶されている。   The frame size information storage area 75 is an area for storing the data size of frame image data (data size in a compressed state (for example, JPEG format) before decompression (decoding) processing), and the data size is a numerical value (in this example) Is stored as a numerical value in bytes.

図1に戻り、第1フレーム画像データ記憶領域36は、動画像ファイルから抽出したフレーム画像データを一時的に記憶するための領域である。この領域に記憶されるフレーム画像データは、伸張処理前の圧縮状態の画像データである。   Returning to FIG. 1, the first frame image data storage area 36 is an area for temporarily storing the frame image data extracted from the moving image file. The frame image data stored in this area is image data in a compressed state before decompression processing.

第2フレーム画像データ記憶領域37は、動画像ファイルから抽出したフレーム画像データであって、第1フレーム画像データ記憶領域36に記憶されるフレーム画像データとの差分(フレーム間差分)を算出するためのフレーム画像データを一時的に記憶するための領域である。この領域に記憶されるフレーム画像データも、伸張処理前の圧縮状態の画像データである。   The second frame image data storage area 37 is frame image data extracted from the moving image file, and is used for calculating a difference (interframe difference) from the frame image data stored in the first frame image data storage area 36. This is an area for temporarily storing the frame image data. The frame image data stored in this area is also image data in a compressed state before decompression processing.

フレーム差分情報記憶領域38は、フレーム間差分の算出元となるフレーム画像データの番号と、フレーム間差分とを記憶するための領域である。具体的には、図6に示すように、フレーム差分情報記憶領域38は、差分情報番号記憶領域81、第1差分取得フレーム番号記憶領域82、第2差分取得フレーム番号記憶領域83及び判定値記憶領域84を備えている。   The frame difference information storage area 38 is an area for storing the number of frame image data from which the inter-frame difference is calculated and the inter-frame difference. Specifically, as illustrated in FIG. 6, the frame difference information storage area 38 includes a difference information number storage area 81, a first difference acquisition frame number storage area 82, a second difference acquisition frame number storage area 83, and a determination value storage. A region 84 is provided.

差分情報番号記憶領域81は、フレーム間差分の情報を管理するための通し番号である差分情報番号を記憶するための領域である。
第1差分取得フレーム番号記憶領域82は、フレーム間差分を取得するための1つ目のフレーム画像データ(第1差分取得フレーム)のフレーム番号を記憶するための領域である。
The difference information number storage area 81 is an area for storing a difference information number, which is a serial number for managing information on interframe differences.
The first difference acquisition frame number storage area 82 is an area for storing the frame number of the first frame image data (first difference acquisition frame) for acquiring the inter-frame difference.

第2差分取得フレーム番号記憶領域83は、フレーム間差分を取得するための2つ目のフレーム画像データ(第2差分取得フレーム)のフレーム番号を記憶するための領域である。   The second difference acquisition frame number storage area 83 is an area for storing the frame number of the second frame image data (second difference acquisition frame) for acquiring the inter-frame difference.

判定値記憶領域84は、補完フレーム画像の挿入位置を決定するための判定値を記憶する領域である。本実施形態では、第1差分取得フレーム番号記憶領域82及び第2差分取得フレーム番号記憶領域83に記憶されたフレーム番号に対応するフレーム画像データのフレーム間差分(絶対値)を判定値として記憶する。   The determination value storage area 84 is an area for storing a determination value for determining the insertion position of the complementary frame image. In the present embodiment, the inter-frame difference (absolute value) of the frame image data corresponding to the frame numbers stored in the first difference acquisition frame number storage area 82 and the second difference acquisition frame number storage area 83 is stored as a determination value. .

図1に戻り、補完フレーム画像データ記憶領域39は、動画像ファイルの表す動画像を構成する総フレーム数が配置フレーム数(本実施形態では9個)よりも少ない場合に生成される補完フレーム画像データ(伸張処理後の状態(RGB形式)の画像データ)を記憶するための領域である。具体的には、補完フレーム画像データ記憶領域39は、「配置フレーム数−1」の領域(1番目から8番目までの8個の領域)に分割されている。   Returning to FIG. 1, the complementary frame image data storage area 39 is a complementary frame image generated when the total number of frames constituting the moving image represented by the moving image file is smaller than the number of arranged frames (9 in the present embodiment). This is an area for storing data (image data in an expanded state (RGB format)). Specifically, the complementary frame image data storage area 39 is divided into “number of arrangement frames−1” areas (eight areas from the first to the eighth).

印刷データ記憶領域40は、出力画像データの表す画像を実際に印刷するための画像データ(CMYKの二値画像データなど)を一時的に記憶しておくための領域である。
一時変数記憶領域41は、変数やカウンタなど、一時的な情報を記憶するための領域である。
The print data storage area 40 is an area for temporarily storing image data (such as CMYK binary image data) for actually printing the image represented by the output image data.
The temporary variable storage area 41 is an area for storing temporary information such as variables and counters.

サムネイル画像データ記憶領域42は、印刷対象の画像ファイルをユーザに選択させるために液晶表示部16に表示するサムネイル画像を表すサムネイル画像データを一時的に記憶しておくための領域である。   The thumbnail image data storage area 42 is an area for temporarily storing thumbnail image data representing a thumbnail image to be displayed on the liquid crystal display unit 16 so that the user can select an image file to be printed.

[3.CPUが実行する処理]
次に、画像ファイルの記憶されているメディアカードがメディアカードスロット18に挿入されている状態で、「メディア画像印刷」モードを選択するユーザの操作が操作入力部17で行われることにより、複合機10のCPU11が実行するメディア画像印刷処理について、図7のフローチャートを用いて説明する。
[3. Processing executed by CPU]
Next, when the media card storing the image file is inserted into the media card slot 18, a user's operation for selecting the “media image printing” mode is performed on the operation input unit 17, so that the multifunction device The media image printing process executed by the CPU 11 will be described with reference to the flowchart of FIG.

CPU11は、このメディア画像印刷処理を開始すると、まずS101で、メディアカードに記憶されている画像ファイルごとにファイル名及びファイルサイズを読み出し、入力画像情報記憶領域31の入力画像ファイル名記憶領域52及び入力画像ファイルサイズ記憶領域53に順に記憶するメディア情報抽出処理を行う。なお、このメディア情報抽出処理では、メディアカードから読み出された情報に対して入力画像IDが0から順に割り振られて入力画像ID記憶領域51に記憶される。   When starting the media image printing process, the CPU 11 first reads out the file name and file size for each image file stored in the media card in S101, and reads the input image file name storage area 52 in the input image information storage area 31 and Media information extraction processing for sequentially storing in the input image file size storage area 53 is performed. In this media information extraction process, input image IDs are assigned in order from 0 to the information read from the media card and stored in the input image ID storage area 51.

続いて、S102では、メディアカードに記憶されている画像ファイルの内容を把握可能なサムネイル画像を液晶表示部16に表示して、印刷対象の画像ファイルをユーザに選択させる印刷画像選択処理を行う。具体的には、1つのサムネイル画像を液晶表示部16に表示し、操作入力部17の上キー、下キー、左キー又は右キーの押操作に応じて液晶表示部16に表示されるサムネイル画像を他の画像ファイルのものに変更し、OKキーの押操作時に表示されているサムネイル画像に対応する画像ファイルを印刷対象として選択する。本実施形態では、動画像ファイルについては、その先頭のフレーム画像をサムネイル画像として表示するとともに、動画像データであることを示すアイコンを所定位置(例えばサムネイル画像における左上位置)に表示し、静止画像データについては静止画像をサムネイル画像として表示する(アイコンは表示しない)。ここで、サムネイル画像を表す画像データは、元画像(静止画像又は動画像の先頭のフレーム画像)を縮小することにより生成されてサムネイル画像データ記憶領域42に記憶され、この画像データの表すサムネイル画像が液晶表示部16に表示される。   Subsequently, in S102, a thumbnail image capable of grasping the contents of the image file stored in the media card is displayed on the liquid crystal display unit 16, and a print image selection process for allowing the user to select an image file to be printed is performed. Specifically, one thumbnail image is displayed on the liquid crystal display unit 16, and the thumbnail image displayed on the liquid crystal display unit 16 in response to the operation of the upper key, the lower key, the left key, or the right key of the operation input unit 17. Is changed to that of another image file, and the image file corresponding to the thumbnail image displayed when the OK key is pressed is selected as the print target. In the present embodiment, for a moving image file, the top frame image is displayed as a thumbnail image, and an icon indicating moving image data is displayed at a predetermined position (for example, the upper left position in the thumbnail image), and a still image is displayed. For data, a still image is displayed as a thumbnail image (no icon is displayed). Here, the image data representing the thumbnail image is generated by reducing the original image (the still image or the first frame image of the moving image) and stored in the thumbnail image data storage area 42, and the thumbnail image representing the image data is displayed. Is displayed on the liquid crystal display unit 16.

続いて、S103では、S102で印刷対象として選択された画像ファイルに基づく出力画像を表す出力画像データを生成する出力画像生成処理を実行する。
ここで、出力画像生成処理の詳細について図8のフローチャートを用いて説明する。
Subsequently, in S103, output image generation processing for generating output image data representing an output image based on the image file selected as the print target in S102 is executed.
Here, the details of the output image generation processing will be described with reference to the flowchart of FIG.

CPU11は、この出力画像生成処理を開始すると、まずS201で、印刷対象の画像ファイルの入力画像ID(入力画像ID記憶領域51に記憶されている値)を読み出す。
続いて、S202では、S201で読み出した入力画像IDの画像ファイルの種類が静止画像ファイル及び動画像ファイルのうちのいずれに分類されるものであるかを、そのヘッダ情報などを参照して判定する。具体的には、例えば、JPEG形式の静止画像ファイルは先頭データが16進数でFFD8から始まり、AVI形式の動画像ファイルは先頭データが文字列に直して”RIFF”から始まるなどの特徴がある。このため、画像ファイルの先頭数バイトを分析することで、画像ファイルの種類を判定することができる。なお、本実施形態では、動画像ファイルの形式であっても、フレーム画像が1個しか存在しない場合には静止画像ファイルとみなして処理する。
When the output image generation processing is started, the CPU 11 first reads out the input image ID (value stored in the input image ID storage area 51) of the image file to be printed in S201.
Subsequently, in S202, it is determined with reference to the header information or the like whether the type of the image file of the input image ID read in S201 is classified as a still image file or a moving image file. . More specifically, for example, the JPEG format still image file has a feature that the top data starts with FFD8 in hexadecimal, and the AVI format video file starts with “RIFF” with the top data converted to a character string. Therefore, the type of the image file can be determined by analyzing the first few bytes of the image file. In the present embodiment, even if the format is a moving image file, if there is only one frame image, it is processed as a still image file.

そして、S202で、画像ファイルの種類が動画像ファイルであると判定した場合には、S203へ移行し、この動画像ファイルから各種情報を取得する。具体的には、動画像ファイルのフォーマット種別情報、コーデック種別情報、横方向サイズ情報、縦方向サイズ情報及び総フレーム数情報を取得する。こうして取得された各情報は、動画像情報記憶領域32内のフォーマット種別記憶領域61、コーデック種別記憶領域62、横方向サイズ記憶領域63、縦方向サイズ記憶領域64及び総フレーム数記憶領域65にそれぞれ記憶される。なお、これらのパラメータは、一般的には動画像ファイルのヘッダなどに記述されている。   If it is determined in S202 that the type of the image file is a moving image file, the process proceeds to S203, and various information is acquired from the moving image file. Specifically, the format type information, codec type information, horizontal size information, vertical size information, and total frame number information of the moving image file are acquired. Each information acquired in this way is stored in the format type storage area 61, codec type storage area 62, horizontal size storage area 63, vertical size storage area 64, and total frame number storage area 65 in the moving image information storage area 32, respectively. Remembered. These parameters are generally described in the header of a moving image file.

続いて、S204では、抽出対象のフレーム画像データそれぞれについて、抽出フレーム画像情報(オフセットサイズ及び伸張処理前のデータサイズ)を抽出する。本実施形態において、抽出対象のフレーム画像データとは、動画像を構成するすべてのフレーム画像のうち、先頭及び末尾(最終)のフレーム画像と、これらの間を8等分した各等分位置(正確に等分できない場合は近似位置)の7個のフレーム画像とからなる計9個のフレーム画像のデータである。つまり、動画像において時系列的に互いに等間隔な関係にある9個のフレーム画像を抽出対象とする。なお、抽出対象のフレーム画像データの数は通常は9個であるが、総フレーム数が配置フレーム数である9個に満たない場合には9個未満となる。   In step S204, extracted frame image information (offset size and data size before decompression processing) is extracted for each frame image data to be extracted. In the present embodiment, the frame image data to be extracted is the first and last (final) frame images of all the frame images constituting the moving image, and each equally-divided position obtained by dividing them into eight ( The data is a total of nine frame images consisting of seven frame images at approximate positions if they cannot be accurately divided equally. In other words, nine frame images that are equally spaced in time series in the moving image are extracted. Note that the number of frame image data to be extracted is normally nine. However, when the total number of frames is less than nine, which is the number of arranged frames, the number is less than nine.

続いて、S205では、S204で抽出した抽出フレーム画像情報(オフセットサイズ及び伸張処理前のデータサイズ)を、フレーム画像情報記憶領域35における各フレーム画像データに対応する番号(フレーム配置位置番号記憶領域71の番号)の領域に記憶する。   Subsequently, in S205, the extracted frame image information (offset size and data size before decompression processing) extracted in S204 is a number corresponding to each frame image data in the frame image information storage area 35 (frame arrangement position number storage area 71). The number is stored in the area.

続いて、S206では、動画像ファイルの表す動画像を構成する総フレーム数が配置フレーム数である9個未満であるか否かを判定する。
そして、S206で、総フレーム数が配置フレーム数未満であると判定した場合には、補完フレーム画像を挿入するための処理(S207〜S210)を実行する。すなわち、まずS207では、動画像を構成するすべてのフレーム画像について、時系列的に連続するフレーム画像間の差分(フレーム間差分)を算出するフレーム差分算出処理を実行する。
Subsequently, in S206, it is determined whether or not the total number of frames constituting the moving image represented by the moving image file is less than the number of arranged frames.
If it is determined in S206 that the total number of frames is less than the number of arranged frames, processing (S207 to S210) for inserting a complementary frame image is executed. That is, first, in S207, a frame difference calculation process for calculating a difference (interframe difference) between time-sequential frame images is executed for all frame images constituting the moving image.

ここで、フレーム差分算出処理の詳細について図9のフローチャートを用いて説明する。
CPU11は、このフレーム差分算出処理を開始すると、まずS301で、一時変数記憶領域41にフレームカウンタを生成し、これを0で初期化する。
Here, details of the frame difference calculation processing will be described with reference to the flowchart of FIG.
When starting the frame difference calculation process, the CPU 11 first generates a frame counter in the temporary variable storage area 41 and initializes it to 0 in S301.

続いて、S302では、フレームカウンタの値に対応する番号(フレーム配置位置番号記憶領域71の番号)のフレーム画像データを、そのオフセットサイズ及びデータサイズに基づき動画像ファイルから抽出する。   Subsequently, in S302, frame image data having a number corresponding to the value of the frame counter (the number of the frame arrangement position number storage area 71) is extracted from the moving image file based on the offset size and the data size.

続いて、S303では、S302で抽出したフレーム画像データを、第1フレーム画像データ記憶領域36に記憶する。
続いて、S304では、S302と同様の手法で、「フレームカウンタの値+1」に対応する番号のフレーム画像データを動画像ファイルから抽出する。
Subsequently, in S303, the frame image data extracted in S302 is stored in the first frame image data storage area.
Subsequently, in S304, frame image data having a number corresponding to “frame counter value + 1” is extracted from the moving image file in the same manner as in S302.

続いて、S305では、S304で抽出したフレーム画像データを、第2フレーム画像データ記憶領域37に記憶する。
続いて、S306では、第1フレーム画像データ記憶領域36及び第2フレーム画像データ記憶領域37のそれぞれに記憶したフレーム画像データの差分を算出する。具体的には、これら2つのフレーム画像データに伸張処理を施し、各座標位置単位で画素値の差分の絶対値を算出する。これを、RGBそれぞれについて全座標分算出し、この合計値をフレーム間差分とする。なお、伸張データの記憶領域は、一時変数記憶領域41に各々1ピクセル分の画素値を記憶するための変数を用意することで確保する。点順次作業可能なので、画像を記憶するための専用領域を設ける必要はない。
Subsequently, in S305, the frame image data extracted in S304 is stored in the second frame image data storage area 37.
Subsequently, in S306, the difference between the frame image data stored in each of the first frame image data storage area 36 and the second frame image data storage area 37 is calculated. Specifically, the two frame image data are expanded, and the absolute value of the difference between the pixel values is calculated for each coordinate position unit. This is calculated for all coordinates for each of RGB, and this total value is used as the interframe difference. Note that the decompression data storage area is secured by preparing variables for storing pixel values for one pixel in the temporary variable storage area 41. Since dot sequential work is possible, there is no need to provide a dedicated area for storing images.

続いて、S307では、フレーム差分情報記憶領域38におけるフレームカウンタの値に対応する番号(差分情報番号記憶領域81の番号)の第1差分取得フレーム番号記憶領域82にフレームカウンタの値を、第2差分取得フレーム番号記憶領域83に「フレームカウンタの値+1」を、判定値記憶領域84にS306で算出したフレーム間差分を、それぞれ記憶する。   Subsequently, in S307, the value of the frame counter is stored in the first difference acquisition frame number storage area 82 of the number corresponding to the value of the frame counter in the frame difference information storage area 38 (the number of the difference information number storage area 81). “Frame counter value + 1” is stored in the difference acquisition frame number storage area 83, and the inter-frame difference calculated in S 306 is stored in the determination value storage area 84.

続いて、S308では、フレームカウンタの値に1を加算する。
続いて、S309では、フレームカウンタの値が「総フレーム数−1」に達した(すべてのフレーム画像間についてフレーム間差分を算出した)か否かを判定する。
Subsequently, in S308, 1 is added to the value of the frame counter.
Subsequently, in S309, it is determined whether or not the value of the frame counter has reached “total number of frames−1” (difference between frames is calculated for all frame images).

そして、S309で、フレームカウンタの値が「総フレーム数−1」に達していないと判定した場合には、S302へ戻り、加算されたフレームカウンタの値に基づき前述した処理を行う。   If it is determined in S309 that the value of the frame counter has not reached “total number of frames−1”, the process returns to S302, and the above-described processing is performed based on the added value of the frame counter.

一方、S309で、フレームカウンタの値が「総フレーム数−1」に達したと判定した場合には、本フレーム差分算出処理を終了する。
図8に戻り、S208では、配置フレーム数から総フレーム数を引いた数(不足数)を、補完フレーム画像を生成する数(補完フレーム数)に決定する。
On the other hand, if it is determined in S309 that the value of the frame counter has reached “total number of frames−1”, the frame difference calculation process is terminated.
Returning to FIG. 8, in S <b> 208, the number obtained by subtracting the total number of frames from the number of arranged frames (number of deficiencies) is determined as the number for generating the complement frame image (number of complement frames).

続いて、S209では、補完フレーム画像の挿入位置及び画像の内容(複製対象のフレーム画像)を決定する。具体的には、フレーム差分情報記憶領域38及びフレーム画像情報記憶領域35の情報を次の(1)〜(4)の手順で更新する処理を行う。   Subsequently, in S209, the insertion position of the complementary frame image and the content of the image (the frame image to be copied) are determined. Specifically, processing for updating the information in the frame difference information storage area 38 and the frame image information storage area 35 in the following procedures (1) to (4) is performed.

(1)フレーム差分情報記憶領域38の判定値記憶領域84に記憶されている判定値の最小値を検索し、その判定値を2倍の値に書き換えるとともに、その判定値に対応する(差分情報番号が同一の)第1差分取得フレームのフレーム番号(第1差分取得フレーム番号記憶領域82に記憶されている値)を読み出す。つまり、判定値が最も小さいフレーム画像間を補完フレーム画像の挿入位置に決定し、その挿入位置前後の2つのフレーム画像のうち、挿入位置の前のフレーム画像のフレーム番号を読み出す。なお、判定値を2倍の値に書き換えるのは、以降の処理において同じ判定値(挿入位置)が連続して選択されにくくするためである。すなわち、多数の補完フレーム画像が同一のフレーム画像間に挿入されると、その部分の動きが止まって見えることにより流れの違和感が大きくなってしまうため、挿入位置が集中しないようにしている。   (1) The minimum value of the judgment value stored in the judgment value storage area 84 of the frame difference information storage area 38 is searched, the judgment value is rewritten to a double value, and the judgment value corresponds to the judgment value (difference information The frame number of the first difference acquisition frame (the number is the same) (the value stored in the first difference acquisition frame number storage area 82) is read. That is, the frame image having the smallest determination value is determined as the insertion position of the complementary frame image, and the frame number of the frame image before the insertion position is read out from the two frame images before and after the insertion position. The reason why the determination value is rewritten to a double value is to make it difficult to continuously select the same determination value (insertion position) in subsequent processing. In other words, when a large number of complementary frame images are inserted between the same frame images, the movement of the portions seem to stop and the flow becomes uncomfortable, so that the insertion position is not concentrated.

(2)フレーム画像情報記憶領域35のフレーム配置位置番号記憶領域71に記憶されているフレーム配置位置番号の値の小さいものから順に、上記(1)で読み出した値の抽出フレーム番号(抽出フレーム番号記憶領域73に記憶されている値)を検索し、検索された抽出フレーム番号に対応するフレーム配置位置番号(フレーム配置位置番号記憶領域71に記憶されている値)を読み出す。つまり、ここで読み出される番号は、挿入位置の前のフレーム画像のフレーム配置画像における配置位置である。   (2) Extracted frame numbers (extracted frame numbers) of the values read in (1) in order from the smallest frame placement position number stored in the frame placement position number storage area 71 of the frame image information storage area 35 The value stored in the storage area 73) is searched, and the frame arrangement position number (value stored in the frame arrangement position number storage area 71) corresponding to the extracted extracted frame number is read. That is, the number read here is the arrangement position in the frame arrangement image of the frame image before the insertion position.

(3)フレーム画像情報記憶領域35において、上記(2)で読み出したフレーム配置位置番号の値よりも大きいフレーム配置位置番号に1を加算し、上記(2)で読み出したフレーム配置位置番号の行を新設する。つまり、補完フレーム画像の挿入位置を確保するため、挿入位置よりも後ろのフレーム画像の配置位置を1つずつずらすようにしている。   (3) In the frame image information storage area 35, 1 is added to the frame arrangement position number larger than the value of the frame arrangement position number read in (2) above, and the row of the frame arrangement position number read out in (2) above Is newly established. That is, in order to secure the insertion position of the complementary frame image, the arrangement position of the frame image behind the insertion position is shifted one by one.

(4)上記(3)で新設した行に、挿入位置前後のフレーム画像のうちの一方の情報をコピーする。具体的には、フレーム配置画像における補完フレーム画像の配置が右端の場合(換言すれば、新設した行のフレーム配置位置番号が2又は5の場合)には、挿入位置の後ろのフレーム画像の情報(新設した行の次の行の情報)をコピーする。一方、それ以外の場合には、挿入位置の前のフレーム画像の情報(新設した行の1つ前の行の情報)をコピーする。   (4) Copy one piece of information of the frame images before and after the insertion position to the line newly established in (3) above. Specifically, when the arrangement of the complementary frame image in the frame arrangement image is at the right end (in other words, when the frame arrangement position number of the newly established row is 2 or 5), information on the frame image behind the insertion position (Information on the next line after the newly created line) is copied. On the other hand, in other cases, the information of the frame image before the insertion position (information of the line immediately before the newly established line) is copied.

続いて、S210では、S208で決定した補完フレーム数分の補完フレーム画像についてS209で挿入位置及び画像の内容を決定したか否かを判定する。具体的には、初期値(出力画像生成処理開始時の値)が0の生成フレーム数カウンタを一時変数記憶領域41にあらかじめ用意しておき、S209の処理が終了するごとに生成フレーム数カウンタの値に1を加算する。そして、この値が補完フレーム数に達した場合に、補完フレーム数分の補完フレーム画像データを生成したと判定する。   Subsequently, in S210, it is determined whether or not the insertion position and the content of the image have been determined in S209 for the number of complementary frame images determined in S208. Specifically, a generated frame number counter whose initial value (value at the start of output image generation processing) is 0 is prepared in advance in the temporary variable storage area 41, and the generated frame number counter is set every time the processing of S209 is completed. Add 1 to the value. When this value reaches the number of complementary frames, it is determined that complementary frame image data for the number of complementary frames has been generated.

そして、S210で、補完フレーム数分の補完フレーム画像について挿入位置及び画像の内容を決定していないと判定した場合には、S209へ戻る。つまり、補完フレーム数分の補完フレーム画像について挿入位置及び画像の内容が決定されるまでS209の処理が繰り返される。   If it is determined in S210 that the insertion position and the content of the image have not been determined for the complementary frame images for the number of complementary frames, the process returns to S209. That is, the processing of S209 is repeated until the insertion position and the content of the image are determined for the complementary frame images for the number of complementary frames.

一方、S210で、補完フレーム数分の補完フレーム画像について挿入位置及び画像の内容を決定したと判定した場合や、S206で、総フレーム数が配置フレーム数未満でない(配置フレーム数以上である)と判定した場合には、フレーム配置画像に配置すべきフレーム画像(補完フレーム画像が含まれ得る。)を表すフレーム画像データを出力画像データ記憶領域33に配置する処理(S211〜S215)へ移行する。具体的には、配置すべきフレーム画像データを順に処理対象として選択し、処理対象のフレーム画像データについてS211〜S214の処理を行う。これを配置フレーム数分(9回)繰り返すことになる。具体的には、初期値(出力画像生成処理開始時の値)が0の処理フレーム画像数カウンタを一時変数記憶領域41にあらかじめ用意しておき、この処理フレーム画像数カウンタの値に対応するフレーム画像データを処理対象とする。なお、この処理フレーム画像数カウンタの値は、後述するように、処理対象のフレーム画像データについての処理が完了するごとに加算される。   On the other hand, when it is determined in S210 that the insertion position and the content of the image have been determined for the complementary frame images for the number of complementary frames, or in S206, the total number of frames is not less than the number of arranged frames (is more than the number of arranged frames). If it is determined, the process proceeds to processing (S211 to S215) in which frame image data representing a frame image (which may include a complementary frame image) to be arranged in the frame arrangement image is arranged in the output image data storage area 33. Specifically, the frame image data to be arranged is sequentially selected as a processing target, and the processing of S211 to S214 is performed on the processing target frame image data. This is repeated for the number of arrangement frames (9 times). Specifically, a processing frame image number counter whose initial value (value at the start of output image generation processing) is 0 is prepared in advance in the temporary variable storage area 41, and a frame corresponding to the value of this processing frame image number counter is prepared. Image data is a processing target. Note that the value of the processing frame image number counter is added every time processing for the processing target frame image data is completed, as will be described later.

S211では、処理対象のフレーム画像データをオフセットサイズ情報記憶領域74に記憶されているオフセットサイズ及びフレームサイズ情報記憶領域75に記憶されている伸張処理前のデータサイズに基づき動画像ファイルから読み出す処理を行う。   In S211, processing for reading out the frame image data to be processed from the moving image file based on the offset size stored in the offset size information storage area 74 and the data size before decompression stored in the frame size information storage area 75 is performed. Do.

続いて、S212では、S211で読み出したフレーム画像データ(伸張処理前の画像データ)を、第1フレーム画像データ記憶領域36に記憶する。
続いて、S213では、第1フレーム画像データ記憶領域36に記憶されているフレーム画像データに伸張処理を施し、フレーム画像データをピクセル演算が可能な形式(ピクセルごとにRGB値をそれぞれ0〜255の値で表した画像データ)に変換する。
Subsequently, in S212, the frame image data (image data before decompression processing) read in S211 is stored in the first frame image data storage area 36.
Subsequently, in S213, the frame image data stored in the first frame image data storage area 36 is subjected to decompression processing so that the frame image data can be subjected to pixel calculation (RGB values of 0 to 255 for each pixel, respectively). Image data represented by a value).

続いて、S214では、処理対象のフレーム画像データ(伸張処理後のピクセルデータ)を、出力画像データ記憶領域33における各フレーム画像に対応した位置に記憶する。
続いて、S215では、すべてのフレーム画像データを出力画像データ記憶領域33に配置したか否かを判定する。具体的には、1つのフレーム画像データについて処理が完了するごとに、処理フレーム画像数カウンタの値に1を加算し、この処理フレーム画像数カウンタの値が配置フレーム数に達したか否かを判定することで、すべてのフレーム画像データを配置したか否かを判定する。
Subsequently, in S214, the processing target frame image data (decompressed pixel data) is stored at a position corresponding to each frame image in the output image data storage area 33.
Subsequently, in S215, it is determined whether or not all the frame image data has been arranged in the output image data storage area 33. Specifically, every time processing is completed for one frame image data, 1 is added to the value of the processing frame image number counter, and whether or not the value of the processing frame image number counter has reached the number of arranged frames is determined. By determining, it is determined whether or not all the frame image data are arranged.

そして、S215で、すべてのフレーム画像データを配置していないと判定した場合には、S211へ戻り、未処理のフレーム画像データを処理対象として前述した処理を行う。   If it is determined in S215 that all the frame image data has not been arranged, the process returns to S211 and the above-described processing is performed on unprocessed frame image data.

一方、S215で、すべてのフレーム画像データを配置したと判定した場合には、本出力画像生成処理を終了する。なお、この時点で出力画像データ記憶領域33に記憶されている画像データが、動画像ファイルの出力画像データである。   On the other hand, if it is determined in S215 that all the frame image data has been arranged, the output image generation process is terminated. Note that the image data stored in the output image data storage area 33 at this time is the output image data of the moving image file.

また、前述したS202で、画像ファイルの種類が静止画像ファイルであると判定した場合には、S216へ移行し、この静止画像ファイルに伸張処理を施し、データをピクセル演算が可能な形式に変換する。   If it is determined in S202 that the type of the image file is a still image file, the process proceeds to S216, the still image file is expanded, and the data is converted into a format capable of pixel calculation. .

続いて、S217では、S216で伸張処理した画像データを出力画像データ記憶領域33に記憶した後、本出力画像生成処理を終了する。つまり、静止画像ファイルの場合には、動画像ファイルと異なり、静止画像は出力画像データ記憶領域33に1つしか配置されない。なお、この時点で出力画像データ記憶領域33に記憶されている画像データが、静止画像ファイルの出力画像データである。   Subsequently, in S217, the image data expanded in S216 is stored in the output image data storage area 33, and then the output image generation process is terminated. That is, in the case of a still image file, unlike a moving image file, only one still image is arranged in the output image data storage area 33. Note that the image data stored in the output image data storage area 33 at this time is the output image data of the still image file.

図7に戻り、S104では、出力画像データ記憶領域33に記憶されている出力画像データの表す画像を印刷するための画像印刷処理を実行する。この画像印刷処理では、出力画像データ記憶領域33に記憶されている出力画像データを、1ライン単位で印刷データ記憶領域40にコピーし、色変換処理(RGB→CMYK)及び二値化処理を行った後、印刷制御部15へ出力する。これにより、印刷制御部15で二値データに基づく印刷が行われる。その後、本メディア画像印刷処理を終了する。   Returning to FIG. 7, in S <b> 104, an image printing process for printing an image represented by the output image data stored in the output image data storage area 33 is executed. In this image printing process, the output image data stored in the output image data storage area 33 is copied to the print data storage area 40 line by line, and color conversion processing (RGB → CMYK) and binarization processing are performed. After that, the data is output to the print control unit 15. As a result, the printing control unit 15 performs printing based on the binary data. Thereafter, the media image printing process ends.

[4.効果]
以上説明したように、本実施形態の複合機10によれば、動画像から抽出可能なフレーム画像の総数が配置フレーム数未満である場合にも、余白のない(より見栄えのよい)フレーム配置画像を印刷することができる。
[4. effect]
As described above, according to the multifunction machine 10 of the present embodiment, even when the total number of frame images that can be extracted from a moving image is less than the number of arranged frames, there is no blank space (which looks better). Can be printed.

特に、この複合機10では、フレーム間差分が小さいフレーム画像間を補完フレーム画像の挿入位置とし、その挿入位置前後の2つのフレーム画像のうちの一方を複製した複製画像を補完フレーム画像としてその挿入位置に挿入する。このため、補完フレーム画像を目立ちにくい形で(換言すれば、本来の動画像のオリジナリティが損なわれにくいように)挿入することができ、しかも、補完フレーム画像を生成する処理を簡素化することができる。すなわち、フレーム間差分の大きいフレーム画像A,B間にこれらの一方を複製した複製画像Cを挿入した場合、フレーム画像Aから複製画像Cへの動きと、複製画像Cからフレーム画像Aへの動きとのギャップが大きくなるため、違和感が生じやすい。このような違和感は、フレーム画像A,B間のフレーム間差分が小さいほど生じにくくなる。   In particular, in this multi-function device 10, a frame image having a small inter-frame difference is set as an insertion position of a complementary frame image, and a duplicate image obtained by duplicating one of two frame images before and after the insertion position is inserted as a complementary frame image. Insert in position. For this reason, it is possible to insert the complement frame image in an inconspicuous form (in other words, so that the original originality of the moving image is not easily lost), and to simplify the process of generating the complement frame image. it can. That is, when a duplicate image C in which one of these is duplicated is inserted between the frame images A and B having a large inter-frame difference, the movement from the frame image A to the duplicate image C and the movement from the duplicate image C to the frame image A The gap between and becomes larger, so it is easy to feel uncomfortable. Such a sense of discomfort is less likely to occur as the inter-frame difference between the frame images A and B is smaller.

しかも、この複合機10では、挿入位置前後の2つのフレーム画像が異なる列に配置される場合には、補完フレーム画像とは異なる列に配置される方を複製対象とする。このため、補完フレーム画像とその複製元のフレーム画像とが異なる列に配置されやすくすることができ、補完フレーム画像とその複製元のフレーム画像とが並んで配置されることによる違和感を生じにくくすることができる。   In addition, in the multi-function device 10, when two frame images before and after the insertion position are arranged in different columns, the one arranged in a column different from the complementary frame image is set as a duplication target. For this reason, the complement frame image and the copy source frame image can be easily arranged in different columns, and the discomfort caused by arranging the complement frame image and the copy source frame image side by side is less likely to occur. be able to.

[5.特許請求の範囲との対応]
なお、本実施形態の複合機10では、S103の処理を実行するCPU11が配置画像生成手段に相当し、S104の処理を実行するCPU11が出力手段に相当する。また、S207の処理を実行するCPU11が変化量算出手段に相当し、S208〜S210の処理を実行するCPU11が挿入位置決定手段に相当し、S211〜S215の処理を実行するCPU11が補完手段に相当する。
[5. Correspondence with Claims]
In the MFP 10 of the present embodiment, the CPU 11 that executes the process of S103 corresponds to a layout image generation unit, and the CPU 11 that executes the process of S104 corresponds to an output unit. Further, the CPU 11 that executes the process of S207 corresponds to a change amount calculating unit, the CPU 11 that executes the processes of S208 to S210 corresponds to an insertion position determining unit, and the CPU 11 that executes the processes of S211 to S215 corresponds to a complementing unit. To do.

[6.他の形態]
以上、本発明の実施形態について説明したが、本発明は、上記実施形態に限定されることなく、種々の形態を採り得ることは言うまでもない。
[6. Other forms]
As mentioned above, although embodiment of this invention was described, it cannot be overemphasized that this invention can take a various form, without being limited to the said embodiment.

例えば、動画像を構成する総フレーム数が著しく少ない場合(所定数以下の場合)には、補完フレーム画像を挿入しないようにしてもよい。このようにすれば、多数(例えば動画像から抽出可能なフレーム画像の数よりも多い数)の補完フレーム画像が挿入されたフレーム配置画像が生成されてしまうことを防ぐことができる。   For example, when the total number of frames constituting the moving image is extremely small (when it is equal to or less than a predetermined number), the complementary frame image may not be inserted. In this way, it is possible to prevent generation of a frame layout image in which a large number (for example, a number larger than the number of frame images that can be extracted from a moving image) is inserted.

また、上記実施形態では、動画像を構成する総フレーム数に関係なくフレーム配置画像のレイアウトを固定しているが、これに限定されるものではない。例えば、総フレーム数が6個以下の場合には3個×2列のレイアウトとし、4個以下の場合には2個×2列のレイアウトとするなど、総フレーム数に応じてフレーム配置画像のレイアウトを段階的に変更するようにしてもよい。このようにすれば、補完フレーム画像の数を少なくすることができる。   In the above embodiment, the layout of the frame arrangement image is fixed regardless of the total number of frames constituting the moving image, but the present invention is not limited to this. For example, when the total number of frames is 6 or less, a layout of 3 × 2 columns is used, and when the number of frames is 4 or less, a layout of 2 × 2 columns is used. The layout may be changed step by step. In this way, the number of complementary frame images can be reduced.

また、上記実施形態では、1つの補完フレーム画像ごとに挿入位置及び複製対象を決定し(S209)、これを補完フレーム画像の数だけ繰り返すようにしているが(S210)、これに限定されるものではない。例えば、複数の補完フレーム画像について挿入位置をまず決定し、その後に各補完フレーム画像の複製対象を決定するようにしてもよい。このようにすれば、フレーム配置画像における補完フレーム画像とその複製元のフレーム画像との位置関係をより確実に規定することができる。   In the above embodiment, the insertion position and the copy target are determined for each complementary frame image (S209), and this is repeated as many times as the number of complementary frame images (S210). is not. For example, the insertion position for a plurality of complementary frame images may be determined first, and then the copy target of each complementary frame image may be determined. In this way, the positional relationship between the complementary frame image in the frame layout image and the copy-source frame image can be more reliably defined.

また、上記実施形態では、フレーム配置画像における補完フレーム画像の配置が右端の場合には挿入位置の後ろのフレーム画像を複製対象とし、それ以外の場合には挿入位置の前のフレーム画像を複製対象としているが、これに限定されるものではない。例えば、フレーム配置画像における補完フレーム画像の配置が左端の場合には挿入位置の前のフレーム画像を複製対象とし、それ以外の場合には挿入位置の後ろのフレーム画像を複製対象としてもよい。また、フレーム配置画像における配置が補完フレーム画像から離れている方のフレーム画像を複製対象として選択するようにすれば、上記実施形態のようなレイアウト以外のレイアウトであっても同様の効果が得られるように複製対象を選択することができる。一方、フレーム配置画像における補完フレーム画像の配置に関係なく複製対象を選択することも可能である。   Further, in the above embodiment, when the arrangement of the complementary frame image in the frame arrangement image is the right end, the frame image after the insertion position is to be duplicated. In other cases, the frame image before the insertion position is to be duplicated. However, it is not limited to this. For example, when the arrangement of the complementary frame image in the frame arrangement image is at the left end, the frame image before the insertion position may be the duplication target, and in other cases, the frame image after the insertion position may be the duplication target. Further, if a frame image whose arrangement in the frame arrangement image is far from the complementary frame image is selected as a duplication target, the same effect can be obtained even in a layout other than the layout as in the above embodiment. As described above, the replication target can be selected. On the other hand, it is possible to select a copy target regardless of the arrangement of the complementary frame image in the frame arrangement image.

また、上記実施形態では、挿入位置に決定したフレーム画像間の判定値を2倍の値に書き換えることで、同じ判定値(挿入位置)が連続して選択されにくくしているが(S209)、これに限定されるものではなく、例えば判定値を書き換えないようにすることも可能である。   In the above-described embodiment, the same determination value (insertion position) is not easily selected continuously by rewriting the determination value between frame images determined as the insertion position to a double value (S209). For example, the determination value may not be rewritten.

また、上記実施形態では、動画像ファイルについてはその先頭のフレーム画像をサムネイル画像として表示するようにしているが、これに限定されるものではなく、例えば、実際に印刷される画像(フレーム配置画像)をサムネイル画像として表示するようにしてもよい。   In the above embodiment, the first frame image of a moving image file is displayed as a thumbnail image. However, the present invention is not limited to this. For example, an image that is actually printed (frame arrangement image) ) May be displayed as a thumbnail image.

また、上記実施形態では、挿入位置前後の2つのフレーム画像のうちの一方を複製した複製画像を補完フレーム画像としているが、これに限定されるものではなく、例えば、2つのフレーム画像を合成した合成画像を補完フレーム画像とすることも可能である。   In the above embodiment, a duplicate image obtained by duplicating one of the two frame images before and after the insertion position is used as a complementary frame image. However, the present invention is not limited to this. For example, two frame images are synthesized. It is also possible to use a composite image as a complementary frame image.

また、上記実施形態では、フレーム画像間の変化量として差分(具体的には、各座標位置単位での画素値の差分の絶対値の合計値)を例示したが、これに限定されるものではなく、フレーム画像の変化量が反映される値であればよい。例えば、公知のオプティカルフロー法などで算出したフレーム画像間の「動きベクトルの大きさ」を差分算出に用いてもよい。   In the above embodiment, the difference (specifically, the total value of the absolute values of the pixel value differences in each coordinate position unit) is exemplified as the amount of change between the frame images. However, the present invention is not limited to this. Instead, any value that reflects the amount of change in the frame image may be used. For example, a “motion vector magnitude” between frame images calculated by a known optical flow method or the like may be used for difference calculation.

また、上記実施形態の複合機10では、動画像ファイルから抽出するフレーム画像の数を9個としているが、これに限定されるものではなく、例えば30個、40個などのように、多くなるほど本発明の意義がある。また、個数は固定である必要もなく、例えば、ユーザに指定させるようにしてもよい。   In the MFP 10 of the above embodiment, the number of frame images extracted from the moving image file is nine. However, the number of frame images is not limited to this. For example, the number of frame images increases, for example, 30 or 40. The present invention has significance. Further, the number need not be fixed, and may be specified by the user, for example.

また、上記実施形態では、複合機10に本発明を適用した構成を例示したが、これに限定されるものではなく、例えば、複合機以外の印刷装置(例えばスキャナ機能を有しない印刷装置)などにも適用することができる。また、印刷装置に限定されるものではなく、画像ファイルの内容を表す画像を出力する装置であればよい。すなわち、画像の出力には、画像の印刷以外にも、例えば画像の表示も含まれる。このため、パーソナルコンピュータなどの情報処理装置やその情報処理装置で実行されるプログラムなどにも本発明を適用することができる。   In the above-described embodiment, the configuration in which the present invention is applied to the multifunction device 10 is illustrated. However, the present invention is not limited to this. For example, a printing device other than the multifunction device (for example, a printing device that does not have a scanner function) It can also be applied to. Further, the present invention is not limited to a printing apparatus, and any apparatus that outputs an image representing the contents of an image file may be used. That is, image output includes, for example, image display in addition to image printing. Therefore, the present invention can be applied to an information processing apparatus such as a personal computer and a program executed by the information processing apparatus.

10…複合機、11…CPU、12…ROM、13…内部メモリ、15…印刷制御部、16…液晶表示部、17…操作入力部、18…メディアカードスロット、31…入力画像情報記憶領域、32…動画像情報記憶領域、33…出力画像データ記憶領域、34…拡大/縮小画像データ記憶領域、35…フレーム画像情報記憶領域、36…第1フレーム画像データ記憶領域、37…第2フレーム画像データ記憶領域、38…フレーム差分情報記憶領域、39…補完フレーム画像データ記憶領域、40…印刷データ記憶領域、41…一時変数記憶領域、42…サムネイル画像データ記憶領域   DESCRIPTION OF SYMBOLS 10 ... MFP, 11 ... CPU, 12 ... ROM, 13 ... Internal memory, 15 ... Print control part, 16 ... Liquid crystal display part, 17 ... Operation input part, 18 ... Media card slot, 31 ... Input image information storage area, 32 ... Moving image information storage area, 33 ... Output image data storage area, 34 ... Enlarged / reduced image data storage area, 35 ... Frame image information storage area, 36 ... First frame image data storage area, 37 ... Second frame image Data storage area, 38 ... frame difference information storage area, 39 ... complementary frame image data storage area, 40 ... print data storage area, 41 ... temporary variable storage area, 42 ... thumbnail image data storage area

Claims (6)

動画像データの表す動画像から複数のフレーム画像を抽出し、これらを時系列的な規則性を持つように配置したフレーム配置画像を生成する配置画像生成手段と、
前記フレーム配置画像を出力する出力手段と、
を備える出力装置であって、
前記配置画像生成手段は、
前記動画像から抽出可能なフレーム画像の総数が、前記フレーム配置画像に配置すべき配置フレーム数未満である場合に、前記動画像から抽出可能なすべてのフレーム画像について時系列順に連続するフレーム画像間の変化量を算出する変化量算出手段と、
前記変化量算出手段により算出された変化量に基づき、前記配置フレーム数に対する前記総数の不足数分の補完フレーム画像を挿入するための挿入位置を決定する挿入位置決定手段と、
前記挿入位置決定手段により決定された挿入位置にその挿入位置周辺のフレーム画像に基づく補完フレーム画像を挿入したフレーム配置画像を生成する補完手段と、
を備え、前記挿入位置決定手段は、前記変化量算出手段により算出された変化量のうち少なくとも最も変化量が小さいフレーム画像間を前記挿入位置として決定すること
を特徴とする出力装置。
Arrangement image generation means for extracting a plurality of frame images from a moving image represented by the moving image data and generating a frame arrangement image in which these are arranged so as to have chronological regularity;
Output means for outputting the frame arrangement image;
An output device comprising:
The arrangement image generation means includes:
When the total number of frame images that can be extracted from the moving image is less than the number of arrangement frames to be arranged in the frame arrangement image, all frame images that can be extracted from the moving image are consecutive between frame images in time series. Change amount calculating means for calculating the change amount of
An insertion position determining means for determining an insertion position for inserting a complementary frame image corresponding to the total number of deficiencies with respect to the number of arranged frames based on the amount of change calculated by the amount of change calculating means;
Complementing means for generating a frame arrangement image in which a complementary frame image based on a frame image around the insertion position is inserted at the insertion position determined by the insertion position determining means;
And the insertion position determination means determines, as the insertion position, a frame image having the smallest change amount among the change amounts calculated by the change amount calculation means.
前記補完手段は、前記挿入位置前後の2つのフレーム画像のうちの一方を複製した複製画像を前記補完フレーム画像としてその挿入位置に挿入すること
を特徴とする請求項1に記載の出力装置。
The output device according to claim 1, wherein the complementing unit inserts a duplicated image obtained by duplicating one of two frame images before and after the insertion position as the complementary frame image at the insertion position.
前記補完手段は、前記挿入位置前後の2つのフレーム画像のうちの一方を、前記フレーム配置画像におけるその挿入位置の配置に基づき選択し、選択したフレーム画像の複製画像を前記補完フレーム画像としてその挿入位置に挿入すること
を特徴とする請求項2に記載の出力装置。
The complementing unit selects one of the two frame images before and after the insertion position based on the layout of the insertion position in the frame layout image, and inserts a duplicate image of the selected frame image as the complementary frame image. The output device according to claim 2, wherein the output device is inserted into a position.
前記補完手段は、前記挿入位置前後の2つのフレーム画像のうち、前記フレーム配置画像においてその挿入位置から離れている方を選択すること
を特徴とする請求項3に記載の出力装置。
The output device according to claim 3, wherein the complementing unit selects one of the two frame images before and after the insertion position that is farther from the insertion position in the frame layout image.
前記フレーム配置画像は、前記動画像から抽出した複数のフレーム画像を時系列順に複数列に配置したものであり、
前記補完手段は、前記挿入位置前後の2つのフレーム画像が異なる列に配置される場合には、前記補完フレーム画像とは異なる列に配置される方を選択すること
を特徴とする請求項3又は請求項4に記載の出力装置。
The frame arrangement image is obtained by arranging a plurality of frame images extracted from the moving image in a plurality of columns in time series.
The complementing means, when two frame images before and after the insertion position are arranged in different columns, selects the one arranged in a column different from the complementary frame image. The output device according to claim 4.
動画像データの表す動画像から複数のフレーム画像を抽出し、これらを時系列的な規則性を持つように配置したフレーム配置画像を生成する配置画像生成手段と、
前記フレーム配置画像を出力する出力手段と、
を備える出力装置としてコンピュータを機能させるためのプログラムであって、
前記配置画像生成手段は、
前記動画像から抽出可能なフレーム画像の総数が、前記フレーム配置画像に配置すべき配置フレーム数未満である場合に、前記動画像から抽出可能なすべてのフレーム画像について時系列順に連続するフレーム画像間の変化量を算出する変化量算出手段と、
前記変化量算出手段により算出された変化量に基づき、前記配置フレーム数に対する前記総数の不足数分の補完フレーム画像を挿入するための挿入位置を決定する挿入位置決定手段と、
前記挿入位置決定手段により決定された挿入位置にその挿入位置周辺のフレーム画像に基づく補完フレーム画像を挿入したフレーム配置画像を生成する補完手段と、
を備え、前記挿入位置決定手段は、前記変化量算出手段により算出された変化量のうち少なくとも最も変化量が小さいフレーム画像間を前記挿入位置として決定すること
を特徴とするプログラム。
Arrangement image generation means for extracting a plurality of frame images from a moving image represented by the moving image data and generating a frame arrangement image in which these are arranged so as to have chronological regularity;
Output means for outputting the frame arrangement image;
A program for causing a computer to function as an output device comprising:
The arrangement image generation means includes:
When the total number of frame images that can be extracted from the moving image is less than the number of arrangement frames to be arranged in the frame arrangement image, all frame images that can be extracted from the moving image are consecutive between frame images in time series. Change amount calculating means for calculating the change amount of
An insertion position determining means for determining an insertion position for inserting a complementary frame image corresponding to the total number of deficiencies with respect to the number of arranged frames based on the amount of change calculated by the amount of change calculating means;
Complementing means for generating a frame arrangement image in which a complementary frame image based on a frame image around the insertion position is inserted at the insertion position determined by the insertion position determining means;
And the insertion position determining means determines, as the insertion position, a frame image having the smallest change amount among the change amounts calculated by the change amount calculating means.
JP2010122974A 2010-05-28 2010-05-28 Output apparatus and program Pending JP2011250284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010122974A JP2011250284A (en) 2010-05-28 2010-05-28 Output apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010122974A JP2011250284A (en) 2010-05-28 2010-05-28 Output apparatus and program

Publications (1)

Publication Number Publication Date
JP2011250284A true JP2011250284A (en) 2011-12-08

Family

ID=45414949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010122974A Pending JP2011250284A (en) 2010-05-28 2010-05-28 Output apparatus and program

Country Status (1)

Country Link
JP (1) JP2011250284A (en)

Similar Documents

Publication Publication Date Title
JP5247601B2 (en) Image processing apparatus, image processing method, and computer program
JP2011146799A (en) Device and program for processing image
JP2005176216A (en) Digital camera, image output method and program
JP2006270441A (en) Device, method, and program for log data recording
JP5526874B2 (en) Image processing apparatus and image processing program
JP3938534B2 (en) Image processing apparatus and method, image forming apparatus, and program
JP4572948B2 (en) Image processing device
JP4692614B2 (en) Printing apparatus and program
JP4692615B2 (en) Printing apparatus and program
JP5120366B2 (en) Image processing apparatus and image processing program
JP5703898B2 (en) Form management system, form image management method, and program
JP2010130510A (en) Printing device and program
JP4702389B2 (en) Image processing device
JP4930615B2 (en) Output device and program
JP5343739B2 (en) Output device and program
US9361852B2 (en) Media reproduction device
JP2011250284A (en) Output apparatus and program
JP5884604B2 (en) Image recording apparatus, imaging apparatus, image recording program, and image display program
JP4626565B2 (en) Image processing apparatus, image forming apparatus, and program
JP2011015226A (en) Output device, and program
JP5407700B2 (en) Image processing system, information processing apparatus, image processing apparatus, and program
JP2008205559A (en) Image processing unit, and image processing method, and program thereof
JP5601261B2 (en) Image processing apparatus and image processing program
JP5612851B2 (en) Information processing apparatus, information processing method, and program
JP2010016781A (en) Image processing apparatus and method of controlling the same