JP2014068221A - Image processing apparatus, control method thereof and control program, and album layout generation device - Google Patents
Image processing apparatus, control method thereof and control program, and album layout generation device Download PDFInfo
- Publication number
- JP2014068221A JP2014068221A JP2012212512A JP2012212512A JP2014068221A JP 2014068221 A JP2014068221 A JP 2014068221A JP 2012212512 A JP2012212512 A JP 2012212512A JP 2012212512 A JP2012212512 A JP 2012212512A JP 2014068221 A JP2014068221 A JP 2014068221A
- Authority
- JP
- Japan
- Prior art keywords
- image
- rectangle
- images
- layout
- processing apparatus
- 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
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
【課題】一枚の用紙に複数の画像を配置する際、画像の一部が削除されてしまうことがないようにする。
【解決手段】CPU101は複数の画像を複数のグループに分割し、グループの各々について画像を縦横同倍率で変倍して結合して複数の矩形を生成する。CPUは複数の矩形を再帰的に結合させ、複数の画像を含む1つの矩形をレイアウト矩形として生成する。CPUは複数の画像においてその一枚が特定の画像として選択された際、特定の画像がレイアウト矩形において残りの画像に対して最も大きくして配置されているか否かを判定し、特定の画像が最も大きくして配置されていると、レイアウト矩形を用紙レイアウトとして決定する。
【選択図】図1When arranging a plurality of images on one sheet, a part of the images is not deleted.
A CPU 101 divides a plurality of images into a plurality of groups, and generates a plurality of rectangles by scaling and combining the images with the same vertical and horizontal magnifications for each of the groups. The CPU recursively combines a plurality of rectangles to generate one rectangle including a plurality of images as a layout rectangle. When one of the plurality of images is selected as the specific image, the CPU determines whether the specific image is arranged to be the largest relative to the remaining images in the layout rectangle. When it is arranged in the largest size, the layout rectangle is determined as the paper layout.
[Selection] Figure 1
Description
本発明は、複数の画像を一枚の用紙にレイアウトする画像処理装置、その制御方法、および制御プログラム、並びにアルバムレイアウト生成装置に関し、特に、画像のレイアウトを自動的に判別して、さらに、特定の画像を大きくレイアウトする画像処理装置に関する。 The present invention relates to an image processing apparatus that lays out a plurality of images on a single sheet, a control method thereof, a control program, and an album layout generation apparatus. The present invention relates to an image processing apparatus that lays out a large image.
従来、一枚の用紙に複数の画像をレイアウトして印刷を行う画像処理装置が知られている。このような画像処理装置において、複数の画像を一枚の用紙に均等割付けするばかりでなく、画像の大きさ、位置、その角度をランダムに配置するようにしたものがある。 2. Description of the Related Art Conventionally, an image processing apparatus that performs printing by laying out a plurality of images on a single sheet is known. In such an image processing apparatus, there is an apparatus in which a plurality of images are not only equally allocated to one sheet, but also the size, position, and angle of the images are randomly arranged.
例えば、一枚の用紙に複数の画像を配置して印刷する際、これら画像の形状および重要度に基づいて予め定義されたテンプレートから1つのテンプレートを選択して、当該テンプレートを用いて一枚の用紙に複数の画像を配置するようにしたものがある(特許文献1参照)。 For example, when a plurality of images are arranged and printed on one sheet of paper, one template is selected from templates defined in advance based on the shape and importance of these images, and one template is used using the template. There is one in which a plurality of images are arranged on a sheet (see Patent Document 1).
ところが、特許文献1に記載の手法では、画像のアスペクト比に基づいて、最後にテンプレートに当てはめた画像についてレイアウトの微調整を行う必要がある。このため、場合によっては画像の一部が削除されてしまうことがある。 However, in the method described in Patent Document 1, it is necessary to finely adjust the layout of the image finally applied to the template based on the aspect ratio of the image. For this reason, in some cases, a part of the image may be deleted.
また、フォトアルバムのレイアウトを決定しようとする際、複数のページに複数の画像がレイアウト配置されることになるが、フォトアルバムの表紙にはタイトルなどがレイアウトされるだけである。 Also, when trying to determine the layout of a photo album, a plurality of images are laid out on a plurality of pages, but only a title or the like is laid out on the cover of the photo album.
よって、例えば、レイアウト配置される画像における撮影期間が長期に亘った場合などにおいては、ユーザは表紙を見ただけでは当該フォトアルバムの内容がどのようなものであるか想像することが困難である。 Therefore, for example, when the shooting period of an image arranged in a layout is long, it is difficult for the user to imagine what the content of the photo album is just by looking at the cover. .
従って、本発明の第1の目的は、一枚の用紙に複数の画像を配置する際、画像の一部が削除されてしまうことのない画像処理装置、その制御方法、および制御プログラムを提供することにある。 Accordingly, a first object of the present invention is to provide an image processing apparatus, a control method therefor, and a control program in which a part of the image is not deleted when a plurality of images are arranged on one sheet. There is.
また、本発明の第2の目的は、フォトアルバムの表紙を見ただけで、その内容を容易に想像することのできるアルバムレイアウト生成装置を提供することにある。 A second object of the present invention is to provide an album layout generation apparatus that can easily imagine the contents of a photo album by simply looking at the cover of the photo album.
上記の目的を達成するため、本発明による画像処理装置は、複数の画像を一枚の用紙にレイアウトする画像処理装置であって、前記複数の画像を複数のグループに分割して、前記グループの各々について前記画像を縦横同倍率で変倍して結合することによって複数の矩形を生成する画像結合手段と、前記画像結合手段によって生成された複数の矩形を再帰的に結合させて、前記複数の画像を含む1つの矩形をレイアウト矩形として前記用紙に合わせて生成する矩形生成手段と、前記複数の画像において少なくともその一枚が特定の画像として選択された際、当該特定の画像が前記レイアウト矩形において残りの画像に対して最も大きくして配置されているか否かを判定する判定手段と、前記特定の画像が前記レイアウト矩形において最も大きくして配置されていると、前記レイアウト矩形を用紙レイアウトとして決定するレイアウト決定手段とを有することを特徴とする。 In order to achieve the above object, an image processing apparatus according to the present invention is an image processing apparatus that lays out a plurality of images on a sheet of paper, divides the plurality of images into a plurality of groups, An image combining unit that generates a plurality of rectangles by scaling and combining the images at the same vertical and horizontal magnifications, and a plurality of rectangles generated by the image combining unit are combined recursively, Rectangle generating means for generating a rectangle including an image according to the paper as a layout rectangle, and when at least one of the plurality of images is selected as a specific image, the specific image is displayed in the layout rectangle. Determining means for determining whether or not the image is arranged to be the largest with respect to the remaining image; and the specific image is the largest in the layout rectangle When to is arranged, and having a layout determination means for determining the layout rectangle as sheet layout.
本発明による制御方法は、複数の画像を一枚の用紙にレイアウトする画像処理装置の制御方法であって、前記複数の画像を複数のグループに分割して、前記グループの各々について前記画像を縦横同倍率で変倍して結合することによって複数の矩形を生成する画像結合ステップと、前記画像結合ステップで生成された複数の矩形を再帰的に結合させて、前記複数の画像を含む1つの矩形をレイアウト矩形として前記用紙に合わせて生成する矩形生成ステップと、前記複数の画像において少なくともその一枚が特定の画像として選択された際、当該特定の画像が前記レイアウト矩形において残りの画像に対して最も大きくして配置されているか否かを判定する判定ステップと、前記特定の画像が前記レイアウト矩形において最も大きくして配置されていると、前記レイアウト矩形を用紙レイアウトとして決定するレイアウト決定ステップとを有することを特徴とする。 A control method according to the present invention is a control method for an image processing apparatus that lays out a plurality of images on a single sheet, and divides the plurality of images into a plurality of groups, and the images are vertically and horizontally divided into each of the groups. An image combining step for generating a plurality of rectangles by scaling and combining at the same magnification, and a single rectangle including the plurality of images by recursively combining the plurality of rectangles generated in the image combining step. Generating a rectangle corresponding to the sheet as a layout rectangle, and when at least one of the plurality of images is selected as a specific image, the specific image is compared with the remaining images in the layout rectangle. A determination step for determining whether or not the image is arranged at a maximum size, and the specific image is arranged at a maximum size in the layout rectangle When being characterized by having a layout determination step of determining the layout rectangle as sheet layout.
本発明による制御プログラムは、複数の画像を一枚の用紙にレイアウトする画像処理装置で用いられる制御プログラムであって、前記画像処理装置が備えるコンピュータに、前記複数の画像を複数のグループに分割して、前記グループの各々について前記画像を縦横同倍率で変倍して結合することによって複数の矩形を生成する画像結合ステップと、前記画像結合ステップで生成された複数の矩形を再帰的に結合させて、前記複数の画像を含む1つの矩形をレイアウト矩形として前記用紙に合わせて生成する矩形生成ステップと、前記複数の画像において少なくともその一枚が特定の画像として選択された際、当該特定の画像が前記レイアウト矩形において残りの画像に対して最も大きくして配置されているか否かを判定する判定ステップと、前記特定の画像が前記レイアウト矩形において最も大きくして配置されていると、前記レイアウト矩形を用紙レイアウトとして決定するレイアウト決定ステップとを実行させることを特徴とする。 A control program according to the present invention is a control program used in an image processing apparatus that lays out a plurality of images on a single sheet, and divides the plurality of images into a plurality of groups in a computer included in the image processing apparatus. An image combining step for generating a plurality of rectangles by scaling and combining the images at the same vertical and horizontal magnifications for each of the groups, and recursively combining the plurality of rectangles generated in the image combining step. A rectangle generation step for generating a rectangle including the plurality of images as a layout rectangle according to the paper, and when at least one of the plurality of images is selected as the specific image, the specific image A determination step of determining whether or not is arranged to be the largest in the layout rectangle with respect to the remaining image; When the specific image is located in the largest in the layout rectangle, characterized in that to execute a layout determination step of determining the layout rectangle as sheet layout.
本発明によるアルバムレイアウト生成装置は、上記の画像処理装置と、前記複数の画像をアルバムの複数のページにレイアウトして配置するレイアウト手段とを有し、前記画像処理装置は前記アルバムの表紙を前記一枚の用紙として前記複数の画像を含むレイアウト矩形を生成することを特徴とする。 An album layout generation apparatus according to the present invention includes the above-described image processing apparatus and layout means for laying out and arranging the plurality of images on a plurality of pages of the album, and the image processing apparatus includes a cover of the album A layout rectangle including the plurality of images is generated as one sheet.
本発明によれば、一枚の用紙に複数の画像を配置する際、画像の一部が削除されてしまうことがなく、しかも特定の画像を大きく配置することができる。 According to the present invention, when a plurality of images are arranged on one sheet, a part of the image is not deleted, and a specific image can be arranged largely.
また、本発明によれば、フォトアルバムの表紙を見ただけで、ユーザはその内容を容易に想像することができる。 Further, according to the present invention, the user can easily imagine the contents just by looking at the cover of the photo album.
以下、本発明の実施の形態による画像処理装置およびアルバムレイアウト生成装置の一例について図面を参照して説明する。 Hereinafter, an example of an image processing apparatus and an album layout generation apparatus according to an embodiment of the present invention will be described with reference to the drawings.
[第1の実施形態]
まず、本発明の第1の実施形態による画像形成装置に一例について図面を参照して説明する。
[First Embodiment]
First, an example of the image forming apparatus according to the first embodiment of the present invention will be described with reference to the drawings.
図1は、本発明の第1の実施形態による画像処理装置の一例についてその構成を示すブロック図である。 FIG. 1 is a block diagram showing the configuration of an example of an image processing apparatus according to the first embodiment of the present invention.
図示の画像処理装置100はCPU101を有しており、このCPU101は内部バス111を介して内蔵記憶装置102、メモリ103、表示制御部104、操作部105、画像入力部106、画像処理部107、および印刷部108に接続されている。これによって、内部バス111を介して相互にデータの送受を行うことができる。また、図示の例では、表示制御部104にはディスプレイ110が接続され、画像入力部106には外部記憶媒体122、外部通信機器121、およびネットワーク(NET)120が接続される。
The illustrated
内蔵記憶装置102には、画像データ、その他のデータ、およびCPU101で動作する各種プログラムなどが格納される。メモリ103として、例えば、RAMが用いられ、CPU101は、内蔵記憶装置102に格納されたプログラムに応じて、メモリ103をワークメモリとして用いて、画像処理装置100を制御する。
The built-in
操作部105はユーザ操作を受け付けて、ユーザ操作に応じた操作信号を生成してCPU101に送る。例えば、操作部105はユーザ操作を受け付ける入力デバイスであるキーボードなどの文字情報入力デバイス、マウスおよびタッチパネルなどのポインティングデバイス、そして、操作ボタンなどを備えている。
The
なお、タッチパネルは、平面的に構成された入力部の接触位置に応じた座標情報が出力する入力デバイスである。 The touch panel is an input device that outputs coordinate information according to the contact position of a planarly configured input unit.
CPU101はユーザ操作に応じて操作部105から出力された操作信号に基づいて画像処理装置100を制御して、画像処理装置100にユーザ操作に応じた動作を行わせる。
The
表示制御部104は、CPU101の制御下でディスプレイ110に画像を表示させる表示信号を出力する。具体的には、CPU101が表示制御部104に表示制御信号を送ると、表示制御部104は表示制御信号に応じた表示信号を生成してディスプレイ110に出力する。例えば、表示制御部104は表示制御信号に基づいて、GUI(Graphical User Interface)を構成するGUI画面をディスプレイ110に表示する。
The
なお、操作部105としてタッチパネルを用いる場合には、操作部105とディスプレイ110とを一体的に構成することができる。この際には、タッチパネルの透過率がディスプレイ110による表示を妨げないようにして、タッチパネルをディスプレイ110の表示面の上層に取り付ける。そして、タッチパネルにおける入力座標とディスプレイ110上の表示座標とを対応付ける。これによって、ユーザはディスプレイ110に表示された画面を直接的に操作可能なGUIを構成することができる。
When a touch panel is used as the
画像入力装置106には、CD、DVD、およびメモリカードなどの外部記憶媒体122が装着である。画像入力装置106はCPU101の制御下で、外部記憶媒体122からデータの読み出しを行うとともに、外部記憶媒体122に対してデータの書き込みを行うドライブ装置である。
The
さらに、画像入力装置106はCPU101の制御下で、LAN又はインターネットなどのネットワーク120、そして、携帯電話機およびデジタルカメラなどの外部通信機器121と通信を行う通信インターフェイスとしても用いられる。
Further, the
画像処理部107は内蔵記憶装置102又は画像入力装置106から取得した画像データに対して、所定の画像補間処理および縮小処理などのリサイズ処理および色変換処理を行うとともに、画像データを印刷部108が処理可能な形式に変換する画像変換処理を行う。印刷部108は画像処理部107で処理された画像データに応じて印刷を行う。
The
図2は、図1に示す画像処理装置で行われる印刷処理を説明するためのフローチャートである。 FIG. 2 is a flowchart for explaining a printing process performed by the image processing apparatus shown in FIG.
印刷処理を行う際には、まずユーザが操作部105を操作して印刷を行うべき用紙サイズを選択する(ステップS1001)。この用紙サイズ選択は印刷すべき用紙を画像処理装置100に装着することによって行うようにしてもよい。
When performing the printing process, first, the user operates the
続いて、ユーザは操作部105を操作して、後述の「自動レイアウト」と呼ばれる用紙レイアウトを選択する(ステップS1002)。ここでは、ユーザに用紙の長辺方向を上にするか又は短辺方向を上にするかについて選択させるようにしてもよい。
Subsequently, the user operates the
続いて、ユーザは操作部105を操作して、内蔵記憶装置102(又は画像入力部106)に保存された画像群から印刷を希望する複数枚の画像を選択する(ステップS1003)。この際、ユーザは画像毎に印刷を希望する範囲を指定するトリミング設定および印刷の上方向を指定する回転設定を行うようにしてもよい。
Subsequently, the user operates the
続いて、ユーザはステップS1003において選択した複数の画像において最もサイズを大きくして印刷したい画像(主画像と呼ぶ)を選択する(ステップS1004)。なお、主画像の選択に当たってはユーザによる操作ばかりでなく、画像解析の結果又は画像に付加された付帯情報(付随情報ともいう)に応じて自動的に選択するようにしてもよい。 Subsequently, the user selects an image (referred to as a main image) to be printed with the largest size among the plurality of images selected in step S1003 (step S1004). In selecting the main image, not only the operation by the user but also automatic selection may be made according to the result of image analysis or incidental information (also referred to as accompanying information) added to the image.
次に、ユーザは操作部105を操作して印刷指示を入力する(ステップS1005)。印刷指示が入力されると、画像処理装置100は複数枚の画像を一枚の用紙に印刷する印刷処理を開始する(ステップS1006)。
Next, the user operates the
印刷処理を開始すると、CPU101はユーザによって選択された複数の画像に対して後述するコマ配置計算を実行する(ステップS1007)。なお、コマ配置とは各画像の用紙に対する位置およびサイズをいう。
When the printing process is started, the
続いて、CPU101は、ステップS1007で算出したコマ配置に応じて画像処理部109を制御して、画像処理部109によって内蔵記憶装置102から読み出した画像に応じた印刷データを生成する(ステップS1008)。そして、印刷部108はCPU101の制御下で、印刷データに応じて一枚の用紙に複数の画像を印刷する。
Subsequently, the
図3は、図2に示すコマ配置計算を説明するためのフローチャートである。 FIG. 3 is a flowchart for explaining the frame arrangement calculation shown in FIG.
コマ配置計算を開始するとCPU101は、ユーザによって選択されたN個(Nは2以上の整数)の画像を内蔵記憶装置102又は画像入力部106から検索して、各画像に対応するコマの基準サイズを取得する(ステップS2001)。ここで、コマの基準サイズとはコマ配置計算に用いられるコマの幅および高さの初期値であり、各コマに対応する画像を、その頭方向を揃えた際の幅および高さをいう。なお、コマの基準サイズについては後述する。
When the frame placement calculation is started, the
コマの基準サイズを取得すると、CPU101は主画像に対応するコマの基準サイズに係るアスペクト比と同一の基準サイズに係るアスペクト比のコマに対応する画像をチェックする(ステップS2002)。
When the frame reference size is acquired, the
続いて、CPU101は画像順序の初期化を行う(ステップS2003)。なお、画像順序は、ユーザによって選択された順番に応じて決定される。又は画像ファイル名又はその付帯情報などに応じて画像順序を決定するようにしてもよい。画像順序の決定に当たっては、主画像は常に1番目(先頭)に配置される。
Subsequently, the
次に、CPU101はN個の画像から、後述するようにして、0次の主矩形の生成を行う(ステップS2004)。ここで、主矩形とは主画像を含むx個(xは2以上の整数)の画像によって生成される矩形のことをいう。
Next, the
続いて、CPU101は用紙レイアウトに合わせてステップS2004で生成された主矩形を縦横同率でリサイズして、後述するようにして、印刷データに対するレイアウトの生成を行う(ステップS2005)。
Subsequently, the
CPU101はステップS2005で生成したレイアウトの余白量および各コマのサイズの比などに応じて画像レイアウトの評価を行う(ステップS2006)。そして、CPUは当該画像レイアウトについて可否の判定を行い(ステップS2007)、画像レイアウト判定がOKであると(ステップS2007において、YES)、CPU101はコマ配置計算を終了する。
The
一方、画像レイアウト判定がNGであると(ステップS2007において、NO)、CPU101はステップS2004の処理に戻って、主矩形の生成をやり直す。
On the other hand, if the image layout determination is NG (NO in step S2007), the
図4は、図3で説明したコマの基準サイズについて説明するための図である。そして、図4(a)は基準サイズの幅と画像の幅とが等しくかつ基準サイズの高さと画像の高さとが等しい画像の一例を示す図であり、図4(b)は基準サイズの幅と画像の高さとが等しくかつ基準サイズの高さと画像の幅とが等しい画像の一例を示す図である。また、図4(c)はユーザによるトリミング設定が行われた際の画像の一例を示す図である。 FIG. 4 is a diagram for explaining the reference size of the frame described in FIG. FIG. 4A is a diagram illustrating an example of an image in which the width of the reference size is equal to the width of the image, and the height of the reference size is equal to the height of the image. FIG. 4B is a width of the reference size. FIG. 6 is a diagram illustrating an example of an image in which the height of the image is equal and the height of the reference size is equal to the width of the image. FIG. 4C is a diagram illustrating an example of an image when trimming setting is performed by the user.
図4(a)に示す例では、画像の付随情報である回転情報又は図3に示すステップS1003においてユーザによって指定された回転情報が0度又は180度であって、さらにステップS1003においてユーザによるトリミング設定が行われていない。この場合には、基準サイズの幅=画像の幅、基準サイズの高さ=画像の高さとなる。 In the example shown in FIG. 4A, the rotation information that is accompanying information of the image or the rotation information specified by the user in step S1003 shown in FIG. 3 is 0 degree or 180 degrees, and further trimming by the user in step S1003. Settings are not made. In this case, the width of the reference size = the width of the image, and the height of the reference size = the height of the image.
図4(b)に示す例では、回転情報が90度又は270度であって、さらにステップS1003においてユーザによるトリミング設定が行われていない。この場合には、基準サイズの幅=画像の高さ、基準サイズの高さ=画像の幅となる。 In the example shown in FIG. 4B, the rotation information is 90 degrees or 270 degrees, and the trimming setting by the user is not performed in step S1003. In this case, the width of the reference size = the height of the image, and the height of the reference size = the width of the image.
図4(c)に示す例では、回転情報が0度又は180度であって、かつステップS1003においてユーザによるトリミング設定が行われている。この場合には、基準サイズの幅=トリミングの幅、基準サイズの高さ=トリミングの高さとなる。 In the example shown in FIG. 4C, the rotation information is 0 degree or 180 degrees, and the trimming setting by the user is performed in step S1003. In this case, the width of the reference size = the width of trimming, and the height of the reference size = the height of trimming.
図5は、図3に示す用紙レイアウトに合わせて主矩形をリサイズする処理を説明するための図である。そして、図5(a)は矩形の幅÷矩形の高さ≦用紙レイアウトの幅÷用紙レイアウトの高さである際の調整を示す図であり、図5(b)は矩形の幅÷矩形の高さ>用紙レイアウトの幅÷用紙レイアウトの高さである際の調整を示す図である。 FIG. 5 is a diagram for explaining the process of resizing the main rectangle in accordance with the paper layout shown in FIG. FIG. 5A is a diagram showing adjustment when the width of the rectangle ÷ the height of the rectangle ≦ the width of the paper layout ÷ the height of the paper layout. FIG. 5B shows the width of the rectangle ÷ the rectangular shape. FIG. 11 is a diagram illustrating adjustment when height> width of paper layout / height of paper layout.
図5(a)において、矩形の幅、矩形の高さ、用紙レイアウトの幅、および用紙レイアウトの高さが次の式(1)の関係にあるものとする。
矩形の幅(Rect Width)÷矩形の高さ(Rect Hight)≦用紙レイアウトの幅(Layout Width)÷用紙レイアウトの高さ(Layout Hight) (1)
In FIG. 5A, it is assumed that the width of the rectangle, the height of the rectangle, the width of the paper layout, and the height of the paper layout are in the relationship of the following equation (1).
Rectangular width (Rect Width) ÷ Rectangle height (Rect High) ≦ Paper layout width (Layout Width) ÷ Paper layout height (Layout Height) (1)
この場合には、矩形の高さが用紙レイアウトの高さと一致するように矩形の幅および高さを、(用紙レイアウトの高さ÷矩形の高さ(Layout Hight/Rect Hight))倍する。さらに、矩形が用紙レイアウトの中心に配置されるように、矩形と当該矩形に含まれるコマの配置をx方向(水平方向、つまり、用紙の幅方向)に次の式(2)で示す量WPだけ移動する。
WP=(用紙レイアウトの幅−リサイズされた矩形の幅)÷2 (2)
In this case, the width and height of the rectangle are multiplied by (the height of the paper layout / the height of the rectangle (Layout Height / Rect High)) so that the height of the rectangle matches the height of the paper layout. Further, the amount WP represented by the following equation (2) in the x direction (horizontal direction, that is, the width direction of the paper) is arranged so that the rectangle is arranged at the center of the paper layout. Just move.
WP = (width of paper layout−width of resized rectangle) ÷ 2 (2)
図5(b)において、矩形の幅、矩形の高さ、用紙レイアウトの幅、および用紙レイアウトの高さが次の式(3)の関係にあるものとする。
矩形の幅(Rect Width)÷矩形の高さ(Rect Hight)>用紙レイアウトの幅(Layout Width)÷用紙レイアウトの高さ(Layout Hight) (3)
In FIG. 5B, it is assumed that the width of the rectangle, the height of the rectangle, the width of the paper layout, and the height of the paper layout are in the relationship of the following equation (3).
Rectangular width (Rect Width) / Rectangle height (Rect High)> Paper layout width (Layout Width) ÷ Paper layout height (Layout Height) (3)
この場合には、矩形の幅が用紙レイアウトの幅と一致するように幅と高さを(用紙レイアウトの幅÷矩形の幅)倍する。さらに、矩形が用紙レイアウトの中心に配置されるように、矩形と当該矩形に含まれるコマの配置をy方向(垂直方向、つまり、用紙の高さ方向)に次の式(4)で示す量HPだけ移動する。
HP=(用紙レイアウトの高さ−リサイズされた矩形の高さ)÷2 (4)
In this case, the width and height are multiplied by (paper layout width ÷ rectangle width) so that the width of the rectangle matches the width of the paper layout. Further, the amount represented by the following expression (4) in the y direction (vertical direction, that is, the height direction of the paper) is arranged so that the rectangle is arranged at the center of the paper layout. Move by HP.
HP = (height of the paper layout-height of the resized rectangle) / 2 (4)
上述の処理を行うことによって、ユーザによって選択された複数の画像を用紙レイアウトに対して、上下又は左右の余白部分以外に隙間なくレイアウトすることができる。 By performing the above-described processing, a plurality of images selected by the user can be laid out with no gaps other than the top and bottom or left and right margins with respect to the paper layout.
図6は、複数の矩形をそのアスペクト比を崩さないように結合して新しい矩形を生成する手法の一例を説明するための図である。 FIG. 6 is a diagram for explaining an example of a technique for generating a new rectangle by combining a plurality of rectangles without breaking the aspect ratio.
図6に示す例では、2つの矩形が縦方向に配置される。これら2つの矩形の各々は1つのコマであってもよいし、複数のコマが結合されて1つの矩形になっていてもよい。 In the example shown in FIG. 6, two rectangles are arranged in the vertical direction. Each of these two rectangles may be one frame, or a plurality of frames may be combined into one rectangle.
2つの矩形のいずれか一方が基準矩形、他方が追加矩形として設定される。基準矩形の幅をW、基準矩形の高さをHとし、追加矩形の幅をw、追加矩形の高さをhとする。ここで、追加矩形をW/w倍で縦横のサイズをリサイズすると、基準矩形の幅=リサイズした追加矩形の幅となる。 One of the two rectangles is set as a reference rectangle and the other is set as an additional rectangle. The width of the reference rectangle is W, the height of the reference rectangle is H, the width of the additional rectangle is w, and the height of the additional rectangle is h. Here, when the additional rectangle is resized by W / w times, the width of the reference rectangle = the width of the resized additional rectangle.
追加矩形の座標を(基準矩形のX座標、基準矩形のY座標+H)に設定すると基準矩形の下に追加矩形が配置される。また、追加矩形の座標を(基準矩形のX座標、基準矩形のY座標−リサイズした追加矩形の高さ)と設定すると、基準矩形の上に追加画像が配置される。 When the coordinates of the additional rectangle are set to (the X coordinate of the reference rectangle, the Y coordinate + H of the reference rectangle), the additional rectangle is arranged below the reference rectangle. Further, when the coordinates of the additional rectangle are set as (the X coordinate of the reference rectangle, the Y coordinate of the reference rectangle−the height of the resized additional rectangle), the additional image is arranged on the reference rectangle.
このようにして、追加矩形をリサイズした後、Y方向(高さ方向)に(W/w)×hの量だけ移動すると、基準矩形および追加矩形で規定された矩形の幅=基準矩形の幅(W)となり、その高さ=(基準矩形の高さ+リサイズした追加矩形の高さ)=H+(W/w)×hとなる。 In this way, after resizing the additional rectangle and moving in the Y direction (height direction) by an amount of (W / w) × h, the width of the rectangle defined by the reference rectangle and the additional rectangle = the width of the reference rectangle (W), and the height = (height of the reference rectangle + height of the resized additional rectangle) = H + (W / w) × h.
図7は、複数の矩形をそのアスペクト比を崩さないように結合して新しい矩形を生成する手法の他の例を説明するための図である。 FIG. 7 is a diagram for explaining another example of a technique for generating a new rectangle by combining a plurality of rectangles without breaking the aspect ratio.
図7に示す例では、2つの矩形が横方向に配置される。図6で説明したように、一方の矩形を基準矩形、他方の矩形を追加矩形と設定する。ここでは、追加矩形を(H/h)倍で縦横のサイズをリサイズする。基準矩形の高さ=リサイズした追加矩形の高さとなる。 In the example shown in FIG. 7, two rectangles are arranged in the horizontal direction. As described in FIG. 6, one rectangle is set as a reference rectangle and the other rectangle is set as an additional rectangle. Here, the additional rectangle is resized by (H / h) times. The height of the reference rectangle = the height of the resized additional rectangle.
追加矩形の座標を(基準矩形のX座標+基準矩形のW、基準矩形のY座標)と設定すると、基準矩形の右に追加矩形が配置される。また、追加矩形の座標を(基準矩形のX座標−リサイズした追加矩形の幅、基準矩形のY座標)と設定すると、基準矩形の左に追加矩形が配置される。 If the coordinates of the additional rectangle are set as (reference rectangle X coordinate + reference rectangle W, reference rectangle Y coordinate), the additional rectangle is arranged to the right of the reference rectangle. If the coordinates of the additional rectangle are set as (reference rectangle X coordinate-resized additional rectangle width, reference rectangle Y coordinate), the additional rectangle is arranged on the left of the reference rectangle.
このようにして、追加矩形をリサイズした後、X方向(幅方向)に(H/h)×wの量だけ移動すると、基準矩形および追加矩形で規定された矩形の幅=(基準矩形の幅+リサイズした追加矩形の幅)=W+(H/h)×wとなり、その高さ=基準矩形の高さ(H)の矩形となる。 After resizing the additional rectangle in this way, when the amount of (H / h) × w is moved in the X direction (width direction), the width of the rectangle defined by the reference rectangle and the additional rectangle = (width of the reference rectangle) + Resized additional rectangle width) = W + (H / h) × w, and the height = the rectangle of the reference rectangle height (H).
基準矩形および追加矩形が複数のコマから構成される場合においても、上記ように縦横同倍率で変倍してリサイズ処理および移動処理を行えば、矩形内部に配置されたコマ同士の隙間がない矩形を保つことができる。 Even when the reference rectangle and the additional rectangle are composed of a plurality of frames, if the resizing process and the moving process are performed by resizing and moving at the same magnification in the vertical and horizontal directions as described above, there is no gap between the frames arranged inside the rectangle. Can keep.
つまり、追加矩形内のコマの座標を(xi,yi)とし、追加矩形内のコマの幅および高さをそれぞれwiおよびhiとすると、図6に示す例において縦結合後のコマの座標は(xi×W/w,H+yi×W/w)となり、その幅および高さはそれぞれ(wi×W/w)および(hi×W/w)となる。また、Y方向に(W/w)×hだけ移動すると、コマの座標は(xi×W/w,yi×W/w)となり、その幅および高さはそれぞれ(wi×W/w)および(hi×W/w)となる。ここで、添え字のiはコマ数を示す。 That is, if the coordinates of the frames in the additional rectangle are (xi, yi) and the widths and heights of the frames in the additional rectangle are wi and hi, respectively, the coordinates of the frames after vertical combination in the example shown in FIG. xi × W / w, H + yi × W / w), and the width and height are (wi × W / w) and (hi × W / w), respectively. Further, when moving in the Y direction by (W / w) × h, the coordinates of the frame are (xi × W / w, yi × W / w), and the width and height are (wi × W / w) and (Hi × W / w). Here, the subscript i indicates the number of frames.
図7に示す例において横結合後のコマの座標は(W+xi×H/h,yi×H/h)となり、その幅および高さはそれぞれ(wi×H/h)および(hi×H/h)となる。また、X方向に(H/h)×wだけ移動すると、コマの座標は(xi×H/h,yi×H/h)となり、その幅および高さはそれぞれ(wi×H/h)および(hi×H/h)となる。 In the example shown in FIG. 7, the coordinates of the frame after the horizontal combination are (W + xi × H / h, yi × H / h), and the width and height are (wi × H / h) and (hi × H / h), respectively. ) Further, when moving in the X direction by (H / h) × w, the coordinates of the frame are (xi × H / h, yi × H / h), and the width and height are (wi × H / h) and (Hi × H / h).
図8は、図3に示す0次の主矩形の生成を説明するためのフローチャートである。なお、図示のフローチャートに係る処理は、図1に示すCPU101で行われる。また、主矩形の生成のフローは再帰的に行なわれるので、X個の画像によるi次の主矩形の生成について説明する。
FIG. 8 is a flowchart for explaining generation of the zeroth-order main rectangle shown in FIG. Note that the processing according to the illustrated flowchart is performed by the
主矩形の生成を開始すると、CPU101は画像数X=1であるか否かを判定する(ステップS3001)。X=1であると(ステップS3001において、YES)、CPU101は画像が主画像のみであるとして、i次の主矩形のサイズ=主画像のサイズとするとともに、i次の主矩形の位置(座標)=(0,0)に初期化する(ステップS3002)。そして、CPU101は主矩形の生成を終了する。
When generation of the main rectangle is started, the
X=1でないと(ステップS3001において、NO)、CPU101はX個の画像をx個とy(=X−x)個との2つのグループに分類(分割)する(ステップS3003)。なお、画像は所定の順序で配列され、x個のグループに分類される画像はX個の画像に含まれ、かつ画像順序において先頭(最初)からx番目までの画像である。
If X is not 1 (NO in step S3001), the
続いて、CPU101は再帰的にx個の画像を用いて(i+1)次の主矩形を生成する(ステップS3004)。そして、CPU101はy個の画像を用いて、後述する(i+1)次の副矩形を生成する(ステップS3005)。なお、副矩形とは主画像を含まないy個の画像に対応するコマから生成される矩形である。
Subsequently, the
(i+1)次の主矩形および副矩形を生成した後、CPU101は図6および図7で説明した手法を用いて、特定の規則によって決定される方向に2つの矩形を結合する(ステップS3006)。ここで、特定の規則とはランダムでもよいし、また画像数X又は階層iに基づくルールでもよい。
(I + 1) After generating the next main rectangle and sub-rectangle, the
続いて、CPU101は、生成された結合矩形うちで主画像に対応するコマが最も大きく配置されているか否かを判定する(ステップS3007)。主画像に対応するコマが最も大きくして配置されていると(ステップS3007において、YES)、CPU101は結合後の矩形を主矩形(レイアウト矩形)と決定して主矩形の生成を終了する。
Subsequently, the
一方、主画像に対応するコマが最も大きくし配置されていないと(ステップS3007において、NO)、CPU101は結合矩形のうちで最も大きいコマに対応する画像(最大画像)の基準サイズのアスペクト比が主画像のコマの基準サイズのアスペクト比と同一であるか否かを判定する(ステップS3008)。アスペクト比が同一である(ステップS3008において、YES)、CPU101は最も大きいコマに対応する画像と主画像との位置およびサイズを入れ替える(ステップS3009)。そして、CPU101は主矩形の生成を終了する。
On the other hand, if the frame corresponding to the main image is not the largest and arranged (NO in step S3007),
アスペクト比が同一でないと(ステップS3008において、NO)、つまり、入れ替えが不可であると、CPU101は主画像を除く他の画像(つまり、(X−1)の画像)の順序(画像順序)をシャッフルする(ステップS3010)。そして、CPU101はステップS3003の処理に戻ってi次の主矩形生成をやり直す。ここで、CPU101はシャッフル後(変更後)の画像について、上述のようにしてグループ分けすることになる。
If the aspect ratios are not the same (NO in step S3008), that is, if replacement is impossible, the
図9は、図8に示す副矩形の生成を説明するためのフローチャートである。なお、副矩形の生成のフローは再帰的に行なわれるのでY個の画像によるj次の副矩形の生成について説明する。 FIG. 9 is a flowchart for explaining generation of the sub-rectangle shown in FIG. Since the flow of generating the sub-rectangle is recursively performed, generation of the j-th sub-rectangle from Y images will be described.
副矩形の生成を開始すると、CPU101は画像数Y=1であるか否かを判定する(ステップS4001)、Y=1であると(ステップS4001において、YES)、CPU101はj次の副矩形のサイズ=該当する画像の基準サイズとするとともに、j次の副矩形の位置(座標)=(0,0)に初期化する(ステップS4002)。そして、CPU101は副矩形の生成を終了する。
When the generation of the sub-rectangle is started, the
Y=1でないと(ステップS4001において、NO)、CPU101はY個の画像をx個とy(=Y−x)個のグループに分類する(ステップS4003)。ここでは、xおよびyはその差が1以下である2つの整数である。また、x個のグループに分類される画像は、Y個に含まれる画像のうちその先頭からx個までの画像である。
If Y is not 1 (NO in step S4001), the
続いて、CPU101は再帰的にx個の画像を用いて(j+1)次の副矩形を生成する(ステップS4004)。そして、CPU101は同様にy個の画像を用いて(j+1)次の副矩形を生成する(ステップS4005)。
Subsequently, the
2つの(j+1)次の副矩形を生成した後、CPU101は図6および図7で説明した手法を用いて、特定の規則によって決定される方向に2つの副矩形を結合する(ステップS4006)。なお、ここで特定の規則はランダムでもよいし、画像数Y又は階層jに基づくルールでもよい。
After generating two (j + 1) -th sub-rectangles, the
このようにして、図3、図4、図8、および図9に示すフローチャートに応じて処理を行うと、ユーザによって選択された複数の画像を用紙レイアウトに対し上下又は左右の余白部分以外に隙間なく配置することができる。さらに、特定の主画像が用紙レイアウトに対して大きく配置されて、印刷後においてユーザは一枚の写真として楽しむことができる。 In this way, when processing is performed in accordance with the flowcharts shown in FIGS. 3, 4, 8, and 9, a plurality of images selected by the user have gaps other than the top and bottom or left and right margins with respect to the paper layout. Can be arranged without. Furthermore, a specific main image is arranged larger than the paper layout so that the user can enjoy it as a single photograph after printing.
図10は、図1に示す画像処理装置によって実行される印刷の際の自動レイアウトの一例を示す図である。 FIG. 10 is a diagram showing an example of an automatic layout at the time of printing executed by the image processing apparatus shown in FIG.
図10に示すように、破線で示す用紙レイアウトで指定された矩形に対して、長辺又は短辺の少なくとも一方が一致する矩形にユーザによって選択された画像が隙間なくランダムにかつ特定の画像(主画像)が最も大きく配置されて印刷が行われる。 As shown in FIG. 10, an image selected by the user in a rectangle in which at least one of the long side or the short side matches a rectangle specified by the paper layout indicated by the broken line is randomly selected and a specific image ( The main image is printed with the largest layout.
このように、本発明の第1の実施形態では、一枚の用紙に複数の画像を配置する際、画像の一部が削除されてしまうことがなく、しかも特定の画像を大きく配置することができる。 As described above, in the first embodiment of the present invention, when arranging a plurality of images on one sheet, a part of the image is not deleted, and a specific image can be arranged large. it can.
[第2の実施形態]
続いて、本発明の第2の実施形態であるアルバムレイアウト生成装置の一例について説明する。
[Second Embodiment]
Subsequently, an example of an album layout generation apparatus according to the second embodiment of the present invention will be described.
なお、第2の実施形態によるアルバムレイアウト生成装置の構成は、図1に示す画像処理装置と同様である。よって、以下の説明では、アルバムレイアウト生成装置を画像処理装置と呼ぶことにする。 The configuration of the album layout generation apparatus according to the second embodiment is the same as that of the image processing apparatus shown in FIG. Therefore, in the following description, the album layout generation device is referred to as an image processing device.
第2の実施形態による画像処理装置では、フォトアルバムレイアウトの生成を行うが、ここでは、まず、第2の実施形態の理解を容易にするため、従来のフォトアルバムレイアウトの生成について説明する。 The image processing apparatus according to the second embodiment generates a photo album layout. Here, in order to facilitate understanding of the second embodiment, first, generation of a conventional photo album layout will be described.
図11は従来のフォトアルバムレイアウトの生成の一例を説明するためのフローチャートである。なお、ここでは、図11に示すフローチャートの処理はCPU101で行われるものとして説明する。 FIG. 11 is a flowchart for explaining an example of generation of a conventional photo album layout. In the following description, it is assumed that the process of the flowchart shown in FIG.
フォトアルバムレイアウトの生成が開始されると、ユーザは操作部105を用いてディスプレイ110に表示されている画像から表紙に印刷したい画像を選択する(ステップS5001)。続いて、ユーザはフォトアルバムのタイトルを、操作部105を用いて入力する(ステップS5002)。CPU101は選択された表紙画像およびタイトルの位置を予め定められたテンプレートによって決定する。
When the generation of the photo album layout is started, the user selects an image to be printed on the cover from the images displayed on the
次に、ユーザは操作部105を用いて印刷するフォトアルバムのページ数を指定する(ステップS5003)。そして、ユーザは操作部105を用いてフォトアルバム中で用いる複数の画像を、ディスプレイ110に表示されている画像の中から選択する(ステップS5004)。ここで、CPU101は選択可能な画像数の上限および下限をステップS5003で指定したページ数に応じて決定する。
Next, the user designates the number of pages of the photo album to be printed using the operation unit 105 (step S5003). Then, the user selects a plurality of images used in the photo album from the images displayed on the
続いて、CPU101はステップS5004で選択された画像を、ステップS5003で指定されたページ数に分割してレイアウトを決定する(ステップS5005)。そして、CPU101はフォトアルバムレイアウト生成を終了する。
Subsequently, the
なお、ステップ5005で決定されるレイアウトはユーザに作成させるようにしてもよく、さらには、自動で決定したレイアウトをユーザに編集させるようにしてもよい。
Note that the layout determined in
図12は、図11で決定されたレイアウトの一例を示す図である。 FIG. 12 is a diagram showing an example of the layout determined in FIG.
図11においては、ステップS5004で選択された画像をステップS5003で指定されたページ数に分割して配置するようにしたが、図12に示すように、見開きの2ページに跨って画像を配置するようにしてもよい。つまり、図12においては、画像1202および1203は1ページに配置されているが、画像1201は見開きの2ページに跨って配置されている。
In FIG. 11, the image selected in step S5004 is divided and arranged in the number of pages specified in step S5003. However, as shown in FIG. 12, the image is arranged across two spread pages. You may do it. That is, in FIG. 12, the
図13は、図11で説明したフォトアルバムレイアウト生成に応じて作成されたフォトアルバムレイアウトの一例を示す図である。そして、図13(a)は表紙を示す図であり、図13(b)〜図13(f)はそれぞれフォトアルバムの内容を示す図である。 FIG. 13 is a diagram illustrating an example of a photo album layout created in accordance with the photo album layout generation described with reference to FIG. FIG. 13A is a view showing a cover, and FIGS. 13B to 13F are views showing the contents of the photo album.
図13においては、図13(d)に示す4ページから5ページに跨って1つの画像がレイアウトされている。ところで、図示のフォトアルバムは1年間の思い出であり、その長い期間(スパン)が長い。このようなフォトアルバムの場合においては、表紙を見ただけではその内容がどのようなものであるか想像することが困難である。
In FIG. 13, one image is laid out from
図14は、本発明の第2の実施形態による画像処理装置で行われるフォトアルバムレイアウトの生成を説明するためのフローチャートである。 FIG. 14 is a flowchart for explaining generation of a photo album layout performed by the image processing apparatus according to the second embodiment of the present invention.
フォトアルバムレイアウトの生成が開始されると、ユーザはフォトアルバムのタイトルを、操作部105を用いて入力する(ステップS6001)。次に、ユーザは操作部105を用いて印刷するフォトアルバムのページ数を指定する(ステップS6002)。そして、ユーザは操作部105を用いてフォトアルバム中で用いる複数の画像を、ディスプレイ110に表示されている画像の中から選択する(ステップS6003)。ここで、CPU101は選択可能な画像数の上限および下限をステップS5003で指定したページ数に応じて決定する。
When the generation of the photo album layout is started, the user inputs the title of the photo album using the operation unit 105 (step S6001). Next, the user designates the number of pages of the photo album to be printed using the operation unit 105 (step S6002). Then, the user uses the
続いて、CPU101はステップS6003で選択された画像を、ステップS6002で指定されたページ数に分割してレイアウトを決定する(ステップS6004)。次に、CPU101は全画像を用いて表紙のレイアウトを生成する(ステップS6005)。
Subsequently, the
ステップS6005では、第1の実施形態で説明した手法を用いて表紙1ページのレイアウトが実行される。ここでは、主画像の選択はユーザによって選択されず、例えば、CPU101はステップS6004で決定したフォトアルバムレイアウトにおいて最も大きい画像を主画像として選択する。これによって、ユーザによる主画像の選択の手間を省くことができる。
In step S6005, the layout of one cover page is executed using the method described in the first embodiment. Here, the selection of the main image is not selected by the user. For example, the
表紙のレイアウトを決定した後、CPU101は、ステップS6001で入力されたタイトルの表紙における位置を決定する(ステップS6006)。そして、CPU101はフォトアルバムレイアウト生成を終了する。タイトルの位置を決定する際には、CPU101はステップS6005で決定したレイアウトにおいて、タイトルが主画像の位置に被らないようにその位置を決定する。
After determining the cover layout, the
図15は、図14で説明したフォトアルバムレイアウト生成に応じて作成されたフォトアルバムレイアウトの一例を示す図である。そして、図15(a)は表紙を示す図であり、図15(b)〜図15(f)はそれぞれフォトアルバムの内容を示す図である。また、図16は図15(a)に示す表紙を拡大して示す図である。 FIG. 15 is a diagram illustrating an example of a photo album layout created in accordance with the photo album layout generation described with reference to FIG. FIG. 15A is a view showing the cover, and FIGS. 15B to 15F are views showing the contents of the photo album. FIG. 16 is an enlarged view of the cover shown in FIG.
図15および図16において、図13(d)に示す4ページから5ページに跨って1つの画像がレイアウトされている。また、表紙には全画像がレイアウトされるとともに、主画像(代表画像)が最も大きくされて、しかもタイトル「2010年度 1年間の思い出」と重ならない位置は配置されている。
15 and 16, one image is laid out from
このように、第2の実施形態による画像処理装置では、フォトアルバムレイアウトの表紙に代表的な画像(主画像)が最も大きくして配置され、しかもタイトルが代表画像に被らないように配置される。 As described above, in the image processing apparatus according to the second embodiment, the representative image (main image) is arranged to be the largest on the cover of the photo album layout, and the title is arranged so as not to cover the representative image. The
このように、本発明の第2の実施形態では、ユーザは表紙を一目見ただけで容易にフォトアルバムの内容を想像することができる。 As described above, in the second embodiment of the present invention, the user can easily imagine the contents of the photo album with a glance at the cover.
上述の説明から明らかなように、図1に示す例においては、CPU101が画像結合手段、矩形生成手段、判定手段、およびレイアウト決定手段として機能する。また、CPU101は修正手段および変更手段としても機能する。さらに、CPU101はレイアウト手段、選択手段、および配置決定手段として機能する。
As is clear from the above description, in the example shown in FIG. 1, the
以上、本発明について実施の形態に基づいて説明したが、本発明は、これらの実施の形態に限定されるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。 As mentioned above, although this invention was demonstrated based on embodiment, this invention is not limited to these embodiment, Various forms of the range which does not deviate from the summary of this invention are also contained in this invention. .
例えば、上記の実施の形態の機能を制御方法として、この制御方法を画像処理装置に実行させるようにすればよい。また、上述の実施の形態の機能を有するプログラムを制御プログラムとして、当該制御プログラムを画像処理装置が備えるコンピュータに実行させるようにしてもよい。なお、制御プログラムは、例えば、コンピュータに読み取り可能な記録媒体に記録される。 For example, the function of the above embodiment may be used as a control method, and this control method may be executed by the image processing apparatus. In addition, a program having the functions of the above-described embodiments may be used as a control program, and the control program may be executed by a computer included in the image processing apparatus. The control program is recorded on a computer-readable recording medium, for example.
上記の制御方法および制御プログラムの各々は、少なくとも画像結合ステップ、矩形生成ステップ、判定ステップ、およびレイアウト決定ステップを有している。 Each of the above control method and control program has at least an image combining step, a rectangle generation step, a determination step, and a layout determination step.
また、本発明は、以下の処理を実行することによっても実現される。つまり、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種の記録媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPUなど)がプログラムを読み出して実行する処理である。 The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various recording media, and the computer (or CPU, MPU, etc.) of the system or apparatus reads the program. To be executed.
101 CPU
102 内蔵記憶装置
103 メモリ
104 画像制御部
105 操作部
106 画像入力部
107 画像処理部
108 印刷部
110 ディスプレイ
111 内部バス
101 CPU
102
Claims (9)
前記複数の画像を複数のグループに分割して、前記グループの各々について前記画像を縦横同倍率で変倍して結合することによって複数の矩形を生成する画像結合手段と、
前記画像結合手段によって生成された複数の矩形を再帰的に結合させて、前記複数の画像を含む1つの矩形をレイアウト矩形として前記用紙に合わせて生成する矩形生成手段と、
前記複数の画像において少なくともその一枚が特定の画像として選択された際、当該特定の画像が前記レイアウト矩形において残りの画像に対して最も大きくして配置されているか否かを判定する判定手段と、
前記特定の画像が前記レイアウト矩形において最も大きくして配置されていると、前記レイアウト矩形を用紙レイアウトとして決定するレイアウト決定手段とを有することを特徴とする画像処理装置。 An image processing apparatus that lays out a plurality of images on a single sheet of paper,
Image combining means for generating a plurality of rectangles by dividing the plurality of images into a plurality of groups, and scaling and combining the images with the same vertical and horizontal magnification for each of the groups;
Rectangle generating means for recursively combining a plurality of rectangles generated by the image combining means, and generating one rectangle including the plurality of images as a layout rectangle according to the paper;
Determining means for determining whether at least one of the plurality of images is selected as a specific image, the specific image is arranged to be the largest relative to the remaining images in the layout rectangle; ,
An image processing apparatus comprising: a layout determining unit that determines the layout rectangle as a paper layout when the specific image is arranged to be the largest in the layout rectangle.
前記判定手段によって前記特定の画像と前記最大画像との入れ替えが可能であると判定されると、前記特定の画像と前記最大画像と入れ替えて前記特定の画像を最も大きくして前記レイアウト矩形を修正する修正手段を有することを特徴とする請求項1に記載の画像処理装置。 If the specific image is not positioned at the largest position in the layout rectangle, the determination unit expands the specific image to the position of the largest image arranged largest among the remaining images. Determine whether it can be placed,
When the determination unit determines that the specific image and the maximum image can be interchanged, the specific image is replaced with the maximum image to enlarge the specific image, and the layout rectangle is corrected. The image processing apparatus according to claim 1, further comprising a correcting unit configured to perform correction.
前記画像結合手段は、前記順序において最初の画像から順に選択してグループわけを行っており、
前記判定手段によって前記特定の画像と前記最大画像との入れ替えが不可であると判定されると、前記特定の画像を除く残りの画像について前記順序をシャッフルしてその順序を変更する変更手段を有し、
前記画像結合手段は変更後の順序に応じて前記画像のグループ分けを行うことを特徴とする請求項2又は3に記載の画像処理装置。 The plurality of images are arranged in a predetermined order;
The image combining means performs grouping by selecting in order from the first image in the order,
When the determination unit determines that the specific image and the maximum image cannot be exchanged, the determination unit includes a changing unit that shuffles the order of the remaining images except the specific image and changes the order. And
The image processing apparatus according to claim 2, wherein the image combining unit performs grouping of the images according to a changed order.
前記複数の画像をアルバムの複数のページにレイアウトして配置するレイアウト手段とを有し、
前記画像処理装置は前記アルバムの表紙を前記一枚の用紙として前記複数の画像を含むレイアウト矩形を生成することを特徴とするアルバムレイアウト生成装置。 The image processing apparatus according to any one of claims 1 to 4,
Layout means for laying out and arranging the plurality of images on a plurality of pages of the album,
The image processing apparatus generates the layout rectangle including the plurality of images by using the cover of the album as the sheet of paper.
前記複数の画像を複数のグループに分割して、前記グループの各々について前記画像を縦横同倍率で変倍して結合することによって複数の矩形を生成する画像結合ステップと、
前記画像結合ステップで生成された複数の矩形を再帰的に結合させて、前記複数の画像を含む1つの矩形をレイアウト矩形として前記用紙に合わせて生成する矩形生成ステップと、
前記複数の画像において少なくともその一枚が特定の画像として選択された際、当該特定の画像が前記レイアウト矩形において残りの画像に対して最も大きくして配置されているか否かを判定する判定ステップと、
前記特定の画像が前記レイアウト矩形において最も大きくして配置されていると、前記レイアウト矩形を用紙レイアウトとして決定するレイアウト決定ステップとを有することを特徴とする制御方法。 An image processing apparatus control method for laying out a plurality of images on a single sheet of paper,
An image combining step of dividing the plurality of images into a plurality of groups, generating a plurality of rectangles by scaling and combining the images with the same vertical and horizontal magnification for each of the groups;
A rectangle generating step of recursively combining a plurality of rectangles generated in the image combining step and generating one rectangle including the plurality of images as a layout rectangle according to the paper;
A determination step of determining whether at least one of the plurality of images is selected as a specific image and whether the specific image is arranged to be the largest with respect to the remaining images in the layout rectangle; ,
And a layout determining step of determining the layout rectangle as a paper layout when the specific image is arranged to be the largest in the layout rectangle.
前記画像処理装置が備えるコンピュータに、
前記複数の画像を複数のグループに分割して、前記グループの各々について前記画像を縦横同倍率で変倍して結合することによって複数の矩形を生成する画像結合ステップと、
前記画像結合ステップで生成された複数の矩形を再帰的に結合させて、前記複数の画像を含む1つの矩形をレイアウト矩形として前記用紙に合わせて生成する矩形生成ステップと、
前記複数の画像において少なくともその一枚が特定の画像として選択された際、当該特定の画像が前記レイアウト矩形において残りの画像に対して最も大きくして配置されているか否かを判定する判定ステップと、
前記特定の画像が前記レイアウト矩形において最も大きくして配置されていると、前記レイアウト矩形を用紙レイアウトとして決定するレイアウト決定ステップとを実行させることを特徴とする制御プログラム。 A control program used in an image processing apparatus that lays out a plurality of images on one sheet of paper,
A computer included in the image processing apparatus,
An image combining step of dividing the plurality of images into a plurality of groups, generating a plurality of rectangles by scaling and combining the images with the same vertical and horizontal magnification for each of the groups;
A rectangle generating step of recursively combining a plurality of rectangles generated in the image combining step and generating one rectangle including the plurality of images as a layout rectangle according to the paper;
A determination step of determining whether at least one of the plurality of images is selected as a specific image and whether the specific image is arranged to be the largest with respect to the remaining images in the layout rectangle; ,
A control program for executing a layout determining step for determining the layout rectangle as a paper layout when the specific image is arranged to be the largest in the layout rectangle.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012212512A JP6128786B2 (en) | 2012-09-26 | 2012-09-26 | Image processing apparatus, control method thereof, control program, and recording medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012212512A JP6128786B2 (en) | 2012-09-26 | 2012-09-26 | Image processing apparatus, control method thereof, control program, and recording medium |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JP2014068221A true JP2014068221A (en) | 2014-04-17 |
| JP2014068221A5 JP2014068221A5 (en) | 2015-11-12 |
| JP6128786B2 JP6128786B2 (en) | 2017-05-17 |
Family
ID=50744209
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012212512A Active JP6128786B2 (en) | 2012-09-26 | 2012-09-26 | Image processing apparatus, control method thereof, control program, and recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6128786B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3000252B2 (en) | 1994-09-27 | 2000-01-17 | 小松ウオール工業株式会社 | Lightweight panels for partitions |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007026422A (en) * | 2005-06-13 | 2007-02-01 | Fujifilm Corp | Album creating apparatus, album creating method, and program |
| JP2007249434A (en) * | 2006-03-14 | 2007-09-27 | Fujifilm Corp | Album creating system, album creating method, and program |
| JP2010108165A (en) * | 2008-10-29 | 2010-05-13 | Noritsu Koki Co Ltd | Photo-album print order acceptance device and photo-album print order acceptance program |
| JP2012054677A (en) * | 2010-08-31 | 2012-03-15 | Canon Inc | Image processing apparatus and image processing method |
-
2012
- 2012-09-26 JP JP2012212512A patent/JP6128786B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007026422A (en) * | 2005-06-13 | 2007-02-01 | Fujifilm Corp | Album creating apparatus, album creating method, and program |
| JP2007249434A (en) * | 2006-03-14 | 2007-09-27 | Fujifilm Corp | Album creating system, album creating method, and program |
| JP2010108165A (en) * | 2008-10-29 | 2010-05-13 | Noritsu Koki Co Ltd | Photo-album print order acceptance device and photo-album print order acceptance program |
| JP2012054677A (en) * | 2010-08-31 | 2012-03-15 | Canon Inc | Image processing apparatus and image processing method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP6128786B2 (en) | 2017-05-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5686673B2 (en) | Image processing apparatus, image processing method, and program | |
| US8243319B2 (en) | Image processing apparatus and computer program product generates and displayed processed image in a stack | |
| US7483166B2 (en) | Information processing apparatus and print preview display method | |
| US8438478B2 (en) | Displaying an overlapped print preview for multiple pages with different finishing options | |
| US8605341B2 (en) | Control device controlling scan operation | |
| JP5366699B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP7791373B2 (en) | Image processing device and image processing method | |
| KR101403521B1 (en) | Image processing apparatus and method for controlling the image processing apparatus | |
| JP6128786B2 (en) | Image processing apparatus, control method thereof, control program, and recording medium | |
| US10795620B2 (en) | Image processing apparatus and layout method | |
| US20240311957A1 (en) | Information processing apparatus, method of controlling information processing apparatus, and storage medium | |
| JP5665428B2 (en) | Image processing apparatus and image processing method | |
| US8564824B2 (en) | System and printing method to generate printing data of an image to be printed over a plurality of recording pages | |
| JP7155845B2 (en) | Image reading device and image forming device | |
| JP5615074B2 (en) | Image processing apparatus and image processing method | |
| US8933999B2 (en) | Stereoscopic image display control apparatus, and method and program for controlling operation of same | |
| US8687876B2 (en) | Stereoscopic image pasting system, and method and program for controlling operation of same | |
| JP5365537B2 (en) | Information processing apparatus and information processing program | |
| JP7067015B2 (en) | Information processing equipment and programs | |
| JP6569627B2 (en) | Image processing system | |
| US20120075292A1 (en) | Stereoscopic image display control apparatus, and method and program for controlling operation of same | |
| JP4323902B2 (en) | Image layout device | |
| JP2022025480A (en) | Information processing systems, information processing methods, and programs | |
| US20240104296A1 (en) | Storage medium, information processing apparatus, and information processing method | |
| JP2006262444A (en) | Image processing apparatus and image processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150928 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150928 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160901 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160913 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20161104 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20161206 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170203 |
|
| 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: 20170314 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170411 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 6128786 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |