JP4390003B2 - Multiple image layout processing - Google Patents

Multiple image layout processing Download PDF

Info

Publication number
JP4390003B2
JP4390003B2 JP2008074822A JP2008074822A JP4390003B2 JP 4390003 B2 JP4390003 B2 JP 4390003B2 JP 2008074822 A JP2008074822 A JP 2008074822A JP 2008074822 A JP2008074822 A JP 2008074822A JP 4390003 B2 JP4390003 B2 JP 4390003B2
Authority
JP
Japan
Prior art keywords
image
layout
allocated
target image
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008074822A
Other languages
Japanese (ja)
Other versions
JP2008219910A (en
Inventor
政司 相磯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2008074822A priority Critical patent/JP4390003B2/en
Publication of JP2008219910A publication Critical patent/JP2008219910A/en
Application granted granted Critical
Publication of JP4390003B2 publication Critical patent/JP4390003B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

この発明は、複数の画像のレイアウト処理を行う技術に関する。   The present invention relates to a technique for performing layout processing of a plurality of images.

デジタルスチルカメラやデジタルビデオカメラ、スキャナなどの画像生成装置で撮影した画像は、モニタやプリンタなどの種々の画像出力装置で出力(表示や印刷)される。複数の画像を出力する場合には、写真を収めたアルバムと同様に1つのページに複数の画像を割り付けて、ページ単位で出力を行う方法がしばしば用いられている。また、このような画像の割付を、ページ内の画像の配置を予め定めたテンプレートに基づいて自動的に行う方法も用いられている(例えば、特許文献1参照)。   An image taken by an image generation device such as a digital still camera, a digital video camera, or a scanner is output (displayed or printed) by various image output devices such as a monitor or a printer. In the case of outputting a plurality of images, a method of assigning a plurality of images to one page and outputting in units of pages is often used like an album containing photographs. In addition, a method is also used in which such image allocation is automatically performed based on a template in which the arrangement of images in a page is determined in advance (see, for example, Patent Document 1).

特開2000−299777号公報JP 2000-299777 A

出力の対象となる画像の数は、状況に応じて変動する場合がある。その結果、画像の割付を自動的に行うと、最後のページに配置される画像の数が他のページと比べて極端に少なくなるなど、ページによって画像の数が偏る可能性があった。また、1つのページに割り付けられる画像の数が少ない場合には、そのページ内の上部や左部等の一部の領域に画像が偏って配置される可能性があった。このような画像の配置の偏りは、画像を観察するユーザには好まれない場合が多い。そこで、画像の配置の偏りを小さく抑えて画像を割り付けたいという要望があった。   The number of images to be output may vary depending on the situation. As a result, when the image allocation is automatically performed, the number of images may be biased depending on the page, for example, the number of images arranged on the last page is extremely small compared to other pages. Further, when the number of images allocated to one page is small, there is a possibility that the images are biased and arranged in some areas such as an upper part and a left part in the page. Such a bias in the arrangement of images is often not preferred by users who observe images. Therefore, there has been a demand for assigning images while minimizing bias in image arrangement.

本発明は、上述した従来の課題を解決するためになされたものであり、画像の配置の偏りが大きくなることを抑制して画像を割り付ける技術を提供することを目的とする。   The present invention has been made in order to solve the above-described conventional problems, and an object of the present invention is to provide a technique for allocating images while suppressing an increase in bias of image arrangement.

上記目的の少なくとも一部を達成するために、本発明の第1の画像処理装置は、複数の対象画像を表現する複数の対象画像データを用いた画像処理を行う画像処理装置であって、1ページ分の台紙領域と、前記台紙領域上に配置された所定の優先順序を有する複数の単画像割付領域とを含むテンプレートを表すテンプレートデータを用いて、前記複数の対象画像を前記台紙領域上に割り付けるレイアウト処理を実行するレイアウト部を、備え、前記レイアウト部は、1つのページに割り付ける前記対象画像の数が1つのページに含まれる前記単画像割付領域の数と比べて少ない場合に、前記単画像割付領域のうちの前記対象画像が割り付けられないブランク領域を、前記優先順序と前記優先順序の逆順とのいずれとも異なる順序で前記単画像割付領域に割り付けるとともに、前記対象画像を残りの前記単画像割付領域に割り付ける。   In order to achieve at least part of the above object, a first image processing apparatus of the present invention is an image processing apparatus that performs image processing using a plurality of target image data representing a plurality of target images. Using the template data representing a template including a mount area for a page and a plurality of single image allocation areas having a predetermined priority order arranged on the mount area, the plurality of target images are placed on the mount area. A layout unit that executes layout processing to be allocated, and the layout unit is configured to execute the single image allocation when the number of target images allocated to one page is smaller than the number of single image allocation areas included in one page. Among the image allocation areas, blank areas where the target image is not allocated are arranged in the order different from both the priority order and the reverse order of the priority order. With allocated the biasing region, allocating the target image to the rest of the single image allocation region.

この第1の画像処理装置は、ブランク領域を、画像を割り付ける優先順序と優先順序の逆順とのいずれとも異なる順序で単画像割付領域に割り付けるので、対象画像の配置の偏りが大きくなることを抑制して対象画像を割り付けることができる。   Since the first image processing apparatus allocates the blank area to the single image allocation area in an order different from both the priority order in which the images are allocated and the reverse order of the priority order, it is possible to suppress an increase in the bias in the arrangement of the target images. Thus, the target image can be assigned.

上記画像処理装置において、前記テンプレートデータは、さらに、1つのページに割り付ける前記対象画像の数に応じて予め設定された、複数組の優先順序を定める画像優先順位情報を含み、前記レイアウト部は、前記対象画像を、1つのページに割り付ける前記対象画像の数に応じて選択された優先順序に従って割り付けることが好ましい。   In the image processing apparatus, the template data further includes image priority order information that defines a plurality of sets of priority orders that are preset according to the number of the target images to be allocated to one page, and the layout unit includes: It is preferable that the target images are allocated according to a priority order selected according to the number of the target images allocated to one page.

この構成によれば、レイアウト部は、対象画像の数に応じて、適切に対象画像を割り付けることができる。   According to this configuration, the layout unit can appropriately allocate the target image according to the number of target images.

本発明の第2の画像処理装置は、複数の対象画像を表現する複数の対象画像データを用いた画像処理を行う画像処理装置であって、1ページ分の台紙領域と、前記台紙領域上に配置された所定の優先順序を有する複数の単画像割付領域とを含むテンプレートを表すテンプレートデータを用いて、前記複数の対象画像を前記台紙領域上に割り付けるレイアウト処理を実行するレイアウト部を、備え、前記レイアウト部は、前記複数の対象画像が複数ページの台紙領域に割り付けられ、かつ、前記複数ページの台紙領域において対象画像が割り付けられないブランク領域が複数ある場合に、前記複数のブランク領域を2以上のページに配分する。   A second image processing apparatus of the present invention is an image processing apparatus that performs image processing using a plurality of target image data representing a plurality of target images, and includes a mount area for one page and the mount area. A layout unit that executes layout processing for allocating the plurality of target images on the mount area, using template data representing a template including a plurality of single image allocation areas having a predetermined priority order arranged; The layout unit assigns the plurality of blank areas to 2 when there are a plurality of blank areas in which the plurality of target images are allocated to a mount area of a plurality of pages and the target image is not allocated in the mount area of the plurality of pages. Allocate to the above pages.

この第2の画像処理装置は、ブランク領域を2以上のページに配分するので、対象画像の配置の偏りが大きくなることを抑制して対象画像を割り付けることができる。   Since the second image processing apparatus distributes the blank area to two or more pages, the target image can be allocated while suppressing the deviation in the arrangement of the target image.

上記画像処理装置において、前記レイアウト部は、1つのページに割り付ける前記対象画像の数が1つのページに含まれる前記単画像割付領域の数と比べて少ない場合に、前記ブランク領域を、前記優先順序と前記優先順序の逆順とのいずれとも異なる順序で前記単画像割付領域に割り付けるとともに、前記対象画像を残りの前記単画像割付領域に割り付けることが好ましい。   In the above image processing device, the layout unit determines that the blank area is the priority order when the number of target images to be allocated to one page is smaller than the number of single image allocation areas included in one page. It is preferable that the single image allocation area is allocated in an order different from the reverse order of the priority order and the target image is allocated to the remaining single image allocation area.

この構成によれば、ブランク領域を、画像を割り付ける優先順序と優先順序の逆順とのいずれとも異なる順序で単画像割付領域に割り付けるので、ページ内における対象画像の偏りが大きくなることを抑制することができる。   According to this configuration, since the blank area is allocated to the single image allocation area in an order different from both the priority order in which the images are allocated and the reverse order of the priority order, it is possible to suppress an increase in the bias of the target image in the page. Can do.

上記各画像処理装置において、前記レイアウト部は、前記複数の対象画像のそれぞれと、前記複数の対象画像のそれぞれに対して選択した前記単画像割付領域との対応関係を表すレイアウト情報を生成し、前記画像処理装置は、さらに、前記レイアウト情報と、前記対象画像データと、前記テンプレートデータとを、前記対象画像を出力するための処理を行う所定の第1のデータ処理装置に送信するレイアウト送信部を備えることが好ましい。   In each of the image processing devices, the layout unit generates layout information representing a correspondence relationship between each of the plurality of target images and the single image allocation region selected for each of the plurality of target images. The image processing device further transmits a layout transmission unit that transmits the layout information, the target image data, and the template data to a predetermined first data processing device that performs a process for outputting the target image. It is preferable to provide.

この構成によれば、レイアウト情報と、対象画像データと、テンプレートデータとをデータ処理装置に送信することができるので、レイアウト部を備えないデータ処理装置でもレイアウト情報を利用した処理を実行することができる。   According to this configuration, the layout information, the target image data, and the template data can be transmitted to the data processing device. Therefore, even a data processing device that does not include a layout unit can execute processing using the layout information. it can.

上記各画像処理装置において、さらに、前記複数の対象画像のそれぞれを前記レイアウト部の割付結果に応じて割り付けた割付画像を表現する割付画像データを、前記レイアウト部の割付結果と、前記対象画像データと、前記テンプレートデータとを用いて生成する合成部を備えることが好ましい。   In each of the image processing devices, further, layout image data representing a layout image obtained by allocating each of the plurality of target images according to a layout result of the layout unit, layout result of the layout unit, and target image data And a synthesizing unit that generates using the template data.

この構成によれば、レイアウト部の割付結果に応じて適切に対象画像を割り付けた割付画像データを生成することができる。   According to this configuration, it is possible to generate the allocated image data in which the target image is appropriately allocated according to the allocation result of the layout unit.

上記画像処理装置において、さらに、前記合成部が生成した前記割付画像データを、前記対象画像を出力するための処理を行う所定の第2のデータ処理装置に送信する割付画像データ送信部を備えることが好ましい。   The image processing apparatus further includes an allocated image data transmission unit that transmits the allocated image data generated by the synthesizing unit to a predetermined second data processing apparatus that performs a process for outputting the target image. Is preferred.

この構成によれば、割付画像データをデータ処理装置に送信することができるので、レイアウト部や合成部を備えないデータ処理装置でも、割付画像データを利用した処理を実行することができる。   According to this configuration, the allocated image data can be transmitted to the data processing apparatus, so that a process using the allocated image data can be executed even in a data processing apparatus that does not include a layout unit or a synthesis unit.

なお、本発明は、種々の形態で実現することが可能であり、例えば、画像処理方法および画像処理装置、それらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体等の形態で実現することができる。   The present invention can be realized in various forms, for example, an image processing method and an image processing apparatus, a computer program for realizing the function of the method or apparatus, and a recording in which the computer program is recorded. It can be realized in the form of a medium or the like.

本発明の実施の形態を実施例に基づいて以下の順序で説明する。
A.装置の構成:
B.第1実施例:
C.第2実施例:
D.第3実施例:
E.第4実施例:
F.変形例:
Embodiments of the present invention will be described in the following order based on examples.
A. Device configuration:
B. First embodiment:
C. Second embodiment:
D. Third embodiment:
E. Fourth embodiment:
F. Variations:

A.装置の構成:
図1は、本発明の一実施例としての画像出力システムの構成を示す説明図である。このシステムは、デジタルカメラ100と、コンピュータ200と、プリンタ300とを含んでいる。デジタルカメラ100は画像生成装置として機能し、コンピュータ200は画像処理装置として機能し、プリンタ300は画像出力装置として機能する。
A. Device configuration:
FIG. 1 is an explanatory diagram showing the configuration of an image output system as an embodiment of the present invention. This system includes a digital camera 100, a computer 200, and a printer 300. The digital camera 100 functions as an image generation device, the computer 200 functions as an image processing device, and the printer 300 functions as an image output device.

コンピュータ200は、後述する画像処理を実行するCPU202と、CPU202の演算結果や画像データ等を一時的に格納するRAM204と、画像処理のためのプログラムや画像データなどの画像処理に必要なデータを格納するハードディスクドライブ(HDD)206とを備えている。   The computer 200 stores data necessary for image processing such as a CPU 202 that executes image processing to be described later, a RAM 204 that temporarily stores calculation results and image data of the CPU 202, and a program for image processing and image data. A hard disk drive (HDD) 206.

デジタルカメラ100で生成された画像データはコンピュータ200に転送される。コンピュータ200のCPU202は、受け取った画像データが表す画像をページに割り付けるレイアウト処理を実行し、レイアウト処理の結果に応じて画像が割り付けられた画像(以下、「割付画像」と呼ぶ)を表す割付画像データを生成する。さらに、CPU202は、割付画像データに応じて印刷データを生成し、プリンタ300に送出する。プリンタ300は、受け取った印刷データに応じて印刷を実行する。   Image data generated by the digital camera 100 is transferred to the computer 200. The CPU 202 of the computer 200 executes a layout process for allocating an image represented by the received image data to a page, and an allocated image representing an image (hereinafter referred to as an “allocated image”) to which an image is allocated according to the result of the layout process. Generate data. Further, the CPU 202 generates print data according to the allocated image data and sends it to the printer 300. The printer 300 performs printing according to the received print data.

B.第1実施例:
B1.画像処理装置の構成:
図2は、コンピュータ200で実行される画像処理のための機能部を説明するブロック図である。このコンピュータ200は、レイアウト部210と、合成部220と、印刷データ生成部230と、印刷データ送信部240と、テンプレートデータ250と、テンプレート選択部260とを備えている。これらは、ソフトウェア的に構成されている。
B. First embodiment:
B1. Configuration of image processing device:
FIG. 2 is a block diagram illustrating functional units for image processing executed by the computer 200. The computer 200 includes a layout unit 210, a composition unit 220, a print data generation unit 230, a print data transmission unit 240, template data 250, and a template selection unit 260. These are configured in software.

レイアウト部210は、対象画像データが表す対象画像をページに割り付けるレイアウト処理を、テンプレートデータ250に応じて実行する。対象画像データは、レイアウト処理の対象となる画像データであり、例えば、ユーザによって指定された画像データを用いることができる。テンプレートデータ250は、1つの対象画像を割り付けることが可能な単画像割付領域を1つのページに対して複数設定するデータである(詳細は後述する)。   The layout unit 210 executes layout processing for allocating the target image represented by the target image data to the page according to the template data 250. The target image data is image data to be subjected to layout processing, and for example, image data designated by the user can be used. The template data 250 is data for setting a plurality of single image allocation areas to which one target image can be allocated for one page (details will be described later).

テンプレートデータ250は、1つのページに含まれる単画像割付領域の数や、単画像割付領域の配置等に応じて複数種類準備されている。ユーザは、テンプレート選択部260を介して、使用するテンプレートデータ250を指定することが可能である。   A plurality of types of template data 250 are prepared according to the number of single image allocation areas included in one page, the arrangement of single image allocation areas, and the like. The user can specify the template data 250 to be used via the template selection unit 260.

レイアウト部210は、対象画像を割り付けるために用いるページを、テンプレート選択部260によって指定されたテンプレートデータ250に基づいて設定する。対象画像の数が1つのページに割り付け可能な画像の数よりも多い場合には、全ての対象画像を割り付けることができるように、複数のページが設定される。   The layout unit 210 sets a page to be used for assigning the target image based on the template data 250 specified by the template selection unit 260. When the number of target images is larger than the number of images that can be allocated to one page, a plurality of pages are set so that all target images can be allocated.

レイアウト部210は、設定したページに含まれる単画像割付領域の中から、対象画像を割り付ける単画像割付領域を選択する。対象画像が複数ある場合には、それぞれの対象画像に対して単画像割付領域を選択する。レイアウト部210は、対象画像のそれぞれと選択した単画像割付領域との対応関係を表すレイアウトデータを生成し、合成部220に送出する。対象画像の割付の詳細については後述する。   The layout unit 210 selects a single image allocation area to which the target image is allocated from the single image allocation areas included in the set page. When there are a plurality of target images, a single image allocation area is selected for each target image. The layout unit 210 generates layout data representing the correspondence between each target image and the selected single image allocation area, and sends the layout data to the composition unit 220. Details of the assignment of the target image will be described later.

合成部220は、レイアウト部210から受け取ったレイアウトデータと、対象画像データと、テンプレートデータ250とを用いて割付画像データを生成する。印刷データ生成部230は、合成部220によって生成された割付画像データに応じて印刷データを生成する。本実施例では、印刷データ生成部230は、割付画像データの各画素の画素値からプリンタ300が利用可能な複数のインクの量に相当する多階調データへの変換処理を実行し、得られた多階調データに対してハーフトーン処理を行うことによって、印刷データを生成する。生成された印刷データは、印刷データ送信部240によってプリンタ300に送信される。データの送信方法としては、ケーブルを介する方法や、ネットワークを介する方法、無線通信を用いる方法等、種々の方法を用いることができる。   The composition unit 220 generates layout image data using the layout data received from the layout unit 210, the target image data, and the template data 250. The print data generation unit 230 generates print data according to the allocated image data generated by the synthesis unit 220. In the present embodiment, the print data generation unit 230 executes conversion processing from pixel values of each pixel of the allocated image data to multi-gradation data corresponding to a plurality of ink amounts usable by the printer 300. Print data is generated by performing halftone processing on the multi-tone data. The generated print data is transmitted to the printer 300 by the print data transmission unit 240. As a data transmission method, various methods such as a method via a cable, a method via a network, and a method using wireless communication can be used.

プリンタ300は受け取った印刷データに応じて印刷を実行する。プリンタ300は、主走査駆動機構や、副走査駆動機構、印刷ヘッド、印刷ヘッド駆動回路、制御回路などの種々の構成要素を有しているが、ここではその説明を省略する。   The printer 300 performs printing according to the received print data. The printer 300 includes various components such as a main scanning drive mechanism, a sub-scanning drive mechanism, a print head, a print head drive circuit, and a control circuit, but the description thereof is omitted here.

なお、上述のようなコンピュータ200内の各構成要素の一部または全部の機能は、例えばコンピュータプログラムによって実現される。これらコンピュータプログラムは、フレキシブルディスクやCD−ROM等の、コンピュータ読み取り可能な記録媒体に記録された形態で提供することが可能である。また、テンプレートデータ250はコンピュータ200のHDD206(図1)に予め格納されている。本実施例におけるHDD206は、テンプレートデータ格納部として機能する。   Note that the functions of some or all of the components in the computer 200 as described above are realized by a computer program, for example. These computer programs can be provided in a form recorded on a computer-readable recording medium such as a flexible disk or a CD-ROM. The template data 250 is stored in advance in the HDD 206 (FIG. 1) of the computer 200. The HDD 206 in this embodiment functions as a template data storage unit.

B2.レイアウト処理:
図3は、テンプレートデータの一例を示す説明図である。このテンプレートデータTDは、1ページ分の台紙領域PAに6つの単画像割付領域F1〜F6を設定する。本実施例では、台紙領域PAは1つのページを表している。また、6つの単画像割付領域F1〜F6は、ページの左上から右上に向かって反時計回りに並ぶように配置されている。6つの単画像割付領域F1〜F6のそれぞれには、画像優先順位(左上の数字)とブランク優先順位(右上の括弧内の数字)とが設定されている。
B2. Layout processing:
FIG. 3 is an explanatory diagram showing an example of template data. The template data TD sets six single image allocation areas F1 to F6 in the mount area PA for one page. In the present embodiment, the mount area PA represents one page. The six single image allocation areas F1 to F6 are arranged so as to be arranged counterclockwise from the upper left to the upper right of the page. In each of the six single image allocation areas F1 to F6, an image priority (upper left numeral) and a blank priority (upper right parenthesis numerals) are set.

画像優先順位は、対象画像を割り付ける優先順位を示す。本実施例では、画像優先順位は、対象画像がページの左上から右上に向かって反時計回りに並ぶように設定されている。レイアウト部210は、画像優先順位の上位の単画像割付領域から、撮影日時の順番に対象画像が並ぶように、対象画像を単画像割付領域に割り付ける。画像生成装置の中には、画像データと、画像データに関連する種々の情報(以下、「画像データ関連情報」と呼ぶ)とを格納する画像データファイルを生成するものがある。例えば、デジタルカメラの中には、撮影日時に関する情報(以下、「撮影日時情報」と呼ぶ)を画像データとともに、画像データファイルに格納するものがある。レイアウト部210は、このような撮影日時情報を解析することによって、対象画像を撮影した日時を得ることができる。なお、このような画像データ関連情報を格納するファイル形式としては、例えば、Exifファイル形式がある。   The image priority order indicates the priority order for assigning the target image. In this embodiment, the image priority order is set so that the target images are arranged counterclockwise from the upper left to the upper right of the page. The layout unit 210 allocates the target image to the single image allocation area so that the target images are arranged in order of shooting date and time from the single image allocation area having the higher image priority. Some image generation apparatuses generate an image data file that stores image data and various information related to the image data (hereinafter referred to as “image data related information”). For example, some digital cameras store information relating to shooting date and time (hereinafter referred to as “shooting date and time information”) together with image data in an image data file. The layout unit 210 can obtain the date and time when the target image was shot by analyzing such shooting date and time information. An example of the file format for storing such image data related information is the Exif file format.

また、撮影日時情報を利用できない場合には、レイアウト部210が対象画像の順序の指定をユーザに許容しても良く、また、画像データを格納する画像ファイルのファイル名に基づいて順序を設定してもよい。ファイル名が数字を含む場合には、その数字の順序を対象画像の順序とすることができる(以下、対象画像を割り付けるために指定された対象画像の順序を「対象画像順序」と呼ぶ)。いずれの場合も、レイアウト部210は、画像優先順位の上位の単画像割付領域から対象画像が対象画像順序に従って並ぶように、割付を行う。   When the shooting date / time information cannot be used, the layout unit 210 may allow the user to specify the order of the target images, and sets the order based on the file name of the image file storing the image data. May be. When the file name includes numbers, the order of the numbers can be the order of the target images (hereinafter, the order of the target images designated for assigning the target images is referred to as “target image order”). In any case, the layout unit 210 performs the allocation so that the target images are arranged according to the target image order from the single image allocation area having the higher image priority.

ブランク優先順位は、単画像割付領域のうちの対象画像が割り付けられないブランク領域を割り付ける優先順位を示す。1つのページに割り付ける対象画像の数が1つのページに含まれる単画像割付領域の数と比べて少ない場合には、対象画像が割り付けられない単画像割付領域(以下、「ブランク領域」と呼ぶ)が生じる。このようなブランク領域が生じる場合には、レイアウト部210は、まず、ブランク優先順位の上位の単画像割付領域にブランク領域を割り付ける。そして、残りの単画像割付領域に、画像優先順位に従って対象画像を割り付ける。   The blank priority order indicates a priority order for assigning a blank area to which a target image is not assigned in the single image assignment area. When the number of target images to be allocated to one page is smaller than the number of single image allocation areas included in one page, single image allocation areas to which target images are not allocated (hereinafter referred to as “blank areas”) Occurs. When such a blank area occurs, the layout unit 210 first assigns a blank area to a single image allocation area having a higher blank priority. Then, the target image is allocated to the remaining single image allocation area according to the image priority order.

図4は、対象画像の割付結果の一例を示す説明図である。図4に示す例では、4つの対象画像を、図3に示すテンプレートデータTDに従って割り付ける場合を示している。この例では、ブランク領域が2つ生じる。そこで、レイアウト部210は、ブランク優先順位の上位2つの単画像割付領域F6、F1に、ブランク領域を割り付ける。次に、残りの4つの単画像割付領域F2〜F5に、画像優先順序の順に対象画像を割り付ける。   FIG. 4 is an explanatory diagram illustrating an example of the assignment result of the target image. The example shown in FIG. 4 shows a case where four target images are assigned according to the template data TD shown in FIG. In this example, two blank areas are generated. Therefore, the layout unit 210 allocates a blank area to the top two single image allocation areas F6 and F1 in the blank priority order. Next, the target images are allocated to the remaining four single image allocation areas F2 to F5 in the order of image priority.

ここで、ブランク優先順位は、画像優先順位と画像優先順位の逆順とのいずれとも異なる順序に設定されることが好ましい。画像優先順位の逆順にブランク領域を割り付ける場合、すなわち、対象画像の数に拘わらずに対象画像を画像優先順位に従って割り付ける場合には、対象画像が画像優先順位の上位の単画像割付領域に偏ることになる。逆に、画像優先順位の順にブランク領域を割り付ける場合には、対象画像が画像優先順位の下位の単画像割付領域に偏ることになる。一方、単画像割付領域は、画像優先順位の順に連続するようにページ内に配置される場合が多い。その結果、画像優先順序と画像優先順位の逆順との一方の順序に従ってブランク領域を割り付けると、対象画像がページ内の一部の領域に偏る可能性がある。例えば、図3、4に示す例において、4つの対象画像を、対象画像の数に拘わらずに、画像優先順位に従って4つの単画像割付領域F1〜F4に割り付けると、対象画像の配置がページの左側に大きく偏ってしまう。   Here, the blank priority order is preferably set in an order different from both the image priority order and the reverse order of the image priority order. When allocating blank areas in the reverse order of image priority, that is, when allocating target images according to image priority regardless of the number of target images, the target image is biased to a single image allocation area having a higher image priority. become. Conversely, when assigning blank areas in order of image priority, the target image is biased toward a single image allocation area that is lower in image priority. On the other hand, single image allocation areas are often arranged in a page so as to be continuous in the order of image priority. As a result, if the blank area is assigned according to one of the image priority order and the reverse order of the image priority order, the target image may be biased to a part of the page. For example, in the example shown in FIGS. 3 and 4, if four target images are allocated to four single image allocation areas F1 to F4 according to the image priority order regardless of the number of target images, the layout of the target images is the page. It will be greatly biased to the left side.

そこで、本実施例では、ブランク優先順位は、画像優先順位と画像優先順位の逆順とのいずれとも異なる順序に設定されている。図3に示す例では、ブランク優先順位は、ブランク領域がページの右側と左側とから交互に選ばれるように設定されている。その結果、対象画像の数が少ない場合でも、対象画像がページの右側や左側に大きく偏ることを抑制することができる。   Therefore, in this embodiment, the blank priority order is set to an order different from both the image priority order and the reverse order of the image priority order. In the example shown in FIG. 3, the blank priority is set so that the blank area is alternately selected from the right side and the left side of the page. As a result, even when the number of target images is small, it is possible to suppress the target images from being greatly biased to the right or left side of the page.

なお、図3に示す例において、ブランク優先順位は必ずしも上述の順序である必要はなく、異なる順序に設定してもよい。いずれの場合も、ブランク優先順位は、画像優先順位の逆順と異なる順序に設定することが好ましく、画像優先順位とも異なる順序に設定することが特に好ましい。こうすれば、対象画像の数が変化した場合でも、ページ内における対象画像の偏りが大きくなることを抑制することができる。   In the example shown in FIG. 3, the blank priority order is not necessarily in the above-described order, and may be set in a different order. In any case, the blank priority order is preferably set in an order different from the reverse order of the image priority order, and particularly preferably set in an order different from the image priority order. In this way, even when the number of target images changes, it is possible to suppress an increase in the bias of the target images in the page.

C.第2実施例:
図5(a)〜(f)は、第2実施例におけるテンプレートデータの概要を示す説明図である。図3に示すテンプレートデータTDとの差異は、対象画像の数に応じて画像優先順位が設定されている点である。本実施例では、テンプレートデータTDaは、1ページ分の台紙領域PAaに6つの単画像割付領域F11〜F16を設定する。これらの単画像割付領域F11〜F16は、ページの上から下に向かって2列に並ぶように配置されている。単画像割付領域内の左上の数字は画像優先順位を示している。
C. Second embodiment:
FIGS. 5A to 5F are explanatory views showing an outline of template data in the second embodiment. The difference from the template data TD shown in FIG. 3 is that image priority is set according to the number of target images. In the present embodiment, the template data TDa sets six single image allocation areas F11 to F16 in the mount area PAa for one page. These single image allocation areas F11 to F16 are arranged in two rows from the top to the bottom of the page. The number on the upper left in the single image allocation area indicates the image priority.

図5(a)〜(f)には、対象画像の数が6〜1のそれぞれの場合の画像優先順位が示されている。図中において、ブランク領域は点線で表されている。   FIGS. 5A to 5F show image priorities in the case where the number of target images is 6 to 1, respectively. In the figure, the blank area is represented by a dotted line.

例えば、図5(c)には、対象画像の数が4である場合の画像優先順位が示されている。この例では、ブランク領域の数は2であり、2つのブランク領域はページの中央に近い2つの単画像割付領域F13、F14に割り付けられている。こうすることによって、対象画像がページの上部や下部に偏って配置されることを抑制することができる。   For example, FIG. 5C illustrates the image priority when the number of target images is four. In this example, the number of blank areas is 2, and the two blank areas are allocated to two single image allocation areas F13 and F14 close to the center of the page. By doing so, it is possible to prevent the target image from being biased toward the top or bottom of the page.

対象画像の数が他の値である場合にも、同様に、画像優先順位は、対象画像の配置の偏りが大きくならないように設定されている。このように、対象画像の数に応じた画像優先順位を予め設定し、対象画像の数に応じた画像優先順位に従って対象画像を割り付けることによって、対象画像の数に応じて、適切に、対象画像の配置の偏りが大きくなることを抑制することができる。   Similarly, when the number of target images is another value, the image priority order is set so that the bias in the layout of the target images does not increase. As described above, the image priority order according to the number of target images is set in advance, and the target images are allocated according to the image priority order according to the number of target images, so that the target images are appropriately set according to the number of target images. It is possible to suppress an increase in the bias of the arrangement.

D.第3実施例:
図6は、レイアウト部210(図2)におけるレイアウト処理の手順を示すフローチャートである。このフローチャートは、複数のページに対象画像を割り付ける場合の処理手順を示している。
D. Third embodiment:
FIG. 6 is a flowchart showing a procedure of layout processing in the layout unit 210 (FIG. 2). This flowchart shows a processing procedure when assigning target images to a plurality of pages.

ステップS100では、レイアウト部210は、対象画像の割付に必要となるページ数の算出を行う。本実施例では、ページ数として、単画像割付領域の総数が対象画像の総数以上となる最小のページ数を採用する。   In step S100, the layout unit 210 calculates the number of pages necessary for the allocation of the target image. In this embodiment, the minimum number of pages in which the total number of single image allocation areas is equal to or greater than the total number of target images is employed as the number of pages.

図7(a)〜(f)は、図6に示す手順に従ったレイアウト処理の一例を示す説明図である。図7(a)は、テンプレートデータの概要を示している。この例では、テンプレートデータTDbは、1ページ分の台紙領域PAbに6つの単画像割付領域F21〜F26を設定する。これらの画像領域F21〜F26には、画像優先順位(左上の数字)とブランク優先順位(右上の括弧内の数字)とが設定されている。   FIGS. 7A to 7F are explanatory views showing an example of layout processing according to the procedure shown in FIG. FIG. 7A shows an outline of template data. In this example, the template data TDb sets six single image allocation areas F21 to F26 in the mount area PAb for one page. In these image areas F21 to F26, an image priority (upper left numeral) and a blank priority (upper right parenthesis numerals) are set.

図7(b)は、レイアウト処理の条件例を示す説明図である。この例では、対象画像数が19であるものとしている。また、1つのページに含まれる単画像割付領域の数は6である。その結果、レイアウト処理に4つのページが用いられる。   FIG. 7B is an explanatory diagram showing an example of conditions for layout processing. In this example, it is assumed that the number of target images is 19. Further, the number of single image allocation areas included in one page is six. As a result, four pages are used for layout processing.

次に、ステップS110(図6)では、レイアウト部210(図2)は、ブランク領域の総数の算出を行う。ブランク領域の総数は、ステップS100で設定したページに含まれる単画像割付領域の総数から対象画像の総数を差し引いた値である。図7(b)の例では、ブランク領域の総数は5である。   Next, in step S110 (FIG. 6), the layout unit 210 (FIG. 2) calculates the total number of blank areas. The total number of blank areas is a value obtained by subtracting the total number of target images from the total number of single image allocation areas included in the page set in step S100. In the example of FIG. 7B, the total number of blank areas is 5.

ステップS120では、レイアウト部210は、各ページに割り付けられるブランク領域の数を設定する。本実施例では、ページ数が2以上であり、さらに、ブランク領域の総数が2以上である場合に、ブランク領域を2つのページに割り付けるものとしている(以下、ブランク領域を割り付けるページ数を「ブランク割付ページ数」と呼ぶ)。なお、ブランク領域を割り付けるページとしては任意のページを採用することができるが、本実施例では、全てのページの内の最も後ろに位置する一部のページ(図7(b)の例では、3ページ目と4ページ目)を採用するものとしている。   In step S120, the layout unit 210 sets the number of blank areas allocated to each page. In this embodiment, when the number of pages is 2 or more and the total number of blank areas is 2 or more, the blank areas are assigned to two pages (hereinafter, the number of pages to which the blank areas are assigned is “blank”. Called the number of pages allocated). Note that any page can be adopted as the page to which the blank area is allocated. However, in this embodiment, a part of the pages located at the back of all the pages (in the example of FIG. 7B, 3rd page and 4th page) are adopted.

レイアウト部210は、ブランク領域の総数を、ブランク領域を割り付けるページに均等に割り振る。均等に割り振った結果、余りが生じる場合には、その余りを、ブランク領域を割り付けるページの一部に1つずつ割り振る。図7(b)の例では、均等に割り振られるブランク領域の数(以下、「均等ブランク数」と呼ぶ)が2であり、余りのブランク領域の数(以下、「残余ブランク数」と呼ぶ)が1である。余りを割り振るページとしては任意のページを採用することができるが、本実施例では、ブランク領域を割り付けるページの内の最も後ろに位置する一部のページ(図7(b)の例では4ページ目)を採用するものとしている。   The layout unit 210 evenly allocates the total number of blank areas to pages to which the blank areas are allocated. If there is a remainder as a result of the uniform allocation, the remainder is allocated to each part of the page to which the blank area is allocated. In the example of FIG. 7B, the number of uniformly allocated blank areas (hereinafter referred to as “uniform blank number”) is 2, and the number of remaining blank areas (hereinafter referred to as “remaining blank number”). Is 1. Arbitrary pages can be adopted as the pages to which the remainder is allocated, but in this embodiment, some pages located at the rearmost among the pages to which the blank area is allocated (four pages in the example of FIG. 7B). Eye).

次に、ステップS130(図6)では、レイアウト部210は、対象画像の割り付けを行う。レイアウト部210は、対象画像を、テンプレートデータに基づいて、1ページ目から順番に割り付ける。この際、各ページに割り付ける対象画像の数は、ステップS120での設定結果に応じて設定される。   Next, in step S130 (FIG. 6), the layout unit 210 assigns the target image. The layout unit 210 assigns target images in order from the first page based on the template data. At this time, the number of target images to be allocated to each page is set according to the setting result in step S120.

図7(c)〜(f)は、図7(b)の条件のもとでレイアウト処理を行った場合の割付結果の一例を示す説明図である。図7(c)〜(f)は、それぞれ、1〜4ページの割付結果を示している。単画像割付領域に記された数字は、対象画像を割り付ける順番を示している。ブランク領域は点線で表されている。1ページ目と2ページ目には、6つの対象画像が、画像優先順位に従って、それぞれ割り付けられている。3ページ目には、2つのブランク領域がブランク優先順位に従って割り付けられ、残りの画像割り付け領域F21〜F24に4つの対象画像が割り付けられている。4ページ目には、3つのブランク領域がブランク優先順位に従って割り付けられ、残りの画像割り付け領域F21〜F23に3つの対象画像が割り付けられている。その結果、ブランク領域は、1つのページに集中することなく、3ページ目と4ページ目とに分散されるので、複数のページを比較した場合に、割り付けられた対象画像の数の差が大きくなることを抑制することができる。   FIGS. 7C to 7F are explanatory diagrams illustrating an example of the allocation result when the layout process is performed under the conditions of FIG. 7B. FIGS. 7C to 7F show the allocation results for pages 1 to 4, respectively. The numbers written in the single image allocation area indicate the order in which the target images are allocated. Blank areas are represented by dotted lines. On the first page and the second page, six target images are allocated according to the image priority order. On the third page, two blank areas are allocated according to the blank priority order, and four target images are allocated to the remaining image allocation areas F21 to F24. On the fourth page, three blank areas are allocated according to the blank priority order, and three target images are allocated to the remaining image allocation areas F21 to F23. As a result, the blank area is not concentrated on one page but is distributed between the third page and the fourth page. Therefore, when a plurality of pages are compared, the difference in the number of assigned target images is large. It can be suppressed.

このように、本実施例では、ブランク領域が複数ある場合には、ブランク領域が複数のページに割り付けられるように、対象画像の割り付けを行う。その結果、特定のページにブランク領域、すなわち、対象画像が偏ることを抑制することができる。従って、ユーザが複数のページを比較する場合でも、割り付けられた対象画像の数の差によってユーザが覚える違和感を小さく抑えることができる。   As described above, in this embodiment, when there are a plurality of blank areas, the target image is allocated so that the blank areas are allocated to a plurality of pages. As a result, it is possible to suppress the blank area, that is, the target image from being biased to a specific page. Therefore, even when the user compares a plurality of pages, it is possible to suppress a sense of discomfort that the user learns due to the difference in the number of assigned target images.

なお、ブランク領域は、2つのページに限らず、より多くのページに割り付けてもよい。また、ブランク領域は、必ずしも均等に割り振る必要はなく、ページによって対象画像の数が異なるように割り振ってもよい。いずれの場合も、ブランク領域を複数のページに割り付ければ、ページによる対象画像の数の差が大きくなることを抑制することができる。また、ブランク領域は、必ずしも、複数ある場合に複数のページに割り付ける必要はない。例えば、ブランク領域の数に対するしきい値を設定し、ブランク領域の数がしきい値以上の場合に複数のページに割り付けても良い。この場合には、しきい値を小さい値に設定することが好ましい。こうすれば、ページによる対象画像の数の差が大きくなることを抑制することができる。   Note that the blank area is not limited to two pages, and may be allocated to more pages. Further, the blank area is not necessarily allocated evenly, and may be allocated so that the number of target images varies depending on the page. In either case, if the blank area is allocated to a plurality of pages, it is possible to suppress an increase in the difference in the number of target images between pages. Further, when there are a plurality of blank areas, it is not always necessary to allocate them to a plurality of pages. For example, a threshold value with respect to the number of blank areas may be set, and when the number of blank areas is equal to or greater than the threshold value, it may be allocated to a plurality of pages. In this case, it is preferable to set the threshold value to a small value. In this way, it is possible to suppress an increase in the difference in the number of target images between pages.

E.第4実施例:
図8(a)〜(e)は、図6に示す手順に従ったレイアウト処理の別の例を示す説明図である。図7(a)〜(f)に示す実施例との差異は、ブランク領域を全てのページに割り付けている点である。使用しているテンプレートデータは、図7(a)に示すテンプレートデータTDbと同じである。
E. Fourth embodiment:
FIGS. 8A to 8E are explanatory diagrams showing another example of the layout process according to the procedure shown in FIG. A difference from the embodiment shown in FIGS. 7A to 7F is that a blank area is allocated to all pages. The template data used is the same as the template data TDb shown in FIG.

図8(a)は、レイアウト処理の条件例を示す説明図である。対象画像数は、図7(b)に示す例と同じ19である。ブランク割付ページ数は、図7(b)の例と異なり、全ページ数(この例では4)に設定されている。その結果、均等ブランク数は1となり、残余ブランク数も1となる。   FIG. 8A is an explanatory diagram illustrating an example of conditions for layout processing. The number of target images is 19, which is the same as the example shown in FIG. Unlike the example of FIG. 7B, the number of blank allocated pages is set to the total number of pages (4 in this example). As a result, the number of uniform blanks is 1, and the number of remaining blanks is 1.

図8(b)〜(e)は、図8(a)の条件のもとでレイアウト処理を行った場合の割付結果の一例を示す説明図である。図8(b)〜(e)は、それぞれ、1〜4ページの割付結果を示している。1〜3ページ目には、それぞれ、1つのブランク領域が割り付けられている。4ページ目には、2つのブランク領域が割り付けられている。その結果、ブランク領域は、4つのページに分散されるので、2つのページに分散させた場合と比べて、さらに、割り付けられた対象画像の数の差が大きくなることを抑制することができる。   FIGS. 8B to 8E are explanatory diagrams illustrating an example of the allocation result when the layout process is performed under the conditions of FIG. FIGS. 8B to 8E show the allocation results of pages 1 to 4, respectively. One blank area is allocated to each of the first to third pages. On the fourth page, two blank areas are allocated. As a result, since the blank area is distributed over four pages, it is possible to further suppress an increase in the difference in the number of assigned target images compared to the case where the blank area is distributed over two pages.

このように、ブランク領域を割り付けるページ数を多くすれば、より効果的に、特定のページにブランク領域、すなわち、対象画像が偏ることを抑制することができる。ただし、テンプレートデータが設定する単画像割付領域の配置は、全ての単画像割付領域に対象画像が割り付けられることを想定して設定されることが一般的である。従って、ブランク領域を割り付けるページ数を少なくすることは、テンプレートデータが想定するページ、すなわち、ブランク領域の無いページを多くすることができる点で好ましい。ただし、この場合も、少なくとも2つのページにブランク領域を割り付けることが、画像の配置の偏りが大きくなることを抑制できる点で好ましい。   Thus, if the number of pages to which the blank area is allocated is increased, it is possible to more effectively suppress the blank area, that is, the target image from being biased to a specific page. However, the arrangement of single image allocation areas set by the template data is generally set on the assumption that the target image is allocated to all single image allocation areas. Therefore, it is preferable to reduce the number of pages to which the blank area is allocated because the number of pages assumed by the template data, that is, the pages without the blank area can be increased. However, in this case as well, it is preferable to allocate a blank area to at least two pages from the viewpoint of suppressing an increase in the image arrangement bias.

F.変形例:
なお、この発明は上記の実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
F. Variations:
The present invention is not limited to the above-described examples and embodiments, and can be implemented in various modes without departing from the gist thereof. For example, the following modifications are possible.

F1.変形例1:
上述の各実施例において、ブランク領域に画像や文字を挿入しても良い。図9は、図4に示す実施例において、ブランク領域に画像と文字とを挿入した様子を示す説明図である。このように、ブランク領域に画像や文字を挿入すれば、ページに割り付ける対象画像の数が単画像割付領域の数と比べて少ない場合でも、ページ内に空いた領域が生じることを抑制することができる。なお、この場合には、挿入可能な画像データや文字データを予め準備しておき、レイアウト部210(図2)が、ブランク領域に割り付ける画像データや文字データを選択する構成とすることができる。また、レイアウト部210が、挿入する画像や文字の選択をユーザに許容してもよく、さらに、ユーザが準備した画像データや文字データを用いて、画像や文字を挿入してもよい。
F1. Modification 1:
In each of the above-described embodiments, an image or a character may be inserted into the blank area. FIG. 9 is an explanatory diagram showing a state in which images and characters are inserted into the blank area in the embodiment shown in FIG. Thus, if an image or a character is inserted in the blank area, it is possible to suppress the generation of an empty area in the page even when the number of target images to be allocated to the page is smaller than the number of single image allocation areas. it can. In this case, image data and character data that can be inserted can be prepared in advance, and the layout unit 210 (FIG. 2) can select image data and character data to be allocated to the blank area. Further, the layout unit 210 may allow the user to select an image or character to be inserted, and may further insert an image or character using image data or character data prepared by the user.

F2.変形例2:
上述の図7(a)〜(f)、図8(a)〜(e)に示す実施例において、テンプレートデータTDb(図7(a))では、ブランク優先順位が画像優先順位の逆順となっているが、図3に示す実施例と同様に、ブランク優先順位を、画像優先順位と画像優先順位の逆順とのいずれとも異なる順序に設定してもよい。また、図5(a)〜(f)に示す実施例と同様に、対象画像の数に応じた画像優先順位を設定してもよい。こうすれば、画像の配置の偏りを、更に、小さく抑えることができる。
F2. Modification 2:
In the embodiment shown in FIGS. 7A to 7F and FIGS. 8A to 8E, in the template data TDb (FIG. 7A), the blank priority is reverse to the image priority. However, as in the embodiment shown in FIG. 3, the blank priority order may be set to an order different from both the image priority order and the reverse order of the image priority order. Further, as in the embodiment shown in FIGS. 5A to 5F, image priority orders may be set according to the number of target images. By doing so, it is possible to further reduce the bias in the arrangement of the images.

F3.変形例3:
上述の各実施例では、テンプレートデータは、1つのページに対する単画像割付領域の配置を設定する画像割付領域データであるが、さらに、1つのページを装飾する装飾画像を表す装飾画像データを含む構成としてもよい。この場合、合成部220(図2)を、装飾画像と対象画像とを、レイアウト部210から受け取ったレイアウトデータに基づいて合成して割付画像データを生成するように構成することが好ましい。こうすれば、ユーザは、装飾画像で装飾された出力画像を手軽に得ることができる。
F3. Modification 3:
In each of the above-described embodiments, the template data is image allocation area data for setting the arrangement of the single image allocation area for one page, and further includes a decoration image data representing a decoration image that decorates one page. It is good. In this case, it is preferable that the synthesizing unit 220 (FIG. 2) is configured to generate the allocated image data by synthesizing the decoration image and the target image based on the layout data received from the layout unit 210. In this way, the user can easily obtain an output image decorated with a decoration image.

F4.変形例4:
上述の各実施例において、画像出力装置が、画像処理装置の機能の一部、または、全部を実行する構成としてもよい。図10は、コンピュータ200aがレイアウト処理を実行し、プリンタ300aが割付画像データを生成する処理を実行する構成例を示す説明図である。このコンピュータ200aと、図2に示すコンピュータ200との差異は、合成部220と印刷データ生成部230とが省略され、その代わりに、レイアウト送信部240aが設けられている点である。一方、プリンタ300aは、CPU、RAM、ROMなどで構成される制御部を備えており(図示省略)、合成部と印刷データ生成部との機能をソフトウェア的に実行するように構成されている。
F4. Modification 4:
In each of the above-described embodiments, the image output apparatus may be configured to execute part or all of the functions of the image processing apparatus. FIG. 10 is an explanatory diagram illustrating a configuration example in which the computer 200a executes layout processing and the printer 300a executes processing for generating assigned image data. The difference between the computer 200a and the computer 200 shown in FIG. 2 is that the composition unit 220 and the print data generation unit 230 are omitted, and a layout transmission unit 240a is provided instead. On the other hand, the printer 300a includes a control unit (not shown) including a CPU, a RAM, a ROM, and the like, and is configured to execute the functions of the synthesis unit and the print data generation unit in software.

レイアウト部210は、上述したレイアウト処理を実行してレイアウトデータを生成する。レイアウト送信部240aは、対象画像データと、テンプレートデータと、レイアウト部210が生成したレイアウトデータとを、プリンタ300aに送信する。これらのデータを受け取ったプリンタ300aは、割付画像データを生成し、割付画像の印刷を行う。割付画像データを生成する処理は、複数の画像データを読み込むことによって実行されるので、高い演算処理能力と十分なメモリ量が要求される場合が多い。本実施例では、割付画像データを生成する処理をプリンタ300aが実行するので、コンピュータ200aの構成を簡略化することができる。   The layout unit 210 executes the layout process described above to generate layout data. The layout transmission unit 240a transmits the target image data, template data, and layout data generated by the layout unit 210 to the printer 300a. Upon receiving these data, the printer 300a generates assigned image data and prints the assigned image. Since the process for generating the allocated image data is executed by reading a plurality of image data, a high calculation processing capacity and a sufficient amount of memory are often required. In the present embodiment, since the printer 300a executes the process of generating the assigned image data, the configuration of the computer 200a can be simplified.

また、画像出力装置を、上記実施例における画像処理装置として使用することもできる。例えば、画像出力装置としてのプリンタが、図2に示すコンピュータ200と同様の機能を実行する構成を用いることができる。さらに、プリンタが、ケーブルやネットワーク、無線通信、メモリカード等を介してデジタルカメラ100から直接画像データを受け取ることができる構成とすれば、コンピュータを用いることなく、割付画像の印刷を行うことができる。   The image output device can also be used as the image processing device in the above embodiment. For example, it is possible to use a configuration in which a printer as an image output apparatus executes the same function as the computer 200 shown in FIG. Furthermore, if the printer can receive image data directly from the digital camera 100 via a cable, a network, wireless communication, a memory card, or the like, the assigned image can be printed without using a computer. .

F5.変形例5:
上述の各実施例において、テンプレートデータを、対象画像データと同様に、外部から提供する構成としてもよい。こうすれば、テンプレートデータ格納部を省略することができる。
F5. Modification 5:
In each of the above-described embodiments, the template data may be provided from the outside similarly to the target image data. In this way, the template data storage unit can be omitted.

F6.変形例6:
上述の各実施例において、画像生成装置が、画像処理装置の機能の一部、または、全部を実行する構成としてもよい。図11は、画像生成装置としてのデジタルカメラ100aが、レイアウト処理を実行する構成例を示すブロック図である。デジタルカメラ100aは、CPU、RAM、ROMなどで構成される制御部を備えており(図示省略)、デジタルカメラ100aが備える各機能ブロックはソフトウェア的に構成されている。
F6. Modification 6:
In each of the above-described embodiments, the image generation apparatus may be configured to execute part or all of the functions of the image processing apparatus. FIG. 11 is a block diagram illustrating a configuration example in which the digital camera 100a as the image generation apparatus executes layout processing. The digital camera 100a includes a control unit (not shown) including a CPU, RAM, ROM, and the like, and each functional block included in the digital camera 100a is configured as software.

撮像によって生成された画像データは、図示しないメモリ内に格納される。レイアウト部110は、メモリから対象画像データを読み込み、テンプレート選択部150によって指定されたテンプレートデータ140に基づいて、上述のレイアウト処理を実行する。合成部120は、レイアウト部110から受け取ったレイアウトデータと、対象画像データと、テンプレートデータ140とを用いて割付画像データを生成する。生成された割付画像データは、割付画像データ送信部130によってプリンタ300bに送信される。プリンタ300bは、割付画像データに基づいて割付画像の印刷を行う。   Image data generated by imaging is stored in a memory (not shown). The layout unit 110 reads the target image data from the memory, and executes the above-described layout process based on the template data 140 specified by the template selection unit 150. The synthesizing unit 120 generates layout image data using the layout data received from the layout unit 110, the target image data, and the template data 140. The generated allocated image data is transmitted to the printer 300b by the allocated image data transmission unit 130. The printer 300b prints the assigned image based on the assigned image data.

このように、画像生成装置がレイアウト処理と割付画像データを生成する処理とを実行する構成とすれば、レイアウト処理を行うためのコンピュータを別途準備することなく、対象画像を割り付けた割付画像を出力することができる。また、図10に示す実施例と同様に、合成部120を備える代わりにレイアウトデータを送信する構成としてもよい。こうすれば、画像生成装置の構成を簡略化することができる。また、メモリカード(図示省略)に割付画像データやレイアウトデータを格納し、これらのデータを格納したメモリカードをプリンタに接続することによって、データの受け渡しを行う構成としてもよい。   As described above, when the image generation apparatus is configured to execute the layout process and the process of generating the allocated image data, the allocated image to which the target image is allocated is output without separately preparing a computer for performing the layout process. can do. Moreover, it is good also as a structure which transmits layout data instead of providing the synthetic | combination part 120 similarly to the Example shown in FIG. In this way, the configuration of the image generation apparatus can be simplified. Further, it is also possible to store the allocated image data and layout data in a memory card (not shown) and connect the memory card storing these data to a printer to exchange data.

F7.変形例7:
対象画像を割り付けたページは、2つセットで見開きを構成するように使用される場合がある。このような場合には、見開きを構成する2つのページにおける対象画像の数の差が大きくならないように、対象画像を割り付けることが好ましい。このような割り付け方法としては、例えば、見開きを構成する一方のページにブランク領域を割り付ける場合には、他方のページにも同じ数だけブランク領域を割り付ける方法を用いることができる。
F7. Modification 7:
The page to which the target image is assigned may be used so as to form a spread in two sets. In such a case, it is preferable to assign the target images so that the difference in the number of target images in the two pages constituting the spread does not increase. As such an allocation method, for example, when a blank area is allocated to one page constituting a spread, the same number of blank areas can be allocated to the other page.

F8.変形例8:
上述の各実施例では、割付画像を印刷しているので、ユーザは、アルバムのページとして利用可能な印刷ページを手軽に得ることができる。また、対象画像が割り付けられた割付画像データは、印刷に限らず、種々の用途に利用することができる。例えば、LCDディスプレイやCRTモニタ等の画像出力装置を用いた画像の表示に用いてもよい。さらに、印刷を実行する前にモニタ等に割付画像を表示すれば、ユーザは、印刷する前に割付画像の内容の確認を行うことができる。また、割付画像データを格納する画像データファイルを生成してもよい。このような画像データファイルを生成して再利用すれば、レイアウト処理や、割付画像データを生成する処理を実行できない装置を用いる場合でも、割付画像データを利用することができる。
F8. Modification 8:
In each of the embodiments described above, since the layout image is printed, the user can easily obtain a print page that can be used as an album page. Further, the assigned image data to which the target image is assigned can be used not only for printing but also for various purposes. For example, you may use for the display of the image using image output apparatuses, such as an LCD display and a CRT monitor. Furthermore, if the allocated image is displayed on a monitor or the like before printing, the user can check the contents of the allocated image before printing. Further, an image data file for storing the allocated image data may be generated. If such an image data file is generated and reused, the allocated image data can be used even when a device that cannot execute the layout process or the process of generating the allocated image data is used.

F9.変形例9:
なお、本明細書において、「デジタルカメラ」とは、静止画を撮影するデジタルスチルカメラと、動画を撮影するデジタルビデオカメラとの両方を含んでいる。
F9. Modification 9:
In this specification, “digital camera” includes both a digital still camera that captures still images and a digital video camera that captures moving images.

本発明の一実施例としての画像出力システムの構成を示す説明図。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is an explanatory diagram illustrating a configuration of an image output system as an embodiment of the present invention. コンピュータ200で実行される画像処理のための機能部を説明するブロック図。The block diagram explaining the function part for the image processing performed with the computer 200. FIG. テンプレートデータの一例を示す説明図。Explanatory drawing which shows an example of template data. 対象画像の割付結果の一例を示す説明図。Explanatory drawing which shows an example of the allocation result of a target image. 第2実施例におけるテンプレートデータの概要を示す説明図。Explanatory drawing which shows the outline | summary of the template data in 2nd Example. レイアウト部210におけるレイアウト処理の手順を示すフローチャート。5 is a flowchart showing a procedure of layout processing in a layout unit 210. レイアウト処理の一例を示す説明図。Explanatory drawing which shows an example of a layout process. レイアウト処理の別の例を示す説明図。Explanatory drawing which shows another example of a layout process. ブランク領域に画像と文字とを挿入した様子を示す説明図。Explanatory drawing which shows a mode that the image and the character were inserted in the blank area | region. コンピュータ200aがレイアウト処理を実行し、プリンタ300aが割付画像データを生成する処理を実行する構成例を示す説明図。FIG. 3 is an explanatory diagram illustrating a configuration example in which the computer 200a executes layout processing and the printer 300a executes processing for generating assigned image data. デジタルカメラ100aがレイアウト処理を実行する構成例を示すブロック図。The block diagram which shows the structural example in which the digital camera 100a performs a layout process.

符号の説明Explanation of symbols

100、100a...デジタルカメラ
110...レイアウト部
120...合成部
130...割付画像データ送信部
140...テンプレートデータ
150...テンプレート選択部
200、200a...コンピュータ
210...レイアウト部
220...合成部
230...印刷データ生成部
240...印刷データ送信部
240a...レイアウト送信部
250...テンプレートデータ
260...テンプレート選択部
300、300a、300b...プリンタ
DESCRIPTION OF SYMBOLS 100, 100a ... Digital camera 110 ... Layout part 120 ... Composition part 130 ... Allocation image data transmission part 140 ... Template data 150 ... Template selection part 200, 200a ... Computer 210 ... Layout unit 220 ... Composition unit 230 ... Print data generation unit 240 ... Print data transmission unit 240a ... Layout transmission unit 250 ... Template data 260 ... Template selection unit 300, 300a , 300b ... Printer

Claims (6)

1つのページの台紙領域上に配置された所定の優先順序を有する複数の単画像割付領域を含むテンプレートに基づいて、対象画像データにより表される対象画像を前記単画像割付領域に割り付けるレイアウト処理を実行する画像処理装置であって、A layout process for allocating a target image represented by target image data to the single image allocation area based on a template including a plurality of single image allocation areas having a predetermined priority order arranged on a mount area of one page. An image processing apparatus to execute,
前記対象画像を割り付けないブランク領域を、前記優先順序と前記優先順序の逆順とのいずれとも異なる順序で前記単画像割付領域に割り付けるとともに、残りの前記単画像割付領域に前記対象画像を割り付ける機能と、前記対象画像が複数のページの前記台紙領域に割り付けられ、かつ、前記ブランク領域が複数ある場合に、前記ブランク領域を2つ以上のページの前記台紙領域に配分する機能とを備えるレイアウト部を備える画像処理装置。  A function of allocating a blank area to which the target image is not allocated to the single image allocation area in an order different from both the priority order and the reverse order of the priority order, and allocating the target image to the remaining single image allocation area; A layout unit having a function of allocating the blank area to the mount areas of two or more pages when the target image is allocated to the mount areas of a plurality of pages and there are a plurality of blank areas. An image processing apparatus.
記レイアウト部は、前記対象画像のそれぞれと、前記対象画像のそれぞれが割り付けられた前記単画像割付領域との対応関係を表すレイアウト情報を生成し、
前記画像処理装置は
前記レイアウト情報と、前記対象画像データと、前記テンプレートを表すテンプレートデータとを、前記対象画像を出力する処理を行う所定の第1のデータ処理装置に送信するレイアウト送信部を備えることを特徴とする請求項1に記載の画像処理装置。
Before Symbol layout section generates respectively before Symbol Target images, layout information indicating a correspondence relationship between the single image allocation region, each assigned before Symbol Target image,
The image processing apparatus includes :
Characterized in that it comprises said layout information, and the target image data, and a template data representing the template, the layout transmission unit for transmitting a predetermined first data processing apparatus for processing you outputting the target image The image processing apparatus according to claim 1 .
前記レイアウト部によって割り付けられた前記対象画像の割付画像を表す割付画像データを、前記レイアウト部の割付結果と、前記対象画像データと、前記テンプレートデータとを用いて生成する合成部を備える請求項1または請求項2に記載の画像処理装置。 Claim 1, further comprising a layout image data representing a layout image of the target image that has been allocated by the layout section, and the assignment result of the layout section, and the target image data, a synthesizing unit for generating with said template data Alternatively, the image processing apparatus according to claim 2 . 記合成部によって生成された前記割付画像データを、前記対象画像を出力する処理を行う所定の第2のデータ処理装置に送信する割付画像データ送信部を備えることを特徴とする請求項3に記載の画像処理装置。 Claims the layout image data produced by the pre-Symbol combining unit, characterized in that it comprises a layout image data transmission unit for transmitting to a predetermined second data processing apparatus for processing you outputting the target image The image processing apparatus according to 3 . 1つのページの台紙領域上に配置された所定の優先順序を有する複数の単画像割付領域を含むテンプレートに基づいて、対象画像データにより表される対象画像を前記単画像割付領域に割り付けるレイアウト工程を実行する画像処理方法であって、A layout step of allocating a target image represented by target image data to the single image allocation area based on a template including a plurality of single image allocation areas having a predetermined priority order arranged on a mount area of one page; An image processing method to be executed,
前記対象画像を割り付けないブランク領域を、前記優先順序と前記優先順序の逆順とのいずれとも異なる順序で前記単画像割付領域に割り付けるとともに、残りの前記単画像割付領域に前記対象画像を割り付けるステップと、前記対象画像が複数のページの前記台紙領域に割り付けられ、かつ、前記ブランク領域が複数ある場合に、前記ブランク領域を2つ以上のページの前記台紙領域に配分するステップとを含むレイアウト工程を実行する画像処理方法。  Allocating a blank area to which the target image is not allocated to the single image allocation area in an order different from both the priority order and the reverse order of the priority order, and allocating the target image to the remaining single image allocation area; Allocating the blank area to the mount areas of two or more pages when the target image is allocated to the mount areas of a plurality of pages and there are a plurality of blank areas. The image processing method to execute.
1つのページの台紙領域上に配置された所定の優先順序を有する複数の単画像割付領域を含むテンプレートに基づいて、対象画像データにより表される対象画像を前記単画像割付領域に割り付けるレイアウト機能を実現させる画像処理プログラムであって、A layout function for allocating a target image represented by target image data to the single image allocation area based on a template including a plurality of single image allocation areas having a predetermined priority order arranged on a mount area of one page. An image processing program to be realized,
前記対象画像を割り付けないブランク領域を、前記優先順序と前記優先順序の逆順とのいずれとも異なる順序で前記単画像割付領域に割り付けるとともに、残りの前記単画像割付領域に前記対象画像を割り付ける機能と、  A function of allocating a blank area to which the target image is not allocated to the single image allocation area in an order different from both the priority order and the reverse order of the priority order, and allocating the target image to the remaining single image allocation area; ,
前記対象画像が複数のページの前記台紙領域に割り付けられ、かつ、前記ブランク領域が複数ある場合に、前記ブランク領域を2つ以上のページの前記台紙領域に配分する機能とをコンピュータに実現させる画像処理プログラム。  An image that causes a computer to realize a function of allocating the blank area to the mount areas of two or more pages when the target image is allocated to the mount areas of a plurality of pages and there are a plurality of blank areas. Processing program.
JP2008074822A 2008-03-24 2008-03-24 Multiple image layout processing Expired - Fee Related JP4390003B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008074822A JP4390003B2 (en) 2008-03-24 2008-03-24 Multiple image layout processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008074822A JP4390003B2 (en) 2008-03-24 2008-03-24 Multiple image layout processing

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003308759A Division JP4127164B2 (en) 2003-09-01 2003-09-01 Multiple image layout processing

Publications (2)

Publication Number Publication Date
JP2008219910A JP2008219910A (en) 2008-09-18
JP4390003B2 true JP4390003B2 (en) 2009-12-24

Family

ID=39839305

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008074822A Expired - Fee Related JP4390003B2 (en) 2008-03-24 2008-03-24 Multiple image layout processing

Country Status (1)

Country Link
JP (1) JP4390003B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5732951B2 (en) * 2011-03-24 2015-06-10 セイコーエプソン株式会社 Layout device and printing device

Also Published As

Publication number Publication date
JP2008219910A (en) 2008-09-18

Similar Documents

Publication Publication Date Title
JP4807415B2 (en) Image processing device
JP4127164B2 (en) Multiple image layout processing
US8335016B2 (en) Image processing apparatus and program product using index vale or presentation image to decide consumption of recording material
JP4390003B2 (en) Multiple image layout processing
JP4075546B2 (en) Image processing device
JP4849026B2 (en) Printing apparatus, printing method, and computer program
JP2005064788A (en) Image processing in accordance with output form of image
JP2005117492A (en) Template selection processing used for layout of image
JP2005123911A (en) Assignment of original image to assignment region
JP4295465B2 (en) Image processing device
JP4506535B2 (en) Image processing apparatus and image transmission method
JP4400739B2 (en) Color conversion method, color conversion device, color conversion program, print control method, print control device, and print control program
JP4561753B2 (en) Image processing according to image output form
JP2007251619A (en) Apparatus, method and program for image processing
JP2005142737A (en) Layout processing of a plurality of images
JP2005295131A (en) Apparatus, method, and program for processing image
JP2006302165A (en) Image data supply device and image data supply method
JP2016224922A (en) Image processing apparatus, image processing method and computer program
JP2010171926A (en) Printing system, printing apparatus, and image printing method
JP5714156B2 (en) Image processing apparatus and image processing method
JP3900885B2 (en) Printing system and printing instruction apparatus
JP2006287479A (en) Image processing apparatus
JP2007030188A (en) Apparatus for generating image data for printing, method for generating image data for printing, and program
JP2007251319A (en) Apparatus, method, and program for image processing and image date conversion profile
JP2005269131A (en) Image processing apparatus, image processing method, and image processing program

Legal Events

Date Code Title Description
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: 20090915

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090928

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121016

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121016

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131016

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees