1. Field of the Invention
The present invention relates to an image editing apparatus, an image editing method, and a storage medium storing an image editing program. More particularly, the present invention relates to an image editing apparatus and an image editing method for editing plural images and outputting the edited images as a moving image, and relates to a storage medium storing a program for causing a computer to execute the image editing method.
2. Description of the Related Art
There are a variety of standards for television broadcasting in the world. Typically, the NTSC system is used, for example, in the U.S.A. and Japan, and the PAL system is generally used in Europe. Aside from the television broadcasting standards, there is another moving image recording system such as a film movie system.
Since these standards are different in record image size, frame rate, etc., a moving image must be edited or converted before being output, so as to have an image size, etc. suited to the intended purpose of use. As such a moving image editing technique, Japanese Laid-open Patent Publication No. 2000-324453, for example, discloses a technique in which moving image data on movie film or the like is edited and stored for TV broadcast in the NTSC system or the PAL system, whichever is suitable for the intended purpose.
Heretofore, a moving image is usually watched on a TV screen, and therefore a moving image editing apparatus is usually designed to generate a moving image having an aspect ratio of 4:3 or 16:9.
With the popularization of digital cameras and digital video cameras, a moving image has recently been watched not only on a TV but also on a PC. Since an ordinary PC is able to handle moving images of aspect ratios of 4:3, 16:9, 11:9, etc., the moving image aspect ratio is not required to be fixed, unlike in the case of TV.
In addition, for the reason for example that vertically long images rotated 90 degrees can easily be photographed by a digital camera, there has been an increase in the frequency of handling vertically long moving images of aspect ratios of 3:4, 9:16, etc. This results in a situation that image data of various aspect ratios are mixedly present on a PC, which include horizontally long image data of aspect ratios of 4:3, 16:9, 11:9, etc. and vertically long image data of aspect ratios of 3:4, 9:16, 9:11, etc. which are 90-degree rotated compared to the horizontally long image data.
On the other hand, a conventional moving image editing apparatus as disclosed in Japanese Laid-open Patent Publication No. 2000-324453 is designed to output an image on a TV and therefore cannot meet the situation that various image sizes are mixedly present. In a case for example that vertically long image data is edited into horizontally long image data of aspect ratio of 4:3, black bars appear on the left and right sides of an output image, posing a problem that an appropriate moving image desired by a user cannot be obtained.
By using an arrangement configured to permit the user to set an arbitrary output image size, it may be possible to output a moving image at an aspect ratio at which the black bars around the image are minimized. However, in editing image data of various aspect ratios, the user is required to determine an appropriate aspect ratio for each individual image to be output, which poses a problem that operations become too complicated.
In brief, conventional moving image editing apparatuses cannot provide any guideline for the user to determine what image size (aspect ratio) should be used in editing image data of various aspect ratios currently used on a PC, resulting in a problem that the user may be confused.
The present invention provides an image editing apparatus and an image editing method capable of easily setting a proper aspect ratio for output of edited image data, and provides a storage medium storing a program for causing a computer to execute the image editing method.
According to a first aspect of this invention, there is provided an image editing apparatus comprising a determination unit adapted to determine, among the plurality of images, which of vertically long images or horizontally long images are larger in terms of one of number of images, number of frames, and playback times, a decision unit adapted to decide an aspect ratio of images which are large in terms of one of number of images, number of frames, and playback times among the images determined as being larger by the determination unit, and an output unit adapted to output the plurality of images at the aspect ratio decided by the decision unit.
According to a second aspect of this invention, there is provided an image editing method for editing a plurality of images comprising a determination step of determine, among the plurality of images, which of vertically long images or horizontally long images are larger in terms of one of number of images, number of frames, and playback times, a decision step of deciding an aspect ratio of images which are large in terms of one of number of images, number of frames, and playback times among the images determined as being larger in the determination step, and an output step of outputting the plurality of images at the aspect ratio decided in the decision step.
According to a third aspect of this invention, there is provided a storage medium that computer-readably stores a program for causing a computer to execute the image editing method according to the second aspect of this invention.
According to this invention, an aspect ratio at which images are output is selected in two stages on the basis of image data to be edited, whereby an appropriate aspect ratio at which images are output can easily be set.
As a result, the user is enabled to output appropriate images with less black bars, and the efficiency of output setting operations in the image editing can be improved.
Further features of the present invention will become apparent from the following description of an exemplary embodiment with reference to the attached drawings.
The present invention will now be described in detail below with reference to the drawings showing a preferred embodiment thereof.
This moving image editing apparatus is configured that a plurality of image files are designated to define a playback sequence and edit results are output or saved as a moving image file. The editing apparatus is also configured that rotation settings on moving images can be made.
As shown in
A moving image editing program for controlling the moving image editing apparatus is stored in the hard disk 220 as a program code readable by the CPU 210. The CPU 210 reads the program code and executes an image editing process in
It should be noted that the moving image editing program may be stored in the external recording medium 270 such as a CD-ROM. In that case, the program is read out via the recording medium drive 260 and implemented by the CPU 210. This embodiment is also applicable to a case where the moving image editing program is on a network.
Next, the outline of operation of the moving image editing apparatus of this embodiment will be described.
In the image editing process in
When the addition button on the moving image editing screen in
When one or more moving image files are selected by the user on the file selection dialogue, the moving image files are added as moving images to be edited (step S500).
The file selection dialogue used in the step S500 is, for example, a standard file open dialogue provided by the OS (operating system), with which plural files can be selected at a time.
When the moving image files are added, thumbnail images corresponding to respective ones of the added moving image files are displayed on an area 5-B in
Referring to
If the added moving image files are large in number and all the thumbnail images cannot be displayed on the screen at a time, a scroll bar 5-C is indicated at a lower part of the screen (
As a result of the moving image files being added, buttons not usable in the image file adding step (step S500) such as for example a preview button and a save button among the buttons displayed on an area 5-A at upper part of the screen (
Next, in accordance with a user's instruction, the playback sequence of the image files is set (step S510).
Specifically, the user performs a manipulation for setting the playback sequence. For example, the user clicks with the mouse the desired thumbnail image among the thumbnail images displayed on the area 5-B of the moving image editing screen, and changes the order of the thumbnail images.
When the desired thumbnail image is selected by the user from among the thumbnail images displayed on the area 5-B, a part around the selected thumbnail image is indicated in a different color or the selected thumbnail image is surrounded by a bold frame, whereby the selected thumbnail image is distinguished from the other thumbnail images (
By performing a drag-and-drop manipulation on the selected thumbnail image with the mouse, etc., the user changes the order in which thumbnail images are arranged. The selected order of the thumbnail images corresponds to the playback sequence of the image files. In accordance with the order in which the images are arranged by the user, the CPU 210 sets the playback sequence of the moving image files (step S510). When any of the thumbnail images is selected, all the buttons in an area 6-A in the moving image editing screen (
In a state the desired thumbnail image is selected, when the user clicks a corresponding playback time button (the time display part at the upper right portion of the selected thumbnail image in
When the playback time button is clicked by the user, a playback time setting dialogue is displayed on the display 240, and the setting of the playback time corresponding to the selected moving image file is made possible (
In an area 7-A of the playback time setting screen in
In an area 7-B, a time indication is displayed, which indicates a time-based playback position measured from the head of the moving image file for which playback time is to be set. The time indication is renewed in accordance with the playback position of the moving image being played back.
In an area 7-C, five playback control buttons are displayed. Specifically, a playback button, a pause button, a stop button, a frame return button, and a frame advance button are displayed in this order as viewed from the left in
In an area 7-D, a playback slider is displayed. The playback slider has a knob whose position indicates the playback position of the moving image file. The user is able to freely move the playback position by moving the knob of the playback slider.
In an area 7-E, there is displayed a time setting controller having two knobs, i.e., In and Out knobs on the left and right sides for setting an in point and an out point, respectively. The user moves the knobs to desired positions to thereby set the in and out points of the moving image.
In an area 7-F, an OK button and a cancel button are displayed. To fix the setting of the playback time, the user depresses the OK button to close the dialogue. To cancel the setting of the playback time, the user depresses the cancel button to close the dialogue. Thus, the setting of playback time is performed using the playback time setting dialogue.
When an instruction for setting the playback time is given by the user, the CPU 210 sets the playback time of the corresponding moving image file in accordance with the instruction.
Next, image rotation setting is performed in accordance with a user's instruction (step S530).
When the rotation button (
An area 8-A of the image rotation setting screen in
In an area 8-E in
For ease of understanding a setting state currently selected by the user, the rotation button of the rotation setting controller currently selected for the rotation setting may be indicated in different color or may be surrounded by a bold frame, for example. In
When an image rotation setting condition is selected by the user, an image obtained by subjecting the selected image to the rotation processing with the selected rotation angle is displayed on the preview screen 8-A. Based on the image displayed on the preview screen, the user is able to recognize the current setting condition.
In an area 8-G of the rotation setting dialogue in
In an area 9-B of the moving image editing dialogue in
It should be noted that when the 90-degree clockwise rotation setting or 90-degree anticlockwise rotation (270-degree clockwise rotation) setting is made on an image, the image size or the aspect ratio of that image may inversely be handled according to a display state of the original image in the operation of this embodiment. This makes it possible to display an image, which is a vertically long image before being subjected to the rotation process, as a vertically long image even after subjected to the rotation process, and display an image, which is horizontally long image before being subjected to the rotation process, as a horizontally long image even after subjected to the rotation process.
Next, the following preview dialogue display operation is carried out in accordance with a user's instruction.
Specifically, after the playback sequence setting (step S510), the playback time setting (step S520) and the image rotation setting (step S530) are performed, the user clicks the preview button (
Referring to
As described above, the CPU 210 performs the operations from the image file addition (step S500) to the preview dialogue display (step S540) in accordance with the user's instructions.
Subsequent to manipulations for the steps S500 to S540 (editing manipulations), the user clicks a save button on the moving image editing screen (see
Referring to
As the selectable image sizes (aspect ratios), there may be mentioned, for example, seven types of image sizes (aspect ratios) which include auto; 320×240 (4:3); 320×180 (16:9); 352×288 (11:9); 240×320 (3:4); 180×320 (9:16); and 288×352 (9:11).
When a desired image size is selected by the user, the CPU 210 carries out an image size setting process (step S550), described later with reference to
After setting the image size, the user clicks a frame rate setting list box 11-B on the save dialogue screen in
In accordance with the frame rate selected by the user, the CPU 210 sets the frame rate. In that case, a menu may be displayed, in which frame rates other than the above described ones are indicated for selection. There may be used an arrangement that enables the user to select an arbitrary frame rate.
After selecting the image size and the frame rate, the user clicks a save button displayed in an area 11-C on the save dialogue screen in
When the save button is clicked by the user, a standard file save dialogue (not shown) provided by the OS, for example, is displayed to enable the user to set a location and a file name at and with which the moving image file is to be saved. When the location and name of the file to be saved are set by the user, the edit results are saved or output in the form of a moving image file in accordance with the set conditions (step S570), and the present process is completed.
The saved image file is played back, where required, by an image playback unit (e.g., OS standard moving image playback software), and then displayed and output. Alternatively, the saved image file is output by an image output unit (e.g., network connection). To cancel the saving, a cancel button is depressed by the user. In that case, the save dialogue is closed without saving the edited images, and the present process is completed.
The above described set items on the moving image file to be saved consist of the save file name, save location, image size, and frame rate, but may include other items than these.
With the process in
When the selection of image size is made by the user on the list box 11-A of the save dialogue screen in
If it is determined at the step S110 that the auto setting is selected, image size information on the moving image files (the original images) to be edited are acquired one by one (step S130). At this time, the vertical and horizontal image sizes of an image for which 90-degree or 270-degree rotation processing is set are conversely handled since the image for which the rotation processing is set is rotated at the time of being output or saved, with the original image remaining unrotated. Thus, an image whose original image is a vertically long image can be edited, saved, or the like as a horizontally long image, and an image whose original image is a horizontally long image can be edited, saved, or the like as a vertically long image.
After the image size information is acquired (step S130), it is determined whether or not all the image size information on the moving image files to be edited are acquired (step S140). If it is determined that all the image size information are not acquired as yet, the process returns to the step S130 and the processing in the steps S130 and S140 is repeated, whereby image size information on all the moving image files to be edited are acquired.
If it is determined at the step S140 that all the image size information are acquired, it is determined whether each moving image file is a vertically long image or a horizontally long image based on the image size information on the image file, and the number of vertically long images and the number of horizontally long images are counted (step S150). At this time, an image whose vertical and horizontal lengths are the same as each other is not counted. In other words, such an image is regarded as being neither a vertically long image nor a horizontally long image. An image having a vertical length thereof close to its horizontal length or having an aspect ratio thereof close to 1, which is nearly square in shape, may also be regarded as being neither a vertically long image nor a horizontally long image, and may not be counted.
After the number of vertically long moving images and the number of horizontally long moving images are counted, it is determined which of the vertically long images or the horizontally long images are larger in number (step S160). If, for example, the number of the horizontally long images is larger than that of the vertically long images, the aspect ratios of all the horizontally long images are determined (step S170). If the number of the vertically long images is equal to that of the horizontally long images, the aspect ratios of predetermined higher-priority images (e.g., horizontally long images) are determined. In the step S170, out of the seven types of image sizes (aspect ratios), i.e., 4:3, 16:9, 11:9, 3:4, 9:16, 9:11 and others, for example, the CPU 210 determines the number of image sizes (aspect ratios) of horizontally long images. In this example, there are four types of image sizes of horizontally long images, i.e., 4:3, 16:9, 11:9 and others in terms of aspect ratio.
Next, an aspect ratio is determined, which is highest in appearance frequency among the aspect ratios determined in the step S170 (step S180). Then, the aspect ratio determined to be highest in appearance frequency is set as the image size at which images are to be saved (step S210), and the present process is completed.
If it is determined at the step S180, for example, that the horizontally long images having aspect ratio of 4:3 are the largest in number among the horizontally long images contained in the moving image files, the image size at which images are to be saved is set to, e.g., 320×240 (step S210). On the other hand, if it is determined that the horizontally long images having aspect ratio of 16:9 are the largest in number, the image size at which images are saved is set to, e.g., 320×180. If the horizontally long images having aspect ratio of 11:9 are the largest in number, the image size at which images are saved is set to, e.g., 352×288 (step S210).
If horizontally long images having an aspect ratio other than the aforementioned three types of aspect ratios are the largest in number among the horizontally long images contained in the moving image files, the image size at which images are saved is set, for example, to 320×240. If there are plural types of horizontally long aspect ratios which are each the largest in appearance number, the image size (aspect ratio) at which files are to be saved is set according to, for example, a predetermined priority order of 4:3, 16:9 and 11:9. The priority order is not limited to the above order, and another criterion may be used.
If it is determined at the step S160 that the number of vertically long images is larger than the number of horizontally long images, the CPU 210 determines the aspect ratios of all the vertically long images (step S190). For example, the CPU 210 determines the number of horizontally long images having any of four types of aspect ratios, i.e., 3:4, 9:16, 9:11 and others, out of the seven types of aspect ratios, i.e., 4:3, 16:9, 11:9, 3:4, 9:16, 9:11 and others.
Next, an aspect ratio is determined, which is highest in appearance frequency among the aspect ratios determined in the step S190 (step S200). As in the case of horizontally long images, the aspect ratio determined to be highest in appearance frequency is set as the image size at which images are to be saved (step S210), and the present process is completed.
If it is determined at the step S200, for example, that the vertically long images having aspect ratio of 3:4 are the largest in number among the vertically long images contained in the moving image files, the image size at which images are to be saved is set to, e.g., 240×320 (step S210). On the other hand, if it determined that the vertically long images having aspect ratio of 9:16 are the largest in number, the image size at which images are saved is set to, e.g., 180×320. If the vertically long images having aspect ratio of 9:11 are the largest in number, the image size at which images are saved is set to, e.g., 288×352 (step S210).
With the process shown in
According to this embodiment, since the aspect ratio at which the moving image files are to be saved is determined in two stages on the basis of the image sizes of the moving image files to be edited, black bar parts in the edited images can be reduced, and the moving image files can be saved and output at an appropriate aspect ratio. Therefore, the user is enabled to automatically save and output appropriate moving image files with less black bars, and the efficiency of output setting operations in editing the moving images can be improved. If the image rotation setting is performed by the user, the aspect ratio is determined according to image rotation angle, and it is therefore possible to carry out appropriate processing without the need of complicated manipulations. The moving image editing apparatus of this embodiment is particularly useful in a case where images of various aspect ratios are mixedly present in the images to be edited.
In this embodiment, there has been described the example where either vertically long images or horizontally long images, whichever are larger in the number of images, are selected, but the present invention is not limited thereto. For example, vertically long images or horizontally long images may be selected, whichever are longer in image playback times or larger in the number of image frames.
Also the selection of the image size (aspect ratio) at which images are to be saved may not be made based on the number of images, but may be made based on either the image playback times or the number of image frames.
In this embodiment, the example has been described where moving image data is output in the form of a file. However, it may be possible to playback and output the moving image data to generate a preview output.
In this embodiment, the example has been described where image editing is performed using application software. However, this invention is not limited thereto and may be applied to a case where the image editing is performed by a camera main unit. In that case, the operation unit of the image editing apparatus may be implemented by a plurality of buttons provided in the camera main unit.
In this embodiment, there has been described the example where the images to be edited are moving images. However, this invention is not limited thereto and may be configured to handle still image files as well as moving image files or handle still image files alone.
Next, a description will be given of a concrete example of this invention where twelve moving image files shown in
Referring to
In this example, if the appearance frequencies of aspect ratios of moving image files to be edited are simply compared with one another and the aspect ratio which is the highest in appearance frequency is selected for file saving, then the moving image files are saved at an aspect ratio of 4:3. However, among the moving image files to be edited, the number of vertically long images is larger than the number of horizontally long images, and therefore many moving image files with black bars are output, if the image files are each saved at an aspect ratio of 4:3 in the form of a horizontal long image.
To obviate this, in this example, the number of vertically long images is first compared with the number of horizontally long images in steps S130 to S160 in
Next, the aspect ratios of the vertically long images in
Thus, the desired aspect ratio for use when the edited image data are output can easily be set.
It is to be understood that the present invention may also be accomplished by supplying a system or an apparatus with a storage medium in which a program code of software, which realizes the functions of the above described embodiment is stored and by causing a computer (or CPU or MPU) of the system or apparatus to read out and execute the program code stored in the storage medium. In that case, the program code itself read from the storage medium realizes the functions of the above described embodiment, and therefore the program code and the storage medium in which the program code is stored constitute the present invention.
Examples of the storage medium for supplying the program code include a flexible disk, a hard disk, an optical disk, a magnetic-optical disk, a CD-ROM, a CD-R, a CD-RW, a magnetic tape, a nonvolatile memory card, a ROM, and a DVD.
Further, it is to be understood that the functions of the above described embodiment may be accomplished not only by executing the program code read out by a computer, but also by causing an OS (operating system) or the like which operates on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the functions of the above described embodiment may be accomplished by writing a program code read out from the storage medium into a memory provided on an expansion board inserted into a computer or a memory provided in an expansion unit connected to the computer and then causing a CPU or the like provided in the expansion board or the expansion unit to perform a part or all of the actual operations based on instructions of the program code.
While the present invention has been described with reference to an exemplary embodiment, it is to be understood that the invention is not limited to the disclosed exemplary embodiment. 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.
This application claims the benefit of Japanese Patent Application No. 2007-317212, filed Dec. 7, 2007 which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2007-317212 | Dec 2007 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6400375 | Okudaira | Jun 2002 | B1 |
7103260 | Hinson | Sep 2006 | B1 |
20040239792 | Shibutani et al. | Dec 2004 | A1 |
20050134693 | Torimoto et al. | Jun 2005 | A1 |
20080019594 | Hiraizumi et al. | Jan 2008 | A1 |
Number | Date | Country |
---|---|---|
2000-324453 | Nov 2000 | JP |
2007-110223 | Apr 2007 | JP |
Entry |
---|
Office Action dated Jan. 10, 2012 issued in counterpart Japanese Application 2007-317212. |
Number | Date | Country | |
---|---|---|---|
20090147131 A1 | Jun 2009 | US |