Control method, image processing device, and non-transitory computer-readable storage medium
By generating a new template suitable for the characteristics of the image data and laying it out into the slot, the problem of low quality of finished image data in traditional technology is solved, and the quality and adaptability of the layout image are improved.
Patent Information
- Application Number
- CN202010776056.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-08-08
- Filing Date
- 2020-08-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-08-05
AI Technical Summary
When traditional technology uses a predetermined template to generate a layout image, if the image data characteristics are not suitable, the quality of the finished image data may be reduced, and the evaluation of traditional layout information does not consider the suitability of the template.
By generating new templates suitable for the characteristics of the image data, including templates with layout slots, and laying out the image data into these slots, a layout image is generated, and an album generation application is used to automatically specify the template and perform layout processing.
It improves the quality of the finished layout of image data, generates suitable templates through scoring and segmentation processing, ensures the best display of image data in the layout, and solves the problem of mismatch between templates and image data features.
Smart Images

Figure CN112346669B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a control method, an image processing device and a non-transitory computer-readable storage medium. Background Art
[0002] It is a known technique to generate a layout image by laying out image data on a template. An example of this technique is the technique discussed in Japanese Patent Laid-Open No. 2017-117406.
[0003] Since a layout image is conventionally generated by using a predetermined template, a problem may occur when a template that is not suitable for the characteristics of image data to be arranged is used. Summary of the invention
[0004] An aspect of the present invention is to eliminate the above-mentioned problems with the conventional technology.
[0005] A feature of the present invention is to provide a technique for generating a layout image by using a template suitable for features of image data to be laid out.
[0006] One aspect of the present invention provides a control method for an image processing device, the control method comprising: specifying one or more image data; generating a new template based on the specified one or more image data, the generated new template including at least one or more slots in which the specified one or more image data are laid out; and generating a layout image by laying out the specified one or more image data to one or more slots included in the generated new template.
[0007] One aspect of the present invention provides an image processing device for specifying one or more image data; generating a new template based on the characteristics of the specified one or more image data, the generated new template including at least one or more slots for laying out the specified one or more image data; and generating a layout image by laying out the specified one or more image data to one or more slots included in the generated new template.
[0008] One aspect of the present invention provides a non-temporary computer-readable storage medium storing a program, wherein the program is configured to enable a computer to perform a control method for an image processing device, the control method comprising: specifying one or more image data; generating a new template based on features of the specified one or more image data, the generated new template comprising at least one or more slots for laying out the specified one or more image data; and generating a layout image by laying out the specified one or more image data to one or more slots included in the generated new template.
[0009] Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present invention and, together with the description, serve to explain the principles of the present invention.
[0011] Figure 1 is a diagram showing a printing system.
[0012] Figure 2 It is a block diagram used to describe the hardware structure of an image processing device.
[0013] Figure 3 is a diagram showing an example of an input screen provided by an album generation application.
[0014] Figure 4 is a flowchart illustrating the automatic layout process performed by the atlas generation application.
[0015] Figure 5 : is a diagram showing an example of an editing screen provided by the album generation application.
[0016] Figure 6 : is a flowchart showing the template generation process performed by the album generation application.
[0017] Figure 7 is a flowchart showing the processing performed by the atlas generation application to generate a template or template L or R.
[0018] Fig. 8A and 8B is a flowchart showing a template generation process using vertical alignment and horizontal alignment performed by an atlas generation application.
[0019] Fig. 9A and 9B A diagram used to describe the slot layout method.
[0020] Figures 10A to 10F The following are diagrams each showing an example of a generated spread template.
[0021] Fig.11 is a flowchart showing the slot adjustment process performed by the atlas generation application.
[0022] Fig. 12A and 12B is a diagram used to describe slot adjustments.
[0023] Figures 13A to 13F Is a diagram used to describe template types.
[0024] Figures 14A to 14C is a graph used to describe template scoring.
[0025] Fig.15 is a graph used to describe template scoring.
[0026] Figures 16A to 16E A diagram used to describe the layout method of image data.
[0027] Figures 17A to 17C is a graph used to describe the scoring of layout images.
[0028] Fig.18 is a flow chart showing the automatic layout process performed by the atlas generation application during editing. DETAILED DESCRIPTION
[0029] Exemplary embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following exemplary embodiments are not intended to limit the present invention set forth in the claims, and all combinations of features described in the following exemplary embodiments are not necessarily essential to the solutions of the present invention.
[0030] In the following typical embodiment, a description will be given of a process from running an application for generating an atlas on an image processing device (hereinafter also referred to as an "atlas generation application") until an automatic layout is generated. Unless otherwise specified, the images described below include still images, moving images, and frame images in moving images, and still images, moving images, and frame images in moving images on a social network service (SNS) server.
[0031] (First Exemplary Embodiment)
[0032] Figure 1 1 is a diagram illustrating a printing system according to the present exemplary embodiment. The printing system includes an image processing apparatus 100 , an image forming apparatus 200 , a network 300 , an external server 400 , and an image forming apparatus 500 .
[0033] The image processing device 100 is a device that generates album data by using an album generation application. In the present typical embodiment, the album data refers to data used to order and produce an album (photo album), and includes multiple layout information. The layout information refers to information used to print the layout image to be laid out and printed on the facing pages (two facing pages) included in the album. In the present typical embodiment, the album generation application can automatically generate the album data and layout information through the automatic layout processing described below. Examples of the image processing device 100 include a personal computer (PC), a smart phone, a tablet terminal, a camera, and a printer. In the present typical embodiment, the image processing device 100 is a PC.
[0034] The image forming apparatus 200 performs an image forming process (printing process) for forming an image on a recording medium using a recording agent based on a print job received from the image processing apparatus 100. In the present exemplary embodiment, a description will be given of a case where the image processing apparatus 100 sends (outputs) the generated layout information to the external server 400. Alternatively, for example, the image processing apparatus 100 may be configured to send the generated layout information as a print job to the image forming apparatus 200. In this case, an atlas based on the layout information is generated by the image forming apparatus 200. The printing method used by the image forming apparatus 200 is not particularly limited. Examples include an inkjet method, an electrophotographic method, and a thermal sublimation method.
[0035] The network 300 connects the image processing apparatus 100 and the external server 400. The network 300 is a communication network for transmitting information between the image processing apparatus 100 and the external server 400. The network 300 may be a wired or wireless network.
[0036] The external server 400 receives layout information described below from the image processing device 100 via the network 300. In other words, the external server 400 is a server that controls order reception and management of atlases. When an atlas purchase and ordering process is performed by a user operating the image processing device 100, the external server 400 causes the image forming device 500 to generate an atlas through image forming processing based on the received layout information. Then, the atlas generated by the image forming device 500 is delivered to the user who has performed the atlas purchase and ordering process.
[0037] Figure 2 1 is a block diagram for describing the hardware configuration of the image processing apparatus 100 according to the present exemplary embodiment. Figure 2 , the image processing apparatus 100 includes a central processing unit (CPU) 101, a read-only memory (ROM) 102, a random access memory (RAM) 103, a hard disk drive (HDD) 104, a display 105, a keyboard 106, a mouse 107, and a data communication unit 108. These components of the image processing apparatus 100 are connected to each other via a data bus 109. The CPU 101, the ROM 102, and the RAM 103 constitute a computer of the image processing apparatus 100.
[0038] A CPU (processor) 101 is a system control unit and controls the entire image processing apparatus 100. The CPU 101 performs the image processing method described in the present exemplary embodiment based on a program. Figure 2 , the number of CPUs is one. However, this is not restrictive, and the image processing apparatus 100 may include a plurality of CPUs.
[0039] ROM 102 stores programs and an operating system (OS) to be executed by CPU 101. RAM 103 provides a memory for temporarily storing various types of information when CPU 101 executes a program. HDD 104 is a storage medium for storing image files and a database for maintaining processing results of image analysis. In the present exemplary embodiment, RAM 103 stores an atlas generation application described below.
[0040] The display 105 (display unit) is a device for presenting the user with a user interface (UI) according to the present typical embodiment and the layout result of the image. The display 105 may include a touch sensor function. The keyboard 106 is one of the input devices. For example, the keyboard 106 is used to input predetermined information to the UI displayed on the display 105. Examples of predetermined information include information related to the number of facing pages and the number of pages of the atlas to be generated. The mouse 107 is one of the input devices. For example, the mouse 107 is used to click a button on the UI displayed on the display 105. For example, when the user double-clicks the icon corresponding to the atlas generation application displayed on the display 105 by operating the mouse 107, the atlas generation application is activated.
[0041] The data communication unit 108 (communication unit) is a device for communicating with external devices such as printers and servers. For example, data generated by the album generation application is sent to a printer or server not shown connected to the image processing device 100 via the data communication unit 108. The data communication unit 108 also receives still image data on a server or SNS server not shown. In the present typical embodiment, the data communication unit 108 receives still image data from the SNS server. The data communication unit 108 can also receive motion image data.
[0042] The data bus 109 connects the above-mentioned units ( 102 to 108 ) and the CPU 101 .
[0043] <Automatic atlas layout>
[0044] When the atlas generation application according to the present exemplary embodiment is installed on the image processing apparatus 100, a startup icon of the atlas generation application is displayed on the top screen (desktop) of the OS running on the image processing apparatus 100. When the user double-clicks the startup icon on the desktop displayed on the display 105 by using the mouse 107, the atlas generation application (program) stored in the HDD 104 is loaded into the RAM 103. The CPU 101 executes the program loaded into the RAM 103, thereby activating the atlas generation application.
[0045] In the present typical embodiment, the atlas generation application performs automatic layout processing, which is a process for automatically specifying a template and generating a layout image by laying out images on the template. Generating a layout image also generates layout information for outputting (displaying / printing) the layout image. Therefore, the automatic layout processing is also a process for automatically generating layout information. The template to be automatically specified is traditionally a template that is pre-stored in the atlas generation application and has a predetermined slot shape, size, and position. Therefore, there is a problem that the template may not be suitable for the image data to be laid out. Specifically, for example, there is the following problem: the aspect ratio of the image data to be laid out and the aspect ratio of the slots in the template differ greatly from each other, so that the finished quality of the image data after layout is reduced. In view of these problems, in the present typical embodiment, a process for generating a template suitable for the image data to be laid out is performed.
[0046] In automatic layout processing, conventionally, a plurality of layout information is generated and evaluated, and layout information to be actually used is determined based on the evaluation. However, conventional evaluation of layout information does not take into account evaluation of templates used for layout information. In view of this, in the present exemplary embodiment, templates for layout information are evaluated. When selecting layout information to be actually used, the evaluation of templates used for layout information is referred to.
[0047] <Screen displayed by the album generation application>
[0048] Figure 3 3 is a diagram showing an example of an input screen 301 provided by an activated album generation application. The input screen 301 is displayed on the display 105. The user sets album generation conditions to be described below via the input screen 301, and the album generation application obtains the settings specified by the user.
[0049] The path box 302 on the input screen 301 displays the storage location (path) of the image data group to be used in the album generation in the HDD 104. When the user clicks the folder selection button 303 by operating the mouse 107, the folder containing the image data group to be used in the album generation is displayed in a tree structure in a user-selectable manner. The path to the folder containing the image data group selected by the user is displayed in the path box 302. In the above description, although the image data to be used in the album generation is specified by specifying the folder containing the image data, such a structure is not restrictive. Alternatively, the user can select the image data to be used in the album generation from the image data in the folder.
[0050] The facing pages number box 304 accepts settings related to the facing pages number in the album from the user. The user directly inputs a number into the facing pages number box 304 via the keyboard 106, or inputs a number into the facing pages number box 304 from a list by using the mouse 107. Facing pages refer to an area covering two facing pages in the album. Here, the number of facing pages of the print layout image (i.e., the image formed by performing image layout on the template) among the facing pages included in the album (i.e., the number of facing pages included in the body) is input into the facing pages number box 304.
[0051] The material designation box 305 accepts settings related to the materials to be used in the atlas generated from the atlas data. Specific examples of material settings include settings related to the size of the atlas, the sheet type of the cover of the atlas, and the sheet type of the pages of the atlas other than the cover. Optionally, the binding method of the atlas to be generated from the atlas data can be set.
[0052] The generation method designation box 306 accepts settings related to the generation method of the atlas data. In the present exemplary embodiment, the generation method of the atlas data includes automatic generation and manual generation. The details of these methods will be described below.
[0053] The OK button 307 is a button for starting to generate the album data based on the information input from the input screen 301 .
[0054] The reset button 308 is a button for resetting each setting information on the input screen 301 .
[0055] Settings other than those described above may also be set on the input screen 301. For example, settings related to moving images and settings related to the acquisition source of image data and moving image data may be set. As another example, the protagonist of the album may be set. When the protagonist is set, the album is controlled to mainly include images containing the person set as the protagonist. As yet another example, an album mode may be set. The album mode is intended to lay out images including predetermined objects on a template according to priority. In each mode, the album mainly includes objects corresponding to the mode. Examples of modes to be set here include "people", "animals", and "food". Figure 3 The input screen 301 shown may also include, for example, an area displaying a conceptual rendering of a completed atlas represented by layout information generated based on the input settings.
[0056] In the present exemplary embodiment, in the case where automatic generation is selected as the generation method of the atlas data, the atlas generation application automatically generates the atlas data based on the conditions input from the input screen 301, and then displays an editing screen for editing the automatically generated atlas data. On the other hand, in the case where manual generation is selected as the generation method of the atlas data, the atlas generation application displays an editing screen for editing the atlas data without layout image data. The user's selection is accepted on the editing screen, and the image data is laid out to generate the atlas data.
[0057] Figure 5 is a diagram showing an example of an editing screen 501 provided by the album generation application. The editing screen 501 includes a facing page list 502 , a facing page display portion 503 , an image list 504 , an order button 505 , and a candidate display area 506 .
[0058] The facing page list 502 lists candidate facing pages to be selected. The user can select one of the facing pages included in the facing page list 502 by clicking the facing page with the mouse 107.
[0059] The facing page display section 503 displays the facing page selected from the facing page list 502. When the automatic layout process is completed and a layout image corresponding to the selected facing page is generated, the facing page display section 503 displays the layout image.
[0060] The facing page list 502 and the facing page display unit 503 are not limited to facing page display. For example, the facing page list 502 and the facing page display unit 503 can be configured to display areas page by page. Optionally, the facing page list 502 and the facing page display unit 503 can switch between a state of displaying facing pages and a state of displaying pages. In this case, for example, the facing page list 502 and the facing page display unit 503 display the front and back sides in a single page display, and display the main body in a facing page display.
[0061] The image list 504 lists thumbnail images of image data (image data selected by the user) corresponding to the path specified in the path box 302. The image data corresponding to the thumbnail image selected from the image list 504 is laid out on the facing page displayed on the facing page display section 503. In other words, the user can specify the image data to be laid out on the facing page displayed on the facing page display section 503 by clicking one of the thumbnail images included in the image list 504 with the mouse 107. In this process, the user can select a plurality of thumbnail images. Thumbnail images of image data other than the thumbnail images of the image data selected by the user in the path box 302 can be added to the image list 504. For example, new image data is added to the image list 504 by dragging and dropping the image data from a folder into the image list 504. In the case where image data is added to the image list 504, the added image data is analyzed as described below in step S403.
[0062] The order button 505 is a button for ordering an atlas based on the generated atlas data. After the user presses the order button 505 and performs a predetermined ordering process, the atlas data is transmitted to the external server 400.
[0063] The candidate display area 506 is an area for displaying candidate templates to be used when generating a layout image laid out on facing pages displayed on the facing-page display section 503. Details of operations on the candidate display area 506 will be described below.
[0064] exist Figure 5 In the case of automatic layout processing, the layout image is not displayed in the facing page list 502 or the facing page display unit 503. When the layout image is laid out on the facing pages by the automatic layout processing, the layout image is displayed in the facing page list 502 and the facing page display unit 503.
[0065] <Automatic layout processing>
[0066] The following will first describe the automatic layout processing performed in the case where automatic generation is selected as the generation method of atlas data.
[0067] Figure 4 : is a flowchart illustrating automatic layout processing performed by the atlas generation application according to the present exemplary embodiment. Figure 4 The illustrated flowchart is realized, for example, by the CPU 101 reading a program corresponding to the atlas generation application stored in the HDD 104 into the RAM 103 and executing the program. Figure 4 The flowchart shown starts when the OK button 307 is operated in a state where automatic generation is selected as the generation method of the atlas data.
[0068] In step S401 , the CPU 101 obtains various types of information related to the album generation conditions input to the input screen 301 .
[0069] In step S402 , the CPU 101 refers to the information obtained in step S401 , and obtains image data stored in a folder corresponding to the path specified in the path box 302 .
[0070] In step S403, the CPU 101 analyzes the image data obtained in step S402. Specifically, the CPU 101 performs feature extraction processing, object detection processing, and face detection processing. The CPU 101 also obtains the image size and the shooting date and time from the metadata (Exchangeable Image File Format (Exif) information) accompanying the image data.
[0071] The feature extraction process will be described. Examples of feature quantities include focus on an image represented by image data. For example, edges for obtaining the feature quantity "focus" (focus amount) are detected by using a general Sobel filter. The Sobel filter is used to detect edges, and the intensity difference between the start and end points of each edge can be divided by the distance between the start and end points to calculate the edge inclination, i.e., the intensity gradient. The average edge inclination in the image is then calculated. An image with a larger average inclination can be considered to be more accurately focused than an image with a smaller average inclination. Considering multiple inclination thresholds with different values, an evaluation value of the focus amount can be output by determining which threshold the inclination is greater than or equal to. In this typical embodiment, two different thresholds are pre-set to determine the focus amounts of three levels A, B, and C. These thresholds are pre-set by experiments so that the focus amount expected by the atlas is evaluated as "A", the acceptable focus amount is evaluated as "B", and the unacceptable focus amount is evaluated as "C". For example, the threshold setting can be set by the creator of the atlas generation application. The threshold can be set from the UI. In the present exemplary embodiment, information about the imaging date and time of the image data and the size and aspect ratio of the image represented by the image data is also extracted as feature amounts.
[0072] The face detection process and the object detection process will be described. Through the face detection process, the CPU 101 detects the face of the person from the image represented by the image data obtained in step S402. For the face detection process, a conventional method can be used. For example, an adaptive boost (AdaBoost) for generating a strong discriminator from a plurality of weak discriminators provided is used. In the present exemplary embodiment, the facial image of the person (object) is detected by using a strong discriminator generated by AdaBoost. Together with the extraction of the facial image, the CPU 101 obtains the upper left coordinate value and the lower right coordinate value of the position of the detected facial image. These two types of coordinate values enable the CPU 101 to obtain the position and size of the facial image. In the object detection process, the CPU 101 also detects a predetermined object other than the facial image by using a strong discriminator generated by AdaBoost. In the present exemplary embodiment, the object to be detected by the object detection process is an animal such as a cat and a dog. The object is not limited to animals such as cats and dogs, and objects such as flowers, food, buildings, statues, and vehicles can be detected. Instead of AdaBoost, a deep neural network can be used to search for objects.
[0073] The image analysis information about each image data obtained here is distinguished by an identifier (ID) for image recognition and stored in the HDD 104 .
[0074] In step S404, the CPU 101 determines whether all the image data obtained in step S402 has been analyzed. In the case of "yes" ("yes" in step S404), the process proceeds to step S405. In the case of "no" ("no" in step S404), the process returns to step S402. In step S402, the CPU 101 obtains image data that has not yet been analyzed.
[0075] In step S405, CPU 101 performs image scoring. Image scoring in step S405 refers to processing (scoring processing) for assigning evaluation scores to each image data based on the analysis result of step S403. In the present typical embodiment, CPU 101 performs image scoring from multiple aspects based on the analysis result of step S403. In other words, multiple scores are assigned to each image data according to the image scoring of the present typical embodiment. Specifically, in the present typical embodiment, scores are assigned to each image data from two aspects, namely, one aspect based on feature quantities (particularly image quality) and one aspect based on the result of face detection.
[0076] First, image scoring based on image quality will be described. In the present typical embodiment, for example, image scoring based on image quality uses feature quantities such as focus and number of pixels. Specifically, for example, a score based on image quality is assigned so that image data that obtains "A" on the feature quantity of focus in step S403 is assigned a higher score than image data that obtains "B" or "C" on the feature quantity of focus. As another example, a score based on image quality is assigned to image data so that image data representing an image with a higher number of pixels is assigned a higher score than image data representing an image with a lower number of pixels. The feature quantities used in image scoring based on image quality may be imaging information such as information about a lens used during imaging, or a compression format of an image input to an album generation application. The size, resolution, and contrast of an image displayed based on the image data may also be used.
[0077] Next, image scoring based on the face detection result will be described. Image scoring is performed based on information related to whether a person's face is detected in step S403 and information related to the size of the face detected in step S403. For example, a score is assigned to image data so that image data including a person's face is assigned a higher score than image data not including a person's face. As another example, a score is assigned to image data so that image data in which a person's face occupies a large area (size) is assigned a higher score than image data in which a person's face occupies a small area. As another example, a score is assigned to image data so that image data including a smiling face is assigned a higher score than image data including a non-smiling face.
[0078] Next, the image scoring based on the object detection result will be described. The image scoring is performed based on the information about whether the animal is detected in step S403 and the information about the size of the animal detected in step S403. For example, the image data is scored so that the image data including the animal is given a higher score than the image data not including the animal. As another example, the image data is scored so that the image data in which the animal occupies a large area (size) is given a higher score than the image data in which the animal occupies a small area.
[0079] In step S406, the CPU 101 determines whether the image scoring of step S405 is completed for all the image data obtained in step S402. In the case of "yes" ("yes" in step S406), the process proceeds to step S407. In the case of "no" ("no" in step S406), the process returns to step S405. In step S405, the CPU 101 performs image scoring on the image data that has not yet been image scored.
[0080] In step S407, the CPU 101 classifies the image data obtained in step S402 into groups. These image data are grouped so that the number of groups generated in this process is consistent with the number of facing pages input in the facing page number box 304. Specifically, the CPU 101 first sorts the image data obtained in step S402 in ascending order of the shooting date and time based on the feature amount (shooting date and time) obtained by the analysis of step S403. Then, the CPU 101 obtains the time difference between the shooting times of the respective image data. Then, the CPU 101 classifies the image data into groups by dividing the sorted image data in the order of greater time difference. Then, the CPU 101 assigns the groups of image data thus obtained to the facing pages to be generated in a time series order. More specifically, the CPU 101 assigns the groups including the image data with an earlier shooting date and time to the facing pages with a smaller page number. In this way, it is specified which image data is laid out on which facing page.
[0081] In step S408, the CPU 101 specifies the facing pages to be automatically laid out among the facing pages that have not been automatically laid out. In the present exemplary embodiment, the facing pages with the minimum two page numbers among the facing pages that have not been automatically laid out are specified. Here, the CPU 101 obtains the image data to be laid out on the specified facing pages and the analysis results of these image data.
[0082] In step S409, the CPU 101 generates a template to be used for automatic layout of facing pages specified in step S408. Details of this processing are described below.
[0083] Figure 6 : is a flowchart illustrating template generation processing performed by the atlas generation application according to the present exemplary embodiment. Figure 6 The illustrated flowchart is realized, for example, by the CPU 101 reading a program corresponding to the atlas generation application stored in the HDD 104 into the RAM 103 and executing the program. Figure 6 The illustrated flowchart shows processing corresponding to step S409.
[0084] In step S601 , the CPU 101 sorts the image data obtained in step S402 in ascending order of imaging date and time based on the feature amount (imaging date and time) obtained by the analysis in step S403 .
[0085] In step S602, the CPU 101 specifies the aspect ratio of the image data sorted in step S601, and generates an aspect ratio array. The aspect ratio array includes values obtained by arranging the specified aspect ratios in the same order as the order of the image data in step S601. In the present exemplary embodiment, the aspect ratio refers to "the height of the image represented by the image data / the width of the image represented by the image data". In the case where the image data has various aspect ratios, a suitable template may not be generated by the template generation process to be described below. Therefore, the CPU 101 performs a process for reducing the variation of the aspect ratio of the image data. Specifically, the CPU 101 calculates the number N_1 of image data whose value of "the length of the short side of the image represented by the image data / the length of the long side of the image represented by the image data" is greater than (2 / 3+3 / 4) / 2 and less than 1. The CPU 101 also calculates the number N_s of image data whose value of "the length of the short side of the image represented by the image data / the length of the long side of the image represented by the image data" is less than (2 / 3+3 / 4) / 2. In the case of N_s≤N_1, the CPU 101 replaces the aspect ratio of the image data having an aspect ratio less than 1 with 3 / 4, and replaces the aspect ratio of the image data having an aspect ratio greater than 1 with 4 / 3. On the other hand, in the case of N_s>N_1, the CPU 101 replaces the aspect ratio of the image data having an aspect ratio less than 1 with 2 / 3, and replaces the aspect ratio of the image data having an aspect ratio greater than 1 with 3 / 2. The CPU 101 maintains the aspect ratio of the image data having an aspect ratio of 1. As a result, in the case of assigning five data to the facing pages specified in step S408, for example, an aspect ratio array such as {1, 1, 1, 4 / 3, 3 / 4} is generated.
[0086] In step S603, the CPU 101 specifies a template type that has not yet been specified. Figures 10A to 10F The type of template shown (Template Type). Figures 10A to 10F In the example, the center line of each template indicates the line corresponding to the center line of the facing page, that is, the line corresponding to the binding portion of the atlas. Figures 10A to 10FA structure in which slots have been laid out is shown, but which slots are to be laid out in the layout area indicated by the dotted lines is determined by subsequent processing. Examples of templates generated by the template generation processing include types of templates that can lay out slots that are laid out across both the right and left pages, and types of templates that do not lay out slots that are laid out across both the right and left pages. Examples also include types of templates that do not lay out slots on the left page but only on the right page. Examples further include types of templates that have a large amount of blank space and types of templates that have a small amount of blank space. Examples further include types of templates that include not only slots whose shapes are determined based on features of the image data to be used, but also fixed slots having a predetermined size, position, and shape. In the present typical embodiment, CPU 101 specifies Figures 10A to 10F The template types shown are those that have not yet been assigned. Figures 10A to 10F The template types shown are merely examples, and other template types may be specified. The template type to be specified may change based on the album generation conditions. For example, in the case of binding the album by saddle stitching or interleaf binding, even in the case of an image laid out across both the left and right pages of facing pages, the visibility of the image will not decrease. Therefore, in the case of binding the album by saddle stitching or interleaf binding, the type of template including slots laid out across both the left and right pages of facing pages may be used. On the other hand, in the case of binding the album by gluing or thread binding, the visibility of the image laid out across both the left and right pages of facing pages decreases. Therefore, it is not desirable to use the type of template including slots laid out across both the left and right pages of facing pages. Thus, in the case of binding the album by gluing or thread binding, CPU 101 controls the template type so that a template that may include slots laid out across both the left and right pages of facing pages is not specified in step S603 (for example, see Fig. 10B , 10D 10E). In the case of binding an atlas by saddle stitching or interleaf binding, all template types can be specified. The template type to be specified can also be changed based on the page number of the facing page. For example, it is assumed that a background image is laid out on a specific page of the atlas. It is also assumed that a specific type of template (such as Fig. 10A The template shown in the figure, etc.) is controlled to be the template type used for the page used as the layout background image. In this case, it can be controlled to only specify the template of this specific type.
[0087] In step S604, the CPU 101 divides the aspect ratio array generated in step S602 based on the template type specified in step S603 to generate an aspect ratio array L and an aspect ratio array R. In the present exemplary embodiment, the template generation process automatically generates two templates (template L and template R), so a template composed of a combination of the two templates L and R and a template composed of either template L or R can be generated. An example of the former template is Fig. 10A Examples of the latter templates include Figures 10B to 10F The type of template shown. Fig. 10A When generating a layout image using the type of template shown, the image data assigned to the facing pages specified in step S408 is divided into two groups. One of these groups is laid out on template L, and the other group is laid out on template R. Fig. 10A In the case of the template type shown, the CPU 101 thereby obtains the segmentation result by dividing the aspect ratio array into two. Specifically, for example, the aspect ratio array generated in step S602 is {1,1,4 / 3,3 / 4}. In this case, the CPU 101 obtains the aspect ratio array L{1,1} and the aspect ratio array R{4 / 3,3 / 4} as the segmentation results. Here, the CPU 101 can obtain multiple segmentation results. Specifically, for example, in addition to the segmentation result obtained by dividing the aspect ratio array into two, the CPU 101 can also obtain the segmentation result by dividing the aspect ratio array into two and then moving one to three aspect ratios from one of the aspect ratio arrays obtained by the division to another aspect ratio array. By using Figures 10B to 10F When generating a layout image using any of the types of templates shown in step S408, all image data assigned to the facing pages specified in step S408 are laid out on the one template. Figures 10B to 10F In the case of any of the template types shown, the CPU 101 obtains the segmentation result by assigning all aspect ratios to the aspect ratio array L but not to the aspect ratio array R. Specifically, for example, in the case where the aspect ratio array generated in step S602 is {1,1,4 / 3,3 / 4}, the CPU 101 obtains the aspect ratio array L{1,1,4 / 3,3 / 4} and the aspect ratio array R{} as the segmentation result. Although the aspect ratio array L is mainly used for the left page of the facing pages specified in step S408, the template generated based on the aspect ratio array L can be laid out on the right page or on the facing pages including both the left page and the right page. The aspect ratio array R is an aspect ratio array intended for the right page of the facing pages specified in step S408.
[0088] In step S605 , the CPU 101 specifies a segmentation result that has not been used for template generation from among the segmentation results obtained in step S604 .
[0089] In step S606, the CPU 101 generates a template L based on the segmentation result specified in step S605. The template L mainly corresponds to a template intended for the left page of the facing pages specified in step S408. However, this is not restrictive, and the template L may correspond to a template intended for the right page or a template intended for the facing pages.
[0090] In step S607, the CPU 101 generates a template R based on the segmentation result specified in step S605. The template R corresponds to the template for the right page of the facing pages specified in step S408. Details of the processing of steps S606 and S607 will now be described.
[0091] Figure 7 Detailed Description is a flowchart illustrating processing for generating a template L or R performed by the atlas generation application according to the present exemplary embodiment. Figure 7 The illustrated flowchart is implemented, for example, by the CPU 101 reading a program corresponding to a picture album generation application stored in the HDD 104 into the RAM 103 and executing the program. Figure 7 The illustrated flowchart shows processing corresponding to steps S606 and S607.
[0092] In step S701, the CPU 101 obtains either of the aspect ratio arrays L and R included in the segmentation result specified in step S605. When the current processing is the processing of step S606, the CPU 101 obtains the aspect ratio array L. When the current processing is the processing of step S607, the CPU 101 obtains the aspect ratio array R.
[0093] In step S702, the CPU 101 calculates all combinations of values included in the aspect ratio array obtained in step S701, and obtains a two-dimensional array corresponding to each combination. When the number of image data to be laid out on the template L is N, 2^(N-1) two-dimensional arrays are obtained. More specifically, for example, when the aspect ratio array L is {1,1,1}, four patterns of two-dimensional arrays {{1,1,1}}, {{1},{1,1}}, {{1,1},{1}} and {{1},{1},{1}} are obtained. The one-dimensional array included in each two-dimensional array corresponds to the aspect ratio of the image data to be laid out in each column of the template. In the present typical embodiment, the processing of steps S703 to S706 is repeated the same number of times as the number of two-dimensional arrays obtained here. When the number N of image data is large and a large number of two-dimensional arrays are obtained, the processing of steps S703 to S706 requires a lot of time to repeat. In this case, for example, some of the two-dimensional arrays obtained here can be deleted to reduce the time of repeating the processing of steps S703 to S706. Specifically, for example, two-dimensional arrays whose aspect ratios are N / 10 or less included in at least one one-dimensional array can be deleted.
[0094] In step S703 , the CPU 101 specifies a two-dimensional array that has not been used for template generation from among the plurality of two-dimensional arrays obtained in step S702 .
[0095] In step S704, the CPU 101 generates a template L by laying out the slots in longitudinal alignment based on the two-dimensional array specified in step S703. Details of this processing are described below.
[0096] Fig. 8A : is a flowchart illustrating template generation processing by vertical alignment performed by the atlas generation application according to the present exemplary embodiment. Fig. 8A The illustrated flowchart is realized, for example, by the CPU 101 reading a program corresponding to the atlas generation application stored in the HDD 104 into the RAM 103 and executing the program. Fig. 8A The illustrated flowchart shows processing corresponding to step S704.
[0097] In step S801, CPU 101 generates a slot area by sequentially laying out one or more slots having the aspect ratio included in the nth one-dimensional array in the two-dimensional array specified in step S703 from the top. Since the initial value of n is 1, here CPU 101 lays out the slots having the aspect ratio included in the first one-dimensional array on the slot area. In the case of laying out multiple slots, blanks of a predetermined width d are inserted between these slots. In addition, in the case of laying out multiple slots, CPU 101 scales (enlarges or reduces) these slots without changing the aspect ratio so that the added (layed out) slots have the same width. Specifically, CPU 101 scales these slots so that the added slots have a predetermined width. For example, the two-dimensional array specified in step S703 is {{4 / 3,3 / 4},{4 / 3,3 / 4,3 / 4}}. In this case, the first one-dimensional array is {4 / 3,3 / 4}, and as Fig. 9A As shown in (1), slots are arranged in the slot area.
[0098] In step S802, the CPU 101 determines whether the slots are laid out based on all the one-dimensional arrays included in the two-dimensional array specified in step S703. If the judgment is "yes" (step S802 is "yes"), the process proceeds to step S805. If the judgment is "no" (step S802 is "no"), the process proceeds to step S803.
[0099] In step S803, the CPU 101 increments the value of n and sequentially lays out one or more slots having the aspect ratio included in the nth one-dimensional array in the two-dimensional array specified in step S703 in the column to the right of the previously laid out slot from the top. In the case where the two-dimensional array specified in step S703 is {{4 / 3,3 / 4},{4 / 3,3 / 4,3 / 4}}, the second one-dimensional array is {4 / 3,3 / 4,3 / 4}}. Therefore, as Fig. 9A As shown in (2), slots are arranged in the slot area.
[0100] In step S804, the CPU 101 scales the slots included in the column added in step S803 without changing the aspect ratio so that the height of the column added in step S803 is the same as the height of the column to the left of the column added in step S803. In the case where the two-dimensional array specified in step S703 is {{4 / 3,3 / 4},{4 / 3,3 / 4,3 / 4}}, as shown in FIG. Fig. 9A The slots are laid out in the slot area as shown in (3) of FIG. The process returns to step S802.
[0101] In step S805, the CPU 101 scales the slot area generated by the processing of steps S801 to S804 to the layout area of the type of the template specified in step S603. Fig. 9A The slot area is scaled as shown in (4). CPU 101 lays out the scaled slot area in the layout area. In the case where the current process is a process included in the generation process of template L, the slot area is scaled to the layout area of template L and laid out in the layout area of template L. On the other hand, in the case where the current process is a process included in the generation process of template R, the slot area is scaled to the layout area of template R and laid out in the layout area of template R. In this way, template L or R is generated by longitudinal alignment.
[0102] After generating the template L or R by laying out the slot areas in the layout area, the CPU 101 may adjust the sizes of the slots included in the template L or R. The reason is described below.
[0103] For example, the actual process of album generation may include the following steps: printing the layout image on a paper sheet that is larger than the size of the folio page, and cutting the sheet to the size of the folio page. Here, some errors may occur in the cutting position of the sheet. For example, in the case where a layout image including slots arranged along the ends of the template is printed on the folio page, and the cutting position is offset outward when such a folio page is cut, an unexpected blank may occur between the image in the slot and the end of the folio page.
[0104] As another example, when the slot is arranged near the end of the template and there is a narrow margin between the end of the slot and the end of the template, a narrow margin occurs in the end portion of the printed facing page as a result. However, a layout image with a narrow margin is undesirable in terms of finished product quality.
[0105] For this reason, an undesirable atlas may be obtained depending on the slot position. Thus, in the present exemplary embodiment, when the end of the slot is located along the end of the template or near the end of the template, the CPU 101 enlarges the slot.
[0106] Specifically, after generating the template L (or R) by laying out the slot areas in the layout area, the CPU 101 performs Fig.11 Processing shown. Fig.11 : is a flowchart illustrating a slot adjustment process performed by the atlas generation application according to the present exemplary embodiment. Fig.11 The illustrated flowchart is realized, for example, by the CPU 101 reading a program corresponding to the atlas generation application stored in the HDD 104 into the RAM 103 and executing the program. Fig.11The flowchart shown starts after the slot area is laid out in the layout area. The following will describe the processing in the case of generating the template L. In the case of generating the template R, the template R is processed instead of the template L.
[0107] In step S1101, the CPU 101 specifies a slot which has not been subjected to the determination process at the subsequent stage from among the slots included in the generated template L. The CPU 101 also specifies the position of the specified slot in the template L.
[0108] In step S1102, the CPU 101 determines whether to adjust the size of the slot specified in step S1101. Specifically, the CPU 101 determines whether the specific side of the slot specified in step S1101 is arranged within a predetermined distance from the predetermined side of the template L. The specific side refers to a side that is substantially parallel to the predetermined side. In the present typical embodiment, the size of the slot is adjusted not only when the specific side is arranged inside and near the predetermined side of the template L, but also when the specific side is arranged outside and near the predetermined side of the template L. In the case of the judgment of "yes" (step S1102 is "yes"), the processing proceeds to step S1103. In the case of the judgment of "no" (step S1102 is "no"), the processing proceeds to step S1104.
[0109] In step S1103, the CPU 101 adjusts the size of the slot specified in step S1101. Specifically, the CPU 101 enlarges the slot by moving the position of a specific side of the slot to an area outside the template L. More specifically, for example, in generating Fig. 12A In the case where the template 1201 shown is used as the template L, the slots 1202 and 1204 located near the ends of the template L are enlarged to generate Fig. 12B The template shown. The slot 1203 that is not located near the end of the template L is not enlarged. The area 1205 is set in consideration of the possible size of the error in the cutting position during the album generation. In the case of adjusting the slot, a specific side of the slot is moved to the position of the area 1205. This prevents blanks from occurring even in the case of an error in the cutting position during the album generation. The area where one or more slots are laid out outside the template will be printed. Although the CPU 101 extends such a slot in only one direction, in the case where the slot is arranged near multiple sides of the template, the CPU 101 can extend the slot in multiple directions.
[0110] In step S1104, the CPU 101 determines whether the determination process of step S1102 has been performed for all slots. If the determination is "No" ("No" in step S1104), the process returns to step S1101. If the determination is "Yes" ("Yes" in step S1104), the process of this flowchart ends and the process proceeds to step S705.
[0111] In step S705, the CPU 101 generates a template by laying out the slots in lateral alignment based on the two-dimensional array specified in step S703. Details of this processing will now be described.
[0112] Figure 8B : is a flowchart illustrating template generation processing in the horizontal direction performed by the album generation application according to the present exemplary embodiment. Figure 8B The illustrated flowchart is implemented, for example, by the CPU 101 reading a program corresponding to a picture album generation application stored in the HDD 104 into the RAM 103 and executing the program. Figure 8B The illustrated flowchart shows the processing corresponding to step S705.
[0113] In step S811, the CPU 101 generates a slot area by sequentially laying out one or more slots having the aspect ratio included in the nth one-dimensional array in the two-dimensional array specified in step S703 from the left. Since the initial value of n is 1, the CPU 101 here lays out the slots having the aspect ratio included in the first one-dimensional array on the slot area. In the case of laying out multiple slots, blanks of a predetermined width d are inserted between the slots. In addition, in the case of laying out multiple slots, the CPU 101 scales the slots without changing the aspect ratio so that the added slots have the same height. Specifically, the CPU 101 scales the slots so that the added slots have a predetermined height. In the case where the two-dimensional array specified in step S703 is {{4 / 3,3 / 4},{4 / 3,3 / 4,3 / 4}}, the first one-dimensional array is {4 / 3,3 / 4}. Therefore, as Fig. 9B As shown in (1), slots are arranged in the slot area.
[0114] In step S812, the CPU 101 determines whether the slots are laid out based on all the one-dimensional arrays included in the two-dimensional array specified in step S703. If the judgment is "yes" ("yes" in step S812), the process proceeds to step S815. If the judgment is "no" ("no" in step S812), the process proceeds to step S813.
[0115] In step S813, the CPU 101 increments the value of n and lays out one or more slots having the aspect ratio included in the nth one-dimensional array in the two-dimensional array specified in step S703 in a row below the previously laid out slot in sequence from the left. In the case where the two-dimensional array specified in step S703 is {{4 / 3, 3 / 4}, {4 / 3, 3 / 4, 3 / 4}}, the second one-dimensional array is {4 / 3, 3 / 4, 3 / 4}. Therefore, as Fig. 9B As shown in (2), slots are arranged in the slot area.
[0116] In step S814, the CPU 101 scales the slots included in the row added in step S813 without changing the aspect ratio so that the width of the row added in step S813 is the same as the width of the row above the row added in step S813. In the case where the two-dimensional array specified in step S703 is {{4 / 3,3 / 4},{4 / 3,3 / 4,3 / 4}}, as shown in FIG. Fig. 9B The slots are laid out in the slot area as shown in (3) of . Then, the process returns to step S812.
[0117] In step S815, the CPU 101 scales the slot area generated by the processing of steps S811 to S814 to the layout area of the template type specified in step S603. Fig. 9B The CPU 101 scales the slot area as shown in (4). The CPU 101 lays out the scaled slot area in the layout area. In the case where the current processing is a processing included in the generation processing of template L, the slot area is scaled to the layout area of template L and laid out in the layout area of template L. On the other hand, in the case where the current processing is a processing included in the generation processing of template R, the slot area is scaled to the layout area of template R and laid out in the layout area of template R. In this way, template L or R is generated by lateral alignment. The processing of this flowchart ends, and the processing proceeds to step S706.
[0118] In the present exemplary embodiment, the template is generated by both the longitudinal alignment method and the lateral alignment method, thereby generating a plurality of templates having different numbers of slot columns and a plurality of templates having different numbers of slot rows.
[0119] In step S706, CPU 101 determines whether a template has been generated based on all two-dimensional arrays. If it is determined to be "yes" ("yes" in step S706), the process proceeds to step S707. If it is determined to be "no" ("no" in step S706), the process returns to step S703. In step S703, CPU 101 specifies a new two-dimensional array.
[0120] In step S707, the CPU 101 determines whether there is a duplicate template between the template generated in step S704 and the template generated in step S705. If there is a duplicate template, the CPU 101 deletes any of these templates.
[0121] After the templates L and R are generated as described above, the process proceeds to step S608.
[0122] In step S608, the CPU 101 generates one or more facing page templates. For example, if the template type specified in step S603 is a template type that does not include a slot for layout across both the left and right pages, and template L and template R are generated, the CPU 101 generates a facing page template by connecting template L with template R. Fig. 10A An example of the facing page template thus generated is shown. When a plurality of templates L and a plurality of templates R are generated, the CPU 101 connects each template L in the plurality of templates L with each template R in the plurality of templates R. In other words, through this processing, the CPU 101 generates as many facing page templates as the number of templates L×the number of templates R.
[0123] As another example, in the case where the template type specified in step S603 is a template type that can lay out slots across both the left and right pages instead of a fixed slot, and as still another example, in the case where the template type specified in step S603 is a template type that lays out slots only on the right page but not on the left page, since only one or more templates L are generated, the CPU 101 generates template L as a facing page template. In this way, for example, Fig. 10B , 10C and the folio template shown in 10D.
[0124] As another example, the template type specified in step S603 is a template type including a fixed slot. In this case, since only one or more templates L are generated, the CPU 101 generates one or more facing page templates by connecting the templates L with the fixed slots. Fig. 10E and 10F The facing page template shown.
[0125] In step S609, the CPU 101 determines whether all the segmentation results are used for template generation. If the determination is "yes" (step S609 is "yes"), the process proceeds to step S610. If the determination is "no" (step S609 is "no"), the process returns to step S605. Then, the CPU 101 generates a template by using the segmentation results that have not yet been specified.
[0126] In step S610, the CPU 101 determines whether all template types have been specified. If the judgment is "yes" ("yes" in step S610), the processing of this flowchart ends. If the judgment is "no" ("no" in step S610), the processing returns to step S603. In step S603, the CPU 101 specifies the template type that has not been specified.
[0127] When the template generation process is completed as described above, the process proceeds to step S410.
[0128] In step S410, the CPU 101 performs template scoring. Template scoring refers to processing (scoring processing) for assigning scores to the templates generated in step S409. The details of this processing will now be described. In this exemplary embodiment, scoring is performed based on blank areas (areas other than slots) in the template and slots included in the template.
[0129] In the present exemplary embodiment, the CPU 101 first performs scoring based on a blank area (which refers to an area other than the slot area in the template) by using equation (1).
[0130]
[0131] SCORE a AREA is a score based on the blank area. s is the total area of the slots included in the template. au and THR al is the threshold used to determine the score based on white space. s Greater than THR au , then SCORE a is 1. If AREA s Less than THR al , then SCORE a is 0. If AREA s Greater than or equal to THR al and less than or equal to THR au , then with AREA s Increase, SCORE a The value of is close to 1, and as AREA s The decrease in SCORE a The value of is close to 0. By the aforementioned equation (1), the larger the total area of the slots (in other words, the smaller the total area of the blank areas), the higher the score that can be given to the template.
[0132] The scoring method based on the blank area is not limited to the above. For example, in the above description, CPU 101 assigns a score to the facing page template. However, for example, in the case where the template to be evaluated includes template L and template R, CPU 101 may assign a score to each template L and R, and assign the average of these scores to the facing page template. In addition, the scoring may be controlled based on the position of the blank area. For example, a horizontally long template including blanks in the upper and lower parts (e.g., see Fig.13E ) and the left and right parts include a blank horizontally long template (for example, see Fig.13F ), even if the blank areas of these templates are the same, the amount of blank in the latter template is larger than that in the former template in the user's opinion. Therefore, the THR for scoring the template including blanks in the upper and lower parts is au Can be controlled to be higher than the THR for scoring templates that include blanks in the left and right parts au In addition, the THR used to score the templates including blanks in the upper and lower parts al Can be controlled to be higher than the THR for scoring templates that include blanks in the left and right parts al Even in the case where a template including blanks in the left and right portions and a template including blanks in the upper and lower portions have the same blank area, the score assigned to the former is thereby controlled to be lower than the score assigned to the latter.
[0133] Next, the CPU 101 performs slot-based scoring by using equations (2) and (3).
[0134]
[0135]
[0136] N s Is the total number of slots included in the template. AREA m is the area of the smallest slot among the slots included in the template. In other words, RATIO s It is the ratio of the average area of the slots included in the template to the area of the smallest slot among the slots included in the template.
[0137] SCORE g is based on the score of the slot. THR gu and THR gl It is used to determine the slot-based score, i.e. SCORE g If RATIO s Higher than THR gu , then SCORE g is 0. If RATIO sLower than THR gl , then SCORE g is 1. If RATIO s Higher than or equal to THR g1 and less than or equal to THR gu , then as RATIO s The decrease in SCORE g The value of is close to 1, and as RATIO s Increase, SCORE g The value of is close to 0. In other words, by the aforementioned equations (2) and (3), the smaller the difference between the area of the smallest slot among the slots included in the template and the average area of the slots included in the template, the higher the score that can be given to the template.
[0138] Then, the CPU 101 calculates SCORE a and SCORE g The template is scored from multiple perspectives.
[0139] For example, four image data representing an image with an aspect ratio of 2 / 3 are selected as image data to be laid out on the facing pages specified in step S408. It is also assumed that Fig.14A The six templates shown in FIG. 1 are as follows. For example, CPU 101 Fig. 14B The management shown manages the scores assigned to each template. With this structure, templates (1) and (4) have the highest template scores, and template (6) has the lowest template score.
[0140] In this exemplary embodiment, SCORE is used a and SCORE g The average value of is taken as the template score. However, such a structure is not restrictive. a and SCORE g At least one of the assigned weights and SCORE can be used a and SCORE g As another example, use SCORE a and SCORE g The lower score among them is taken as the template score.
[0141] To calculate the template score, refer to SCORE a and SCORE g For example, you can refer to the score SCORE based on the margin between slots. mA layout image in which the position of a margin in a column is too close to the position of a margin in the next column is undesirable in terms of finished product quality. Therefore, the CPU 101 may calculate the distance between the margins in the template and assign a score SCORE based on the distance. m Specifically, for example, the CPU 101 calculates the distance between the margin in a column in the template and the margin in the next column (such as Fig. 14C 1401 and 1402, etc.), and assign SCORE based on the distance m For example, the greater the distance, the higher the SCORE m The larger the value of . The smaller the distance, the higher the SCORE m The smaller the value of Fig. 14C When calculating multiple distances, the SCORE is calculated based on the average distance. m .
[0142] Alternatively, a score SCORE based on the distance from the centerline of the facing page to the edge of the slot that crosses the centerline of the facing page may be referenced. s For example, Fig.15 As shown, a layout image in which the edge of the slot that crosses the center line of the facing pages is too close to the center line of the facing pages is undesirable in terms of finished product quality. Therefore, the CPU 101 may calculate the distance from the center line of the facing pages to the edge of the slot that crosses the center line of the facing pages, and assign a SCORE based on the distance. s Specifically, for example, the CPU 101 calculates the distance from the center line of the facing page to the side of the slot (for example, Fig.15 Then, the CPU 101 assigns a SCORE based on the distance. g For example, SCORE g When the distance is less than or equal to a predetermined threshold, it has a small value, and when the distance is greater than the predetermined threshold, it has a large value.
[0143] In addition to calculating SCORE a and SCORE g In the case of scores other than , the average of all calculated scores is assigned to the template as the template score.
[0144] In step S410, the CPU 101 may switch the evaluation method based on the type of the template to be evaluated. Specifically, for example, the CPU 101 may switch from SCORE to SCORE based on the type of the template to be evaluated. a , SCORE g , SCORE m and SCORE s Specifically, for example, CPU 101 can switch which score to calculate by using only SCOREa , SCORE g and SCORE m The CPU 101 can assign template scores to the types of templates that do not include slots that span the center lines of the facing pages by using all the scores. Figures 13A to 13F The method for determining the type of a template is described in detail.
[0145] The CPU 101 first determines whether the template to be evaluated includes slots that span the center line of the facing pages. Specifically, the CPU 101 determines whether all four corner points of each slot are included in any of the left and right pages. In the case where all the corner points of each slot are included in any of the left and right pages, it is determined that the template is a type that does not include slots that span the center line of the facing pages (for example, see Fig.13A and 13B On the other hand, in the case where the corner points of the slot are not all included in any of the left and right pages, it is determined that the template is a type that includes a slot that spans the center line of the facing pages (for example, see Figures 13C to 13F ). In the case where the slot has a polygonal shape other than a rectangular shape, the CPU 101 determines whether points corresponding to corners of the polygonal shape are all included in any one of the left page and the right page, instead of four points.
[0146] Next, the CPU 101 determines whether the template to be evaluated includes a slot that contacts the end of the template. Specifically, the CPU 101 determines whether any of the corner points of the slot is at the end of the template or outside the template. In the case where any of the corner points of the slot is at the end of the template or outside the template, it is determined that the template is a type that includes a slot that contacts the end of the template (for example, see Fig.13E and Fig.13F On the other hand, in the case where none of the corner points of the slot is at the end of the template or outside the template, it is determined that the template is of a type that does not include a slot that contacts the end of the template (for example, see Figures 13A to 13D ). The judgment result is used to judge whether to use THR for scoring the template including blanks in the left and right parts. au and THR for scoring templates that include blanks in the upper and lower parts au Specifically, for example, it is determined that such control is performed on the type of template including the slot that contacts the end of the template, but such control is not performed on the type of template not including the slot that contacts the end of the template.
[0147] In step S411, the CPU 101 selects one or more templates from the templates generated in step S409 based on the evaluation (template score) assigned in step S410. In the present exemplary embodiment, the CPU 101 selects all templates whose template scores are higher than or equal to a predetermined threshold value from the templates generated in step S409. In the absence of a template whose template score is higher than or equal to the predetermined threshold value, the CPU 101 selects the template with the highest template score from the templates generated in step S409. The method for selecting a template is not limited to the aforementioned method. For example, although the aforementioned threshold value is described as having a fixed value, a value obtained by subtracting a predetermined value from the template score assigned to the template generated in step S409 can be determined as a threshold value. As another example, the CPU 101 can select templates in descending order of template scores from the templates generated in step S409 until a predetermined number or ratio is reached.
[0148] In this process, the CPU 101 may control the selection of similar templates. For example, the template s1 having the highest template score is selected from all templates. In this case, the CPU 101 removes all templates having a high similarity to the template s1 from the templates to be selected. For example, the similarity is calculated based on the average coordinates of the center points of the slots included in each template. For example, the template s1 includes two slots and the coordinates of the center points of the slots are (1,5) and (3,11). In this case, the average coordinates P of the center points of the slots in the template s1 are s1 is (2,8). s1 -P s2 | to calculate the similarity between template s1 and template s2. s2 represents the average coordinates of the center points of the slots in template s2. s1 -P s2 | is less than a predetermined threshold, the similarity between templates s1 and s2 is judged to be high. s1 -P s2 | When the similarity between templates s1 and s2 is greater than a predetermined threshold value, the similarity between templates s1 and s2 is judged to be low. In this way, CPU 101 determines and deletes a template with a high similarity to the selected template. After deleting a template with a high similarity to the selected template, CPU 101 selects a new template. Each time a template is subsequently selected, CPU 101 determines and deletes a template with a high similarity to the selected template. Such a structure prevents some of these templates from being used in the layout image generation process to be described below, thereby reducing the time used for the layout image generation process.
[0149] In step S412, the CPU 101 generates a layout image by allocating the image data assigned to the facing pages specified in step S408 to the slots in the template selected in step S411 (layout image generation processing). In the case where a plurality of templates are selected in step S411, the CPU 101 specifies a template in which image data has not yet been laid out from the templates selected in step S411. Then, the CPU 101 lays out the image data on the template thus specified. Figures 16A to 16E Describes details of the method used to lay out image data.
[0150] Fig.16A An example of the shape of an image represented by the image data to be laid out on facing pages specified in step S408 is shown. Fig. 16B An example of a template in which image data is laid out is shown. Fig. 16C The example shows and corresponds to Fig.16A A table of information related to image data and corresponding to Fig. 16B A table of information related to the slots included in the template. The information related to each image data includes, for example, the image number assigned to the image data and the aspect ratio, score (image score) and shooting time of the image data. The information related to each slot includes, for example, the slot number assigned to the slot and the aspect ratio, score (slot score) and position of the slot. Information related to the position of the slot is represented by, for example, an integer. The slots on the left side of the template are assigned lower numbers. CPU101 first sorts the table contents based on the aspect ratio. In the case where there are rows with the same aspect ratio, CPU 101 controls the sorting order so that rows with earlier shooting times or lower position numbers appear at the top. Fig.16D An example of the table thus obtained is shown. Then, the CPU 101 allocates the image data to the slots corresponding to the same row order in the table. Specifically, Fig.16D In the example of , image data with image number 1 is assigned to a slot with slot number 2, image data with image number 2 is assigned to a slot with slot number 1, and image data with image number 3 is assigned to a slot with slot number 3. When assigning image data to the slots, the image data is appropriately scaled so that at least one side of the image data contacts the corresponding side of the slot. In the case where a portion of the scaled image data protrudes from the slot, the protruding portion is cropped. However, according to the present typical embodiment, since the shape of the slot is based on the aspect ratio of the image data, the size of the cropped portion can be reduced. Fig.16E An example of the final layout image generated is shown.
[0151] In step S413, the CPU 101 scores the layout image generated in step S412. Figures 17A to 17C Describes layout image scoring in detail.
[0152] For example, it is assumed that in the layout image generation process of step S412 Fig.17A and 17B The image data is laid out on the template shown. Fig. 17C Table 1701 shown is a table of information related to the image data to be laid out on the facing pages specified in step S408. Table 1702 is a table of information related to Fig.17A Table 1703 is a table of information related to the slots in the template 1 shown. Fig. 17B Table of information related to the slots in the template 2 shown. The tables are sorted as described in step S412. In the layout image scoring, the CPU 101 calculates the score of the layout image based on the correlation between the information related to the image data laid out in the layout image and the information related to the slots to which the image data is assigned. Specifically, the CPU 101 first calculates the score correlation between the ranking of the image score of the image data and the ranking of the slot score of the slot, and the position correlation between the ranking of the shooting time of the image data and the ranking of the position of the slot. Then, the CPU 101 assigns a score to the layout image based on these correlations. For example, as the correlation increases, the score of the layout image increases. As the correlation decreases, the score of the layout image decreases. One of the reasons is that, for example, in the case where the image data with the highest image score in the image data to be laid out on the facing pages specified in step S408 is assigned to the slot with the highest slot score, the finished quality of the layout image is improved. Another reason is that, for example, in the case where the image data with the earliest shooting time in the image data to be laid out on the facing pages specified in step S408 is assigned to the slot located at the leftmost position, the finished quality of the layout image is improved. Figures 17A to 17C In the example shown, the layout image using template 1 and the layout image using template 2 have the same score correlation. However, the position correlation of the layout image using template 2 is higher than that of the layout image using template 1. Therefore, the layout image using template 2 is assigned a higher score than the layout image using template 1.
[0153] In step S414, the CPU 101 determines whether a layout image has been generated based on all the templates selected in step S411. In the case of "yes" ("yes" in step S414), the process proceeds to step S415. In the case of "no" ("no" in step S414), the process returns to step S412. In step S412, the CPU 101 specifies a template that has not been used to generate a layout image, and generates a layout image based on the specified template.
[0154] In step S415, the CPU 101 selects a layout image to be laid out on the facing pages specified in step S408 and displayed on and output to the facing page display section 503 from the layout images generated in step S412. In the present exemplary embodiment, the CPU 101 selects a layout image based on the score assigned in step S410 and the score assigned in step S413. Specifically, the CPU 101 selects a layout image having the highest total of the scores assigned in steps S410 and S413. For example, the score of the template used to generate layout image A is 70 (the score assigned in step S410), and the score of layout image A is 80 (the score assigned in step S413). In addition, the score of the template used to generate layout image B is 90 (the score assigned in step S410), and the score of layout image B is 70 (the score assigned in step S413). In this case, layout image B is preferentially selected relative to layout image A. However, such a structure is not restrictive. For example, the CPU 101 may assign a weight to at least any one of the scores assigned in steps S410 and S413, and make a selection by giving priority to any one of the scores assigned in steps S410 and S413. Alternatively, the CPU 101 may make a selection based on any one of the scores assigned in steps S410 and S413. In this way, a layout image to be actually laid out on facing pages is selected from a plurality of layout images.
[0155] In step S416, the CPU 101 determines whether all facing pages are specified to generate layout images for all facing pages. In the case of "yes" ("yes" in step S416), the process proceeds to step S417. In the case of "no" ("no" in step S416), the process returns to step S408. In step S408, the CPU 101 specifies a new facing page and then generates a layout image to be laid out on the facing page.
[0156] In step S417, the CPU 101 displays the layout image selected in step S415 on the editing screen 501. Specifically, the CPU 101 displays the facing pages and the layout images laid out on these facing pages in the facing page list 502. In the case where one of these facing pages is selected from the facing page list 502, the CPU 101 displays the selected facing page and the layout image laid out on the selected facing page in an enlarged manner on the facing page display unit 503, and enables the editing operation of the selected facing page to be accepted. This processing ends.
[0157] With such a structure, a layout image can be generated by using an appropriate template.
[0158] <Editing of atlas data>
[0159] The automatic layout processing to be performed when an editing operation of atlas data is performed on the editing screen 501 will be described. Figure 4 When the processing shown is completed, the editing screen 501 is displayed. In the state where the editing screen 501 is displayed, the user can appropriately edit the layout image laid out on the facing page selected from the facing page list 502. Specifically, for example, the user can perform an editing operation to add one or more image data to the layout image laid out on the facing page selected from the facing page list 502, or to change one or more image data already laid out in the layout image. In the present exemplary embodiment, not only Figure 4 Automatic layout processing can be performed in the processing shown, and in the case where image data to be laid out on facing pages is added by editing operations. In the present typical embodiment, automatic layout processing is not performed in the case where image data already laid out in the layout image is changed by editing operations. More specifically, new image data is assigned to the slots without changing the size, shape or position of the slots to which the image data to be changed is assigned. However, such a structure is not restrictive, and automatic layout processing can also be performed in the case where image data already laid out in the layout image is changed by editing operations. More specifically, a new template can be generated again to generate a layout image based on the already laid out image data other than the image data to be changed and by changing the new image data to be laid out.
[0160] Fig.18 Detailed Description is a flowchart illustrating automatic layout processing performed by an atlas generation application during editing according to the present exemplary embodiment. Fig.18 The flowchart shown in the figure is realized, for example, by CPU 101 reading a program corresponding to the album generation application stored in HDD 104 into RAM 103 and executing the program. Fig.18 Specific examples of the editing operation include an operation for adding image data to be laid out on facing pages displayed on the facing page display portion 503 .
[0161] In step S1801 , the CPU 101 obtains various types of information related to the album generation conditions input to the input screen 301 .
[0162] In step S1802 , the CPU 101 designates the facing page displayed on the facing page display portion 503 as a facing page to be edited.
[0163] In step S1803, the CPU 101 specifies the image data to be used for editing. Specifically, the CPU 101 specifies the image data that has been laid out on the facing pages displayed on the facing page display unit 503 before accepting the editing operation, and the new image data for which an addition instruction is given by the editing operation. Immediately after the editing screen 501 is displayed by selecting manual generation as the generation method of the album data, the image data is not laid out on the facing pages. In the case where an addition instruction of the image data is given in the state of the image data not being laid out on the facing pages, the CPU 101 then specifies only the new image data for which an addition instruction is given by the editing operation. The CPU 101 obtains the feature amount of the image data specified here.
[0164] In step S1804, the CPU 101 generates a template to be used for the automatic layout of the facing pages specified in step S1802. The details of this process are the same as those of step S409 except for some points. The differences are described below.
[0165] In step S601 of the automatic layout processing based on the automatically generated instructions, the image data is sorted in the time series order. In contrast, in step S601 of the automatic layout processing based on the editing operation, the CPU 101 first sorts the image data that has been laid out on the facing pages in the layout order on the facing pages. Then, the CPU 101 arranges the new image data for which the addition instruction is given after the image data that has been sorted based on the layout order on the facing pages. However, such a structure is not restrictive. The CPU 101 can sort the image data again in the time series order, as in the automatic layout processing based on the automatically generated instructions.
[0166] In step S1805, the CPU 101 performs template scoring. Details of this process are the same as those of step S410.
[0167] In step S1806, the CPU 101 selects one or more templates from the templates generated in step S1804 based on the evaluation (score) given in step S1805. Details of this processing are the same as those of step S411.
[0168] In step S1807, the CPU 101 generates a layout image by allocating the image data corresponding to the facing pages specified in step S1802 to the slots in the template selected in step S1806. Details of this processing are the same as those of step S412.
[0169] In step S1808, the CPU 101 scores the layout image generated in step S1807. Details of this process are the same as those of step S413.
[0170] In step S1809, the CPU 101 determines whether a layout image has been generated based on all the templates selected in step S1806. In the case of "yes" ("yes" in step S1809), the process proceeds to step S1810. In the case of "no" ("no" in step S1809), the process returns to step S1807. In step S1807, the CPU 101 specifies a template that has not been used to generate a layout image, and generates a layout image based on the specified template.
[0171] In step S1810, the CPU 101 selects a layout image to be laid out on facing pages designated in step S1802 from among the layout images generated in step S1807. Details of this processing are the same as those of step S415.
[0172] In step S1811 , the CPU 101 displays the layout image selected in step S1810 on the facing-page display portion 503 .
[0173] With such a structure, even in the automatic layout processing based on the editing operation, a layout image can be generated by using an appropriate template.
[0174] In the present exemplary embodiment, the editing screen 501 may display candidate templates that can be used when editing the layout image displayed on the facing page display portion 503 in the candidate display area 506. By selecting one of these candidate templates, the user can change the layout image displayed on the facing page display portion 503 to a layout image using the selected template. Examples of the template candidates displayed here include templates used by the layout image generated in step S412 or S1807 and not selected in step S415 or S1810. In this processing, for example, the CPU 101 may display the templates used by the layout image generated in step S412 or S1807 and not selected in step S415 or S1810 in descending order of template scores. Alternatively, for example, templates with high template scores may be extracted from the templates used by the layout image generated in step S412 or S1807 and not selected in step S415 or S1810. As a result of the extraction, it may be controlled to display only templates with high template scores and not to display templates with low template scores. As another example, a template other than the template used for the layout image generated in step S412 or S1807 and not selected in step S415 or S1810 may be displayed. Specifically, for example, instead of a template automatically generated based on the features of the image data selected by the user, a template pre-stored in the album generation application may be displayed. For example, in the case where some templates are deleted by the determination of similarity in step S411, such templates may be controlled not to be displayed in the candidate display area 506. This can prevent multiple similar candidate templates from being displayed in the candidate display area 506. By selecting one of the templates displayed in the candidate display area 506, the user can change the layout image laid out on the facing pages displayed on the facing page display unit 503 to a layout image using the selected template. In this process, in the case where the user selects the template used for the layout image generated in step S412 or S1807 and not selected in step S415 or S1810, the layout image has been generated, and the CPU 101 displays the generated layout image. On the other hand, in the case where the user selects a template stored in advance in the album creation application, the CPU 101 performs automatic layout processing using the template and displays a layout image obtained in this way.
[0175] Instead of displaying the candidate template, the candidate display area 506 may display layout information generated by automatic layout processing using the candidate template (i.e., candidate layout information). In this case, the layout image generated in step S412 or S1807 and not selected in step S415 or S1810 is displayed in the candidate display area 506.
[0176] The user can switch the mode of the editing screen 501 from the automatic editing mode to the manual editing mode by performing a predetermined operation (such as pressing a button not shown on the editing screen 501). In the automatic editing mode, when adding image data to the facing pages, Fig.18 The processing shown is used to automatically generate a layout image. In the manual editing mode, when adding image data to the facing pages, the user manually specifies the layout position and size of the added image data to generate a layout image. The user can select a desired editing method by switching between these modes.
[0177] When the layout image laid out on the facing pages is thus edited, the layout information is also edited so that the edited layout image is output. After editing, the user can order an atlas based on the edited layout information by pressing the order button 505.
[0178] In this way, even after the automatic layout process is executed, the user can appropriately edit the atlas data and the layout information.
[0179] (Other Typical Embodiments)
[0180] The present invention is not limited to the aforementioned typical embodiment. In the aforementioned typical embodiment, although the aforementioned process for selecting an image (image selection process) is described as being used in the automatic layout process of an album, for example, the image selection process can be used for a presentation function that automatically presents the image data to be printed to the user. In other words, the aforementioned image selection process can be performed by a program for executing the presentation function. Alternatively, a typical embodiment of the present invention can be applied to a structure for generating a single print. In this case, for example, the CPU 101 can process a single print as facing pages according to the aforementioned typical embodiment. Since a single image data is usually laid out on a single print, the templates used for the single print should each include only one slot. In a case where the number of prints can be set scene by scene, the CPU 101 can process the set number of single prints as facing pages according to the aforementioned typical embodiment.
[0181] In the aforementioned typical embodiment, the template generation process generates multiple templates for each facing page or page based on the characteristics of the image data. However, such a structure is not restrictive. For example, only one template can be generated for the facing page or page. In such a structure, for example, template scoring can be omitted.
[0182] In the aforementioned typical embodiment, although the template generation process generates a template suitable for the image data by determining the shape of the slot based on the characteristics of the image data, such a structure is not restrictive. For example, the position and size of the slot in the template can be determined based on the characteristics of the image data. Specifically, for example, the template can be generated by controlling the position of the slot and the size of the slot so that the slot used for the image data representing the large-sized image is laid out on the left page of the template. As another example, the slot can be controlled so that the size of the slot used for the image data representing the large-sized image is larger than the size of the slot used for the image data representing the small-sized image.
[0183] In the aforementioned typical embodiment, the process for generating a layout image in the automatic layout process uses only a new template generated based on the features of the image data. However, such a structure is not restrictive. The layout image can be generated by using not only the generated new template but also a template pre-stored in the atlas generation application.
[0184] In the aforementioned typical embodiment, a plurality of templates are generated based on the features of the image data, and then the image data is assigned to the slots included in each of the plurality of templates to generate a plurality of layout images. One of the plurality of layout images is then specified based on the template score, and the specified layout image is displayed; such a structure is not restrictive. For example, one or more templates may be specified based on the template score before generating the layout image. One or more layout images may then be generated by using only the specified templates. In the case of generating a plurality of layout images, one of the layout images is specified as a layout image to be displayed on and output to the facing page display unit 503 in the manner described in step S415. Here, a layout image may be specified with or without reference to the template score (i.e., only the score of the layout image may be referenced).
[0185] In the aforementioned exemplary embodiment, although the slots included in the new template generated based on the features of the image data are arranged so as not to overlap with each other, such a structure is not restrictive. Some of these slots may be arranged so as to overlap with each other.
[0186] In the aforementioned exemplary embodiment, although the description is given of the case where the image processing apparatus 100 that performs the automatic layout processing is in a local environment, for example, the image processing apparatus 100 may be on a network server. In this case, the user uploads the image data to the image processing apparatus 100, and the image processing apparatus 100 may then perform the automatic layout processing.
[0187] In the aforementioned exemplary embodiment, although the evaluation is performed by assigning scores in the image score, the template score, and the layout image score, such a structure is not restrictive. More specifically, the evaluation may be performed without using scores. For example, the evaluation may be performed in descending order with grades such as "S", "A", "B", and "C". Scene classification and image selection may be performed based on the performed evaluation.
[0188] Other embodiments
[0189] The embodiments of the present invention may also be implemented by providing software (program) for performing the functions of the above-described embodiments to a system or device via a network or various storage media, and a computer or a central processing unit (CPU) or a microprocessing unit (MPU) of the system or device reads and executes the program.
[0190] Although the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
Claims
1. A control method for controlling an image processing device to generate a layout image, the control method comprising: Specify one or more image data; Generate a new template based on the features of the specified one or more image data, the generated new template comprising at least one or more slots in which the specified one or more image data are laid out; generating a layout image by laying out the specified one or more image data to one or more slots included in the generated new template, accepting an editing operation on the generated layout image from a user; After generating the layout image, displaying one or more templates that can be used to edit the generated layout image; as well as In a case where the editing operation accepted from the user intends to change the template used by the generated layout image, the generated layout image is changed to one or more layout images generated by using a template selected by the user from the displayed one or more templates, wherein a plurality of new templates are generated based on the features of the specified one or more image data, wherein the one or more templates that can be used to edit the generated layout image include one or more templates among the generated multiple new templates other than the new template used to generate the layout image, and Wherein, at least one of the aspect ratios of one or more slots in the generated new template is specified based on the features of the specified one or more image data.
2. The control method according to claim 1, wherein: At least one of the following items is also specified based on the specified one or more characteristics of the image data: the number of slots included in the generated new template, the size of one or more slots in the generated new template, and the position of one or more slots in the generated new template.
3. The control method according to claim 1, wherein: The multiple new templates are generated based on the specified one or more features of the image data.
4. The control method according to claim 3, wherein: The layout image is an image to be printed on facing pages consisting of two pages, and The generated multiple new templates include: a type of template containing a slot spanning a line corresponding to a center line of the facing pages, and a type of template not containing a slot spanning a line corresponding to a center line of the facing pages.
5. The control method according to claim 3, further comprising generating a type of template having a predetermined slot size, position and shape.
6. The control method according to claim 3, wherein: The generated plurality of new templates include a type of template including a slot in contact with an end of the template and a type of template not including a slot in contact with an end of the template.
7. The control method according to claim 3, wherein: The generated plurality of new templates include a type of template including blanks in upper and lower portions of the template, and a type of template including blanks in left and right portions of the template.
8. The control method according to claim 3, wherein: The generated multiple new templates include: a template including a predetermined number of slot columns, and a template including a number of slot columns different from the predetermined number.
9. The control method according to claim 3, wherein: The generated multiple new templates include: a template containing a predetermined number of slot rows, and a template containing a number of slot rows different from the predetermined number.
10. The control method according to claim 3, further comprising: evaluating the generated plurality of new templates; specifying any one of the plurality of layout images based on the evaluation of the plurality of generated new templates, wherein the plurality of layout images are generated by laying out the specified one or more image data to one or more slots included in each of the plurality of generated new templates; and Outputs the specified layout image. The generated multiple new templates are evaluated based on at least one of features related to the slots, information related to blank areas, and features related to margins between the slots, and the blank areas are areas outside the slots.
11. The control method according to claim 3, further comprising: evaluating the generated plurality of new templates; as well as Based on the evaluation of the generated multiple new templates, specify one or more templates from the generated multiple new templates, wherein the generated plurality of new templates are evaluated based on at least one of a feature related to the slot, information related to a blank area, and a feature related to a margin between the slots, the blank area being an area outside the slot, and One or more layout images are generated by allocating the specified one or more image data to one or more slots included in each of the one or more templates specified from the generated multiple new templates based on the evaluation of the generated multiple new templates.
12. The control method according to claim 1, in, In a case where the accepted editing operation is intended for adding one or more image data to the one or more image data laid out on the generated layout image, generating a new template based on a plurality of image data including the one or more image data added by the editing operation, and A new layout image is generated by allocating multiple image data including one or more image data added by the editing operation to one or more slots included in a new template generated based on multiple image data including one or more image data added by the editing operation.
13. The control method according to any one of claims 1 to 12, wherein: Among the one or more templates that can be used to edit the generated layout image, one or more templates among the multiple new templates generated include one or more templates other than such one or more templates, and such one or more templates are one or more templates other than the new template used to generate the layout image.
14. The control method according to any one of claims 1 to 13, wherein: The one or more templates that can be used to edit the generated layout image include one or more templates that are templates pre-stored in the image processing apparatus and are not templates among the generated plurality of new templates.
15. The control method according to claim 13, in, The one or more templates that can be used to edit the generated layout image include one or more templates that are templates pre-stored in the image processing apparatus and are not new templates generated based on the features of the specified one or more image data.
16. The control method according to claim 1, further comprising: A plurality of different layout images each having a different plurality of image data arranged therein are generated to generate booklet data for creating a booklet on which the plurality of different layout images are printed.
17. The control method according to claim 16, further comprising: A process for ordering an atlas created from the generated atlas data is executed.
18. An image processing device for generating a layout image, comprising: a designating unit configured to designate one or more image data; A first generating unit configured to generate a new template based on features of the specified one or more image data, wherein the generated new template includes at least one or more slots in which the specified one or more image data are laid out; a second generating unit configured to generate a layout image by laying out the designated one or more image data to one or more slots included in the generated new template, an accepting unit configured to accept an editing operation on the generated layout image from a user; a display unit configured to display one or more templates that can be used to edit the generated layout image after the layout image is generated; as well as a changing unit configured to, in a case where an editing operation accepted from a user intends to change the template used for the generated layout image, change the generated layout image to one or more layout images generated by using a template selected by the user from among the displayed one or more templates, wherein a plurality of new templates are generated based on the features of the specified one or more image data, wherein the one or more templates that can be used to edit the generated layout image include one or more templates among the generated multiple new templates other than the new template used to generate the layout image, and Wherein, at least one of the aspect ratios of one or more slots in the generated new template is specified based on the features of the specified one or more image data.
19. A non-transitory computer-readable storage medium storing a program, the program being configured to cause a computer to perform a control method of controlling an image processing device to generate a layout image, the control method comprising: Specify one or more image data; Generate a new template based on the features of the specified one or more image data, the generated new template comprising at least one or more slots in which the specified one or more image data are laid out; generating a layout image by laying out the specified one or more image data to one or more slots included in the generated new template, accepting an editing operation on the generated layout image from a user; After generating the layout image, displaying one or more templates that can be used to edit the generated layout image; as well as In a case where the editing operation accepted from the user intends to change the template used by the generated layout image, the generated layout image is changed to one or more layout images generated by using a template selected by the user from the displayed one or more templates, wherein a plurality of new templates are generated based on the features of the specified one or more image data, wherein the one or more templates that can be used to edit the generated layout image include one or more templates among the generated multiple new templates other than the new template used to generate the layout image, and Wherein, at least one of the aspect ratios of one or more slots in the generated new template is specified based on the features of the specified one or more image data.
Citation Information
Patent Citations
Image album creation
CN102804759A
Control method and storage medium
CN108228114A
Image processing apparatus, image processing method and storage medium
CN108230425A
Image processing method, image processing apparatus, and program
EP3333804A1
Image processing apparatus, control method and record medium
US20170186201A1
