Automatic trimming of image data
Image production record information related to image data is used to determine whether or not to execute a trimming process. Exposure program data and photograph scene data or subject area information, etc., are used as the image production record information.
Latest Patents:
This application is a continuation of U.S. patent application Ser. No. 10/717,305, filed on Nov. 18, 2003, the disclosure of which is hereby incorporated by reference in its entirety.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention relates to a technique for trimming images.
2. Description of the Related Art
When images photographed with digital still cameras are printed, only a printing range with an aspect ratio different from that of the image can sometimes be printed. The portions outside the printing range are cut off, which is referred to as trimming.
However, in the conventional technology, problems arise because trimming is always turned off and on in the same way for all cases. For example, when all images are trimmed, parts of objects in the photograph (such as people) which are important in terms of the picture composition may be cut off. Another problem is that the picture composition intended by the user at the time the picture was photographed may not be reflected as a result of the trimming process.
SUMMARY OF THE INVENTIONAn object of the invention is to provide a technique for suitably determining whether or not to execute a trimming process for individual image data.
The output device according to the present invention outputs an image using image data produced by an image-producing device, and image production record information related to the image data, and is characterized by comprising: an image data processor for executing a trimming process upon determining whether or not to trim the image data based on the image production record information; and an image output device for outputting an image according to the image data processed by the image data processor.
The output device in the invention appropriately determines whether or not to execute a trimming process for individual image data because the determination on whether or not to execute the trimming process is based on the image production record information related to the image data.
The present invention can also be worked in various embodiments, such as an image output method and image output device, image processing method and image processing device, computer programs for executing the functions of such methods or devices, recording media on which such computer programs are recorded, and data signals embodied in carrier waves including such computer programs.
These and other objects of the invention, its features, aspects, and advantages will become more apparent in the following preferred embodiments and drawings.
The output image process for image files according the invention will be described in the following order in the embodiments below with reference to the drawings.
A. Structure of Image Output System B. Structure of Image File C. Structure of Image Output Device Capable of Using Image File D. Image Data Process in Digital Still Camera E. Image Data Process in Printer F. Example of Automatic Image Data Process G. Structure of Image Output System Using Image Data Processing Device H. Variants A. Structure of Image Output SystemThe digital camera 12 stores the acquired images in the memory card MC. The image data in the digital camera 12 is generally kept in JPEG format, but other formats can also be used, such as TIFF, GIF, BMP, and RAW data formats.
The digital camera 12 also comprises a select/set button 126 for setting various photographing conditions, and a liquid crystal display 127. The liquid crystal display 127 is used when previewing photographed images, setting an aperture value using the select/set button, and so forth.
When the digital camera 12 is used to take a photograph, the image data and image production record information are stored as image files in the memory card MC. The image production record information (described in detail below) can include set parameters such as the aperture value when photographs are taken (when image data is produced).
B. Structure of Image FileThe image production record information GI is information related to the image when the image data is produced (when photographs are taken) in the image-producing device such as the digital camera 12, and includes the following settings.
Subject distance
Subject distance range
Subject area
Exposure program
Exposure time
Aperture value
ISO Speed rate (ISO sensitivity)
Photograph scene
Manufacturer's name
Model name
Gamma value
The image files in this embodiment should basically have an image data storage field 101 and an image production record information storage field 102, and may have a file structure according to an existing standardized file format. The following specific description pertains to cases where the image file GF pertaining to this embodiment conforms to the Exif file format.
An Exif file has a file structure in accordance with the digital still camera image file format specification (Exif). The specification has been established by the Japan Electronics and Information Technology Industries Association (JEITA). Similar to the conceptual diagram in
As shown in
The exposure program information and photograph scene information are used in a first embodiment of the automatic image data process in the invention. The exposure program information allows any of manual, normal, exposure priority, shutter priority, creative, action, portrait, or landscape programs to be appropriately selected according to the photographing conditions. The normal program is selected as the default setting.
The subject area information is used in a second embodiment of the automatic image data process of the invention.
Information related to the image data may be appropriately stored in fields other than the Exif data field in
As shown in the drawing, the printer 20 comprises a mechanism for driving a print head 211 mounted on a carriage 21, to eject ink and form dots; a mechanism for reciprocating the carriage 21 in the axial direction of a platen 23 by means of a carriage motor 22; a mechanism for feeding printer paper P by means of a paper feed motor 24; and a control circuit 30. By means of these mechanisms, the printer 20 functions as an image output component. The mechanism for reciprocating the carriage 21 in the axial direction of a platen 23 is composed of a slide rail 25 extending parallel to the axis of the platen 23, for slidably retaining the carriage 21; a pulley 27 coupled via an endless drive belt 26 to a carriage motor 22; and a position sensor 28 for sensing the home position of the carriage 21. The mechanism for feeding printer paper P is composed of the platen 23; the paper feed motor 24 which rotates the platen 23; an auxiliary paper feed roller, not shown in the drawing; and a gear train (not shown) for transmitting the rotation of the paper feed motor 24 to the platen 23 and the auxiliary paper feed roller.
The control circuit 30 exchanges signals with a printer control panel 29 while appropriately controlling the operation of the paper feed motor 24, carriage motor 22, and print head 211. Printer paper P supplied to the printer 20 is inserted between the platen 23 and the auxiliary paper feed roller, and is advanced in predetermined increments depending on the rotation angle of the platen 23.
The carriage 21 has the print head 211, and enables mounting of an ink jet cartridge of utilizable ink. On the bottom face of print head 211 are disposed nozzles for ejecting utilizable ink (not shown).
The control circuit 30 outputs dot data to the drive buffer 37 at a predetermined timing in synchronization with the operations of the paper feed motor 24 and carriage motor 22. The control circuit 30 also reads image files from the memory card MC, analyzes the ancillary information, and processes the image based on the image production record information. That is, the control circuit 30 functions as an image data processor. The details of the image processing performed by the control circuit 30 will be described in detail below.
D. Image Data Process for Digital Still CameraThe control circuit 124 (
The control circuit 124 stores the resulting image data GD and image production record information GI as an image file GF on the memory card MC (Step S110), and terminates the processing routine. The image production record information GI includes parameters used at the time the image is produced, such as aperture value and ISO sensitivity, custom set parameters such as the photograph scene, and automatically set parameters such as the Manufacturer's name and Model name. Image data GD is also stored in the image file GF after being converted from the RGB color space to the YCbCr color space and then compressed in JPEG format.
As a result of the aforementioned processes executed by the digital still camera 12, both image data GD and image production record information GI including various parameter values at the time the image data was produced are set in the image files GF stored on the memory card MC.
E. Image Data Process in Printer FIG. 10 is a flowchart of a routine for processing images in the printer 20 of the present embodiment. The following description is based on cases where a memory card MC with image files GF stored thereon is inserted directly into the printer 20. When the memory card MC has been inserted into the memory card slot 34, the CPU 31 of the control circuit 30 (FIG. 7) of the printer 20 reads the image file GF from the memory card MC (Step S200). Next, in Step S210, the CPU 31 searches the ancillary information storage field of the image file GF for image production record information GI indicating information at the time that the image data was produced. When image production record information GI is found (Step S220: Y), the CPU 31 acquires and analyzes the image production record information GI (Step S230). Based on the analyzed image production record information GI, the CPU 31 executes the following image process (Step S240), outputs the processed image (Step S250), and terminates the processing routine.On the other hand, an image file created by a drawing application or the like will not contain image production record information GI having information such as the aperture value. If the CPU 31 cannot find image production record information GI (Step S200: N), the standard process is performed (Step S260), the processed image is output (Step S250), and the processing routine is terminated.
F. Embodiment of Automatic Image Data ProcessIn the first and second embodiments described below, rimless L size prints are made of images taken with a digital still camera (DSC). The aspect ratio of images produced by a DSC in the embodiments is 3:4, and the L size aspect ratio is 3:4.415. In other words, because the DSC image is longer than that of L size, a printing image is produced by matching the lateral length of the image to that of L size, and then cutting the image at the top and bottom. In an ordinary process with no trimming, a printing image would be produced by enlarging or reducing the image so that the entire image would be included in the printing area.
F1. First EmbodimentThe following descriptions are of an example of an image being trimmed in step S420 and an example of an image processed in the usual manner in step S430.
The determination as to whether or not to trim individual image data can thus be automatically determined in this embodiment because the determination as to whether or not to trim the image is based on the exposure program information and photograph scene information related to the image data.
F2. Second EmbodimentThe following descriptions are of an example of an image being trimmed in step S520 and an example of an image processed in the usual manner in step S530.
In the above example in
In the example in
The determination as to whether or not to trim individual image data can thus be automatically determined in this embodiment because the determination as to whether or not to trim the image is based on the subject area information related to the image data.
G. Structure of Image Output System using Image Data Processing DeviceAn image file created in the digital still camera 12 is transferred to the computer PC via a cable CV, or by directly inserting a memory card MC having the image file stored thereon into the computer PC. The computer PC executes image data processing of the image data based on the read out image file. The image data produced by the image data process is transferred to the printer 20B via a cable CV, and output by the printer 20B.
The computer PC comprises a CPU 150 for executing a program that realizes the aforementioned image data process; RAM 151 for temporarily storing the calculated results by the CPU 150, image data, and the like; and a hard disk drive (HDD) 152 for storing data needed for the image data process, such as an image data processing program, lookup tables, or aperture value tables. The CPU 150, RAM 151, and HDD 152 function as the image data processor. The computer PC further comprises a memory card slot 153 for installing a memory card MC; and an input/output terminal 154 for connecting a connector cable from the digital still camera 12 or the like.
An image file GF created by a digital still camera 12 is supplied to the computer PC via a cable or via a memory card MC. When an image data processing application program such as an image retouching application or a printer driver is activated by user operations, the CPU 150 executes an images processing routine (
Image data processed by the CPU 150 is transferred to an image output device such as the printer 20B instead of being output in Step S250 of the images processing routine (
In this embodiment, images are processed using an image data processor in the computer PC, making it possible to use an image output device that does not have an image data processor. Where the image output device is provided with an image data processor, the image data may be sent to the image output device without being subjected to image processing on the computer PC, and the image data processor of the image output device can perform the image process.
As noted above, the determination as to whether or not to trim individual image data can thus be automatically determined in the above embodiments because the determination on whether or not to trim the image is based on image production record information related to the image data.
The invention is not limited to the above embodiments, and can be worked in a variety of embodiments within the scope of the invention. The following are possible variants.
H. VariantsH1. Variant 1
In the first embodiment, it is determined to execute the trimming on condition that the normal program has been selected as the exposure program information, and that the standard scene has been selected as the photograph scene information, but other conditions can be used to make the determination. For example, the trimming may also be executed on condition that the normal program has been selected as the exposure program information, and that landscape or night time scene has been selected as the photograph scene.
H2. Variant 2
In the first and second embodiments above, an image is printed immediately after the determination is made on whether or not to trim the image, but users can be given the option of turn trimming on or off before printing. For example, thumbnails of how the images will look after the automatic image data process can be displayed before printing, and the user may check the images to switch trimming on or off.
H3. Variant 3
The above first and second embodiments may also be combined. For example, in step S410 in
H4. Variant 4
When the subject area 510 is to be cut as a result of the trimming process as in image 500 in
H5. Variant 5
In the above embodiments, the trimming process is implemented by matching the longitudinal or lateral size of the image to the output size, and cutting off the parts that extend beyond, but the process can generally be implemented in such a way that the image is enlarged or reduced with the same aspect ratio to a size encompassing the designated image output size to cut off the portions extending beyond the image output size.
H6. Variant 6
A printer is used as the image output device in the above embodiments, but other image output devices can be used instead of printers. Embodiments include the use of CRT displays, LCD displays, and projectors as the image output device.
H7. Variant 7
Files in Exif format are used as specific examples of image files GF in the above embodiments, but the format of image files in the invention are not limited, and any other formats can be used. In general, image files include image data produced by an image-producing device and image production record information GI indicating the conditions when the image data is produced. Such files allow image data produced by the image-producing device to be processed automatically as appropriate and to be output from an output device. The subject area is not limited to the parameters of the Exif format described above, and can be realized by the parameters and data of various other formats. For example, parameters indicating the focus field or the focus position during auto-focus operation may be used. When users can specify any subject area position or its shape when taking photographs, the parameters representing them may be used as the parameters showing the subject area.
H8. Variant 8
A digital still camera 12 is used as an image-producing device in the above embodiments, but image files can be produced using other devices such as scanners and digital video cameras.
H9. Variant 9
Image data GD and image production record information GI are included in the same image files GF in the above embodiments, but the image data GD and image production record information GI need not necessarily be stored in the same image file. That is, it is sufficient if the image data GD and image production record information GI are related. For example, related data relating the image data GD and image production record information GI can be produced, one or more instances of image data GD and image production record information GI can be stored in independent files, and the related image production record information GI can be referenced when the image data GD is processed. In such cases, even though the image data GD and image production record information GI are stored in separate files, the image data GD and image production record information GI are indispensably related when the image is processed using the image production record information GI, and the situation is substantially the same as when they are stored in the same file. That is, at least at the point where the image is processed, the relationship between the image data GD and image production record information GI is included in the image file GF in this embodiment. Motion image files stored in optical disks such as CD-ROM, CD-R, DVD-ROM, and DVD-RAM are also included.
The invention was illustrated and described in detail above, but these are given only as embodiments and do not in any way limit the invention. The concept and scope of the invention is limited only by the attached claims.
Claims
1. An image processing device for processing image data, comprising:
- an enlarging unit that executes an enlarging process to enlarge a face image area of an image; and
- a display unit that executes an outputting process to output the image including the enlarged face image area to a displaying area of the display unit,
- wherein a magnification of the enlarging process is set automatically so that the enlarged face image area will not extend beyond the displaying area.
2. The image processing device according to claim 1,
- wherein the face image area is specified by face position information regarding a face position in the image, and
- wherein the enlarging unit does not execute the enlarging process if the image data does not include the face position information.
3. The image processing device according to claim 2,
- wherein the display unit outputs a frame that encloses the image including the enlarged face image area to the displaying area in the outputting process.
Type: Application
Filed: May 14, 2009
Publication Date: Sep 17, 2009
Applicant:
Inventors: Toshie Imai (Nagano-ken), Takahiko Koizumi (Nagano-ken)
Application Number: 12/454,323
International Classification: G06K 15/02 (20060101);