[0001] The present application is a divisional application of U.S. application Ser. No. 09/785,931, filed Feb. 16, 2001 and claims the benefit of priority of Japanese Application No. 2000-044903 filed in Japan on Feb. 22, 2000 and Japanese Application No. 2000-044904 filed in Japan on Feb. 22, 2000, the contents of which are incorporated herein by reference.
[0002] 1. Field of the Invention
[0003] The present invention relates to an image processing apparatus and, more specifically, to an image processing apparatus for adjusting a gradation range of an input image.
[0004] 2. Related Art Statement
[0005] In an image processing apparatus for synthesizing a plurality of images picked up under different exposure conditions to generate one wide dynamic range image, a technique for adjusting a gradation range is used. For example, in Japanese Patent Application No.
[0006] A gradation converting process in the image processing apparatus described above is performed on the basis of histogram flattening of an edge portion. This histogram flattening is a technique which is based on the assumption that a main object has a large number of edges, and the other portions such as a background have a small number of edges.
[0007] On the other hand, in a conventional digital camera, a color difference signal is also converted on the basis of a coefficient obtained when a luminance signal is subjected to gradation conversion. More specifically, it is assumed that a luminance signal Y
[0008] the conversion coefficient is directly used to convert color difference signals as follows:
[0009] In a digital camera, a bit count obtained when an image signal output as an analog signal from a CCD into a digital signal is often a bit count obtained when the image signal is processed and then recorded on, e.g., a recording medium.
[0010] In this case, even though a single input image is handled to perform conversion of an amount of information, especially, a reduction of an amount of information, the gradation range of the image may have to be adjusted.
[0011] The technique of gradation correction is popularly handled in various devices such as a printer device or a monitor device which is not limited to the digital camera and processes an image. The above technique can be applied to not only a case in which a plurality of images are handled but also a case in which a single input image is handled.
[0012] The technique of histogram flattening on the assumption that the main object as described above has a large number of edges can correspond to an object in a relatively wide range. However, the technique cannot completely correspond to the object. As an example which may correspond to the exception, a case in which a person is photographed in a relatively small size on a background having a plurality of shapes or contours is used. At this time, the background is decided as a main object to detect a large number of edges from the background portion, and a gradation range which is assigned to a person is reduced.
[0013] In a technique which performs gradation conversion to the color difference signal as described above by using a conversion coefficient equal to the conversion coefficient of a luminance signal, unnatural colors may be generated by a high-luminance portion. More specifically, color reproduction in a color space (e.g., Y, Cb, and Cr space) has a theoretical limit characteristic (see
[0014] When gradation conversion is performed like the case of luminance without consideration of the color reproduction range, the color reproduction range is close to or exceeds the limit of the color reproduction range, and colors after the gradation conversion may be whitish. In order to cope with the problem, a process of suppressing a saturation of a high-luminance portion is added in a conventional technique. However, it is not sufficient, and the realization of a technique of more improving color reproduction is desired.
[0015] It is an object of the present invention to provide an image processing apparatus being capable of adaptively adjusting a gradation range of a main object in accordance with a photographic scene.
[0016] It is another object of the present invention to provide an image processing apparatus being capable of adjusting a more optimum saturation in consideration of the theoretical limit characteristic of color reproduction.
[0017] In short, the present invention is directed to an image processing apparatus, for adjusting a gradation range of an input image, including: photographing condition estimation means for estimating a photographing condition of the input image; and gradation correction means for performing gradation correction on the input image on the basis of the photographing condition to adjust the gradation range to a predetermined gradation range.
[0018] The present invention is also directed to an image processing apparatus, for adjusting a gradation range of an input image, including: luminance-color difference separation means for separating the input image into a luminance signal and a color difference signal; gradation correction means for performing gradation correction on the luminance signal to adjust the gradation range to a predetermined gradation range; color difference correction means for correcting the color difference signal on the basis of a luminance signal obtained before the gradation correction and output from the luminance-color difference separation means, a luminance signal obtained after the gradation correction, and a theoretical limit characteristic of color reproduction; and luminance-color difference synthesis means for synthesizing the luminance signal obtained after the gradation correction and a color difference signal obtained after the correction into an image signal.
[0019] Furthermore, the present invention is also directed to an image processing apparatus for adjusting a gradation range of an input image, including: photographing condition estimation means for estimating a photographing condition of the input image; luminance-color difference separation means for separating the input image into a luminance signal and a color difference signal; gradation correction means for performing gradation correction on the luminance signal on the basis of the photographing condition to adjust the gradation range to a predetermined gradation range; color difference correction means for performing correction on the color difference signal on the basis of a luminance signal obtained before the gradation correction and output from the luminance-color difference separation means, a luminance signal obtained after gradation correction and output from the gradation correction means, and a theoretical limit characteristic of color reproduction; and luminance-color difference synthesis means for synthesizing an image signal on the basis of the luminance signal obtained after the gradation correction and a color difference signal obtained after the correction.
[0020] The present invention is also directed to an image processing apparatus for processing an image group comprising a plurality of images obtained by image pickup to the same object under different exposure conditions to generate one wide dynamic range image, including: photographing condition estimation means for estimating a photographing condition; extraction means for extracting an appropriate exposure region on the basis of an image signal level of each image in the image group; gradation correction means for performing gradation correction on the appropriate exposure region on the basis of the photographing condition; and synthesis means for synthesizing appropriate exposure regions subjected to gradation correction by the gradation correction means to generate one wide dynamic range image.
[0021] In addition, the present invention is directed to an image processing apparatus for processing an image group comprising a plurality of images obtained by image pickup to the same object under different exposure conditions to generate one wide dynamic range image, including: luminance-color difference separation means for separating an image signal of each image in the image group into a luminance signal and a color difference signal; extraction means for extracting an appropriate exposure region on the basis of a signal level of the luminance signal; gradation correction means for performing gradation correction on a luminance signal of the appropriate exposure region; color difference correction means for performing correction on a color difference signal of the appropriate exposure region on the basis of a luminance signal obtained before the gradation correction and output from the luminance-color difference separation means, a luminance signal obtained after gradation correction and output from the gradation correction means, and a theoretical limit characteristic of color reproduction; luminance-color difference synthesis means for synthesizing an image signal on the basis of the luminance signal obtained after the gradation correction and a color difference signal obtained after the correction; and synthesis means for synthesizing the synthesized image signal of the appropriate exposure regions to generate one wide dynamic range image.
[0022] The present invention is still further directed to an image processing apparatus for processing an image group comprising a plurality of images obtained by image pickup to the same object under different exposure conditions to generate one wide dynamic range image, including: photographing condition estimation means for estimating a photographing condition; luminance-color difference separation means for separating an image signal of each image in the image group into a luminance signal and a color difference signal; extraction means for extracting an appropriate exposure region on the basis of a signal level of the luminance signal; gradation correction means for performing gradation correction on the luminance signal of the appropriate exposure region on the basis of the photographing condition; color difference correction means for performing correction on a color difference signal of the appropriate exposure region on the basis of a luminance signal obtained before the gradation correction and output from the luminance-color difference separation means, a luminance signal obtained after gradation correction and output from the gradation correction means, and a theoretical limit characteristic of color reproduction; luminance-color difference synthesis means for synthesizing an image signal on the basis of the luminance signal obtained after the gradation correction and a color difference signal obtained after the correction; and synthesis means for synthesizing the synthesized image signal of the appropriate exposure regions to generate one wide dynamic range image.
[0023] In addition, the present invention is directed to a recording medium on which a process program executed by a computer is recorded, wherein the process program adjusts a gradation range of an input image and includes the step of separating the input image into a luminance signal and a color difference signal; the step of performing gradation correction on the luminance signal to adjust the gradation range to a predetermined gradation range; the step of performing correction on the color difference signal on the basis of a luminance signal obtained before the gradation correction, a luminance signal obtained after the gradation correction, and a theoretical luminance characteristic of color reproduction; and the step of synthesizing an image signal on the basis of the luminance signal obtained after gradation correction and a color difference signal obtained after the correction.
[0024] The present invention is also directed to a recording medium on which a process program executed by a computer is recorded, wherein the process program processes an image group comprising a plurality of images obtained by image pickup performed to the same object under different exposure conditions to generate one wide dynamic range image and includes: the step of separating an image signal of each image in the image group into a luminance signal and a color difference signal; the step of extracting an appropriate exposure region on the basis of a signal level of the luminance signal; the step of performing gradation correction on a luminance signal of the appropriate exposure region; the step of performing correction on a color difference signal of the appropriate exposure region on the basis of a luminance signal obtained before the gradation correction, a luminance signal obtained after gradation correction, and a theoretical limit characteristic of color reproduction; the step of synthesizing an image signal on the basis of the luminance signal obtained after the gradation correction and a color difference signal obtained after the correction; and the step of synthesizing the synthesized image signal of the appropriate exposure regions to generate one wide dynamic range image.
[0025] These objects and advantages of the present invention will become further apparent from the following detailed explanation.
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047] Embodiments of the present invention will be described below with reference to the accompanying drawings.
[0048] FIGS.
[0049] This embodiment is obtained by applying an image processing apparatus for adjusting a gradation range according to the present invention to an electronic camera.
[0050] This electronic camera comprises: a CCD
[0051]
[0052] The focal (AF) information output from the focal point detection unit
[0053] The photometric (AE) information output from the photometric evaluation unit
[0054] More specifically, the photometric evaluation unit
[0055] That is, the central region, the left adjacent region, and the right adjacent region of the centermost portion are represented by a
[0056] In addition, the upper and lower regions of the region a
[0057] The upper left region, the upper right region, and the lower left region, and the lower right region in an outer peripheral portion surrounding the inner peripheral portion are represented by a
[0058] In a divisional photometric operation using these regions, the object distribution estimation unit
[0059] More specifically, the evaluation parameter S
[0060] These evaluation parameters are obtained from the object distribution estimation unit
[0061] As shown in
[0062] When the AF information indicates 1 m to 5 m, a portraiture photographing operation is determined, and the evaluation parameter S
[0063] In addition, when the AF information indicates 1 m or less, the photographing operation is determined as a close-up photographing operation, and the evaluation parameter S
[0064] Results obtained by classifying the scenes into these types are output from the integration unit
[0065] Subsequently,
[0066] When a luminance signal Y from the Y/C separation unit
[0067] On the other hand, when the results classified into types by the photographing condition estimation unit
[0068] In this manner, a histogram generation unit
[0069] In a conversion curve calculation unit
[0070] The conversion unit
[0071] The output unit
[0072]
[0073] An object image focused on the CCD
[0074] This image signal is converted into a digital signal by the A/D converter
[0075] The photometric evaluation unit
[0076] On the other hand, the image data stored in the image buffer
[0077] In the Y/C separation unit
[0078] The gradation correction unit
[0079] On the other hand, in the photographing condition estimation unit
[0080] An edge histogram is formed by the histogram generation unit
[0081] On the basis of the edge histogram obtained as described above, the conversion curve calculation unit
[0082] Although both the photometric information and the focal information are used to estimate the photographing conditions in the above description, the photographing condition may be estimated by using only one of the photometric information and the focal information to change weighting. If not only the photometric information and the focal information are used, but also one or more of zoom position information, multi-spot photometric information, line-of-sight input information, emission information of an strobe flash, information of a detection sensor for detecting the vertical and horizontal positions of an electronic camera, and white balance information are referred to, a photographing condition can be more exactly estimated.
[0083] In addition, the above described technique of gradation correction depending on the photographing condition is applied to not only a color image but also a black-and-white image.
[0084] In this first embodiment, gradation correction depending on a photographing condition is performed by the image processing apparatus which is included as a circuit in an electronic camera. However, these processes can also be performed by a process program of a computer. In this case, photographing information such as photometric information and focal information is recorded on, e.g., a header portion of an image file in a computer, a photographing condition is estimated on these pieces of photographing information, so that gradation correction appropriate to the photographing condition may be performed.
[0085] The image processing apparatus is not only applied to an electronic camera, but also popularly applied to devices such as printer devices which handle images.
[0086] According to the first embodiment, a photographing condition is decided on the basis of photographing information such as focal information and photometric information, and weighting depending on the photographing condition is performed when an edge histogram is formed. For this reason, gradation correction which is maximally appropriate to a photographing scene can be performed in consideration of a main object.
[0087] FIGS.
[0088] The same reference numerals as in the first embodiment described above denote the same parts in the second embodiment, and a description thereof will be omitted. Only different points will be mainly described below.
[0089] In the second embodiment, the luminance signal Y and the color difference signals Cb and Cr separated by the Y/C separation unit
[0090] The luminance correction unit
[0091] The processes in the luminance correction unit
[0092] The luminance correction unit
[0093] On the basis of information output from the edge extraction unit
[0094] The conversion curve calculation unit
[0095] The luminance conversion unit
[0096] In this manner, it is assumed that a luminance signal obtained before the gradation correction and output from the Y/C separation unit
[0097] The color difference correction unit
[0098] In the color difference correction unit
[0099] In this equation, a function B(Y) is a function representing a theoretical limit characteristic of color reproduction in a color space (Y, Cb, and Cr space), and has the following characteristic. That is, for example, as typically shown in
[0100] The calculation as described in Equation 5 is performed such that a color reproduction range b
[0101] The color reproduction limit characteristic ROM
[0102] The second correction coefficient calculation unit
[0103] The calculation described in Equation 6, similarly, is performed such that the color reproduction range b
[0104] The color difference conversion unit
[0105] In this manner, the conversion coefficient gain
[0106] When the conversion coefficient gain
[0107] The color difference signals Cb
[0108] In the Y/C synthesis unit
[0109] In the second embodiment, gradation correction made in consideration of a theoretical limit characteristic of color reproduction is performed by an image processing apparatus which is included as a circuit in an electronic camera. However, such these processes can be performed by a process program of a computer.
[0110] This image processing apparatus is not only applied to an electronic camera, but also popularly applied to devices such as printer devices which handle images.
[0111] According to the second embodiment, gradation correction made in consideration of a theoretical limit characteristic of color reproduction is performed to a color difference signal. For this reason, even though gradation correction of an image is performed, a hue can be kept.
[0112]
[0113] The same reference numerals as in the first and second embodiments denote the same parts in the third embodiment, and a description thereof will be omitted. Only different points will be mainly described below.
[0114] The third embodiment is constituted such that a function obtained by combining the functions of the first embodiment and the second embodiment appears. More specifically, weighting depending on a photographing condition is performed when a gradation conversion characteristic of a luminance signal is calculated, a theoretical limit characteristic of color reproduction is considered when a conversion characteristic of a color difference signal is calculated, and a hue and a saturation are corrected depending on the photographing condition.
[0115] More specifically, an image signal output from the CCD
[0116] As described above, the photometric evaluation unit
[0117] On the other hand, the image data stored in the image buffer
[0118] In the Y/C separation unit
[0119] The luminance correction unit
[0120] On the other hand, in the photographing condition estimation unit
[0121] In this manner, an edge histogram weighted by the histogram generation unit
[0122] The conversion curve calculation unit
[0123] In the subsequent luminance conversion unit
[0124] In the color difference correction unit
[0125] Color difference signals Cb′ and Cr′ corrected by the color difference correction unit
[0126] In this case, when a portrait of a single person or plural persons as in Type 3 or Type 4 is used, a process of correcting a hue and a saturation is performed such that a skin color looks more preferable. For example, the skin color of a Japanese person is exemplified. That is, since Japanese skin tends to have a yellowish hue, a process of slightly shifting the yellowish hue to a reddish hue is performed.
[0127] When a landscape containing sky on the upper side as in Type 1, a process of correcting a hue and a saturation is performed such that the sky looks more blue.
[0128] In addition, when a landscape is estimated as in Type 1 or Type 2, and when it is estimated on the basis of other information that the landscape contains a large number of plants, a process of correcting a hue and a saturation may be performed to make the green of the plants preferable. The embodiment can be applied to not only the above objects, but also various other objects.
[0129] The color difference signals Cb′ and Cr′ corrected by the skin color correction unit
[0130] Also, in the third embodiment, the device operates a circuit in an electronic camera to perform gradation correction. However, these processes can also be performed by a process program of a computer.
[0131] In this case, photometric information from the photometric evaluation unit
[0132] The process program is recorded on various recording media such as a hard disk in the computer, a portable floppy disk, and a photomagnetic disk.
[0133] The image processing apparatus is not only applied to an electronic camera, but also popularly applied to devices such as printer devices which handle images.
[0134] According to the third embodiment described above, both of the effect of the first embodiment described above and the effect of the second embodiment described above can be achieved. At the same time, correction of a hue and a saturation can be performed depending on a photographing condition. For this reason, the skin color of a person which is, e.g., a main object, can also be corrected into a preferable skin color.
[0135] FIGS.
[0136] The same reference numerals as in the first to third embodiments described above denote the same parts in the fourth embodiment, and a description thereof will be omitted. Only different points will be mainly described below.
[0137] This embodiment is obtained by applying the image processing apparatus according to the present invention to an electronic camera. For the sake of descriptive convenience, a case in which two images, i.e., an image obtained by short-period exposure and an image obtained by long-period exposure are synthesized with each other to obtain one wide dynamic range image will be described below. As a matter of course, the embodiment can also be applied to a case in which a large number of images are synthesized with each other.
[0138] This electronic camera, as shown in
[0139] More specifically, as image buffers for accumulating image data of one screen digitized by the A/D converter
[0140] The photometric evaluation unit
[0141] In addition, the focal point detection unit
[0142] The interpolation unit
[0143] The electronic camera further comprises: an appropriate exposure extraction unit
[0144] In addition, the control unit
[0145]
[0146] Subsequently,
[0147] The internal configuration of the conversion characteristic calculation unit
[0148] More specifically, as described above, the appropriate exposure extraction unit
[0149] When the luminance signal Y in the appropriate exposure region of the long-period exposure output from the appropriate exposure extraction unit
[0150] The other components, i.e., the pattern selection unit
[0151] In addition, the conversion unit
[0152] The subsequent image synthesis unit
[0153]
[0154] An object image focused on the CCD
[0155] These image signals are converted into digital signals by the A/D converter
[0156] The photometric evaluation unit
[0157] On the other hand, the image data stored in the first image buffer
[0158] In the Y/C separation unit
[0159] The appropriate exposure extraction unit
[0160] Thereafter, the edge detection unit
[0161] On the other hand, in the photographing condition estimation unit
[0162] In this manner, the histogram generation unit
[0163] On the basis of the accumulated edge histogram obtained as described above, the conversion curve calculation unit
[0164] In the subsequent conversion unit
[0165] In the fourth embodiment, gradation correction corresponding to a photographing condition is performed by an image processing apparatus which is included as a circuit in an electronic camera. However, these processes can also be performed by a process program of a computer. In this case, photographing information such as photometric information and focal information is recorded on, e.g., the header portion of an image file. In the computer, a photographing condition may be estimated on the basis of these pieces of photographing information to perform gradation correction appropriate to the photographing condition.
[0166] The image processing apparatus is not only applied to an electronic camera, but also popularly applied to devices such as printer devices which handle images.
[0167] According to the fourth embodiment described above, as in the embodiments described above, gradation correction which is most appropriate to a photographing scene can be performed in consideration of a main object.
[0168] FIGS.
[0169] The same reference numerals as in the first to fourth embodiments described above denote the same parts in the fifth embodiment, and a description thereof will be omitted. Only different points will be mainly described below.
[0170] In the fifth embodiment, a luminance signal Y and color difference signals Cb and Cr separated by the Y/C separation unit
[0171] The luminance correction unit
[0172] In addition, the color difference correction unit
[0173] In the Y/C synthesis unit
[0174] In the image synthesis unit
[0175] In this fifth embodiment, gradation correction made in consideration of a theoretical limit characteristic of color reproduction is performed by an image processing apparatus which is included as a circuit in an electronic camera. However, these processes can also be performed by a process program of a computer.
[0176] The image processing apparatus is not only applied to an electronic camera, but also popularly applied to devices such as printer devices which handle images.
[0177] According to the fifth embodiment, gradation correction made in consideration of a theoretical limit characteristic of color reproduction is performed to a color difference signal. For this reason, even though gradation correction of an image is performed, an appropriate hue can be kept.
[0178]
[0179] The same reference numerals as in the first to fifth embodiments denote the same parts in the sixth embodiment, and a description thereof will be omitted. Only different points will be mainly described below.
[0180] The sixth embodiment is constituted such that a function obtained by combining the functions of the fourth embodiment and the fifth embodiment appears. More specifically, weighting depending on a photographing condition is performed when a gradation conversion characteristic of a luminance signal is calculated, a theoretical limit characteristic of color reproduction is considered when a conversion characteristic of a color difference signal is calculated.
[0181] More specifically, as shown in
[0182] When a luminance signal subjected to gradation conversion on the basis of the characteristic curve obtained as described above is input to the color difference correction unit
[0183] In the Y/C synthesis unit
[0184] Also in the sixth embodiment, gradation correction is performed by an image processing apparatus which is included as a circuit in an electronic camera. However, these processes can also be performed by a process program of a computer.
[0185] The image processing apparatus is not only applied to an electronic camera, but also popularly applied to devices such as printer devices which handle images.
[0186] According to the sixth embodiment described above, both of the effect of the fourth embodiment described above and the effect of the fifth embodiment described above can be achieved.
[0187] In this invention, it is apparent that working modes different in a wide range can be formed on the basis of this invention without departing from the spirit and scope of the invention. This invention is not restricted by any specific embodiment except being limited by the appended claims.