JP2012205238A - Image processing device and image processing program - Google Patents

Image processing device and image processing program Download PDF

Info

Publication number
JP2012205238A
JP2012205238A JP2011070300A JP2011070300A JP2012205238A JP 2012205238 A JP2012205238 A JP 2012205238A JP 2011070300 A JP2011070300 A JP 2011070300A JP 2011070300 A JP2011070300 A JP 2011070300A JP 2012205238 A JP2012205238 A JP 2012205238A
Authority
JP
Japan
Prior art keywords
image
representative
data
images
scene
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.)
Granted
Application number
JP2011070300A
Other languages
Japanese (ja)
Other versions
JP5601261B2 (en
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 JP2011070300A priority Critical patent/JP5601261B2/en
Publication of JP2012205238A publication Critical patent/JP2012205238A/en
Application granted granted Critical
Publication of JP5601261B2 publication Critical patent/JP5601261B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To generate a good-appearance output image.SOLUTION: A 16-piece frame image data (representative data) is extracted from a video image file, and an output image in which frame images (a representative image) represented by the individual pieces of representative data are arranged in temporal sequence is generated. The video file is categorized into plural scenes, and a provisional value of the number of extraction for every scene of the representative data is set in accordance with the number of frame image data included in each scene. Then, the number of extraction for every scene of the representative data is determined for an output image generated when the representative data is extracted in accordance with the provisional value by adjusting the provisional value in a direction in which a scene-switching position where scenes of the representative image are switched matches a position where partial columns are switched. That is, the number of extraction the representative image from each scene is optimized so that the number of extraction for every scene of the representative data is the number based on the number of arrays of the representative images for every part row.

Description

本発明は、複数の画像が配置された出力画像を生成するための画像処理の技術に関する。   The present invention relates to an image processing technique for generating an output image in which a plurality of images are arranged.

従来、複数の画像が配置された出力画像を生成する技術が知られている。例えば、特許文献1には、動画像から複数のフレーム画像を抽出し、抽出した複数のフレーム画像が配置された出力画像を1つの印刷媒体に印刷する技術が開示されている。   Conventionally, a technique for generating an output image in which a plurality of images are arranged is known. For example, Patent Document 1 discloses a technique for extracting a plurality of frame images from a moving image and printing an output image on which the extracted plurality of frame images are arranged on one print medium.

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

しかしながら、従来の技術では、出力画像における複数の画像の配置を、画像の内容に応じて見栄えのよい配置にすることまでは考慮されていなかった。
本発明は、こうした問題にかんがみてなされたものであり、見栄えのよい出力画像を生成することを目的としている。
However, in the conventional technique, the arrangement of the plurality of images in the output image has not been taken into consideration until the arrangement is good-looking according to the content of the image.
The present invention has been made in view of these problems, and an object thereof is to generate an output image having a good appearance.

本明細書は上記目的を達成する構成を開示する。第1の構成は、画像処理装置であって、複数のグループに区分される画像データ群から、所定数の画像データを代表データとして抽出する抽出手段と、前記所定数の代表データが表す所定数の代表画像が、複数の部分列に区分された列状に前記代表画像を配置するレイアウト情報に従って、前記グループ単位でまとまった順序で配置された出力画像を表す出力画像データを生成する生成手段と、を備え、前記代表データの前記グループごとの抽出数が、前記部分列ごとの前記代表画像の配列数に基づく数である。   This specification discloses the structure which achieves the said objective. The first configuration is an image processing apparatus, and an extraction unit that extracts a predetermined number of image data as representative data from an image data group divided into a plurality of groups, and a predetermined number represented by the predetermined number of representative data Generating means for generating output image data representing output images arranged in a grouped order in accordance with layout information for arranging the representative images in a row divided into a plurality of partial columns. The number of extractions of the representative data for each group is a number based on the number of arrangements of the representative images for the partial columns.

この構成によれば、代表データのグループごとの抽出数が、部分列ごとの代表画像の配列数に基づく数であるため、部分列ごとの代表画像の配列数とは無関係の数である場合と比較して、出力画像に配置される代表画像のグループ単位でのまとまりと、部分列単位でのまとまりとの関連性を高めることができる。この結果、見栄えのよい出力画像を生成することができる。   According to this configuration, since the number of representative data extracted for each group is a number based on the number of representative image arrays for each partial column, the number of representative data is irrelevant to the number of representative image arrays for each partial column. In comparison, it is possible to increase the relevance between the group of representative images arranged in the output image in units of groups and the group of substrings. As a result, an output image having a good appearance can be generated.

第2の構成は、第1の構成の画像処理装置であって、前記抽出手段は、前記画像データ群において前記複数のグループのそれぞれに含まれる画像データの数に応じて、前記代表データの前記グループごとの抽出数の暫定値を設定する暫定値設定手段と、前記暫定値に従い前記代表データを抽出した場合に生成される前記出力画像において、前記部分列が切り替わる位置を基準位置として、前記代表画像のグループが切り替わるグループ切替位置が、当該グループ切替位置から最も近い前記基準位置に一致するように、前記暫定値を調整する調整処理を行うことで、前記代表データの前記グループごとの抽出数を決定する調整手段と、を備える。この構成によれば、各グループに含まれる画像データの数に応じた代表画像が配置された出力画像を生成することができ、しかも、見栄えのよい配置となるように抽出数を調整することができる。   A second configuration is the image processing device according to the first configuration, wherein the extraction unit includes the representative data according to the number of image data included in each of the plurality of groups in the image data group. In the output image generated when the representative data is extracted in accordance with the provisional value, provisional value setting means for setting a provisional value of the number of extractions for each group, and the representative position is a position where the partial sequence is switched. By performing adjustment processing for adjusting the provisional value so that the group switching position at which the image group is switched coincides with the reference position closest to the group switching position, the number of extractions of the representative data for each group can be reduced. Adjusting means for determining. According to this configuration, it is possible to generate an output image in which representative images according to the number of image data included in each group are arranged, and it is possible to adjust the number of extractions so that the arrangement looks good. it can.

第3の構成は、第2の構成の画像処理装置であって、前記調整手段は、前記部分列が切り替わる位置に加え、前記部分列における特定の位置を前記基準位置とする。この構成によれば、グループ切替位置を基準位置に一致させるために必要な暫定値(抽出数)の調整量を小さくすることができる。   A third configuration is the image processing apparatus according to the second configuration, wherein the adjustment unit sets a specific position in the partial sequence as the reference position in addition to the position at which the partial sequence is switched. According to this configuration, it is possible to reduce the adjustment amount of the provisional value (the number of extractions) necessary for matching the group switching position with the reference position.

第4の構成は、第3の構成の画像処理装置であって、前記調整手段は、前記グループ切替位置から最も近い前記基準位置が複数存在し、一方が前記部分列が切り替わる位置であり、他方が前記特定の位置である場合には、前記グループ切替位置を前記部分列が切り替わる位置に一致させるように前記暫定値を調整する。この構成によれば、出力画像における部分列が切り替わる位置で、代表画像のグループが切り替わりやすくすることができる。   A fourth configuration is the image processing device according to the third configuration, wherein the adjustment means includes a plurality of the reference positions closest to the group switching position, one of which is a position at which the partial row is switched, Is the specific position, the provisional value is adjusted so that the group switching position matches the position at which the partial sequence is switched. According to this configuration, the group of representative images can be easily switched at the position where the partial sequence in the output image is switched.

第5の構成は、第2〜第4の構成のいずれか1つの画像処理装置であって、前記調整手段は、前記グループごとに、前記出力画像における前記代表画像の前記グループ単位での配列順に前記調整処理を行う。この構成によれば、あるグループの抽出数(暫定値)を調整することにより、調整処理が既に行われた他のグループの代表画像の位置がずれないようにすることができる。   A fifth configuration is the image processing apparatus according to any one of the second to fourth configurations, wherein the adjustment unit is configured to arrange the representative image in the output image in the group unit for each group. The adjustment process is performed. According to this configuration, by adjusting the extraction number (provisional value) of a certain group, it is possible to prevent the position of the representative image of another group for which adjustment processing has already been performed from shifting.

第6の構成は、第2〜第5の構成のいずれか1つの画像処理装置であって、前記暫定値設定手段は、前記複数のグループのそれぞれに含まれる画像データの数の比率に応じて、前記代表データの前記グループごとの抽出数の暫定値を設定する。この構成によれば、各グループに含まれる画像データの数の比率に応じて、各グループの代表画像が配置された出力画像を生成することができ、しかも、見栄えのよい配置となるように抽出数を調整することができる。   The sixth configuration is an image processing apparatus according to any one of the second to fifth configurations, wherein the provisional value setting means is in accordance with a ratio of the number of image data included in each of the plurality of groups. The provisional value of the number of extractions of the representative data for each group is set. According to this configuration, it is possible to generate an output image in which the representative images of each group are arranged according to the ratio of the number of image data included in each group, and to extract it so that the arrangement looks good The number can be adjusted.

第7の構成は、第1〜第6の構成のいずれか1つの画像処理装置であって、前記抽出手段は、前記複数のグループのそれぞれから1つ以上の前記代表データを抽出する。この構成によれば、すべてのグループの代表画像が配置された出力画像を表す出力画像データを生成することができる。   A seventh configuration is any one of the first to sixth image processing devices, and the extraction unit extracts one or more representative data from each of the plurality of groups. According to this configuration, output image data representing an output image in which representative images of all groups are arranged can be generated.

第8の構成は、第1〜第7の構成のいずれか1つの画像処理装置であって、前記出力画像における前記代表画像の配置に基づき、前記部分列を構成する前記代表画像を特定する特定手段を更に備え、前記特定手段は、2つの代表画像の離間距離が所定長以下であることを条件として、前記部分列を構成する前記代表画像を特定する。この構成によれば、出力画像における代表画像の離間距離に基づき、部分列を構成する代表画像を特定することができる。   An eighth configuration is the image processing device according to any one of the first to seventh configurations, and specifies the representative image constituting the partial sequence based on an arrangement of the representative image in the output image Means for specifying the representative image constituting the partial sequence on condition that a distance between two representative images is equal to or less than a predetermined length. According to this configuration, it is possible to specify the representative image that constitutes the partial sequence based on the separation distance of the representative image in the output image.

第9の構成は、第8の構成の画像処理装置であって、前記所定長は、前記離間距離が定まる方向における前記代表画像の長さに設定される。この構成によれば、部分列を構成する代表画像を適切に特定することができる。   A ninth configuration is the image processing device according to the eighth configuration, wherein the predetermined length is set to a length of the representative image in a direction in which the separation distance is determined. According to this configuration, it is possible to appropriately identify the representative image that configures the partial sequence.

第10の構成は、第1〜第9の構成のいずれか1つの画像処理装置であって、前記画像データ群は、動画像を表すフレーム画像データ群であり、前記グループは、前記動画像におけるシーンであり、前記生成手段は、前記所定数の代表データが表す前記所定数の代表画像が、前記複数の部分列に区分された列状に前記代表画像を配置するレイアウト情報に従って、時系列的な順序で配置された前記出力画像を表す前記出力画像データを生成する。この構成によれば、出力画像においてフレーム画像のシーンが切り替わる位置を、部分列が切り替わる位置に基づく位置とすることができるため、動画像のシーンの切り替わりが分かりやすい見栄えのよい出力画像を生成することができる。   The tenth configuration is an image processing device according to any one of the first to ninth configurations, wherein the image data group is a frame image data group representing a moving image, and the group is a frame in the moving image. The generation means is configured to generate a chronological sequence of the predetermined number of representative images represented by the predetermined number of representative data according to layout information in which the representative images are arranged in rows divided into the plurality of partial columns. The output image data representing the output images arranged in a random order is generated. According to this configuration, since the position where the scene of the frame image is switched in the output image can be set based on the position where the partial sequence is switched, an output image having a good appearance that can easily understand the switching of the scene of the moving image is generated. be able to.

第11の構成は、画像処理プログラムであって、複数のグループに区分される画像データ群から、所定数の画像データを代表データとして抽出する抽出手段、及び、前記所定数の代表データが表す所定数の代表画像が、複数の部分列に区分された列状に前記代表画像を配置するレイアウト情報に従って、前記グループ単位でまとまった順序で配置された出力画像を表す出力画像データを生成する生成手段としてコンピュータを機能させ、前記代表データの前記グループごとの抽出数が、前記部分列ごとの前記代表画像の配列数に基づく数である。この構成の画像処理プログラムによれば、第1の構成の画像処理装置としてコンピュータを機能させることができ、これにより前述した効果を得ることができる。   The eleventh configuration is an image processing program, an extraction means for extracting a predetermined number of image data as representative data from an image data group divided into a plurality of groups, and a predetermined number represented by the predetermined number of representative data Generating means for generating output image data representing output images arranged in a grouped order in accordance with layout information in which a plurality of representative images are arranged in a row divided into a plurality of partial columns in accordance with layout information And the number of extractions of the representative data for each group is a number based on the number of arrangements of the representative images for each of the partial columns. According to the image processing program having this configuration, the computer can function as the image processing apparatus having the first configuration, and the above-described effects can be obtained.

実施形態の複合機の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of a multifunction machine according to an embodiment. 動画像ファイルの内容を表す出力画像の生成例を示す図である。It is a figure which shows the example of a production | generation of the output image showing the content of a moving image file. 動画像情報記憶領域を示す図である。It is a figure which shows a moving image information storage area. シーン情報記憶領域を示す図である。It is a figure which shows a scene information storage area. 抽出フレーム情報記憶領域を示す図である。It is a figure which shows the extraction frame information storage area. 連続配置情報記憶領域を示す図である。It is a figure which shows a continuous arrangement | positioning information storage area. 出力画像データ記憶領域を示す図である。It is a figure which shows an output image data storage area. メディア画像印刷処理のフローチャートである。It is a flowchart of a media image printing process. 第1実施形態の出力画像生成処理のフローチャートである。It is a flowchart of the output image generation process of 1st Embodiment. 抽出画像数最適化処理のフローチャートである。It is a flowchart of an extraction image number optimization process. (a)は判定対象画像と次に配置される画像とが横方向に連続しているか否かの判定方法を示す図、(b)は判定対象画像と次に配置される画像とが縦方向に連続しているか否かの判定方法を示す図、(c)は判定対象画像と次に配置される画像とが横方向に並んでいるか否かの判定方法を示す図である。(A) is a figure which shows the determination method whether the determination object image and the image arrange | positioned next are continuous in the horizontal direction, (b) is a vertical direction with the determination object image and the image arrange | positioned next. (C) is a figure which shows the determination method whether a determination object image and the image arrange | positioned next are arranged in the horizontal direction. 連続配置画像数に応じた基準点の位置を示す図である。It is a figure which shows the position of the reference point according to the number of continuously arranged images. 4×4レイアウトを前提とした出力画像データ記憶領域を示す図である。It is a figure which shows the output image data storage area on the assumption of 4x4 layout. 複数のフォルダの内容を表す出力画像の生成例を示す図である。It is a figure which shows the production | generation example of the output image showing the content of a some folder. 第2実施形態の出力画像生成処理のフローチャートである。It is a flowchart of the output image generation process of 2nd Embodiment.

以下、本発明が適用された実施形態について、図面を用いて説明する。
[1.第1実施形態]
[1−1.全体構成]
図1は、第1実施形態の複合機10の概略構成を示すブロック図である。
Embodiments to which the present invention is applied will be described below with reference to the drawings.
[1. First Embodiment]
[1-1. overall structure]
FIG. 1 is a block diagram illustrating a schematic configuration of a multifunction machine 10 according to the first 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は、後述するメディア画像印刷処理を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 a media image printing process 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 an apparatus for printing an image on a print medium, and can print a color image using 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に挿入された状態のメディアカードから画像ファイルを直接読み出し、画像ファイルの内容を表す出力画像を生成して印刷する機能(いわゆるダイレクトプリント機能)を有している。具体的には、複合機10は、メディアカードに記憶されている複数の画像ファイルの中から印刷対象の画像ファイルをユーザに選択させるため、画像ファイルの内容を把握可能なサムネイル画像を液晶表示部16に表示し、ユーザにより選択されたサムネイル画像に対応する画像ファイルの表す画像を印刷するようになっている。なお、画像ファイルは、静止画像を表す画像データである静止画像ファイルと、動画像を表す画像データである動画像ファイルとに大別され、いずれも印刷対象となり得るが、本実施形態では、動画像ファイルについての処理を中心に説明する。   The media card slot 18 is configured such that a media card (nonvolatile portable storage medium) such as an SD card or a CF card in which an image file is stored can be inserted. The multifunction device 10 has a function (so-called direct print function) for directly reading out an image file from the media card inserted in the media card slot 18 and generating and printing an output image representing the contents of the image file. ing. Specifically, the multifunction device 10 displays a thumbnail image that can grasp the contents of the image file on the liquid crystal display unit so that the user can select an image file to be printed from a plurality of image files stored in the media card. The image represented by the image file corresponding to the thumbnail image selected by the user is printed. Note that image files are roughly classified into still image files that are image data representing still images and moving image files that are image data representing moving images, and any of them can be a print target. The processing for the image file will be mainly described.

動画像は複数のフレーム画像によって構成され、各フレーム画像はフレーム画像データによって表されるため、動画像ファイルには複数のフレーム画像データが含まれる。そして、複合機10は、印刷対象の画像ファイルが動画像ファイルの場合には、動画像を表すフレーム画像データ群から、あらかじめ決められた数のフレーム画像データを代表データとして抽出し、各代表データの表す代表画像(フレーム画像)が時系列順に配置された出力画像を生成する。   Since a moving image is composed of a plurality of frame images, and each frame image is represented by frame image data, the moving image file includes a plurality of frame image data. When the image file to be printed is a moving image file, the multifunction machine 10 extracts a predetermined number of frame image data as representative data from the frame image data group representing the moving image, and each representative data An output image is generated in which representative images (frame images) represented by are arranged in chronological order.

具体的には、動画像ファイルの出力画像は、16個の代表画像が配置されたものであり(図2、図13参照)、左上の代表画像を起点として、時系列順に左から右へ横方向に列状に配置され、横方向の配列数(この例では各列4個)を超える分は改行されて、次の列の左から配置される。つまり、16個の代表画像が、4つの部分列に区分された列状に配置される。本実施形態では、このような配置(4×4レイアウト)が、レイアウト情報として記憶部(例えばROM12)にあらかじめ記憶されており、動画像ファイルの出力画像が生成される際には、16個の代表画像がこのレイアウト情報に従って配置される。   Specifically, the output image of the moving image file is an image in which 16 representative images are arranged (see FIGS. 2 and 13), and the horizontal image is displayed from left to right in chronological order starting from the upper left representative image. Arranged in a row in the direction, the portion exceeding the number of arrangements in the horizontal direction (in this example, 4 in each column) is broken and arranged from the left of the next column. That is, 16 representative images are arranged in a row divided into four partial rows. In the present embodiment, such an arrangement (4 × 4 layout) is stored in advance in the storage unit (for example, the ROM 12) as layout information. When an output image of a moving image file is generated, 16 layouts are generated. The representative image is arranged according to this layout information.

また、本実施形態では、図2に示すように、動画像ファイルの表す動画像が、複数のシーンに区分され、複数のシーンのそれぞれに含まれるフレーム画像データの数(シーンの長さ)に応じて、代表データのシーンごとの抽出数の暫定値が設定される。図2の例では、動画像が3つのシーンA,B,Cに区分され、これら3つのシーンA,B,Cの長さの比率(7:4:5)に応じて、代表データの抽出数の暫定値がそれぞれ7個、4個、5個に設定される。   In the present embodiment, as shown in FIG. 2, the moving image represented by the moving image file is divided into a plurality of scenes, and the number of frame image data (scene length) included in each of the plurality of scenes. Accordingly, a provisional value of the number of extractions of representative data for each scene is set. In the example of FIG. 2, the moving image is divided into three scenes A, B, and C, and representative data is extracted according to the ratio of the lengths of these three scenes A, B, and C (7: 4: 5). The provisional values of the numbers are set to 7, 4, and 5, respectively.

そして、抽出数の暫定値に従い代表データを抽出した場合に生成される出力画像(図2に示す「最適化前の出力画像」)において、代表画像のシーンが切り替わるシーン切替位置が、部分列が切り替わる位置に一致する方向に、抽出数の暫定値が調整される。つまり、代表データのシーンごとの抽出数が、部分列ごとの代表画像の配列数(4個)に基づく数となるように、各シーンからの代表データの抽出数が最適化される。そして、最適化後の抽出数に基づいて生成された出力画像(図2に示す「最適化後の出力画像」)が印刷される。   Then, in the output image generated when the representative data is extracted according to the provisional value of the number of extractions (“output image before optimization” shown in FIG. 2), the scene switching position at which the scene of the representative image switches is indicated by the partial sequence. The provisional value of the number of extractions is adjusted in the direction that coincides with the switching position. That is, the number of representative data extracted from each scene is optimized such that the number of representative data extracted for each scene is a number based on the number of representative image arrays (4) for each partial sequence. Then, an output image (“optimized output image” shown in FIG. 2) generated based on the number of extractions after optimization is printed.

[1−2.内部メモリの記憶領域]
次に、内部メモリ13の記憶領域について説明する。
図1に示すように、内部メモリ13には、各種情報を記憶するための記憶領域として、動画像情報記憶領域31、シーン情報記憶領域32、抽出フレーム情報記憶領域33、連続配置情報記憶領域34、代表データ記憶領域35、サムネイル画像データ記憶領域36、出力画像データ記憶領域37、印刷データ記憶領域38及び一時変数記憶領域39が用意されている。
[1-2. Internal memory storage area]
Next, the storage area of the internal memory 13 will be described.
As shown in FIG. 1, the internal memory 13 has a moving image information storage area 31, a scene information storage area 32, an extracted frame information storage area 33, and a continuous arrangement information storage area 34 as storage areas for storing various types of information. A representative data storage area 35, a thumbnail image data storage area 36, an output image data storage area 37, a print data storage area 38, and a temporary variable storage area 39 are prepared.

動画像情報記憶領域31は、メディアカードに記憶されている画像ファイルのうち、印刷対象の画像ファイルの情報を一時的に記憶しておくための領域である。具体的には、図3に示すように、動画像情報記憶領域31は、フォーマット種別記憶領域41、コーデック種別記憶領域42、横方向サイズ記憶領域43、縦方向サイズ記憶領域44、総フレーム数記憶領域45及びFPS情報記憶領域46を備えている。   The moving image information storage area 31 is an area for temporarily storing information on an image file to be printed among the image files stored in the media card. Specifically, as shown in FIG. 3, the moving image information storage area 31 includes a format type storage area 41, a codec type storage area 42, a horizontal size storage area 43, a vertical size storage area 44, and a total frame number storage. An area 45 and an FPS information storage area 46 are provided.

フォーマット種別記憶領域41は、印刷対象の画像ファイルのデータフォーマット(ファイルフォーマット)の種別を記憶する領域である。本実施形態では、4種類のファイルフォーマットに対応付けられた数値(例えば、AVIフォーマットであれば「0」、MOVフォーマットであれば「1」、MPEGフォーマットであれば「2」、JPEGフォーマットであれば「3」)が記憶される。   The format type storage area 41 is an area for storing the type of data format (file format) of the image file to be printed. In this embodiment, numerical values associated with four types of file formats (for example, “0” for the AVI format, “1” for the MOV format, “2” for the MPEG format, JPEG format, etc.) "3") is stored.

コーデック種別記憶領域42は、印刷対象の画像ファイルのコーデックの種別を記憶する領域である。本実施形態では、3種類のコーデックに対応付けられた数値(例えば、MotionJPEGコーデックであれば「0」、MPEG1コーデックであれば「1」、DivXコーデックであれば「2」)が記憶される。なお、コーデック種別記憶領域42は、静止画像ファイルの場合には使用されない。   The codec type storage area 42 is an area for storing the codec type of the image file to be printed. 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. The codec type storage area 42 is not used in the case of a still image file.

横方向サイズ記憶領域43は、印刷対象の画像ファイルが表す画像(動画像ファイルの場合はフレーム画像)の横方向のピクセルサイズを数値データとして記憶する領域である。   The horizontal size storage area 43 is an area for storing the pixel size in the horizontal direction of an image (a frame image in the case of a moving image file) represented by an image file to be printed as numerical data.

縦方向サイズ記憶領域44は、印刷対象の画像ファイルが表す画像(動画像ファイルの場合はフレーム画像)の縦方向のピクセルサイズを数値データとして記憶する領域である。   The vertical size storage area 44 is an area for storing, as numerical data, the vertical pixel size of an image (a frame image in the case of a moving image file) represented by an image file to be printed.

総フレーム数記憶領域45は、印刷対象の画像ファイルを構成するフレーム画像データの総数(総フレーム数)を数値データとして記憶する領域である。なお、総フレーム数記憶領域45は、静止画像ファイルの場合には使用されない。   The total frame number storage area 45 is an area for storing the total number of frame image data (total number of frames) constituting the image file to be printed as numerical data. The total frame number storage area 45 is not used in the case of a still image file.

FPS情報記憶領域46は、印刷対象の画像ファイルの表す動画像で1秒間に再生されるフレーム数であるFPS(Frames Per Second)情報を記憶する領域である。なお、FPS情報記憶領域46は、静止画像ファイルの場合には使用されない。   The FPS information storage area 46 is an area for storing FPS (Frames Per Second) information, which is the number of frames reproduced per second in a moving image represented by an image file to be printed. The FPS information storage area 46 is not used in the case of a still image file.

図1に戻り、シーン情報記憶領域32は、印刷対象の動画像ファイルを解析して得られる動画像のシーンごとの情報を記憶するための領域である。具体的には、図4に示すように、シーン情報記憶領域32は、シーンID記憶領域51、シーン開始番号記憶領域52、シーン終了番号記憶領域53及び抽出画像数記憶領域54を備えている。   Returning to FIG. 1, the scene information storage area 32 is an area for storing information for each scene of a moving image obtained by analyzing a moving image file to be printed. Specifically, as shown in FIG. 4, the scene information storage area 32 includes a scene ID storage area 51, a scene start number storage area 52, a scene end number storage area 53, and an extracted image number storage area 54.

シーンID記憶領域51は、動画像に含まれるシーンの数に応じて0から順に振り分けたシーンの識別情報であるシーンIDを記憶するための領域である。具体的には、動画像に含まれる各シーンに対し、時系列順にシーンIDが割り振られる。   The scene ID storage area 51 is an area for storing a scene ID, which is scene identification information distributed in order from 0 according to the number of scenes included in the moving image. Specifically, scene IDs are assigned to each scene included in the moving image in time series.

シーン開始番号記憶領域52は、シーンごとに最も小さいフレーム番号(シーン開始番号)を記憶するための領域である。ここで、フレーム番号とは、フレーム画像が動画像の何フレーム目に当たるかを示す数値であり、動画像における先頭のフレーム画像を0フレーム目とする。   The scene start number storage area 52 is an area for storing the smallest frame number (scene start number) for each scene. Here, the frame number is a numerical value indicating which frame of the moving image the frame image corresponds to, and the first frame image in the moving image is the 0th frame.

シーン終了番号記憶領域53は、シーンごとに最も大きいフレーム番号(シーン終了番号)を記憶するための領域である。
抽出画像数記憶領域54は、シーンごとの代表画像の抽出数(抽出画像数)を記憶するための領域である。
The scene end number storage area 53 is an area for storing the largest frame number (scene end number) for each scene.
The extracted image number storage area 54 is an area for storing the number of extracted representative images (the number of extracted images) for each scene.

図1に戻り、抽出フレーム情報記憶領域33は、代表画像のフレーム番号をシーン単位で管理するための領域である。具体的には、図5に示すように、抽出フレーム情報記憶領域33は、シーンID記憶領域61及び抽出フレーム番号記憶領域62を備えている。   Returning to FIG. 1, the extracted frame information storage area 33 is an area for managing the frame number of the representative image in units of scenes. Specifically, as shown in FIG. 5, the extracted frame information storage area 33 includes a scene ID storage area 61 and an extracted frame number storage area 62.

シーンID記憶領域61は、シーンIDを記憶するための領域であり、シーン情報記憶領域32内のシーンID記憶領域51の値に対応している。
抽出フレーム番号記憶領域62は、各シーンから抽出される代表画像のフレーム番号を、小さい値から順に、抽出画像数に対応する数だけ格納するための領域である。各シーンにおける最後のフレーム番号の隣には、そのシーンから抽出されるフレーム番号がこれ以上存在しないことを示す値(この例では−1)が格納される。つまり、抽出フレーム番号記憶領域62は、シーンごとに、「抽出画像数+1」個の値が格納される。
The scene ID storage area 61 is an area for storing a scene ID, and corresponds to the value of the scene ID storage area 51 in the scene information storage area 32.
The extracted frame number storage area 62 is an area for storing the frame number of the representative image extracted from each scene in the order corresponding to the number of extracted images in ascending order. Next to the last frame number in each scene, a value (-1 in this example) indicating that there are no more frame numbers extracted from the scene is stored. That is, the extracted frame number storage area 62 stores “number of extracted images + 1” values for each scene.

図1に戻り、連続配置情報記憶領域34は、出力画像に配置される代表画像の連続性に関する情報を記憶するための領域である。具体的には、図6に示すように、連続配置情報記憶領域34は、ID記憶領域71、配置開始番号記憶領域72、配置終了番号記憶領域73及び連続配置画像数記憶領域74を備えている。   Returning to FIG. 1, the continuous arrangement information storage area 34 is an area for storing information relating to the continuity of the representative images arranged in the output image. Specifically, as shown in FIG. 6, the continuous arrangement information storage area 34 includes an ID storage area 71, an arrangement start number storage area 72, an arrangement end number storage area 73, and a continuous arrangement image number storage area 74. .

ID記憶領域71は、出力画像に含まれる部分列の数に応じて0から順に振り分けられた部分列の識別情報である部分列IDを記憶するための領域である。
配置開始番号記憶領域72は、部分列の開始点となる配置番号(配置開始番号)を記憶するための領域である。ここで、配置番号とは、代表画像が出力画像において時系列順に何番目に当たるかを示す数値であり、出力画像における先頭の代表画像の配置番号を0とする。
The ID storage area 71 is an area for storing a partial sequence ID, which is identification information of a partial sequence distributed in order from 0 according to the number of partial sequences included in the output image.
The arrangement start number storage area 72 is an area for storing an arrangement number (arrangement start number) that is a starting point of a partial sequence. Here, the arrangement number is a numerical value indicating the order in which the representative image corresponds to the output image in time series order, and the arrangement number of the first representative image in the output image is set to 0.

配置終了番号記憶領域73は、部分列の終了点となる配置番号(配置終了番号)を記憶するための領域である。
連続配置画像数記憶領域74は、部分列ごとの代表画像の配列数(出力画像において連続して配置される代表画像の数であり、以下「連続配置画像数」ともいう。)を記憶するための領域である。
The arrangement end number storage area 73 is an area for storing an arrangement number (arrangement end number) serving as an end point of the partial sequence.
The consecutively arranged image number storage area 74 stores the number of representative images arranged for each partial row (the number of representative images continuously arranged in the output image, hereinafter also referred to as “the number of continuously arranged images”). It is an area.

図1に戻り、代表データ記憶領域35は、動画像ファイルから抽出した代表データ(本実施形態ではフレーム画像データ)を記憶するための領域である。なお、フレーム画像データは、動画像ファイルの種類によっては固有の形式(例えばJPEG形式、MPEG形式など)で圧縮された状態で記憶される。   Returning to FIG. 1, the representative data storage area 35 is an area for storing representative data (frame image data in the present embodiment) extracted from the moving image file. The frame image data is stored in a compressed state in a specific format (for example, JPEG format, MPEG format, etc.) depending on the type of moving image file.

サムネイル画像データ記憶領域36は、印刷対象の画像ファイルをユーザに選択させるために液晶表示部16に表示するサムネイル画像を表すサムネイル画像データを一時的に記憶しておくための領域である。   The thumbnail image data storage area 36 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.

出力画像データ記憶領域37は、出力画像を表す出力画像データを一時的に記憶しておくための領域である。具体的には、動画像ファイルに基づく出力画像には複数の代表画像が配置されるため、図7に示すように、複数の代表データを記憶可能な領域が用意されている。   The output image data storage area 37 is an area for temporarily storing output image data representing an output image. Specifically, since a plurality of representative images are arranged in the output image based on the moving image file, an area capable of storing a plurality of representative data is prepared as shown in FIG.

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

[1−3.CPUが実行する処理]
次に、複合機10のCPU11が実行するメディア画像印刷処理について、図8のフローチャートを用いて説明する。なお、図8のメディア画像印刷処理は、画像ファイルの記憶されているメディアカードがメディアカードスロット18に挿入されている状態で、「メディア画像印刷」モードを選択するユーザの操作が操作入力部17で行われることにより実行される。
[1-3. Processing executed by CPU]
Next, media image printing processing executed by the CPU 11 of the multifunction machine 10 will be described with reference to the flowchart of FIG. In the media image printing process of FIG. 8, the operation of the user who selects the “media image printing” mode is performed by the operation input unit 17 in a state where the media card storing the image file is inserted in the media card slot 18. It is executed by being performed in.

CPU11は、このメディア画像印刷処理を開始すると、まずS101で、メディアカードに記憶されている画像ファイルの情報(ファイル名やファイルサイズ等)を読み出して内部メモリ13に記憶するメディア情報抽出処理を行う。   When the CPU 11 starts the media image printing process, first, in S101, the CPU 11 reads out the information of the image file (file name, file size, etc.) stored in the media card and performs the media information extraction process to store it in the internal memory 13. .

続いて、CPU11は、S102で、メディアカードに記憶されている複数の画像ファイルの中から、印刷対象の画像ファイルをユーザに選択させる印刷画像選択処理を行う。具体的には、メディアカードに記憶されている複数の画像ファイルのうちの1つについて、画像ファイルの内容を把握可能なサムネイル画像を液晶表示部16に表示する。そして、操作入力部17の上キー、下キー、左キー又は右キーの押操作に応じて液晶表示部16に表示されるサムネイル画像を他の画像ファイルのサムネイル画像に変更し、OKキーの押操作時に表示されているサムネイル画像に対応する画像ファイルを印刷対象として選択する。   Subsequently, in S102, the CPU 11 performs a print image selection process that allows the user to select an image file to be printed from among a plurality of image files stored in the media card. Specifically, for one of a plurality of image files stored in the media card, a thumbnail image capable of grasping the contents of the image file is displayed on the liquid crystal display unit 16. Then, the thumbnail image displayed on the liquid crystal display unit 16 is changed to a thumbnail image of another image file in response to the pressing operation of the upper key, the lower key, the left key or the right key of the operation input unit 17, and the OK key is pressed. An image file corresponding to the thumbnail image displayed at the time of operation is selected as a print target.

続いて、CPU11は、S103で、印刷対象の画像ファイルに基づく出力画像を表す出力画像データを生成する出力画像生成処理を実行する。
ここで、出力画像生成処理の詳細について図9のフローチャートを用いて説明する。なお、ここでは、印刷対象の画像ファイルが動画像ファイルであることを前提として説明する。
Subsequently, in S103, the CPU 11 executes output image generation processing for generating output image data representing an output image based on the image file to be printed.
Here, details of the output image generation processing will be described with reference to the flowchart of FIG. Here, the description will be made on the assumption that the image file to be printed is a moving image file.

CPU11は、この出力画像生成処理を開始すると、まずS201で、印刷対象の動画像ファイルから各種情報(動画像情報)を取得する。具体的には、動画像ファイルのフォーマット種別情報、コーデック種別情報、横方向サイズ情報、縦方向サイズ情報、総フレーム数情報及びFPS情報を取得する。こうして取得された各情報は、動画像情報記憶領域31内のフォーマット種別記憶領域41、コーデック種別記憶領域42、横方向サイズ記憶領域43、縦方向サイズ記憶領域44、総フレーム数記憶領域45及びFPS情報記憶領域46にそれぞれ記憶される。なお、これらのパラメータは、一般的には動画像ファイルのヘッダやフッタに記述されている。   When starting the output image generation process, the CPU 11 first acquires various types of information (moving image information) from the moving image file to be printed in S201. Specifically, format type information, codec type information, horizontal size information, vertical size information, total frame number information, and FPS information of a moving image file are acquired. Each information acquired in this way is the format type storage area 41, codec type storage area 42, horizontal size storage area 43, vertical size storage area 44, total frame number storage area 45 and FPS in the moving picture information storage area 31. Each information is stored in the information storage area 46. Note that these parameters are generally described in the header and footer of a moving image file.

続いて、CPU11は、S202で、印刷対象の動画像ファイルのシーンを解析する。本実施形態においては、動画像からシーン切替位置を検出し、1つの動画像を複数のシーンに分解する。シーン切替位置の検出方法は特に限定されず、例えば、フレーム画像間の差分の絶対値がしきい値以上である位置をシーン切替位置として検出する方法や、フレーム画像全体の動きベクトルがランダムな方向に変化した位置(フレーム画像間の相関が低い位置)をシーン切替位置として検出する方法を用いることができる。そして、分解した各シーンに、動画像の先頭から1,2,3,…の順にシーンIDを割り当てる。また、シーンごとに、シーン開始番号及びシーン終了番号を抽出する。シーンID、シーン開始番号及びシーン終了番号は、シーン情報記憶領域32内のシーンID記憶領域51、シーン開始番号記憶領域52及びシーン終了番号記憶領域53にそれぞれ記憶される。   Subsequently, in S202, the CPU 11 analyzes the scene of the moving image file to be printed. In the present embodiment, a scene switching position is detected from a moving image, and one moving image is decomposed into a plurality of scenes. The method for detecting the scene switching position is not particularly limited. For example, a method for detecting a position where the absolute value of the difference between frame images is equal to or greater than a threshold value as a scene switching position, or a direction in which the motion vector of the entire frame image is random. It is possible to use a method of detecting the position changed to (the position where the correlation between frame images is low) as the scene switching position. Then, scene IDs are assigned to the decomposed scenes in the order of 1, 2, 3,. For each scene, a scene start number and a scene end number are extracted. The scene ID, scene start number, and scene end number are stored in the scene ID storage area 51, the scene start number storage area 52, and the scene end number storage area 53 in the scene information storage area 32, respectively.

続いて、CPU11は、S203で、印刷対象の動画像ファイルの各シーンに含まれるフレーム画像データの数(シーンの長さ)に応じて、シーンごとの抽出画像数を算出する。具体的には、印刷対象の動画像ファイルの総フレーム数をFt、各シーンに含まれるフレーム画像データの数をFs0,Fs1,…,Fsnとし(nは自然数)、抽出画像数の総数(出力画像における配置画像数)をPtとした場合、各シーンの抽出画像数Ps0,Ps1,…,Psnは下記の式(1)から算出される。なお、厳密には、算出値に対し、各シーンの抽出画像数Ps0,Ps1,…,Psnがそれぞれ整数値となり、かつ、これらの合計値がPtとなるように調整される。また、各シーンの抽出画像数が1以上になる(抽出画像数が0のシーンが生じない)ように調整される。   Subsequently, in S203, the CPU 11 calculates the number of extracted images for each scene according to the number of frame image data (scene length) included in each scene of the moving image file to be printed. Specifically, the total number of frames of the moving image file to be printed is Ft, the number of frame image data included in each scene is Fs0, Fs1,..., Fsn (n is a natural number), and the total number of extracted images (output) When the number of arranged images in the image is Pt, the number of extracted images Ps0, Ps1,..., Psn of each scene is calculated from the following equation (1). Strictly speaking, the number of extracted images Ps0, Ps1,..., Psn of each scene is adjusted to an integer value with respect to the calculated value, and the total value thereof is adjusted to Pt. In addition, the number of extracted images in each scene is adjusted to be 1 or more (a scene with 0 extracted images does not occur).

Psn=Pt×(Fsn/Ft) …式(1)
そして、算出された抽出画像数は、各シーンIDに対応する抽出画像数記憶領域54に記憶される。ただし、この抽出画像数は暫定値であり、後述する処理(S302〜S306)によって調整され得る。なお、各シーンの長さに代えて、例えば、各シーン内のフレーム画像の変化(動き)の大きさに応じて(変化が大きいほど抽出画像数が多くなるように)、抽出画像数の暫定値を算出してもよい。
Psn = Pt × (Fsn / Ft) (1)
The calculated number of extracted images is stored in the extracted image number storage area 54 corresponding to each scene ID. However, the number of extracted images is a provisional value and can be adjusted by processing (S302 to S306) described later. In addition, instead of the length of each scene, for example, the number of extracted images is provisionally according to the magnitude (change) of the frame image in each scene (so that the number of extracted images increases as the change increases). A value may be calculated.

続いて、CPU11は、S204で、抽出画像数最適化処理を実行する。
ここで、抽出画像数最適化処理の詳細について図10のフローチャートを用いて説明する。
Subsequently, in S204, the CPU 11 executes an extraction image number optimization process.
Here, details of the extraction image number optimization process will be described with reference to the flowchart of FIG.

CPU11は、この抽出画像数最適化処理を開始すると、まずS301で、出力画像における代表画像の配置(レイアウト情報)に基づいて、部分列ごとの配置開始番号、配置終了番号及び連続配置画像数を特定する。すなわち、本実施形態では、これらの情報があらかじめ記憶されていないことを前提に、出力画像における代表画像の配置順序及び配置間隔に基づいてこれらの情報(部分列ごとの配置開始番号、配置終了番号及び連続配置画像数)を特定する。なお、前述したように、本実施形態では、4×4レイアウトがレイアウト情報としてあらかじめ記憶されているため、部分列ごとの配置開始番号、配置終了番号及び連続配置画像数についてもあらかじめ記憶しておくことでS301の処理を省略することは可能である。ただし、S301の処理を行うことで、出力画像における代表画像の配置(レイアウト情報)が外部から指定されるような態様に対応することが可能となる。   When the CPU 11 starts the extraction image number optimization process, first, in S301, the arrangement start number, the arrangement end number, and the continuous arrangement image number for each partial sequence are determined based on the arrangement (layout information) of the representative image in the output image. Identify. That is, in the present embodiment, on the assumption that these pieces of information are not stored in advance, these pieces of information (placement start number and placement end number for each substring) are based on the arrangement order and arrangement interval of the representative images in the output image. And the number of consecutively arranged images). As described above, in this embodiment, since the 4 × 4 layout is stored in advance as layout information, the arrangement start number, the arrangement end number, and the number of continuously arranged images for each partial column are also stored in advance. Thus, the process of S301 can be omitted. However, by performing the processing of S301, it is possible to cope with a mode in which the arrangement (layout information) of the representative image in the output image is designated from the outside.

具体的には、出力画像における代表画像の配置(座標情報及び配置順序)が把握されているという前提で、ある代表画像を判定対象画像とした場合に、図11(a)に示すように、判定対象画像と、次に配置される画像(代表画像)とが、横方向に並んでいるとする。この場合、1ピクセルを距離1とした横方向の離間距離が、代表画像の横方向の辺の長さLx以下であれば、横方向に連続している(同一の部分列を構成する)と判定し、代表画像の横方向の辺の長さLxを上回っていれば、横方向に連続していないと判定する。   Specifically, on the assumption that the arrangement (coordinate information and arrangement order) of the representative image in the output image is known, as shown in FIG. Assume that the determination target image and the next image (representative image) are arranged in the horizontal direction. In this case, if the horizontal separation distance with one pixel as the distance 1 is equal to or less than the length Lx of the horizontal side of the representative image, it is continuous in the horizontal direction (constitutes the same partial row). If it is determined and exceeds the length Lx of the horizontal side of the representative image, it is determined that the horizontal direction is not continuous.

同様に、図11(b)に示すように、判定対象画像と、次に配置される画像とが、縦方向に並んでいる場合、縦方向の離間距離が、代表画像の縦方向の辺の長さLy以下であれば、縦方向に連続していると判定し、代表画像の縦方向の辺の長さLyを上回っていれば、縦方向に連続していないと判定する。   Similarly, as shown in FIG. 11B, when the determination target image and the next image to be arranged are arranged in the vertical direction, the vertical separation distance is equal to the vertical side of the representative image. If it is less than or equal to the length Ly, it is determined that it is continuous in the vertical direction, and if it exceeds the length Ly of the vertical side of the representative image, it is determined that it is not continuous in the vertical direction.

また、判定対象画像に対し、次に配置される画像が横方向及び縦方向のいずれに並んでいるかは、判定対象画像を横方向又は縦方向に延長した範囲に、次に配置される画像の少なくとも一部が存在するか否かで判定する。すなわち、図11(c)に示すように、判定対象画像を横方向に延長した範囲に、次に配置される画像の少なくとも一部が存在すれば、横方向に並んでいると判定し、次に配置される画像が存在しなければ、横方向に並んでいないと判定する。縦方向も同様である。なお、この例では、斜め方向については判定対象に含めない。また、この例では、すべての代表画像が同一形状(矩形)、同一サイズ、同一の向き(傾き)で配置されることを前提としている。   Also, whether the next image to be arranged in the horizontal direction or the vertical direction with respect to the determination target image is determined based on whether the image to be arranged next is within a range obtained by extending the determination target image in the horizontal direction or the vertical direction. Judgment is made based on whether or not at least a portion exists. That is, as shown in FIG. 11C, if at least a part of an image to be arranged next exists in a range obtained by extending the determination target image in the horizontal direction, it is determined that the images are arranged in the horizontal direction. If there is no image to be arranged, it is determined that the images are not arranged in the horizontal direction. The same applies to the vertical direction. In this example, the oblique direction is not included in the determination target. In this example, it is assumed that all representative images are arranged with the same shape (rectangle), the same size, and the same direction (tilt).

このようにして連続配置画像数が特定されることにより、出力画像における部分列ごとの配置開始番号、配置終了番号及び連続配置画像数が特定される。こうして特定された各情報は、連続配置情報記憶領域34内の配置開始番号記憶領域72、配置終了番号記憶領域73及び連続配置画像数記憶領域74にそれぞれ記憶される。   By specifying the number of consecutively arranged images in this way, the arrangement start number, the arrangement end number, and the number of consecutively arranged images for each partial sequence in the output image are specified. Each piece of information thus identified is stored in an arrangement start number storage area 72, an arrangement end number storage area 73, and a continuous arrangement image number storage area 74 in the continuous arrangement information storage area 34, respectively.

続いて、CPU11は、S302で、動画像に含まれる複数のシーンのうち、S302〜S305の処理をまだ行っていないシーンのうちの1つを、時系列順に処理対象として選択する。そして、処理対象のシーンについて、抽出画像数と連続配置画像数とに基づき、配置端数を算出する。配置端数とは、処理対象のシーンから抽出される代表画像(説明の便宜上、「対象代表画像」という。)のうち、時系列順で末尾の(フレーム番号が最も大きい)対象代表画像が属する部分列(説明の便宜上、「末尾部分列」という。)における、連続配置画像数に満たない対象代表画像の数である。例えば、図2の最適化前の出力画像の場合、シーンAが処理対象であるとすると、上から2列目が末尾部分列であり、配置端数は3である。なお、末尾部分列における対象代表画像の数が、末尾部分列の連続配置画像数である場合(末尾部分列が対象代表画像のみで構成される場合)の配置端数は0である。   Subsequently, in S302, the CPU 11 selects one of the scenes that have not yet been subjected to the processing of S302 to S305 among the plurality of scenes included in the moving image as a processing target in chronological order. For the scene to be processed, the arrangement fraction is calculated based on the number of extracted images and the number of continuously arranged images. Arrangement fraction refers to the portion of the representative image extracted from the scene to be processed (referred to as “target representative image” for convenience of description) to which the last target representative image (with the largest frame number) belongs in chronological order. This is the number of target representative images that are less than the number of consecutively arranged images in a column (for convenience of explanation, referred to as “end subsequence”). For example, in the case of the output image before optimization in FIG. 2, if the scene A is a processing target, the second column from the top is the tail substring and the arrangement fraction is three. Note that the arrangement fraction is 0 when the number of target representative images in the end subsequence is the number of continuously arranged images in the end subsequence (when the end subsequence includes only the target representative image).

続いて、CPU11は、S303で、配置端数が0であるか否かを判定し、配置端数が0でない(つまり端数がある)と判定した場合には、S304へ移行し、配置端数が0である(つまり端数がない)と判定した場合には、S306へ移行する。   Subsequently, in S303, the CPU 11 determines whether or not the arrangement fraction is 0, and if it is determined that the arrangement fraction is not 0 (that is, there is a fraction), the process proceeds to S304 and the arrangement fraction is 0. If it is determined that there is (that is, there is no fraction), the process proceeds to S306.

そして、CPU11は、S304で、配置端数と連続配置画像数とに基づいて、抽出画像数の調整量を決定する。具体的には、まず、末尾部分列の連続配置画像数に基づいて、処理対象のシーンの終了位置の目標位置となる基準点を設定する。図12は、連続配置画像数に応じた基準点(黒三角印)の位置を示す図である。図12に示すように、基準点は、末尾部分列の端部に位置する代表画像の外側(左端の代表画像の左側又は右端の代表画像の右側)、又は、末尾部分列において連続する2つの代表画像の間、を候補位置(黒又は白の三角印)として設定される。つまり、「連続配置画像数+1」個の候補位置が存在することになる。そして、図12に示す基準点は、次の(1),(2)の手順で設定される。なお、ここでは、末尾部分列において代表画像が左から右へ順に配列されることを前提としている。   In step S <b> 304, the CPU 11 determines an adjustment amount for the number of extracted images based on the arrangement fraction and the number of continuously arranged images. Specifically, first, a reference point that is a target position of the end position of the scene to be processed is set based on the number of continuously arranged images in the end subsequence. FIG. 12 is a diagram illustrating the positions of reference points (black triangle marks) corresponding to the number of continuously arranged images. As shown in FIG. 12, the reference point is either two outside the representative image located at the end of the end subsequence (on the left side of the left end representative image or on the right side of the right end representative image) or in the end subsequence. Between the representative images, a candidate position (black or white triangle mark) is set. That is, there are “continuously arranged images + 1” candidate positions. The reference points shown in FIG. 12 are set by the following procedures (1) and (2). Here, it is assumed that the representative images are arranged in order from the left to the right in the end subsequence.

(1)末尾部分列における候補位置のうち、一番左の位置を番号が0の基準点に設定する。
(2)既に設定済みの基準点のうち、最も番号の大きい基準点よりも右側の代表画像の数(代表画像の残数)に応じて、次の(2A)〜(2C)のいずれかの処理を行う。
(1) The leftmost position among the candidate positions in the tail subsequence is set as a reference point having a number 0.
(2) Any of the following (2A) to (2C) depending on the number of representative images on the right side of the reference point with the largest number among the reference points that have already been set (remaining number of representative images) Process.

(2A)代表画像の残数が3以下の場合、末尾部分列における候補位置のうち一番右の位置を、次の番号の基準点に設定する。これにより、基準点の設定を完了する。
(2B)代表画像の残数が4の場合、既に設定済みの基準点のうち、最も番号の大きい基準点から右に2つ進んだ候補位置を、次の番号の基準点に設定し、末尾部分列における候補位置のうち一番右の位置を、その次の番号の基準点に設定する。これにより、基準点の設定を完了する。
(2A) When the remaining number of representative images is 3 or less, the rightmost position among the candidate positions in the end subsequence is set as the reference number of the next number. Thereby, the setting of the reference point is completed.
(2B) When the remaining number of representative images is 4, among the already set reference points, the candidate position that has advanced two to the right from the reference point with the largest number is set as the reference point of the next number, and the end The rightmost position among the candidate positions in the partial sequence is set as the reference point of the next number. Thereby, the setting of the reference point is completed.

(2C)代表画像の残数が5以上の場合、既に設定済みの基準点のうち、最も番号の大きい基準点から右に3つ進んだ候補位置を、次の番号の基準点に設定する。その後、再度(2)の処理を行う。   (2C) When the remaining number of representative images is 5 or more, among the already set reference points, a candidate position that is advanced three times to the right from the reference point with the largest number is set as the reference point of the next number. Thereafter, the process (2) is performed again.

以上の手順で処理を行うことにより、末尾部分列の連続配置画像数に基づいた基準点が設定され、設定された各基準点には、末尾部分列の配列方向に(左から右へ)、0を基準とする番号が割り振られる。このように、本実施形態では、部分列が切り替わる位置(左端又は右端)だけでなく、部分列の内部にも基準点が設定される。   By performing the processing in the above procedure, a reference point based on the number of consecutively arranged images of the end subsequence is set, and each set reference point is set in the arrangement direction of the end subsequence (from left to right) A number based on 0 is assigned. Thus, in this embodiment, the reference point is set not only at the position (left end or right end) at which the partial sequence is switched, but also inside the partial sequence.

次に、こうして設定した複数の基準点のうち、処理対象のシーンの終了位置から最も近い基準点である最近基準点を特定することで、抽出画像数の調整量を決定する。ここでいう処理対象のシーンの終了位置とは、前述した候補位置のうち、末尾の対象代表画像の右側に当たる位置(次に処理対象となるシーンの代表画像との間のシーン切替位置)である。例えば、連続配置画像数が4で、配置端数が2の場合、処理対象のシーンの終了位置は、番号が1の基準点の位置と同じになるため、番号が1の基準点が最近基準点として特定される。   Next, the adjustment amount of the number of extracted images is determined by specifying the nearest reference point that is the closest reference point from the end position of the scene to be processed among the plurality of reference points set in this way. The end position of the scene to be processed here is the position corresponding to the right side of the last target representative image among the above-described candidate positions (scene switching position with the representative image of the scene to be processed next). . For example, when the number of consecutively arranged images is 4 and the arrangement fraction is 2, the end position of the scene to be processed is the same as the position of the reference point with the number 1, so the reference point with the number 1 is the nearest reference point. Identified as

ただし、このような特定方法では、処理対象のシーンの終了位置から最も近い基準点が2つ特定され得るため、この場合には、次の方法により、2つの基準点のうちの一方を最近基準点として特定する。すなわち、2つの基準点のうち番号が大きい方の基準点の番号が、番号が最大の基準点(末尾部分列の右端の基準点)の番号を2で割った値よりも大きい場合には、2つの基準点のうち番号が大きい方の基準点を最近基準点として特定する。逆に、2つの基準点のうち番号が大きい方の基準点の番号が、番号が最大の基準点の番号を2で割った値以下の場合には、2つの基準点のうち番号が小さい方の基準点を最近基準点として特定する。このようにすることで、2つの基準点のうちの一方が部分列が切り替わる位置(左端又は右端)の基準点であり、他方が部分列の内部の基準点である場合には、部分列が切り替わる位置の基準点が最近基準点として特定される。   However, in such a specifying method, two reference points closest to the end position of the scene to be processed can be specified. In this case, one of the two reference points is set to the nearest reference point by the following method. Identify as a point. That is, when the number of the reference point with the larger number among the two reference points is larger than the value obtained by dividing the number of the reference point with the largest number (the reference point at the right end of the end subsequence) by 2, The reference point with the larger number of the two reference points is specified as the nearest reference point. Conversely, if the number of the reference point with the larger number of the two reference points is less than or equal to the value of the reference point with the largest number divided by 2, the smaller of the two reference points The reference point is identified as the latest reference point. In this way, when one of the two reference points is a reference point at a position where the partial sequence is switched (left end or right end) and the other is a reference point inside the partial sequence, the partial sequence is The reference point of the switching position is specified as the latest reference point.

例えば、末尾部分列の連続配置画像数が4で、配置端数が1の場合、処理対象のシーンの終了位置から最も近い基準点として、番号が0の基準点と、番号が1の基準点とが存在する。この場合、2つの基準点のうち番号が大きい方の基準点の番号(1)が、番号が最大の基準点の番号(2)を2で割った値(1)以下であるため、番号が0の基準点が最近基準点として特定される。また、例えば、末尾部分列の連続配置画像数が4で、配置端数が3の場合、処理対象のシーンの終了位置から最も近い基準点として、番号が1の基準点と、番号が2の基準点とが存在する。この場合、2つの基準点のうち番号が大きい方の基準点の番号(2)が、番号が最大の基準点の番号(2)を2で割った値(1)よりも大きいため、番号が2の基準点が最近基準点として特定される。   For example, when the number of consecutively arranged images in the end subsequence is 4 and the arrangement fraction is 1, the reference point with the number 0 and the reference point with the number 1 are the closest reference points from the end position of the scene to be processed. Exists. In this case, the number (1) of the reference point with the larger number among the two reference points is equal to or less than the value (1) obtained by dividing the number (2) of the reference point with the largest number by 2, so the number is A zero reference point is identified as the most recent reference point. Also, for example, when the number of consecutively arranged images in the end subsequence is 4 and the arrangement fraction is 3, the reference point with the number 1 and the reference number with the number 2 are the closest reference points from the end position of the scene to be processed. There is a point. In this case, the number (2) of the reference point with the larger number among the two reference points is larger than the value (1) obtained by dividing the number (2) of the reference point with the largest number by 2, so the number is Two reference points are identified as the latest reference points.

続いて、CPU11は、S305で、処理対象のシーンの終了位置が最近基準点に一致するように、処理対象のシーンの抽出画像数を最適化(増減調整)する。
具体的には、処理対象のシーンの抽出画像数を増加させる場合には、次に処理対象となるシーンの抽出画像数をその分減少させる。ただし、この増加調整は、次に処理対象となるシーンの抽出画像数が0以下にならない限度で行う。つまり、次に処理対象となるシーンの抽出画像数は、1以上であることが保証される。
Subsequently, in S305, the CPU 11 optimizes (adjusts or increases / decreases) the number of extracted images of the processing target scene so that the end position of the processing target scene coincides with the latest reference point.
Specifically, when the number of extracted images of the scene to be processed is increased, the number of extracted images of the scene to be processed next is decreased accordingly. However, this increase adjustment is performed as long as the number of extracted images of the scene to be processed next does not become 0 or less. That is, the number of extracted images of the scene to be processed next is guaranteed to be 1 or more.

逆に、処理対象のシーンの抽出画像数を減少させる場合には、次に処理対象となるシーンの抽出画像数をその分増加させる。ただし、この減少調整は、処理対象のシーンの抽出画像数が0にならない限度で行う。つまり、処理対象のシーンの抽出画像数も、1以上であることが保証される。   Conversely, when reducing the number of extracted images of the scene to be processed, the number of extracted images of the scene to be processed next is increased accordingly. However, this reduction adjustment is performed as long as the number of extracted images of the scene to be processed does not become zero. That is, the number of extracted images of the scene to be processed is also guaranteed to be 1 or more.

続いて、CPU11は、S306で、動画像に含まれるすべてのシーンについてS302〜S305の処理を行ったか否かを判定し、未処理のシーンが存在すると判定した場合にはS302へ戻る。一方、すべてのシーンについて処理を行ったと判定した場合には、図10の抽出画像数最適化処理を終了し、図9のS205へ移行する。   Subsequently, in S306, the CPU 11 determines whether or not the processing of S302 to S305 has been performed for all the scenes included in the moving image. If it is determined that there is an unprocessed scene, the CPU 11 returns to S302. On the other hand, if it is determined that the processing has been performed for all the scenes, the extracted image number optimization processing in FIG. 10 is terminated, and the process proceeds to S205 in FIG.

そして、CPU11は、S205で、動画像の各シーンから抽出する代表画像のフレーム番号を決定し、抽出フレーム番号記憶領域62に格納する。具体的には、シーン情報記憶領域32に記憶されている値に基づき、下記の式(2)から算出される。なお、n番目のシーンの抽出画像数をPsn、シーン開始番号をFns、シーン終了番号をFneとし、m番目(mは0以上の整数)の代表画像のフレーム番号をPpnmとする。   In step S <b> 205, the CPU 11 determines the frame number of the representative image extracted from each scene of the moving image and stores it in the extracted frame number storage area 62. Specifically, it is calculated from the following equation (2) based on the value stored in the scene information storage area 32. Note that the number of extracted images of the nth scene is Psn, the scene start number is Fns, the scene end number is Fne, and the frame number of the mth (m is an integer of 0 or more) representative image is Ppnm.

Ppnm=Fns+{m×(Fne−Fns)/(Psn−1)} …式(2)
つまり、シーンごとに、そのシーンを構成するすべてのフレーム画像のうち、先頭及び末尾(最終)のフレーム画像と、これらの間を「抽出画像数−1」等分した各等分位置(正確に等分できない場合は近似位置)の「抽出画像数−2」個のフレーム画像とが、代表画像に設定される。この結果、各シーンにおいて時系列的に互いに等間隔な関係にあるフレーム画像が代表画像に設定される。なお、抽出画像数が2の場合には、先頭及び末尾のフレーム画像が代表画像に設定され、抽出画像数が1の場合には先頭のフレーム画像が代表画像に設定される。
Ppnm = Fns + {m × (Fne−Fns) / (Psn−1)} (2)
That is, for every scene, among all the frame images constituting the scene, the first and last (last) frame images, and each equally-divided position obtained by equally dividing “the number of extracted images−1” (exactly The “extracted image number−2” frame images at the approximate position when equal division is not possible are set as representative images. As a result, frame images that are equally spaced in time series in each scene are set as representative images. When the number of extracted images is 2, the top and end frame images are set as representative images, and when the number of extracted images is 1, the top frame image is set as representative images.

以降の処理(S206〜S210)では、動画像に含まれる各シーンが、時系列順に処理対象のシーンとして選択される。また、各シーンの処理においては、そのシーンから抽出される各代表データが、時系列順に処理対象の代表データとして選択される。   In the subsequent processes (S206 to S210), each scene included in the moving image is selected as a scene to be processed in chronological order. In the processing of each scene, each representative data extracted from the scene is selected as representative data to be processed in chronological order.

CPU11は、S206で、抽出フレーム番号記憶領域62に格納された代表画像のフレーム番号に基づき、印刷対象の動画像ファイルから処理対象の代表データを抽出して、代表データ記憶領域35に記憶する。なお、フレーム番号に基づく抽出位置を特定するための情報(動画像の先頭からのオフセットアドレスやフレームサイズ等)は、動画像ファイルのフッタなどに記述されたインデックス情報などから読み取ることができる。   In step S <b> 206, the CPU 11 extracts representative data to be processed from the moving image file to be printed based on the frame number of the representative image stored in the extracted frame number storage area 62 and stores it in the representative data storage area 35. Note that information for specifying the extraction position based on the frame number (offset address, frame size, etc. from the beginning of the moving image) can be read from index information described in the footer of the moving image file.

続いて、CPU11は、S207で、代表データ記憶領域35に記憶された代表データに対し、伸張(デコード)処理を施す。
続いて、CPU11は、S208で、伸張処理を施した代表データを、出力画像データ記憶領域37の所定の位置に記憶する。本実施形態では、図13に示すように、抽出した代表データに対応する位置が4×4レイアウトに基づきあらかじめ定められており、対応する位置に記憶されることで、4×4レイアウトの出力画像が生成される。
Subsequently, the CPU 11 performs decompression (decoding) processing on the representative data stored in the representative data storage area 35 in S207.
Subsequently, in step S <b> 208, the CPU 11 stores the representative data subjected to the decompression process in a predetermined position in the output image data storage area 37. In the present embodiment, as shown in FIG. 13, the position corresponding to the extracted representative data is determined in advance based on the 4 × 4 layout, and is stored in the corresponding position so that the output image of the 4 × 4 layout is obtained. Is generated.

続いて、CPU11は、S209で、処理対象のシーンからすべての代表データを抽出したか否かを判定し、抽出していない代表データが存在すると判定した場合にはS206へ戻る。一方、すべての代表データを抽出したと判定した場合にはS210へ移行する。   Subsequently, in S209, the CPU 11 determines whether or not all representative data has been extracted from the scene to be processed. If it is determined that there is representative data that has not been extracted, the process returns to S206. On the other hand, if it is determined that all representative data has been extracted, the process proceeds to S210.

そして、CPU11は、S210で、動画像に含まれるすべてのシーンから代表データを抽出したか否かを判定し、代表データを抽出していないシーンが存在すると判定した場合にはS206へ戻る。一方、すべてのシーンから代表データを抽出したと判定した場合には図9の出力画像生成処理を終了し、図8のS104へ移行する。   In step S210, the CPU 11 determines whether representative data has been extracted from all scenes included in the moving image. If the CPU 11 determines that there is a scene from which representative data has not been extracted, the process returns to step S206. On the other hand, if it is determined that representative data has been extracted from all scenes, the output image generation processing in FIG. 9 is terminated, and the process proceeds to S104 in FIG.

そして、CPU11は、S104で、出力画像データ記憶領域37に記憶されている出力画像データの表す出力画像を印刷媒体に印刷するための画像印刷処理を実行する。この画像印刷処理では、出力画像データ記憶領域37に記憶されている出力画像データに対し、色変換処理(RGB→CMYK)及び二値化処理を行った後、印刷制御部15へ出力する。これにより、印刷制御部15で、出力画像が印刷媒体に印刷される。このS104の処理が完了することで、図8のメディア画像印刷処理が終了する。   In step S <b> 104, the CPU 11 executes image printing processing for printing the output image represented by the output image data stored in the output image data storage area 37 on the print medium. In this image printing process, the output image data stored in the output image data storage area 37 is subjected to color conversion processing (RGB → CMYK) and binarization processing, and then output to the print control unit 15. As a result, the print control unit 15 prints the output image on the print medium. When the process of S104 is completed, the media image printing process of FIG. 8 ends.

[1−4.効果]
以上説明したように、第1実施形態によれば、複数のフレーム画像(代表画像)が時系列的な順序(シーン単位でまとまった順序)で配置された出力画像を生成するために、部分列ごとの代表画像の連続配置画像数に基づく数の代表データが、シーンごとに抽出される。したがって、連続配置画像数とは無関係な数の代表データが抽出される場合と比較して、出力画像に配置される代表画像のシーン単位でのまとまりと、部分列単位でのまとまりとの関連性を高めることができる。この結果、動画像のシーンの切り替わりが分かりやすい見栄えのよい出力画像を生成することができる。
[1-4. effect]
As described above, according to the first embodiment, in order to generate an output image in which a plurality of frame images (representative images) are arranged in a time-series order (order arranged in scene units), The number of representative data based on the number of consecutively arranged images of each representative image is extracted for each scene. Therefore, the relationship between the group of representative images arranged in the output image in units of scenes and the group of substrings compared to the case where a number of representative data irrelevant to the number of consecutively arranged images is extracted. Can be increased. As a result, it is possible to generate an output image having a good appearance in which the switching of the moving image scene is easy to understand.

また、複数のシーンのそれぞれに含まれるフレーム画像データの数に応じて、抽出画像数の暫定値が設定されるため、シーンの長さに応じた数の代表画像が配置された出力画像を生成することができる。そして、抽出画像数の暫定値に従い代表データを抽出した場合に生成される出力画像において、部分列が切り替わる位置を基準点として、シーン切替位置が最近基準点に一致するように暫定値が調整されるため、見栄えのよい配置となるように抽出画像数を調整することができる。特に、部分列が切り替わる位置に加え、部分列の内部における特定の位置についても基準点としているため、抽出画像数の調整量を小さくすることができる。しかも、最近基準点が複数存在し、一方が部分列が切り替わる位置であり、他方が部分列の内部の位置である場合には、部分列が切り替わる位置に調整されるため、出力画像における部分列が切り替わる位置で、代表画像のシーンが切り替わりやすくすることができる。   In addition, since a provisional value for the number of extracted images is set according to the number of frame image data included in each of a plurality of scenes, an output image in which the number of representative images corresponding to the length of the scene is arranged is generated. can do. Then, in the output image generated when representative data is extracted according to the provisional value of the number of extracted images, the provisional value is adjusted so that the scene switching position coincides with the nearest reference point with the position where the partial sequence is switched as the reference point. Therefore, the number of extracted images can be adjusted so that the arrangement looks good. In particular, in addition to the position at which the partial sequence is switched, a specific position within the partial sequence is also used as a reference point, so the amount of adjustment of the number of extracted images can be reduced. In addition, when there are a plurality of recent reference points, one is a position where the partial sequence is switched, and the other is a position inside the partial sequence, the partial sequence in the output image is adjusted to the position where the partial sequence is switched. It is possible to easily switch the scene of the representative image at the position where the is switched.

また、シーンごとに、出力画像における代表画像のシーン単位での配列順に調整処理が行われるため、調整処理が既に行われたシーンの代表画像の位置がずれないようにすることができる。さらに、複数のシーンのそれぞれから1つ以上の代表データが抽出されるため、すべてのシーンの代表画像が配置された出力画像を表す出力画像データを生成することができる。   In addition, since the adjustment processing is performed for each scene in the order in which the representative images in the output image are arranged in units of scenes, the position of the representative image of the scene for which the adjustment processing has already been performed can be prevented from shifting. Furthermore, since one or more representative data is extracted from each of a plurality of scenes, output image data representing an output image in which representative images of all scenes are arranged can be generated.

一方、出力画像における代表画像の配置に基づき、2つの代表画像の離間距離が、その離間距離が定まる方向における代表画像の長さ以下であることを条件として、部分列を構成する代表画像が特定される。このため、例えば出力画像における代表画像の配置(レイアウト情報)が外部から指定されるような態様のように、連続配置画像数があらかじめ記憶されていない構成であっても、出力画像における代表画像の離間距離に基づき、部分列を構成する代表画像を適切に特定することができる。   On the other hand, based on the arrangement of the representative images in the output image, the representative images constituting the subsequence are specified on the condition that the distance between the two representative images is equal to or less than the length of the representative image in the direction in which the distance is determined. Is done. For this reason, for example, even in a configuration in which the number of consecutively arranged images is not stored in advance, such as an aspect in which the arrangement (layout information) of the representative image in the output image is designated from the outside, Based on the separation distance, the representative images constituting the partial row can be appropriately specified.

なお、第1実施形態では、複合機10が画像処理装置に相当する。そして、S202,S203,S205,S206,S302〜S306が抽出手段の処理に相当し、S202,S203が暫定値設定手段の処理に相当し、S302〜S306が調整手段の処理に相当する。また、S208が生成手段の処理に相当し、S301が特定手段の処理に相当する。   In the first embodiment, the multifunction machine 10 corresponds to an image processing apparatus. S202, S203, S205, S206, and S302 to S306 correspond to the processing of the extracting unit, S202 and S203 correspond to the processing of the provisional value setting unit, and S302 to S306 correspond to the processing of the adjusting unit. Further, S208 corresponds to the processing of the generation unit, and S301 corresponds to the processing of the specifying unit.

[2.第2実施形態]
[2−1.第1実施形態との相違点]
第2実施形態は、第1実施形態と同様であるが、出力画像を生成する対象となる画像データが相違する。すなわち、第1実施形態では、動画像ファイルから複数のフレーム画像データを代表データとして抽出し、各代表データの表す代表画像(フレーム画像)が配置された出力画像を生成する(図2)。これに対し、第2実施形態では、図14に示すように、複数のフォルダから静止画像ファイルを代表データとして複数抽出し、各代表データの表す代表画像(静止画像)が配置された出力画像を生成する。具体的には、複数のフォルダのそれぞれに含まれる静止画像ファイルの数に応じて、代表データのフォルダごとの抽出数の暫定値が設定される。そして、抽出数の暫定値に従い代表データを抽出した場合に生成される出力画像(図14に示す「最適化前の出力画像」)において、代表画像のフォルダが切り替わるフォルダ切替位置が、部分列が切り替わる位置に一致する方向に、抽出数の暫定値が調整される。これにより、代表データのフォルダごとの抽出数が、部分列ごとの代表画像の配列数(4個)に基づく数となるように、各フォルダからの代表データの抽出数が最適化される。つまり、第2実施形態では、フォルダが第1実施形態でいうシーンに対応する。なお、以下では、第1実施形態との共通点については説明を省略する。
[2. Second Embodiment]
[2-1. Difference from the first embodiment]
The second embodiment is the same as the first embodiment, but the image data that is the target for generating the output image is different. That is, in the first embodiment, a plurality of frame image data is extracted as representative data from a moving image file, and an output image in which representative images (frame images) represented by the representative data are arranged is generated (FIG. 2). On the other hand, in the second embodiment, as shown in FIG. 14, a plurality of still image files are extracted as representative data from a plurality of folders, and an output image in which representative images (still images) represented by the representative data are arranged. Generate. Specifically, a provisional value of the number of extractions of each representative data folder is set according to the number of still image files included in each of the plurality of folders. Then, in the output image generated when the representative data is extracted according to the provisional value of the number of extractions (“output image before optimization” shown in FIG. 14), the folder switching position where the folder of the representative image is switched is indicated by the partial sequence. The provisional value of the number of extractions is adjusted in the direction that coincides with the switching position. Accordingly, the number of representative data extracted from each folder is optimized so that the number of representative data extracted for each folder is a number based on the number of representative image arrays (4) for each partial column. That is, in the second embodiment, the folder corresponds to the scene referred to in the first embodiment. In addition, below, description is abbreviate | omitted about a common point with 1st Embodiment.

[2−2.CPUが実行する処理]
ここで、第2実施形態の複合機10のCPU11が実行するメディア画像印刷処理について、図8のフローチャートを流用して説明する。なお、出力画像を生成する対象となる画像データが相違するものの、基本的には第1実施形態と同様の流れであるため、説明の重複を避けるため、同一内容の処理については説明を簡略化する。
[2-2. Processing executed by CPU]
Here, the media image printing process executed by the CPU 11 of the multifunction machine 10 of the second embodiment will be described with reference to the flowchart of FIG. Note that although the image data that is the target for generating the output image is different, the flow is basically the same as in the first embodiment, and therefore, the description of the processing of the same content is simplified to avoid duplication of description. To do.

CPU11は、このメディア画像印刷処理を開始すると、まずS101で、メディアカードに記憶されている複数のフォルダのそれぞれに含まれる静止画像ファイルの数を内部メモリ13に記憶するメディア情報抽出処理を行う。   When the CPU 11 starts the media image printing process, first, in S101, the CPU 11 performs a media information extraction process for storing the number of still image files included in each of the plurality of folders stored in the media card in the internal memory 13.

続いて、CPU11は、S102で、メディアカードに記憶されている複数のフォルダの中から、印刷対象のフォルダをユーザに選択させる印刷画像選択処理を行う。具体的には、メディアカードに記憶されているM個のフォルダの中から、N個(N≦M)のフォルダを、例えばチェック印を付加する形で、印刷対象のフォルダとして選択させる。   Subsequently, in S102, the CPU 11 performs a print image selection process that allows the user to select a folder to be printed from among a plurality of folders stored in the media card. Specifically, N (N ≦ M) folders are selected as a folder to be printed from among M folders stored in the media card, for example, by adding a check mark.

続いて、CPU11は、S103で、印刷対象のフォルダに基づく出力画像を表す出力画像データを生成する出力画像生成処理を実行する。
ここで、第2実施形態の出力画像生成処理の詳細について、図15のフローチャートを用いて説明する。
Subsequently, in S103, the CPU 11 executes output image generation processing for generating output image data representing an output image based on the folder to be printed.
Details of the output image generation processing of the second embodiment will be described with reference to the flowchart of FIG.

CPU11は、この出力画像生成処理を開始すると、まずS401で、印刷対象の各フォルダのパスを取得する。
続いて、CPU11は、S402で、印刷対象の各フォルダに含まれる静止画像ファイルの数を内部メモリ13から取得する。
When starting the output image generation processing, the CPU 11 first acquires the path of each folder to be printed in S401.
In step S <b> 402, the CPU 11 acquires the number of still image files included in each folder to be printed from the internal memory 13.

続いて、CPU11は、S403で、印刷対象の各フォルダに含まれる静止画像ファイルの数に応じて、フォルダごとの抽出画像数(暫定値)を算出する。具体的には、第1実施形態と同様、印刷対象のすべてのフォルダに含まれる静止画像ファイルの数をIt、各フォルダに含まれる静止画像ファイルの数をIs0,Is1,…,Isnとし(nは自然数)、抽出画像数の総数(出力画像における配置画像数)をPtとした場合、各フォルダの抽出画像数Ps0,Ps1,…,Psnは下記の式(3)から算出される。なお、第1実施形態と同様、厳密には、算出値に対し、各フォルダの抽出画像数Is0,Is1,…,Isnがそれぞれ整数値となり、かつ、これらの合計値がPtとなるように調整される。また、第1実施形態と同様、各フォルダの抽出画像数が1以上になる(抽出画像数が0のフォルダが生じない)ように調整される。   Subsequently, in step S403, the CPU 11 calculates the number of extracted images (provisional value) for each folder according to the number of still image files included in each folder to be printed. Specifically, as in the first embodiment, the number of still image files included in all folders to be printed is It, and the number of still image files included in each folder is Is0, Is1,..., Isn (n Is a natural number), and when the total number of extracted images (the number of arranged images in the output image) is Pt, the number of extracted images Ps0, Ps1,..., Psn of each folder is calculated from the following equation (3). Strictly speaking, similarly to the first embodiment, the number of extracted images Is0, Is1,..., Isn of each folder is an integer value with respect to the calculated value, and the total value thereof is adjusted to Pt. Is done. Further, similarly to the first embodiment, the number of extracted images in each folder is adjusted to be 1 or more (no folder having the number of extracted images is 0).

Psn=Pt×(Isn/It) …式(3)
続いて、CPU11は、S404で、抽出画像数最適化処理を実行する。なお、第2実施形態の抽出画像数最適化処理は、第1実施形態でいうシーンを第2実施形態でいうフォルダに置き換えれば、第1実施形態の抽出画像数最適化処理(図10)と同様の処理内容となるため、説明を省略する。
Psn = Pt × (Isn / It) Equation (3)
Subsequently, in S404, the CPU 11 executes an extracted image number optimization process. The extracted image number optimization process of the second embodiment is the same as the extracted image number optimization process (FIG. 10) of the first embodiment if the scene referred to in the first embodiment is replaced with a folder referred to in the second embodiment. Since the processing contents are the same, the description is omitted.

以降の処理(S405〜S409)では、印刷対象の各フォルダが、出力画像に配置される順に処理対象のフォルダとして選択される。また、各フォルダの処理においては、そのフォルダから抽出される各代表データが、出力画像に配置される順に処理対象の代表データとして選択される。なお、各フォルダから代表データとして抽出される静止画像ファイルは、所定の規則に従い選択される。例えば、撮影日時等のタイムスタンプが新しい順に、抽出画像数分の静止画像ファイルを代表データとして選択してもよい。   In the subsequent processes (S405 to S409), each folder to be printed is selected as a folder to be processed in the order in which it is arranged in the output image. Further, in the processing of each folder, each representative data extracted from the folder is selected as representative data to be processed in the order of arrangement in the output image. A still image file extracted as representative data from each folder is selected according to a predetermined rule. For example, still image files corresponding to the number of extracted images may be selected as representative data in the order of time stamps such as shooting date and time.

CPU11は、S405で、処理対象のフォルダから処理対象の代表データを抽出して、代表データ記憶領域35に記憶する。
続いて、CPU11は、S406で、代表データ記憶領域35に記憶された代表データに対し、伸張(デコード)処理を施す。
In step S <b> 405, the CPU 11 extracts processing target representative data from the processing target folder and stores it in the representative data storage area 35.
Subsequently, the CPU 11 performs decompression (decoding) processing on the representative data stored in the representative data storage area 35 in S406.

続いて、CPU11は、S407で、伸張処理を施した代表データを、出力画像データ記憶領域37の所定の位置に記憶する。
続いて、CPU11は、S408で、処理対象のフォルダからすべての代表データを抽出したか否かを判定し、抽出していない代表データが存在すると判定した場合にはS405へ戻る。一方、すべての代表データを抽出したと判定した場合にはS409へ移行する。
Subsequently, in step S <b> 407, the CPU 11 stores the representative data subjected to the decompression process in a predetermined position in the output image data storage area 37.
Subsequently, in S408, the CPU 11 determines whether or not all representative data has been extracted from the processing target folder. If it is determined that there is representative data that has not been extracted, the process returns to S405. On the other hand, if it is determined that all the representative data has been extracted, the process proceeds to S409.

そして、CPU11は、S409で、印刷対象のすべてのフォルダから代表データを抽出したか否かを判定し、代表データを抽出していないフォルダが存在すると判定した場合にはS405へ戻る。一方、すべてのフォルダから代表データを抽出したと判定した場合には図15の出力画像生成処理を終了し、図8のS104へ移行する。   In step S409, the CPU 11 determines whether representative data has been extracted from all folders to be printed. If it is determined that there is a folder from which representative data has not been extracted, the process returns to step S405. On the other hand, if it is determined that representative data has been extracted from all folders, the output image generation processing in FIG. 15 is terminated, and the process proceeds to S104 in FIG.

そして、CPU11は、S104で、出力画像データ記憶領域37に記憶されている出力画像データの表す出力画像を印刷媒体に印刷するための画像印刷処理を実行する。このS104の処理が完了することで、図8のメディア画像印刷処理が終了する。   In step S <b> 104, the CPU 11 executes image printing processing for printing the output image represented by the output image data stored in the output image data storage area 37 on the print medium. When the process of S104 is completed, the media image printing process of FIG. 8 ends.

[2−3.効果]
以上説明したように、第2実施形態によれば、複数の静止画像(代表画像)がフォルダ単位でまとまった順序で配置された出力画像を生成するために、部分列ごとの代表画像の連続配置画像数に基づく数の代表データが、フォルダごとに抽出される。したがって、連続配置画像数とは無関係な数の代表データが抽出される場合と比較して、出力画像に配置される代表画像のフォルダ単位でのまとまりと、部分列単位でのまとまりとの関連性を高めることができる。この結果、動画像のフォルダごとのまとまりが分かりやすい見栄えのよい出力画像を生成することができる。また、第2実施形態によれば、第1実施形態で述べた他の効果についても同様に得られる。
[2-3. effect]
As described above, according to the second embodiment, in order to generate an output image in which a plurality of still images (representative images) are arranged in a folder unit, continuous arrangement of representative images for each partial sequence The number of representative data based on the number of images is extracted for each folder. Therefore, the relationship between the group of representative images arranged in the output image in units of folders and the group of substrings in comparison with the case where a number of representative data irrelevant to the number of consecutively arranged images is extracted. Can be increased. As a result, it is possible to generate a high-quality output image in which a group of moving image folders is easily understood. Further, according to the second embodiment, the other effects described in the first embodiment can be obtained similarly.

なお、第2実施形態では、S302〜S306,S402,S403,S405が抽出手段の処理に相当し、S402,S403が暫定値設定手段の処理に相当し、S302〜S306が調整手段の処理に相当する。また、S407が生成手段の処理に相当し、S301が特定手段の処理に相当する。   In the second embodiment, S302 to S306, S402, S403, and S405 correspond to the processing of the extraction unit, S402 and S403 correspond to the processing of the provisional value setting unit, and S302 to S306 correspond to the processing of the adjustment unit. To do. Further, S407 corresponds to the processing of the generation unit, and S301 corresponds to the processing of the specifying unit.

[3.他の実施形態]
以上、本発明の実施形態について説明したが、本発明は、上記実施形態に限定されることなく、種々の形態を採り得ることは言うまでもない。
[3. Other Embodiments]
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.

(1)上記実施形態では、連続配置画像数を加味せずに抽出画像数の暫定値を算出した後、算出した抽出画像数を連続配置画像数に応じて調整する例を示したが、これに限定されるものではなく、最初から連続配置画像数を加味して抽出画像数を算出してもよい。   (1) In the above embodiment, an example in which the provisional value of the number of extracted images is calculated without considering the number of continuously arranged images and then the calculated number of extracted images is adjusted according to the number of continuously arranged images is shown. However, the number of extracted images may be calculated in consideration of the number of continuously arranged images from the beginning.

(2)上記実施形態では、部分列が切り替わる位置だけでなく、部分列の内部にも基準点を設定し、処理対象のシーンの終了位置が部分列の切り替わり位置から離れている場合には、部分列の内部の基準点に一致するように抽出画像数を調整する例を示したが、これに限定されるものではない。例えば、処理対象のシーンの終了位置が部分列の切り替わり位置から離れている場合には、抽出画像数の調整を行わないようにし、部分列の内部には基準点を設定しないようにしてもよい。また、代表画像のシーンが必ず部分列の切り替わり位置で切り替わるように調整することも可能である。   (2) In the above embodiment, when the reference point is set not only at the position where the partial sequence is switched but also inside the partial sequence, and the end position of the scene to be processed is away from the switching position of the partial sequence, Although an example in which the number of extracted images is adjusted so as to match a reference point inside the subsequence has been shown, the present invention is not limited to this. For example, when the end position of the scene to be processed is away from the partial sequence switching position, the number of extracted images may not be adjusted, and the reference point may not be set inside the partial sequence. . It is also possible to adjust so that the scene of the representative image is always switched at the switching position of the partial row.

(3)上記実施形態では、出力画像における代表画像の配置として4×4レイアウトを例に示したが、代表画像の数や配置は特に限定されない。例えば、部分列ごとに連続配置画像数が異なる配置でもよい。また、部分列の配列方向は、横方向に限定される方向ではなく、例えば縦方向や、それ以外の方向(直線方向に限らず円弧状の方向や波状の方向など)としてもよい。また、連続する代表画像同士が離間しない配置でもよく、代表画像同士が一部重なるような配置でもよい。一方、代表画像の大きさが一定ではなく異なった配置も可能であり、また、代表画像を矩形以外の形状とすることも可能である。また、あらかじめレイアウト情報を記憶していなくてもよく、例えば、ユーザにより生成されたレイアウトを用いてもよい。   (3) In the above embodiment, the 4 × 4 layout is shown as an example of the arrangement of the representative images in the output image, but the number and arrangement of the representative images are not particularly limited. For example, the arrangement may be such that the number of consecutively arranged images is different for each partial row. In addition, the arrangement direction of the partial rows is not limited to the horizontal direction, and may be, for example, the vertical direction or other directions (not limited to the linear direction but an arcuate direction or a wavy direction). Further, the arrangement may be such that consecutive representative images are not separated from each other, or the representative images partially overlap each other. On the other hand, the size of the representative image is not constant and can be arranged differently, and the representative image can have a shape other than a rectangle. In addition, layout information may not be stored in advance, and for example, a layout generated by a user may be used.

(4)上記実施形態では、出力画像における代表画像の配置に基づいて連続配置画像数を特定する例を示したが、これに限定されるものではなく、連続配置画像数があらかじめ記憶されているか、外部から与えられるようにしてもよい。この場合、連続配置画像数を特定する処理(S301)を省略することができる。   (4) In the above embodiment, the example in which the number of continuously arranged images is specified based on the arrangement of the representative images in the output image has been described. However, the present invention is not limited to this, and is the number of continuously arranged images stored in advance? Alternatively, it may be given from the outside. In this case, the process (S301) for specifying the number of continuously arranged images can be omitted.

(5)上記実施形態では、画像データ群を区分するグループとして、動画像のシーンやフォルダを例に示したが、これに限定されるものではない。例えば、静止画像ファイルの撮影日等を日付単位で区分したグループとしてもよい。また、複数の動画像ファイルのフレーム画像が1つの出力画像に配置されることを前提として、各動画像ファイルをグループとしてもよい。また、連写画像を出力画像に配置してもよい。   (5) In the above embodiment, a moving image scene or folder is shown as an example of a group that divides an image data group. However, the present invention is not limited to this. For example, it may be a group in which the shooting date of a still image file is divided by date. Each moving image file may be grouped on the assumption that frame images of a plurality of moving image files are arranged in one output image. Further, the continuous shot image may be arranged in the output image.

(6)上記実施形態では、画像データをメディアカードから取得する例を示したが、これに代えて、例えば画像データを保存するサーバ(クラウドサーバ)から取得してもよい。また、画像データを保存する保存場所は複数であってもよく、例えば、ネットワーク上の複数のサーバからそれぞれ画像データを取得してもよい。この場合、1つのサーバから取得した画像データ群を1つのグループとしてもよい。   (6) In the above-described embodiment, the example in which the image data is acquired from the media card is shown. However, instead of this, for example, the image data may be acquired from a server (cloud server) that stores the image data. Further, there may be a plurality of storage locations for storing the image data. For example, the image data may be acquired from a plurality of servers on the network. In this case, a group of image data acquired from one server may be used as one group.

(7)上記実施形態では、複合機10に本発明を適用した構成を例示したが、これに限定されるものではなく、例えば、複合機以外の印刷装置(例えばスキャナ機能を有しない印刷装置)などにも適用することができる。また、印刷装置に限定されるものではなく、例えば、パーソナルコンピュータなどの情報処理装置やその情報処理装置で実行されるプログラムなどにも本発明を適用することができる。   (7) 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 having no scanner function) It can also be applied. Further, the present invention is not limited to a printing apparatus, and for example, 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…サムネイル画像データ記憶領域、37…出力画像データ記憶領域、38…印刷データ記憶領域、39…一時変数記憶領域   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 ... Moving image information storage area, 32 ... Scene information storage area, 33 ... Extracted frame information storage area, 34 ... Continuous arrangement information storage area, 35 ... Representative data storage area, 36 ... Thumbnail image data storage area, 37 ... Output image data storage area, 38 ... Print data Storage area, 39 ... Temporary variable storage area

Claims (11)

複数のグループに区分される画像データ群から、所定数の画像データを代表データとして抽出する抽出手段と、
前記所定数の代表データが表す所定数の代表画像が、複数の部分列に区分された列状に前記代表画像を配置するレイアウト情報に従って、前記グループ単位でまとまった順序で配置された出力画像を表す出力画像データを生成する生成手段と、
を備え、
前記代表データの前記グループごとの抽出数が、前記部分列ごとの前記代表画像の配列数に基づく数である
ことを特徴とする画像処理装置。
Extraction means for extracting a predetermined number of image data as representative data from the image data group divided into a plurality of groups;
An output image in which a predetermined number of representative images represented by the predetermined number of representative data is arranged in a grouped order in accordance with layout information for arranging the representative images in a row divided into a plurality of partial columns. Generating means for generating output image data representing;
With
The number of extractions of the representative data for each group is a number based on the number of arrangements of the representative images for each partial sequence.
請求項1に記載の画像処理装置であって、
前記抽出手段は、
前記画像データ群において前記複数のグループのそれぞれに含まれる画像データの数に応じて、前記代表データの前記グループごとの抽出数の暫定値を設定する暫定値設定手段と、
前記暫定値に従い前記代表データを抽出した場合に生成される前記出力画像において、前記部分列が切り替わる位置を基準位置として、前記代表画像のグループが切り替わるグループ切替位置が、当該グループ切替位置から最も近い前記基準位置に一致するように、前記暫定値を調整する調整処理を行うことで、前記代表データの前記グループごとの抽出数を決定する調整手段と、
を備えることを特徴とする画像処理装置。
The image processing apparatus according to claim 1,
The extraction means includes
Provisional value setting means for setting a provisional value of the number of extractions of the representative data for each group according to the number of image data included in each of the plurality of groups in the image data group;
In the output image generated when the representative data is extracted according to the provisional value, the group switching position at which the group of the representative image switches is the closest to the group switching position with the position at which the partial sequence is switched as a reference position. Adjusting means for determining the number of extractions of the representative data for each group by performing an adjustment process for adjusting the provisional value so as to match the reference position;
An image processing apparatus comprising:
請求項2に記載の画像処理装置であって、
前記調整手段は、前記部分列が切り替わる位置に加え、前記部分列における特定の位置を前記基準位置とする
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 2,
The image processing apparatus according to claim 1, wherein the adjustment unit sets a specific position in the partial sequence as the reference position in addition to the position at which the partial sequence is switched.
請求項3に記載の画像処理装置であって、
前記調整手段は、前記グループ切替位置から最も近い前記基準位置が複数存在し、一方が前記部分列が切り替わる位置であり、他方が前記特定の位置である場合には、前記グループ切替位置を前記部分列が切り替わる位置に一致させるように前記暫定値を調整する
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 3,
In the case where there are a plurality of the reference positions closest to the group switching position, one is a position at which the partial row is switched, and the other is the specific position, the adjusting means sets the group switching position as the partial position. The provisional value is adjusted so as to coincide with a position at which a column is switched.
請求項2から請求項4までのいずれか1項に記載の画像処理装置であって、
前記調整手段は、前記グループごとに、前記出力画像における前記代表画像の前記グループ単位での配列順に前記調整処理を行う
ことを特徴とする画像処理装置。
An image processing apparatus according to any one of claims 2 to 4, wherein
The image processing apparatus, wherein the adjustment unit performs the adjustment process in the order of arrangement of the representative image in the output image in the group unit for each group.
請求項2から請求項5までのいずれか1項に記載の画像処理装置であって、
前記暫定値設定手段は、前記複数のグループのそれぞれに含まれる画像データの数の比率に応じて、前記代表データの前記グループごとの抽出数の暫定値を設定する
ことを特徴とする画像処理装置。
An image processing apparatus according to any one of claims 2 to 5, comprising:
The provisional value setting means sets a provisional value of the number of extractions of the representative data for each group according to a ratio of the number of image data included in each of the plurality of groups. .
請求項1から請求項6までのいずれか1項に記載の画像処理装置であって、
前記抽出手段は、前記複数のグループのそれぞれから1つ以上の前記代表データを抽出する
ことを特徴とする画像処理装置。
An image processing apparatus according to any one of claims 1 to 6, wherein
The image processing apparatus, wherein the extraction unit extracts one or more representative data from each of the plurality of groups.
請求項1から請求項7までのいずれか1項に記載の画像処理装置であって、
前記出力画像における前記代表画像の配置に基づき、前記部分列を構成する前記代表画像を特定する特定手段を更に備え、
前記特定手段は、2つの代表画像の離間距離が所定長以下であることを条件として、前記部分列を構成する前記代表画像を特定する
ことを特徴とする画像処理装置。
An image processing apparatus according to any one of claims 1 to 7,
Based on the arrangement of the representative image in the output image, further comprising specifying means for specifying the representative image constituting the partial sequence;
The image processing apparatus characterized in that the specifying unit specifies the representative image constituting the partial sequence on condition that a separation distance between two representative images is a predetermined length or less.
請求項8に記載の画像処理装置であって、
前記所定長は、前記離間距離が定まる方向における前記代表画像の長さに設定される
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 8,
The image processing apparatus according to claim 1, wherein the predetermined length is set to a length of the representative image in a direction in which the separation distance is determined.
請求項1から請求項9までのいずれか1項に記載の画像処理装置であって、
前記画像データ群は、動画像を表すフレーム画像データ群であり、
前記グループは、前記動画像におけるシーンであり、
前記生成手段は、前記所定数の代表データが表す前記所定数の代表画像が、前記複数の部分列に区分された列状に前記代表画像を配置するレイアウト情報に従って、時系列的な順序で配置された前記出力画像を表す前記出力画像データを生成する
ことを特徴とする画像処理装置。
An image processing apparatus according to any one of claims 1 to 9, wherein
The image data group is a frame image data group representing a moving image,
The group is a scene in the moving image,
The generating unit arranges the predetermined number of representative images represented by the predetermined number of representative data in a time-series order according to layout information for arranging the representative images in a row divided into the plurality of partial columns. The image processing apparatus, wherein the output image data representing the output image thus generated is generated.
複数のグループに区分される画像データ群から、所定数の画像データを代表データとして抽出する抽出手段、及び、
前記所定数の代表データが表す所定数の代表画像が、複数の部分列に区分された列状に前記代表画像を配置するレイアウト情報に従って、前記グループ単位でまとまった順序で配置された出力画像を表す出力画像データを生成する生成手段
としてコンピュータを機能させ、
前記代表データの前記グループごとの抽出数が、前記部分列ごとの前記代表画像の配列数に基づく数である
ことを特徴とする画像処理プログラム。
An extracting means for extracting a predetermined number of image data as representative data from an image data group divided into a plurality of groups; and
An output image in which a predetermined number of representative images represented by the predetermined number of representative data is arranged in a grouped order in accordance with layout information for arranging the representative images in a row divided into a plurality of partial columns. Causing the computer to function as a generating means for generating output image data to be represented,
The number of extractions of the representative data for each group is a number based on the number of arrangements of the representative images for each partial sequence.
JP2011070300A 2011-03-28 2011-03-28 Image processing apparatus and image processing program Active JP5601261B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011070300A JP5601261B2 (en) 2011-03-28 2011-03-28 Image processing apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011070300A JP5601261B2 (en) 2011-03-28 2011-03-28 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2012205238A true JP2012205238A (en) 2012-10-22
JP5601261B2 JP5601261B2 (en) 2014-10-08

Family

ID=47185702

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011070300A Active JP5601261B2 (en) 2011-03-28 2011-03-28 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP5601261B2 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002027364A (en) * 2000-07-05 2002-01-25 Fuji Photo Film Co Ltd Image sorting system
JP2007304862A (en) * 2006-05-11 2007-11-22 Fujifilm Corp Image display method and image display program
JP2008283671A (en) * 2007-03-07 2008-11-20 Sony Corp Display control device, display control method, display control program and display system
JP2009095003A (en) * 2007-09-21 2009-04-30 Fujifilm Corp Image processing apparatus, method and program
JP2009241551A (en) * 2008-03-31 2009-10-22 Brother Ind Ltd Image processor
JP2009246890A (en) * 2008-03-31 2009-10-22 Brother Ind Ltd Image processor
JP2009241547A (en) * 2008-03-31 2009-10-22 Brother Ind Ltd Image processor
JP2009272859A (en) * 2008-05-07 2009-11-19 Canon Inc Moving image printer
JP2010247478A (en) * 2009-04-17 2010-11-04 Seiko Epson Corp Printer, image processing method and image processing program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002027364A (en) * 2000-07-05 2002-01-25 Fuji Photo Film Co Ltd Image sorting system
JP2007304862A (en) * 2006-05-11 2007-11-22 Fujifilm Corp Image display method and image display program
JP2008283671A (en) * 2007-03-07 2008-11-20 Sony Corp Display control device, display control method, display control program and display system
JP2009095003A (en) * 2007-09-21 2009-04-30 Fujifilm Corp Image processing apparatus, method and program
JP2009241551A (en) * 2008-03-31 2009-10-22 Brother Ind Ltd Image processor
JP2009246890A (en) * 2008-03-31 2009-10-22 Brother Ind Ltd Image processor
JP2009241547A (en) * 2008-03-31 2009-10-22 Brother Ind Ltd Image processor
JP2009272859A (en) * 2008-05-07 2009-11-19 Canon Inc Moving image printer
JP2010247478A (en) * 2009-04-17 2010-11-04 Seiko Epson Corp Printer, image processing method and image processing program

Also Published As

Publication number Publication date
JP5601261B2 (en) 2014-10-08

Similar Documents

Publication Publication Date Title
JP2020053977A (en) Reproducer, reproduction method, program, and storage medium
JP2011146799A (en) Device and program for processing image
US8538154B2 (en) Image processing method and image processing apparatus for extracting heading region from image of document
US8405754B2 (en) Image processing apparatus and control method for image processing apparatus
JP3938534B2 (en) Image processing apparatus and method, image forming apparatus, and program
US8891109B2 (en) Printing device capable of displaying thumbnail image of image file
JP4446447B2 (en) Image forming apparatus
US20130083071A1 (en) Image display apparatus, image display method and computer readable recording medium
JP4692615B2 (en) Printing apparatus and program
US8649064B2 (en) Printing device capable of printing image of image file
JP4761566B2 (en) Image processing apparatus and method, program and medium
JP5601261B2 (en) Image processing apparatus and image processing program
JP5230134B2 (en) Image forming apparatus with adaptive automatic layout function
JP2011114824A (en) Image processing apparatus and image processing program
US9361852B2 (en) Media reproduction device
JP5343739B2 (en) Output device and program
KR20120035360A (en) Apparatus for recognizing character and method thereof
JP4930615B2 (en) Output device and program
JP5455395B2 (en) Image processing apparatus and image processing method
JP2011186835A (en) Image processing apparatus and image processing program
JP2011015226A (en) Output device, and program
JP2011250284A (en) Output apparatus and program
JP2010016781A (en) Image processing apparatus and method of controlling the same
JP5523177B2 (en) Image coding apparatus and control method thereof
JP2021081792A (en) Information processing device, information processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130319

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140311

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140508

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140804

R150 Certificate of patent or registration of utility model

Ref document number: 5601261

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150