The above objects and advantages of the present invention will become more apparent from the following detailed description when read in connection with the accompanying drawings, in which:
Referring to
The memory 3 includes a semiconductor memory and/or a magnetic disc, and stores an image processing program 2 as well as other various programs and data to start the PC 1. Also, the memory 3 will store image data (both still images and movies) transferred from a digital camera 7 through the communication I/F 6.
The monitor 4 has an LCD or CRT screen to display the image data and various information. The operating section 5 includes a keyboard 5a and a mouse 5b. Responding to the manipulation of the operating section 5, the CPU 10 controls the operation of the PC 1. The communication I/F 6 is a USB interface or such a general interface to be connected through a USB cable to the digital camera 7 and an external device for data transmission. The communication I/F 8, on the other hand, is an RS232C interface, a LAN (Local Area Network) interface, or such a general interface to be connected thorough a serial cable or a LAN cable to a printer 9 and an external device for data transmission.
When the image processing program 2 runs on the PC 1, the CPU 10 generates a browser controller 12, a face image counter 13, an image layout section 16, an average number calculator 17, a pattern selector 14, and a table 18. Also, the CPU 10 generates a printer driver 11 and a monitor driver 15. The browser controller 12 generates and controls an image display browser 20 displayed as a GUI (Graphic User Interface) on the monitor 4.
As shown in
The cursor 28 indicates the position of the mouse 5b in the image display browser 20, and moves in response to the mouse 5b. Each of the windows 20a to 20c has two scroll bars 27a to 27f on the right and the bottom. These scroll bars 27a to 27f are slid to scroll the windows in the corresponding directions. Additionally, a menu bar 25 that includes plural menu items is provided at an upper area of the image display browser 20. Selecting a menu from the menu bar 25, the user can perform various operations on image display browser 20, such as sorting the selected images 29 by date in the selected image window 20c, displaying the layout image 26 in full screen, and printing the layout image 26 on the printer 9. In the layout window 20d, plural layout images 26 are overlapped, and each layout image 26 has a page tab 24 on the top. Moving the cursor 28 to a desired page tab 24 and clicking on the mouse 5b leads the layout image 26 of selected page to appear in the layout window 20d.
The layout image 26 is a synthetic image composed of plural image display frames 26a and selected images 26 separately inserted therein. This layout image 26 can be, for example, an index image that displays a list of pictures. Each of the selected images 29 is diminished and inserted into the image display frames 26a. The image display frames 26a can take several different layout patterns, one of which is selected when the layout image 26 is produced.
Depending on the layout pattern selected, the size of the image display frame 26a and the number of the image display frames 26a in the layout image 26 change. Since the size of the layout image 26 is fixed according to the print size or the stored size, the image display frames 26a will be small when the layout pattern with a lot of the image display frames 26a is selected, and will be large when the layout pattern with a few image display frames 26a is selected.
Generally, the face of a person appears smaller in a picture with several persons than a picture with a single person, and the face is getting even smaller as the number of people increases in a picture. The face is easily viewed when it appears large, for sure, and it is thus preferred to display the faces in the selected images 29 as large as possible in the layout image 26. Accordingly, the layout pattern of the image display frames 26a is determined depending on the number of people in the selected images 29 to be used. This process is now described below.
Referring back to
The average number calculator 17 calculates an average number of the face images in a single selected image 29 by firstly summing up the number of the counted face images, and then dividing the sum by the number of the image display frames 26a previously set in the table 18. The average number of the face images is sent to the pattern selector 14.
The pattern selector 14 determines the layout pattern of the image display frames 26a based on the average number of the face images and a threshold number of the face images set in the table 18. The table 18 is composed of, for example, layout patterns 1-3 (i), and their own numbers (Ki) of the image display frames 26a, the columns and rows (Li×Mi) of the image display frames 26a, and threshold numbers (THi) of the face images, as shown in TABLE 1 below. Among the layout patterns 1-3, the layout pattern 1 contains the fewest number of the image display frames 26a (Ki), with 15 image display frames 26a of the largest size. These 15 image display frames are arranged in a 3 (columns)×5 (rows) matrix. The layout pattern 3 contains the most number of the image display frames 26a (Ki), with 40 image display frames 26a of the smallest size. These 40 image display frames are arranged in a 5 (columns)×8 (rows) matrix. The layout pattern 2 is in the middle about the number (Ki) and the size of the image display frames 26a, with 24 image display frames 26a arranged in a 4 (columns)×6 (rows) matrix.
The threshold number (THi) of the face images is a favorable number of the face images in a single selected image 29, and predetermined according to the size of the image display frame 26a. If a selected image 29 with many face images is inserted into a relatively small image display frame 26a such as of the layout pattern 3, each face image will become too small to see. If inserted into a relatively large image display frame 26a such as of the layout pattern 1, to the contrary, this selected image 29 is less diminished than in the layout pattern 3, and each face image is kept relatively large even if the selected image 29 has many face images.
In an initial state, the layout pattern 1 is selected and its number of image display frames (Ki), i.e., fifteen becomes the number of the selected images 29 to be used in the layout image 29. Accordingly, the pattern selector 14 extracts the forefront fifteen selected images 29 from the selected image window 20c. The face image counter 13 counts the face images in these fifteen selected images 29. The average number calculator 17 divides the sum of the face images by the number of image display frames, or fifteen in this case, so as to calculate an average number Av of the face images per a single selected image 29. The pattern selector 14 firstly compares this calculated average number Av with the threshold number (TH1=3) of the layout pattern 1, and then fixes the layout pattern to 1 when the condition Av≧3 is satisfied. If the Av is less than 3, on the other hand, the pattern selector 14 selects the layout pattern 2 from the table 18 and extracts the forefront twenty-four selected images 29, the same number as K2, from the selected image window 20c. The face image counter 13 counts the face images in these twenty-four selected images 29. The pattern selector 14 fixes the layout pattern to 2 when the Av is larger than or equal to the threshold number (TH2=1) of the layout pattern 2. If the Av is less than 1, the pattern selector 14 selects the layout pattern 3. Since the layout pattern 3 (imax) is set to contain the maximum number of image display frames (K3=40) in this embodiment, the number of the face images is not considered when the layout pattern 3 is selected. Accordingly, the threshold number TH3 is not provided. The number of the face images is also not considered when the number of the selected images 29 is less than fifteen (K1), and in this case the layout pattern is fixed to 1. The fixed layout pattern is informed to the image layout section 16.
The image layout section 16 produces the layout image 26 by inserting the selected images 29 into the image display frames 26a in the fixed layout pattern. The layout image 26 is displayed in the layout window 20d, and its image data is temporarily stored in the memory 3. This image data will be stored properly in the memory 3 when the user commands on the operating section 5 to store the layout image 26. Alternatively, the image data is deleted from the memory 3 when the user commands to delete the layout image 26.
Next, the method for producing the layout image 26 is explained with reference to
The procedure for producing the layout image 26 is now explained with reference to
As described above, the number of the image display frames 26a is determined optimally for the layout image 26 based on the number of the face images in the selected images 29. It is to be noted that the layout pattern is not necessarily a matrix, and in this case there is no need to provide the vertical and horizontal numbers of the image layout frames 26a.
Next, with reference to
The face image counter 13 counts the face images in every selected image 29 in the selected image window 20c, and conveys the number of the counted face images to image identifying section 19. The identifying section 19 identifies the selected image 29 with most face images. If there is more than one selected image 29 identified, in other words, more than one selected image 29 with the largest number of the face images 30, the image identifying section 19 further identifies one of these selected images 29 with the smallest total size of the face images 30. The size of the face image 30 is measured by the method below.
As shown in
This estimation may be carried out by using, for example, the pre-stored inter-eye distance SA and face width WA of a typical person. The width W is then calculated from the ratio to the inter-eye distance S (of the detected both eyes) expressed by the formula W=(S/SA)×WA. Similarly, the length L is calculated by using the inter-eye distance SA and the face length LA of a typical person. The extent of the face area 32 measured from the face width W and the face length L is regarded as the size of the face image 30. It is to be noted that the face area 32 may also be identified based on the relation of the eyes and the mouth, the outline of the face, or the skin color of the face.
The image layout section 16 produces the layout image 35 by inserting the selected image 29 identified by the image identifying section 19 into the enlarged display frame 35a and inserting the remaining selected images 29 into the normal display frames 35b. If the number of the selected images 29 in the selected image window 20c is more or less than the number of the image display frames (the enlarged display frame 35a+ the normal display frames 35b) at this stage, an error message or such is provided to prompt the user to reselect the images. Alternatively, it may be possible to produce the layout image 35 with some blank normal display frames 35b when the selected images 29 are less than the image display frames. It may also be possible, when the selected images 29 are more than the image display frames, to extract as much selected images 29 as the image display frames automatically and produce the layout image 35.
Referring to
As describe above, the image having the largest number of people is enlarged in the enlarged display frame 35a in the center of the layout image 35. It is possible, in the second embodiment, to provide more than one enlarged display frame 35a. It is also possible to prepare several arrangement patterns for the normal display frames 35b, so that the normal display frames 35b will have different sizes according to the number of the selected images 29 to be used.
Although the selected images 29 and the layout image 26 or 35 are displayed on the same screen in the above embodiments, it may be possible to switch between, for example, a screen for the selected images 29 and a screen for the layout image 26 or 35.
The selected images 29 are selected by the cursor 28 moving along the mouse 5b in the above embodiments, the selected images 29 may however be selected through an input device such as cursor keys of the keyboard 5a or a tablet (not shown).
While having been explained with the personal computer, the present invention is also applicable to various electronic devices, such as digital still cameras, digital video cameras, photo-storages, PDAs, and mobile phones.
Although the present invention has been fully described by way of the preferred embodiments thereof with reference to the accompanying drawings, various changes and modifications will be apparent to those having skill in this field. Therefore, unless otherwise these changes and modifications depart from the scope of the present invention, they should be construed as included therein.
Number | Date | Country | Kind |
---|---|---|---|
2006-187479 | Jul 2006 | JP | national |