1. Field of the Invention
The present invention relates to an image processing apparatus configured to perform an image quality adjustment processing on an image according to depth-of-field information associated with the image and display the resultant image, and relates to a method of controlling such an image processing apparatus.
2. Description of the Related Art
In an image display apparatus, to display an image with specified image quality, various image quality adjustment processing are performed on an input image signal.
Japanese Patent Laid-Open No. 2009-218660 discloses an image display apparatus configured to control the image quality (a luminance level, an edge enhancement level, a contrast, etc.) of an image displayed on a display connected to a camera in accordance with setting information (an F-number, an exposure condition, a shutter speed, etc.) of the camera. Japanese Patent Laid-Open No. 03-260638 discloses a camera having an electronic viewfinder capable of determining a focusing state based on a distance measurement value and a depth of field (hereinafter referred to as DOF) with respect to an object and processing an image such that edge enhancement is performed for a part of an image that is in an in-focus range while edges are blurred for parts of the image that are not in focus.
However, in conventional techniques, the strength of each image quality adjustment processing is not properly set depending on the photo information associated with images, and thus it is difficult to achieve a sufficiently high improvement in overall quality for a resultant image displayed.
In view of the above, the present invention provides a technique to improve overall quality of an image by properly performing an image quality adjustment such that the edge enhancement level in the edge enhancement processing is adaptively determined according to depth-of-field information of the image.
In an aspect, the present invention provides an apparatus configured to input an input image signal from an external image source and output a display signal to a display unit, including an obtaining unit configured to obtain information indicating a depth of field of an image from the input image signal, a processing unit configured to perform an image quality adjustment processing on an image signal extracted from the input image signal based on the information, and an output unit configured to output, based on the image signal that has been subjected to the image quality adjustment processing, the display signal according to which an image is displayed by the display unit, wherein the processing unit increases an edge enhancement level in an edge enhancement processing included in the image quality adjustment processing with increasing depth of field.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
The present invention is described in further detail below with reference to embodiments in conjunction with the accompanying drawings. In embodiments of the present invention, an image quality adjustment is performed such that an edge enhancement level in an edge enhancement processing is increased adaptively with increasing depth of field (DOF) of an image.
DOF=front DOF+rear DOF
front DOF=diameter of permissible circle of confusion×F-number×object distance2/(focal length2+diameter of permissible circle of confusion×F-number×object distance)
rear DOF=diameter of permissible circle of confusion×F-number×object distance2/(focal length2−diameter of permissible circle of confusion×F-number×object distance)
focal distance=length of diagonal line of image sensor/(2×tan(angle of field/2))
diameter of permissible circle of confusion=length of diagonal line of image sensor/constant (normally 1300 to 1500)
The calculated DOF is output as DOF information from the DOF-information obtaining unit 3 to an image signal processing unit 4. The image signal processing unit 4 performs an edge enhancement processing, a saturation (colorfulness) adjustment processing, a luminance curve adjustment processing, and a black level adjustment processing according to the DOF information. Via these image quality adjustment processing, the vividness of the image is enhanced when the DOF is deep, while the vividness of the image is suppressed when the DOF is shallow.
More specifically, when the DOF is deep, the image quality adjustment processing is performed such that the edge enhancement level is increased in the edge enhancement processing. In the adjustment processing, the edge enhancement processing may be combined with other processing as described below. For example, the adjustment is performed such that the edge enhancement is increased, the saturation (colorfulness) is increased, the luminance curve is set to be S-shaped, and the black level is enhanced. On the other hand, when the DOF is shallow, the edge enhancement is reduced, the saturation is reduced, the luminance curve is set to be monotonic, and the black level is not enhanced.
The adjustment may be performed such that when the DOF is shallow, the image quality adjustment is performed according to default conditions, while when the DOF is deep, the adjustment levels are enhanced. That is, the edge enhancement level is increased, the saturation is increased, the curvature of the S-shaped part of the luminance curve is increased, and the gradient of the luminance curve is reduced in the low luminance range depending on the DOF.
Note that the luminance curve adjustment is performed such that the shape of the gamma curve is changed, while in the black level adjustment, the shape of the gamma curve is maintained and the gradient of the curve in the low luminance range is changed.
After the signal processing on the image signal by the image signal processing unit 4 is complete, the resultant image signal is output as a display signal from an output unit 8 to an image display unit 6. A control unit 5 controls various processing blocks including the input unit 7, the DOF-information obtaining unit 3, the image signal processing unit 4, and the output unit 8 such that they operate cooperatively.
The control unit 5 selects the edge enhancement processing from the four adjustment processes described above and makes the image signal processing unit 4 perform the edge enhancement processing. Alternatively, the control unit 5 may select at least two processes including the edge enhancement processing and makes the image signal processing unit 4 perform the selected processes. The image signal processing unit 4 performs the edge enhancement processing and other adjustment processes in series or in parallel on the same image signal.
The reason why the edge enhancement processing is employed as the image quality adjustment processing that is performed depending on the DOF is that the edge enhancement processing allows for the most effective control to achieve high vividness of images. Another reason is that the edge enhancement processing has a relatively low visual correlation with other image quality adjustment processing, and thus a combination of the edge enhancement processing and other image quality adjustment processing can lead to an increase in the overall image quality.
The image signal is digital data of a moving or still image expressed in 8 or more bits. The DOF information is calculated, according to the formula described above, from photo information indicating image capturing conditions employed when an image is captured by a digital camera or a video camera used as the image capturing apparatus. In a case where DOF information is included as associated information in a stored image content, the DOF-information obtaining unit 3 may extract the DOF information from the image content and output it to the image signal processing unit 4.
While 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.
This application claims the benefit of Japanese Patent Application No. 2010-135502 filed Jun. 14, 2010, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2010-135502 | Jun 2010 | JP | national |